Commit 96504940 by Tony Dong Committed by Torkel Ödegaard

fix typo in heatmap rendering.ts (#11101)

parent c3727166
...@@ -649,13 +649,13 @@ export default function link(scope, elem, attrs, ctrl) { ...@@ -649,13 +649,13 @@ export default function link(scope, elem, attrs, ctrl) {
selection.x2 = limitSelection(event.offsetX); selection.x2 = limitSelection(event.offsetX);
drawSelection(selection.x1, selection.x2); drawSelection(selection.x1, selection.x2);
} else { } else {
emitGraphHoverEvet(event); emitGraphHoverEvent(event);
drawCrosshair(event.offsetX); drawCrosshair(event.offsetX);
tooltip.show(event, data); tooltip.show(event, data);
} }
} }
function emitGraphHoverEvet(event) { function emitGraphHoverEvent(event) {
let x = xScale.invert(event.offsetX - yAxisWidth).valueOf(); let x = xScale.invert(event.offsetX - yAxisWidth).valueOf();
let y = yScale.invert(event.offsetY); let y = yScale.invert(event.offsetY);
let pos = { let pos = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment