1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Fixes #74 - Add outdoor humidity

Even though the line can get a little messy and get in the way of the swimlanes at the top of the chart, it's nice to have.
This commit is contained in:
Jon Ziebell 2019-05-26 06:57:05 -04:00
parent 696af857d9
commit 107458e6d8
2 changed files with 25 additions and 1 deletions

View File

@ -191,7 +191,7 @@ beestat.series = {
},
'outdoor_humidity': {
'name': 'Outdoor Humidity',
'color': beestat.style.color.bluegreen.base
'color': beestat.style.color.green.light
},
'calendar_event_home': {

View File

@ -537,6 +537,30 @@ beestat.component.card.recent_activity.prototype.decorate_contents_ = function(p
'linecap': 'square'
});
this.chart_.options.series.push({
'id': 'outdoor_humidity',
'data': series.outdoor_humidity.chart_data,
'yAxis': 2,
'name': beestat.series.outdoor_humidity.name,
'marker': {
'enabled': false,
'states': {'hover': {'enabled': false}}
},
'type': 'spline',
'dashStyle': 'DashDot',
'visible': false,
'lineWidth': 1,
'color': beestat.series.outdoor_humidity.color,
'states': {'hover': {'lineWidthPlus': 0}},
/*
* Weird HighCharts bug...
* https://stackoverflow.com/questions/48374093/highcharts-highstock-line-change-to-area-bug
* https://github.com/highcharts/highcharts/issues/766
*/
'linecap': 'square'
});
this.chart_.options.series.push({
'data': series.indoor_temperature.chart_data,
'yAxis': 0,