1
0
mirror of https://github.com/beestat/app.git synced 2025-05-24 02:14:03 -04:00
While I have the connectNulls option left disabled, I was not adding null values to the series. So Highcharts was just connecting the values because it didn't know any better.
This commit is contained in:
Jon Ziebell 2019-05-23 20:51:46 -04:00
parent 1c79d3a773
commit 658af158d2

View File

@ -1098,6 +1098,17 @@ beestat.component.card.recent_activity.prototype.get_series_ = function() {
self.y_min_ = Math.min(self.y_min_, setpoint_value_heat);
self.y_max_ = Math.max(self.y_max_, setpoint_value_heat);
}
} else {
/**
* Explicitly add a null entry to force an empty spot on the line.
* Otherwise Highcharts will connect gaps (see #119).
*/
series.setpoint_heat.data[x] = null;
series.setpoint_heat.chart_data.push([
x,
null
]);
}
if (
@ -1115,6 +1126,17 @@ beestat.component.card.recent_activity.prototype.get_series_ = function() {
self.y_min_ = Math.min(self.y_min_, setpoint_value_cool);
self.y_max_ = Math.max(self.y_max_, setpoint_value_cool);
}
} else {
/**
* Explicitly add a null entry to force an empty spot on the line.
* Otherwise Highcharts will connect gaps (see #119).
*/
series.setpoint_cool.data[x] = null;
series.setpoint_cool.chart_data.push([
x,
null
]);
}
// Indoor temperature