forked from RallyApps/app-catalog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBurnDownChart.js
98 lines (87 loc) · 3.39 KB
/
BurnDownChart.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
96
97
98
(function () {
var Ext = window.Ext4 || window.Ext;
Ext.define("Rally.apps.charts.burndown.BurnDownChart", {
requires: [
"Rally.ui.chart.Chart"
],
defaultChartComponentConfig: function() {
return {
xtype: "rallychart",
itemId: "burndownchart",
aggregationErrorMessage: "No data to display. Check the data type setting for displaying data based on count versus plan estimate.",
storeType: "Rally.data.lookback.SnapshotStore",
storeConfig: {
find: {
"_TypeHierarchy": { '$in' : [ -51038, -51006 ] },
"Children": null
},
fetch: ["ScheduleState", "PlanEstimate", "ObjectId", "_ValidFrom", "_ValidTo"],
hydrate: ["ScheduleState"],
sort: {
"_ValidFrom": 1
},
compress: true,
useHttpPost: true
},
calculatorType: "Rally.apps.charts.burndown.BurnDownCalculator",
calculatorConfig: {
timeZone: "GMT",
completedScheduleStateNames: ["Accepted", "Released"],
enableProjections: true
//chartAggregationType: ''
},
chartColors: ["#005eb8", "#8dc63f", "#666666", "#c0c0c0"],
chartConfig: {
chart: {
zoomType: "xy"
},
xAxis: {
categories: [],
tickmarkPlacement: "on",
tickInterval: 7,
title: {
text: "Days",
margin: 12
},
maxPadding: 0.25,
labels: {
x: 0,
y: 20,
overflow: "justify"
}
},
yAxis: [],
tooltip: {
formatter: function () {
var floatValue = parseFloat(this.y),
value = this.y;
if (!isNaN(floatValue)) {
value = Math.floor(floatValue * 100) / 100;
}
return "" + this.x + "<br />" + this.series.name + ": " + value;
}
},
plotOptions: {
series: {
marker: {
enabled: false,
states: {
hover: {
enabled: true
}
}
},
connectNulls: true
},
column: {
pointPadding: 0,
borderWidth: 0,
stacking: null,
shadow: false
}
}
}
};
}
});
}());