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
This commit is contained in:
Mariusz Karpiarz 2021-02-02 11:59:20 +00:00
parent 3439344923
commit 1cf4c9534c
2 changed files with 5 additions and 0 deletions

View File

@ -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'),

View File

@ -0,0 +1,4 @@
---
upgrade:
- |
The "Cost Per Service Per Hour" graph no longer stacks series on the Y axis.