Merge "Fix the docker push"
[clamp.git] / src / main / resources / META-INF / resources / designer / lib / plugins / morris / morris-data.js
1 $(function() {
2
3     Morris.Area({
4         element: 'morris-area-chart',
5         data: [{
6             period: '2010 Q1',
7             iphone: 2666,
8             ipad: null,
9             itouch: 2647
10         }, {
11             period: '2010 Q2',
12             iphone: 2778,
13             ipad: 2294,
14             itouch: 2441
15         }, {
16             period: '2010 Q3',
17             iphone: 4912,
18             ipad: 1969,
19             itouch: 2501
20         }, {
21             period: '2010 Q4',
22             iphone: 3767,
23             ipad: 3597,
24             itouch: 5689
25         }, {
26             period: '2011 Q1',
27             iphone: 6810,
28             ipad: 1914,
29             itouch: 2293
30         }, {
31             period: '2011 Q2',
32             iphone: 5670,
33             ipad: 4293,
34             itouch: 1881
35         }, {
36             period: '2011 Q3',
37             iphone: 4820,
38             ipad: 3795,
39             itouch: 1588
40         }, {
41             period: '2011 Q4',
42             iphone: 15073,
43             ipad: 5967,
44             itouch: 5175
45         }, {
46             period: '2012 Q1',
47             iphone: 10687,
48             ipad: 4460,
49             itouch: 2028
50         }, {
51             period: '2012 Q2',
52             iphone: 8432,
53             ipad: 5713,
54             itouch: 1791
55         }],
56         xkey: 'period',
57         ykeys: ['iphone', 'ipad', 'itouch'],
58         labels: ['iPhone', 'iPad', 'iPod Touch'],
59         pointSize: 2,
60         hideHover: 'auto',
61         resize: true
62     });
63
64     Morris.Donut({
65         element: 'morris-donut-chart',
66         data: [{
67             label: "Download Sales",
68             value: 12
69         }, {
70             label: "In-Store Sales",
71             value: 30
72         }, {
73             label: "Mail-Order Sales",
74             value: 20
75         }],
76         resize: true
77     });
78
79     Morris.Bar({
80         element: 'morris-bar-chart',
81         data: [{
82             y: '2006',
83             a: 100,
84             b: 90
85         }, {
86             y: '2007',
87             a: 75,
88             b: 65
89         }, {
90             y: '2008',
91             a: 50,
92             b: 40
93         }, {
94             y: '2009',
95             a: 75,
96             b: 65
97         }, {
98             y: '2010',
99             a: 50,
100             b: 40
101         }, {
102             y: '2011',
103             a: 75,
104             b: 65
105         }, {
106             y: '2012',
107             a: 100,
108             b: 90
109         }],
110         xkey: 'y',
111         ykeys: ['a', 'b'],
112         labels: ['Series A', 'Series B'],
113         hideHover: 'auto',
114         resize: true
115     });
116
117 });