mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Typo fix
This commit is contained in:
parent
1e7dd4f627
commit
a8f198130c
@ -134,7 +134,7 @@ export function collectStackingGroups(f: Field, groups: Map<string, number[]>, 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!);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user