Dataset._meta[0].dataset Is Null In ChartJS
I'm trying to show the value of each bar using chart JS. I saw this thread and followed, but I got an error. Link: How to show data values or index labels in ChartJs (Latest Versio
Solution 1:
As you can see on the linked post (you linked that post), the answer contains code like this:
for (var i = 0; i < dataset.data.length; i++) {
for(var key in dataset._meta)
{
var model = dataset._meta[key].data[i]._model;
ctx.fillText(dataset.data[i], model.x, model.y - 5);
}
}
This code is the accepted. Try this. The other, you try to use has the same null error problem.
Post a Comment for "Dataset._meta[0].dataset Is Null In ChartJS"