mirror of
https://github.com/beestat/app.git
synced 2025-07-09 03:04:07 -04:00
Fixed #364 - Sensor Detail tooltip values are out of order
This commit is contained in:
parent
ad7fe5d9b7
commit
10fa135fc0
@ -685,8 +685,17 @@ beestat.component.chart.prototype.sync_crosshair = function(source_chart) {
|
|||||||
source_chart.get_chart().container.addEventListener(
|
source_chart.get_chart().container.addEventListener(
|
||||||
event_type,
|
event_type,
|
||||||
function(e) {
|
function(e) {
|
||||||
var point = self.get_chart().series[0].searchPoint(
|
// https://github.com/highcharts/highcharts/issues/17756
|
||||||
source_chart.get_chart().pointer.normalize(e),
|
let first_visible_series;
|
||||||
|
for (let i = 0; i < self.get_chart().series.length; i++) {
|
||||||
|
if (self.get_chart().series[i].visible === true) {
|
||||||
|
first_visible_series = self.get_chart().series[i];
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var point = first_visible_series.searchPoint(
|
||||||
|
self.get_chart().pointer.normalize(e),
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
if (point !== undefined) {
|
if (point !== undefined) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user