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

Fixes #109 - Legend colors could be clearer.

Tweaked some colors and line styles to improve readability.
This commit is contained in:
Jon Ziebell 2019-05-26 06:47:21 -04:00
parent 8e72626f79
commit 696af857d9
2 changed files with 2 additions and 4 deletions

View File

@ -299,7 +299,7 @@ beestat.component.card.aggregate_runtime.prototype.decorate_contents_ = function
this.chart_.options.series.push({ this.chart_.options.series.push({
'name': beestat.series.outdoor_temperature.name, 'name': beestat.series.outdoor_temperature.name,
'data': series.outdoor_temperature.chart_data, 'data': series.outdoor_temperature.chart_data,
'color': beestat.style.color.blue.light, 'color': beestat.series.outdoor_temperature.color,
'type': 'spline', 'type': 'spline',
'yAxis': 1, 'yAxis': 1,
'dashStyle': 'ShortDash', 'dashStyle': 'ShortDash',

View File

@ -559,6 +559,7 @@ beestat.component.card.recent_activity.prototype.decorate_contents_ = function(p
}); });
this.chart_.options.series.push({ this.chart_.options.series.push({
'color': beestat.series.outdoor_temperature.color,
'data': series.outdoor_temperature.chart_data, 'data': series.outdoor_temperature.chart_data,
'zones': beestat.component.chart.get_outdoor_temperature_zones(), 'zones': beestat.component.chart.get_outdoor_temperature_zones(),
'yAxis': 0, 'yAxis': 0,
@ -585,14 +586,12 @@ beestat.component.card.recent_activity.prototype.decorate_contents_ = function(p
'type': 'line', 'type': 'line',
'color': beestat.series.setpoint_heat.color, 'color': beestat.series.setpoint_heat.color,
'lineWidth': 1, 'lineWidth': 1,
'dashStyle': 'ShortDash',
'states': {'hover': {'lineWidthPlus': 0}}, 'states': {'hover': {'lineWidthPlus': 0}},
'step': 'right' 'step': 'right'
}); });
this.chart_.options.series.push({ this.chart_.options.series.push({
'data': series.setpoint_cool.chart_data, 'data': series.setpoint_cool.chart_data,
'linkedTo': 'setpoint_heat',
'yAxis': 0, 'yAxis': 0,
'marker': { 'marker': {
'enabled': false, 'enabled': false,
@ -602,7 +601,6 @@ beestat.component.card.recent_activity.prototype.decorate_contents_ = function(p
'type': 'line', 'type': 'line',
'color': beestat.series.setpoint_cool.color, 'color': beestat.series.setpoint_cool.color,
'lineWidth': 1, 'lineWidth': 1,
'dashStyle': 'ShortDash',
'states': {'hover': {'lineWidthPlus': 0}}, 'states': {'hover': {'lineWidthPlus': 0}},
'step': 'right' 'step': 'right'
}); });