Chartjs-Legend only show on force refresh of page-chartjs

0👍

try something like this:

datasets: [{
    label: 'Legend Name',
    data: dataValues,
    backgroundColor: colorCodes,
    hoverBackgroundColor:colorCodes
}]

0👍

Run your js before the document is ready. You can do this by placing your js on top of your page. But your DOM elements will not be available by doing this.

Leave a comment