forked from arunbagul/openinfra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apps-chart2.php
executable file
·49 lines (48 loc) · 1.01 KB
/
apps-chart2.php
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
<script type="text/javascript">
$(function () {
$('#my_chart02').highcharts({
chart: {
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false
},
title: {
useHTML: true,
text: "<a href='?customer=other'>Other Cloud Apps(200)</a>"
},
tooltip: {
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
useHTML: true,
formatter: function() {
return '<div class="my-click">' + this.point.name + '</div>';
},
enabled: true,
color: '#000000',
connectorColor: '#000000',
format: '<b>{point.name}</b>: {point.percentage:.1f} %'
}
}
},
series: [{
type: 'pie',
name: 'Premium Customers',
data: [
{ name: 'UP (170)', y: 85, color: '#008F00'},
{
name: 'Down (30)',
y: 15,
sliced: true,
selected: true,
color: '#FF0000',
},
]
}]
});
});
</script>