From 1cf4c9534c35e797fea279f7d4e6ed2c33006af9 Mon Sep 17 00:00:00 2001 From: Mariusz Karpiarz Date: Tue, 2 Feb 2021 11:59:20 +0000 Subject: [PATCH] Unstack series on the "Cost Per Service Per Hour" graph By default series on the "Cost Per Service Per Hour" graph are stacked together which means: * all series have to have the same length, otherwise Rickshaw/D3 won't be able to stack them up; * series are drawn one over another and since they are area graphs, this gives false impression of scale (series other than the first one will appear higher than what the scale on the Y axis suggests) This change disables stacking of data series. Story: 2008582 Task: 41735 Change-Id: I6aed92383a70f8dcf26c45155ef1d16169d40601 --- .../project/reporting/templates/reporting/this_month.html | 1 + .../unstack-cost-per-service-per-hour-eff50255d66029c8.yaml | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 releasenotes/notes/unstack-cost-per-service-per-hour-eff50255d66029c8.yaml diff --git a/cloudkittydashboard/dashboards/project/reporting/templates/reporting/this_month.html b/cloudkittydashboard/dashboards/project/reporting/templates/reporting/this_month.html index 0811429..4c29543 100644 --- a/cloudkittydashboard/dashboards/project/reporting/templates/reporting/this_month.html +++ b/cloudkittydashboard/dashboards/project/reporting/templates/reporting/this_month.html @@ -112,6 +112,7 @@ var graph = new Rickshaw.Graph({ element: document.querySelector('#cost_progress'), interpolation: 'linear', + unstack: 'true', onComplete: function(w) { var legend = new Rickshaw.Graph.Legend({ element: document.querySelector('#cost_progress_legend'), diff --git a/releasenotes/notes/unstack-cost-per-service-per-hour-eff50255d66029c8.yaml b/releasenotes/notes/unstack-cost-per-service-per-hour-eff50255d66029c8.yaml new file mode 100644 index 0000000..d3fcd2c --- /dev/null +++ b/releasenotes/notes/unstack-cost-per-service-per-hour-eff50255d66029c8.yaml @@ -0,0 +1,4 @@ +--- +upgrade: + - | + The "Cost Per Service Per Hour" graph no longer stacks series on the Y axis.