Skip to content

Commit 1cf4c95

Browse files
committed
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
1 parent 3439344 commit 1cf4c95

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

cloudkittydashboard/dashboards/project/reporting/templates/reporting/this_month.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ <h4>{% trans "Cost Per Service Per Hour" %}</h4>
112112
var graph = new Rickshaw.Graph({
113113
element: document.querySelector('#cost_progress'),
114114
interpolation: 'linear',
115+
unstack: 'true',
115116
onComplete: function(w) {
116117
var legend = new Rickshaw.Graph.Legend({
117118
element: document.querySelector('#cost_progress_legend'),
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
upgrade:
3+
- |
4+
The "Cost Per Service Per Hour" graph no longer stacks series on the Y axis.

0 commit comments

Comments
 (0)