]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | /**\r |
2 | * Life expectancy at birth for 2013, total years.\r | |
3 | * Source: http://data.worldbank.org/\r | |
4 | */\r | |
5 | Ext.define('KitchenSink.store.LifeExpectancy', {\r | |
6 | extend: 'Ext.data.Store',\r | |
7 | alias: 'store.life-expectancy',\r | |
8 | \r | |
9 | fields: ['country', 'expectancy', 'spending'],\r | |
10 | \r | |
11 | constructor: function (config) {\r | |
12 | config = config || {};\r | |
13 | \r | |
14 | // Create data in construct time instead of defining it\r | |
15 | // on the prototype, so that each example that's using\r | |
16 | // this store works on its own set of data.\r | |
17 | config.data = [\r | |
18 | { country: 'Norway', expectancy: 81, spending: 9715 },\r | |
19 | { country: 'United States', expectancy: 79, spending: 9146 },\r | |
20 | { country: 'Luxembourg', expectancy: 82, spending: 7980 },\r | |
21 | { country: 'Netherlands', expectancy: 81, spending: 6145 },\r | |
22 | { country: 'Australia', expectancy: 82, spending: 5827 },\r | |
23 | { country: 'Canada', expectancy: 81, spending: 5718 },\r | |
24 | { country: 'Germany', expectancy: 81, spending: 5006 },\r | |
25 | { country: 'France', expectancy: 82, spending: 4864 },\r | |
26 | { country: 'Japan', expectancy: 83, spending: 3966 },\r | |
27 | { country: 'United Kingdom', expectancy: 81, spending: 3598 },\r | |
28 | { country: 'Singapore', expectancy: 82, spending: 2507 },\r | |
29 | { country: 'Greece', expectancy: 81, spending: 2146 },\r | |
30 | { country: 'Qatar', expectancy: 79, spending: 2043 },\r | |
31 | { country: 'Korea', expectancy: 70, spending: 1880 },\r | |
32 | { country: 'United Arab Emirates', expectancy: 77, spending: 1569 },\r | |
33 | { country: 'Czech Republic', expectancy: 78, spending: 1367 },\r | |
34 | { country: 'Brazil', expectancy: 74, spending: 1083 },\r | |
35 | { country: 'Argentina', expectancy: 76, spending: 1074 },\r | |
36 | { country: 'Russia', expectancy: 71, spending: 957 },\r | |
37 | { country: 'Poland', expectancy: 77, spending: 895 },\r | |
38 | { country: 'Maldives', expectancy: 78, spending: 720 },\r | |
39 | { country: 'Mexico', expectancy: 77, spending: 664 },\r | |
40 | { country: 'Turkey', expectancy: 75, spending: 608 },\r | |
41 | { country: 'South Africa', expectancy: 57, spending: 593 },\r | |
42 | { country: 'Romania', expectancy: 74, spending: 504 },\r | |
43 | { country: 'Belarus', expectancy: 72, spending: 463 },\r | |
44 | { country: 'Namibia', expectancy: 64, spending: 423 },\r | |
45 | { country: 'Botswana', expectancy: 47, spending: 397 },\r | |
46 | { country: 'Hong Kong', expectancy: 84, spending: 1715 },\r | |
47 | { country: 'China', expectancy: 75, spending: 367 },\r | |
48 | { country: 'Ukraine', expectancy: 71, spending: 313 },\r | |
49 | { country: 'Iraq', expectancy: 69, spending: 305 },\r | |
50 | { country: 'Thailand', expectancy: 74, spending: 264 },\r | |
51 | { country: 'Swaziland', expectancy: 49, spending: 256 },\r | |
52 | { country: 'Fiji', expectancy: 70, spending: 189 },\r | |
53 | { country: 'Philippines', expectancy: 69, spending: 122 },\r | |
54 | { country: 'Indonesia', expectancy: 71, spending: 107 },\r | |
55 | { country: 'Haiti', expectancy: 63, spending: 77 },\r | |
56 | { country: 'Cambodia', expectancy: 72, spending: 76 },\r | |
57 | { country: 'India', expectancy: 66, spending: 61 },\r | |
58 | { country: 'Uganda', expectancy: 59, spending: 59 },\r | |
59 | { country: 'Tanzania', expectancy: 61, spending: 49 },\r | |
60 | { country: 'Nepal', expectancy: 68, spending: 39 },\r | |
61 | { country: 'Ethiopia', expectancy: 64, spending: 25 },\r | |
62 | { country: 'Madagascar', expectancy: 65, spending: 20 }\r | |
63 | ];\r | |
64 | \r | |
65 | this.callParent([config]);\r | |
66 | }\r | |
67 | \r | |
68 | }); |