-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathintial_pie_plotting_code
49 lines (48 loc) · 1.39 KB
/
intial_pie_plotting_code
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
$(function () {
var chart;
$(document).ready(function() {
chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false
},
title: {
text: 'Time spent in each state'
},
tooltip: {
formatter: function() {
return '<b>'+ this.point.name +'</b>: '+ this.percentage +' %';
}
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: false
},
showInLegend: true
}
},
series: [{
type: 'pie',
name: 'Time spent',
data: [
['Low', 10.0],
['High', 15],
{
name: 'OK',
y: 65,
sliced: true,
selected: true
},
['Warn', 2],
['Very high', 7.3],
['Extremly high', 0.7]
]
}]
});
});
});