forked from RallyApps/app-catalog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CumulativeFlowChartApp.js
95 lines (86 loc) · 3.04 KB
/
CumulativeFlowChartApp.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
(function () {
var Ext = window.Ext4 || window.Ext;
Ext.define("Rally.apps.charts.rpm.cfd.CumulativeFlowChartApp", {
extend: "Rally.apps.charts.rpm.PortfolioChartAppBase",
cls: "portfolio-cfd-app",
requires: [
'Rally.ui.chart.Chart',
'Rally.apps.charts.Colors',
'Rally.apps.charts.IntegrationHeaders'
],
help: {
cls: 'portfolio-cfd-help-container',
id: 274
},
integrationHeaders : {
name: 'Portfolio Item CFD'
},
chartComponentConfig: {
xtype: "rallychart",
chartColors: Ext.create("Rally.apps.charts.Colors").cumulativeFlowColors(),
queryErrorMessage: "No data to display.<br /><br />Most likely, stories are either not yet available or started for this portfolio item.",
aggregationErrorMessage: "No data to display.<br /><br />Check the data type setting for displaying data based on count versus plan estimate.",
storeType: 'Rally.data.lookback.SnapshotStore',
storeConfig: {
find: {
"_TypeHierarchy": -51038,
"Children": null
},
removeUnauthorizedSnapshots: true,
compress: true,
fetch: ["ScheduleState", "PlanEstimate"],
hydrate: ["ScheduleState"],
sort: {
"_ValidFrom": 1
}
},
calculatorType: "Rally.apps.charts.rpm.cfd.CumulativeFlowCalculator",
chartConfig: {
chart: {
defaultSeriesType: "area",
zoomType: "xy"
},
xAxis: {
categories: [],
tickmarkPlacement: "on",
tickInterval: 5,
title: {
text: "Days",
margin: 10
}
},
yAxis: [
{
title: {
text: "Count"
}
}
],
tooltip: {
formatter: function () {
return "" + this.x + "<br />" + this.series.name + ": " + this.y;
}
},
plotOptions: {
series: {
marker: {
enabled: false,
states: {
hover: {
enabled: true
}
}
},
groupPadding: 0.01
},
area: {
stacking: 'normal',
marker: {
enabled: false
}
}
}
}
}
});
}());