Hello Sir,
I have this script that i am using for Chart.js. How to provide dynamic values to it.
Both the places where value is equal to 10 and also 20, i want to use dynamic value in the form of label, how to do it?
<script>
var doughnutData = [
{
value: 10,
color: "#F7464A"
},
{
value: 20,
color: "#8cc63f"
}
];
var myDoughnut = new Chart(document.getElementById("canvas").getContext("2d")).Doughnut(doughnutData);
</script>
Regards
Rohit