diff options
author | Filipp Lepalaan <f@230.to> | 2014-02-17 14:40:45 +0200 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2014-02-17 14:40:45 +0200 |
commit | b494dfc0933c28729eaf8bc2105bbeb28d24ceae (patch) | |
tree | cedbd44afcbe0db0b0392617b42565004fed9f76 /apps/it/static/js/demo/dashboard-demo.js | |
download | pudding-b494dfc0933c28729eaf8bc2105bbeb28d24ceae.tar.gz pudding-b494dfc0933c28729eaf8bc2105bbeb28d24ceae.tar.bz2 pudding-b494dfc0933c28729eaf8bc2105bbeb28d24ceae.zip |
Initial commit
Diffstat (limited to 'apps/it/static/js/demo/dashboard-demo.js')
-rwxr-xr-x | apps/it/static/js/demo/dashboard-demo.js | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/apps/it/static/js/demo/dashboard-demo.js b/apps/it/static/js/demo/dashboard-demo.js new file mode 100755 index 0000000..fd76fd7 --- /dev/null +++ b/apps/it/static/js/demo/dashboard-demo.js @@ -0,0 +1,117 @@ +$(function() {
+
+ Morris.Area({
+ element: 'morris-area-chart',
+ data: [{
+ period: '2010 Q1',
+ iphone: 2666,
+ ipad: null,
+ itouch: 2647
+ }, {
+ period: '2010 Q2',
+ iphone: 2778,
+ ipad: 2294,
+ itouch: 2441
+ }, {
+ period: '2010 Q3',
+ iphone: 4912,
+ ipad: 1969,
+ itouch: 2501
+ }, {
+ period: '2010 Q4',
+ iphone: 3767,
+ ipad: 3597,
+ itouch: 5689
+ }, {
+ period: '2011 Q1',
+ iphone: 6810,
+ ipad: 1914,
+ itouch: 2293
+ }, {
+ period: '2011 Q2',
+ iphone: 5670,
+ ipad: 4293,
+ itouch: 1881
+ }, {
+ period: '2011 Q3',
+ iphone: 4820,
+ ipad: 3795,
+ itouch: 1588
+ }, {
+ period: '2011 Q4',
+ iphone: 15073,
+ ipad: 5967,
+ itouch: 5175
+ }, {
+ period: '2012 Q1',
+ iphone: 10687,
+ ipad: 4460,
+ itouch: 2028
+ }, {
+ period: '2012 Q2',
+ iphone: 8432,
+ ipad: 5713,
+ itouch: 1791
+ }],
+ xkey: 'period',
+ ykeys: ['iphone', 'ipad', 'itouch'],
+ labels: ['iPhone', 'iPad', 'iPod Touch'],
+ pointSize: 2,
+ hideHover: 'auto',
+ resize: true
+ });
+
+ Morris.Donut({
+ element: 'morris-donut-chart',
+ data: [{
+ label: "Download Sales",
+ value: 12
+ }, {
+ label: "In-Store Sales",
+ value: 30
+ }, {
+ label: "Mail-Order Sales",
+ value: 20
+ }],
+ resize: true
+ });
+
+ Morris.Bar({
+ element: 'morris-bar-chart',
+ data: [{
+ y: '2006',
+ a: 100,
+ b: 90
+ }, {
+ y: '2007',
+ a: 75,
+ b: 65
+ }, {
+ y: '2008',
+ a: 50,
+ b: 40
+ }, {
+ y: '2009',
+ a: 75,
+ b: 65
+ }, {
+ y: '2010',
+ a: 50,
+ b: 40
+ }, {
+ y: '2011',
+ a: 75,
+ b: 65
+ }, {
+ y: '2012',
+ a: 100,
+ b: 90
+ }],
+ xkey: 'y',
+ ykeys: ['a', 'b'],
+ labels: ['Series A', 'Series B'],
+ hideHover: 'auto',
+ resize: true
+ });
+
+});
|