fix typo in heatmap rendering.ts (#11101)

This commit is contained in:
Tony Dong 2018-03-06 01:36:06 -08:00 committed by Torkel Ödegaard
parent c372716692
commit 96504940a8

View File

@ -649,13 +649,13 @@ export default function link(scope, elem, attrs, ctrl) {
selection.x2 = limitSelection(event.offsetX);
drawSelection(selection.x1, selection.x2);
} else {
emitGraphHoverEvet(event);
emitGraphHoverEvent(event);
drawCrosshair(event.offsetX);
tooltip.show(event, data);
}
}
function emitGraphHoverEvet(event) {
function emitGraphHoverEvent(event) {
let x = xScale.invert(event.offsetX - yAxisWidth).valueOf();
let y = yScale.invert(event.offsetY);
let pos = {