From a8f198130c4e6d18f1ffc62ddf5278147ef95655 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Bedi?= Date: Thu, 28 Oct 2021 13:02:31 +0200 Subject: [PATCH] Typo fix --- packages/grafana-ui/src/components/uPlot/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/grafana-ui/src/components/uPlot/utils.ts b/packages/grafana-ui/src/components/uPlot/utils.ts index 58f8ae37517..3d7c20ce740 100755 --- a/packages/grafana-ui/src/components/uPlot/utils.ts +++ b/packages/grafana-ui/src/components/uPlot/utils.ts @@ -134,7 +134,7 @@ export function collectStackingGroups(f: Field, groups: Map, s } /** - * Finds y axis midpoind for point at given idx (css pixels relative to uPlot canvas) + * Finds y axis midpoint for point at given idx (css pixels relative to uPlot canvas) * @internal **/ @@ -177,7 +177,7 @@ export function findMidPointYPosition(u: uPlot, idx: number) { // find median position y = (u.valToPos(min, u.series[sMinIdx].scale!) + u.valToPos(max, u.series[sMaxIdx].scale!)) / 2; } else { - // snap tooltip to min OR max point, one of thos is not null :) + // snap tooltip to min OR max point, one of those is not null :) y = u.valToPos((min || max)!, u.series[(sMaxIdx || sMinIdx)!].scale!); }