]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | Ext.define('KitchenSink.store.Pareto', {\r |
2 | extend: 'Ext.data.Store',\r | |
3 | alias: 'store.pareto',\r | |
4 | \r | |
5 | fields: ['complaint', 'count', 'cumnumber', 'cumpercent' ],\r | |
6 | \r | |
7 | constructor: function (config) {\r | |
8 | config = config || {};\r | |
9 | \r | |
10 | // Create data in construct time instead of defining it\r | |
11 | // on the prototype, so that each example that's using\r | |
12 | // this store works on its own set of data.\r | |
13 | config.data = [\r | |
14 | { complaint: 'Overpriced', count: 543, cumnumber: 543, cumpercent: 31 },\r | |
15 | { complaint: 'Small Portions', count: 412, cumnumber: 955, cumpercent: 55 },\r | |
16 | { complaint: 'High Wait Time', count: 245, cumnumber: 1200, cumpercent: 69 },\r | |
17 | { complaint: 'Tasteless Food', count: 187, cumnumber: 1387, cumpercent: 80 },\r | |
18 | { complaint: 'Bad Ambiance', count: 134, cumnumber: 1521, cumpercent: 88 },\r | |
19 | { complaint: 'Not Clean', count: 98, cumnumber: 1619, cumpercent: 93 },\r | |
20 | { complaint: 'Too Noisy', count: 65, cumnumber: 1684, cumpercent: 97 },\r | |
21 | { complaint: 'Salty Food', count: 41, cumnumber: 1725, cumpercent: 99 },\r | |
22 | { complaint: 'Unfriendly Staff', count: 12, cumnumber: 1737, cumpercent: 100 }\r | |
23 | ];\r | |
24 | \r | |
25 | this.callParent([config]);\r | |
26 | }\r | |
27 | \r | |
28 | }); |