-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchart.sparkline.js
89 lines (88 loc) · 2.04 KB
/
chart.sparkline.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
$(function() {
'use strict'
/***************** LINE CHARTS *****************/
$('#sparkline1').sparkline('html', {
width: 200,
height: 70,
lineColor: '#8500ff',
fillColor: false,
});
$('#sparkline2').sparkline('html', {
width: 200,
height: 70,
lineColor: '#285cf7',
fillColor: false
});
/************** AREA CHARTS ********************/
$('#sparkline3').sparkline('html', {
width: 200,
height: 70,
lineColor: '#8500ff',
fillColor: 'rgba(133, 0, 255, 0.2)',
});
$('#sparkline4').sparkline('html', {
width: 200,
height: 70,
lineColor: '#285cf7',
fillColor: 'rgba(86, 70, 255, 0.2)'
});
/******************* BAR CHARTS *****************/
$('#sparkline5').sparkline('html', {
type: 'bar',
barWidth: 10,
height: 70,
barColor: '#8500ff',
chartRangeMax: 12
});
$('#sparkline6').sparkline('html', {
type: 'bar',
barWidth: 10,
height: 70,
barColor: '#285cf7',
chartRangeMax: 12
});
/***************** STACKED BAR CHARTS ****************/
$('#sparkline7').sparkline('html', {
type: 'bar',
barWidth: 10,
height: 70,
barColor: '#285cf7',
chartRangeMax: 12
});
$('#sparkline7').sparkline([4, 5, 6, 7, 4, 5, 8, 7, 6, 6, 4, 7, 6, 4, 7], {
composite: true,
type: 'bar',
barWidth: 10,
height: 70,
barColor: '#8500ff',
chartRangeMax: 12
});
$('#sparkline8').sparkline('html', {
type: 'bar',
barWidth: 10,
height: 70,
barColor: '#285cf7',
chartRangeMax: 12
});
$('#sparkline8').sparkline([4, 5, 6, 7, 4, 5, 8, 7, 6, 6, 4, 7, 6, 4, 7], {
composite: true,
type: 'bar',
barWidth: 10,
height: 70,
barColor: '#00cccc ',
chartRangeMax: 12
});
/**************** PIE CHART ****************/
$('#sparkline9').sparkline('html', {
type: 'pie',
width: 70,
height: 70,
sliceColors: ['#8500ff', '#285cf7', '#3bb001']
});
$('#sparkline10').sparkline('html', {
type: 'pie',
width: 70,
height: 70,
sliceColors: ['#8500ff', '#285cf7', '#3bb001','#00cccc ','#ffc107','#3db4ec','#dc3545']
});
});