Chartjs-ChartJs: Chart not display in VF page

0👍

you are using a very old version of chart.js (as a matter of fact, the first ever released).

You could solve this by replacing:

<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/0.2.0/Chart.min.js" type="text/javascript"></script>

with

<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>

Fixed versions can also be found, e.g. here.

working codepen

Leave a comment