diff --git a/js/component/metric/runtime_per_degree_day/auxiliary_heat_1.js b/js/component/metric/runtime_per_degree_day/auxiliary_heat_1.js index 8e67b29..5a97ea4 100644 --- a/js/component/metric/runtime_per_degree_day/auxiliary_heat_1.js +++ b/js/component/metric/runtime_per_degree_day/auxiliary_heat_1.js @@ -20,3 +20,21 @@ beestat.component.metric.runtime_per_degree_day.auxiliary_heat_1.prototype.child beestat.component.metric.runtime_per_degree_day.auxiliary_heat_1.prototype.get_icon_ = function() { return 'fire'; }; + +/** + * Get the title of this metric. + * + * @return {string} The title of this metric. + */ +beestat.component.metric.runtime_per_degree_day.auxiliary_heat_1.prototype.get_title_ = function() { + return beestat.series[this.child_metric_name_].name; +}; + +/** + * Get the color of this metric. + * + * @return {string} The color of this metric. + */ +beestat.component.metric.runtime_per_degree_day.auxiliary_heat_1.prototype.get_color_ = function() { + return beestat.series[this.child_metric_name_].color; +}; diff --git a/js/component/metric/runtime_per_degree_day/auxiliary_heat_2.js b/js/component/metric/runtime_per_degree_day/auxiliary_heat_2.js index 79510c8..f53515b 100644 --- a/js/component/metric/runtime_per_degree_day/auxiliary_heat_2.js +++ b/js/component/metric/runtime_per_degree_day/auxiliary_heat_2.js @@ -20,3 +20,21 @@ beestat.component.metric.runtime_per_degree_day.auxiliary_heat_2.prototype.child beestat.component.metric.runtime_per_degree_day.auxiliary_heat_2.prototype.get_icon_ = function() { return 'fire'; }; + +/** + * Get the title of this metric. + * + * @return {string} The title of this metric. + */ +beestat.component.metric.runtime_per_degree_day.auxiliary_heat_2.prototype.get_title_ = function() { + return beestat.series[this.child_metric_name_].name; +}; + +/** + * Get the color of this metric. + * + * @return {string} The color of this metric. + */ +beestat.component.metric.runtime_per_degree_day.auxiliary_heat_2.prototype.get_color_ = function() { + return beestat.series[this.child_metric_name_].color; +}; diff --git a/js/js.php b/js/js.php index 3acf3b9..ab489d2 100755 --- a/js/js.php +++ b/js/js.php @@ -165,6 +165,8 @@ if($setting->get('environment') === 'dev' || $setting->get('environment') === 'd echo '' . PHP_EOL; echo '' . PHP_EOL; echo '' . PHP_EOL; + echo '' . PHP_EOL; + echo '' . PHP_EOL; echo '' . PHP_EOL; echo '' . PHP_EOL; echo '' . PHP_EOL;