1👍
Update your library. I have test this and working.
<div class="box-body no-padding">
<canvas id="canvas" height="450" width="610"></canvas>
</div>
<script src="https://raw.githubusercontent.com/nnnick/Chart.js/master/Chart.min.js" ></script>
<script>
var PieChart = [
{
value: 40,
color:"#fcc79e"
},
{
value : 30,
color : "#beefd2"
},
{
value : 90,
color : "#ffddfb"
}
];
var myPieChart = new Chart(document.getElementById("canvas").getContext("2d")).Pie(PieChart);
</script>
- Chartjs-Displaying JSON data with Chartjs
- Chartjs-How to fill a graph by a color till a vertical line using chart.js
Source:stackexchange.com