24
rated 0 times
[
25]
[
1]
/ answers: 1 / hits: 31193
/ 9 Years ago, fri, february 13, 2015, 12:00:00
i'm, using charts.js librarie and would like to know how could I add some mark to the hole of a doughnut chart (sth like a percentage)-
My js
jQuery(document).ready(function(){
var data = [
{
value: 5,
color:#A1638C,
highlight: #BF7AAF,
label: Días Completados 1/21
},
{
value: 95,
color: #07659A,
highlight: #4190BA,
label: Días pendientes 20/21
},
]
var ctx = jQuery(#myChart).get(0).getContext(2d);
var myDoughnutChart = new Chart(ctx).Doughnut(data);
});
My canvas:
<canvas id=myChart width=264px></canvas>
More From » canvas