0๐
i thin problem in getting ID
<canvas id="myChart"></canvas>
var ctx = document.getElementById("myChart");
var myChart = new Chart(ctx,{
type: 'pie',
data: data,
options: options
})
- Chartjs-How to show 2 populations types in one bar using chartjs?
- Chartjs-Can't render multiple responsive canvas graphs in different tabs
0๐
You need to make sure that your chart is created before the view is rendered. And to do that, see this
- Chartjs-NPM module doesn't work with Webpack 3 but works with vue-cli3 which based on Webpack 4
- Chartjs-How to disable scientific notations in logarithmic chart type
Source:stackexchange.com