You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set up a doughnut example. See index.html and src/demo.js. Chart.js.legend is separate from Chart.js. It just happens to operate on the same format as Chart.js.
Btw you might have a typo at your code. Maybe it should be something like this: legend(document.getElementById("legend"), doughnutData,myDoughnut1);. It needs to refer to the same data at the chart.
var doughnutData = [
{
value: 300,
color:"#F7464A",
highlight: "#FF5A5E",
label: "Critical"
},
$( document ).ready(function() {
var ctx = document.getElementById("chart-area").getContext("2d");
});
the legend is not working for me
The text was updated successfully, but these errors were encountered: