From 696af857d9c49f58661711aff5fb9ff38f43bad9 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Sun, 26 May 2019 06:47:21 -0400 Subject: [PATCH] Fixes #109 - Legend colors could be clearer. Tweaked some colors and line styles to improve readability. --- js/component/card/aggregate_runtime.js | 2 +- js/component/card/recent_activity.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/js/component/card/aggregate_runtime.js b/js/component/card/aggregate_runtime.js index c03a0e0..2a3d40c 100644 --- a/js/component/card/aggregate_runtime.js +++ b/js/component/card/aggregate_runtime.js @@ -299,7 +299,7 @@ beestat.component.card.aggregate_runtime.prototype.decorate_contents_ = function this.chart_.options.series.push({ 'name': beestat.series.outdoor_temperature.name, 'data': series.outdoor_temperature.chart_data, - 'color': beestat.style.color.blue.light, + 'color': beestat.series.outdoor_temperature.color, 'type': 'spline', 'yAxis': 1, 'dashStyle': 'ShortDash', diff --git a/js/component/card/recent_activity.js b/js/component/card/recent_activity.js index 2b3c1b1..e1cd902 100644 --- a/js/component/card/recent_activity.js +++ b/js/component/card/recent_activity.js @@ -559,6 +559,7 @@ beestat.component.card.recent_activity.prototype.decorate_contents_ = function(p }); this.chart_.options.series.push({ + 'color': beestat.series.outdoor_temperature.color, 'data': series.outdoor_temperature.chart_data, 'zones': beestat.component.chart.get_outdoor_temperature_zones(), 'yAxis': 0, @@ -585,14 +586,12 @@ beestat.component.card.recent_activity.prototype.decorate_contents_ = function(p 'type': 'line', 'color': beestat.series.setpoint_heat.color, 'lineWidth': 1, - 'dashStyle': 'ShortDash', 'states': {'hover': {'lineWidthPlus': 0}}, 'step': 'right' }); this.chart_.options.series.push({ 'data': series.setpoint_cool.chart_data, - 'linkedTo': 'setpoint_heat', 'yAxis': 0, 'marker': { 'enabled': false, @@ -602,7 +601,6 @@ beestat.component.card.recent_activity.prototype.decorate_contents_ = function(p 'type': 'line', 'color': beestat.series.setpoint_cool.color, 'lineWidth': 1, - 'dashStyle': 'ShortDash', 'states': {'hover': {'lineWidthPlus': 0}}, 'step': 'right' });