0👍
try something like this:
datasets: [{
label: 'Legend Name',
data: dataValues,
backgroundColor: colorCodes,
hoverBackgroundColor:colorCodes
}]
- Chartjs-ChartJS – x axis labels orientation
- Chartjs-In react.js with chart.js, I can't access to my data in a componant
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.
- Chartjs-How to reduce the distance between yAxes in Chart.js?
- Chartjs-How to format the left legend on chartjs
Source:stackexchange.com