-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathApp.js
57 lines (52 loc) · 1.41 KB
/
App.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
Ext.define('Rally.gettingstarted.Chart', {
extend: 'Rally.app.App',
componentCls: 'app',
layout: 'fit',
autoScroll: false,
requires: [
'Calculator'
],
launch: function () {
this.add({
xtype: 'rallychart',
//add more config here,
//for the calculator + calculatorConfig,
//storeConfig,
//highcharts config
//using the helper methods included below
});
},
_getStoreConfig: function () {
return {
model: 'portfolioitem/feature',
context: this.getContext().getDataContext(),
limit: Infinity,
fetch: ['Release'],
sorters: [{ property: 'Release.ReleaseDate', direction: 'ASC' }],
filters: [{ property: 'Release', operator: '!=', value: null }],
pageSize: 2000
};
},
_getChartConfig: function () {
return {
chart: { type: 'column' },
legend: { enabled: false },
title: {
text: 'Feature Throughput'
},
yAxis: {
min: 0,
title: {
text: 'Count'
}
},
plotOptions: {
column: {
dataLabels: {
enabled: true
}
}
}
};
}
});