I have had success displaying and manipulating bar charts but I cannot figure out how to work the pie charts. When I use the inspect tool I can see that something is there. I am using the following code: Chart.js CDN:
Canvas container for the graph: Javascript taken from the docs:
var ctx = document.getElementById("myChart");
var myChart = new Chart(ctx,{
type:"pie",
data: [3, 4],
options: {
animation:{
animateScale:true
}
}
});
Amy advise will be welcomed.