[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
05122024
/
htdocs
/
simkeu
/
login
/
scripts
/
charts
/
[
Home
]
File: morris.js
'use strict'; /** * @author Batch Themes Ltd. */ (function() { $(function() { if (!element_exists('#charts-morris-js')) { return false; } var config = $.localStorage.get('config'); var colors = config.colors; //http://morrisjs.github.io/morris.js/lines.html Morris.Area({ element: 'morris-area-example', 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'], //behaveLikeLine: true, labels: ['Series A', 'Series B'], lineColors: [colors.danger, colors.warning], lineWidth: 2, pointSize: 4, pointFillColors: [colors.danger, colors.warning], pointStrokeColors: [colors.danger, colors.warning], }); Morris.Line({ element: 'morris-line-example', 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'], lineColors: [colors.danger, colors.warning], lineWidth: 2 }); //http://morrisjs.github.io/morris.js/donuts.html Morris.Donut({ element: 'morris-donut-example', colors: [colors.primary, colors.secondary, colors.info], data: [{ label: "A", value: 12 }, { label: "B", value: 30 }, { label: "C", value: 20 }] }); //http://morrisjs.github.io/morris.js/bars.html Morris.Bar({ element: 'morris-bar-example', 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'], barColors: [colors.primary, colors.secondary], }); }); })();