source: public/assets/js/examples/charts/morsis.js@ e78295c

Last change on this file since e78295c was 194a359, checked in by beratkjufliju <kufliju@…>, 3 years ago

added departments, edited users and added user settings

  • Property mode set to 100644
File size: 1.4 KB
Line 
1'use strict';
2$(document).ready(function () {
3
4 var data = [
5 { y: '2014', a: 50, b: 90},
6 { y: '2015', a: 65, b: 75},
7 { y: '2016', a: 50, b: 50},
8 { y: '2017', a: 75, b: 60},
9 { y: '2018', a: 80, b: 65},
10 { y: '2019', a: 90, b: 70},
11 { y: '2020', a: 100, b: 75},
12 { y: '2021', a: 115, b: 75},
13 { y: '2022', a: 120, b: 85},
14 { y: '2023', a: 145, b: 85},
15 { y: '2024', a: 160, b: 95}
16 ],
17 config = {
18 data: data,
19 xkey: 'y',
20 ykeys: ['a', 'b'],
21 labels: ['Total Income', 'Total Outcome'],
22 fillOpacity: 0.6,
23 hideHover: 'auto',
24 behaveLikeLine: true,
25 resize: true,
26 pointFillColors:['#ffffff'],
27 pointStrokeColors: ['black'],
28 lineColors:['gray','red']
29 };
30 config.element = 'area-chart';
31 Morris.Area(config);
32 config.element = 'line-chart';
33 Morris.Line(config);
34 config.element = 'bar-chart';
35 Morris.Bar(config);
36 config.element = 'stacked';
37 config.stacked = true;
38 Morris.Bar(config);
39 Morris.Donut({
40 element: 'pie-chart',
41 data: [
42 {label: "Friends", value: 30},
43 {label: "Allies", value: 15},
44 {label: "Enemies", value: 45},
45 {label: "Neutral", value: 10}
46 ]
47 });
48
49});
Note: See TracBrowser for help on using the repository browser.