72 lines
1.5 KiB
PHP
72 lines
1.5 KiB
PHP
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div id="chart"></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script>
|
|
var siji=$('#siji').html();
|
|
var loro=$('#loro').html();
|
|
var telu=$('#telu').html();
|
|
var papat=$('#papat').html();
|
|
var limo=$('#limo').html();
|
|
var enem=$('#enem').html();
|
|
var pitu=$('#pitu').html();
|
|
Highcharts.chart('chart', {
|
|
chart: {
|
|
plotBackgroundColor: null,
|
|
plotBorderWidth: null,
|
|
plotShadow: false,
|
|
type: 'pie'
|
|
},
|
|
title: {
|
|
text: ''
|
|
},
|
|
tooltip: {
|
|
pointFormat: '{series.name}: <b>{point.y}</b>'
|
|
},
|
|
accessibility: {
|
|
point: {
|
|
valueSuffix: '%'
|
|
}
|
|
},
|
|
plotOptions: {
|
|
pie: {
|
|
allowPointSelect: true,
|
|
cursor: 'pointer',
|
|
dataLabels: {
|
|
enabled: true,
|
|
format: '{point.name}: {point.y}'
|
|
}
|
|
}
|
|
},
|
|
series: [{
|
|
name: 'Jumlah',
|
|
colorByPoint: true,
|
|
data: [{
|
|
name: 'Proses PBJ',
|
|
y: parseInt(siji)
|
|
}, {
|
|
name: 'Selesai Validasi',
|
|
y: parseInt(loro)
|
|
}, {
|
|
name: 'Setor Verifikasi',
|
|
y: parseInt(telu)
|
|
}, {
|
|
name: 'Proses Verifikasi',
|
|
y: parseInt(papat)
|
|
}, {
|
|
name: 'Proses Pelunasan',
|
|
y: parseInt(limo)
|
|
}, {
|
|
name: 'Terbayar',
|
|
y: parseInt(limo)
|
|
}, {
|
|
name: 'Belum divalidasi sudah diverifikasi',
|
|
y: parseInt(enem)
|
|
}]
|
|
}]
|
|
});
|
|
|
|
</script> |