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:
parent
696af857d9
commit
107458e6d8
@ -191,7 +191,7 @@ beestat.series = {
|
|||||||
},
|
},
|
||||||
'outdoor_humidity': {
|
'outdoor_humidity': {
|
||||||
'name': 'Outdoor Humidity',
|
'name': 'Outdoor Humidity',
|
||||||
'color': beestat.style.color.bluegreen.base
|
'color': beestat.style.color.green.light
|
||||||
},
|
},
|
||||||
|
|
||||||
'calendar_event_home': {
|
'calendar_event_home': {
|
||||||
|
@ -537,6 +537,30 @@ beestat.component.card.recent_activity.prototype.decorate_contents_ = function(p
|
|||||||
'linecap': 'square'
|
'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({
|
this.chart_.options.series.push({
|
||||||
'data': series.indoor_temperature.chart_data,
|
'data': series.indoor_temperature.chart_data,
|
||||||
'yAxis': 0,
|
'yAxis': 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user