]> git.proxmox.com Git - extjs.git/blame - extjs/templates/admin-dashboard/modern/src/view/dashboard/Sales.js
add extjs 6.0.1 sources
[extjs.git] / extjs / templates / admin-dashboard / modern / src / view / dashboard / Sales.js
CommitLineData
6527f429
DM
1Ext.define('Admin.view.dashboard.Sales', {\r
2 extend: 'Ext.Panel',\r
3 xtype: 'sales',\r
4 ui: 'light',\r
5\r
6 requires: [\r
7 'Ext.chart.CartesianChart',\r
8 'Ext.chart.axis.Category',\r
9 'Ext.chart.axis.Numeric',\r
10 'Ext.chart.series.Bar'\r
11 ],\r
12\r
13 height: 130,\r
14 layout: 'fit',\r
15\r
16 title: 'Sales',\r
17 cls: 'quick-graph-panel',\r
18 header: {\r
19 docked: 'bottom'\r
20 },\r
21 platformConfig: {\r
22 '!phone': {\r
23 iconCls: 'x-fa fa-briefcase'\r
24 }\r
25 },\r
26\r
27 items: [\r
28 {\r
29 xtype: 'cartesian',\r
30 animation : !Ext.isIE9m && Ext.os.is.Desktop,\r
31 background: '#8561c5',\r
32 height: '100%',\r
33 width: '100%',\r
34 colors: [\r
35 '#ffffff'\r
36 ],\r
37\r
38 bind: '{quarterlyGrowth}',\r
39\r
40 axes: [\r
41 {\r
42 type: 'category',\r
43 fields: [\r
44 'xvalue'\r
45 ],\r
46 hidden: true,\r
47 position: 'bottom'\r
48 },\r
49 {\r
50 type: 'numeric',\r
51 fields: [\r
52 'yvalue'\r
53 ],\r
54 grid: {\r
55 odd: {\r
56 fill: '#e8e8e8'\r
57 }\r
58 },\r
59 hidden: true,\r
60 position: 'left'\r
61 }\r
62 ],\r
63\r
64 series: [\r
65 {\r
66 type: 'bar',\r
67 xField: 'xvalue',\r
68 yField: [\r
69 'yvalue'\r
70 ]\r
71 }\r
72 ],\r
73\r
74 interactions: [\r
75 {\r
76 type: 'panzoom'\r
77 }\r
78 ]\r
79 }\r
80 ]\r
81});\r