0๐
โ
I ended up using the approach described here, where HTML legends are added in separate divโs. I modified the approach for doughnut charts, which set up the chart data slightly differently than bar charts.
- Chartjs-Get data from SQLite as an array and generate charts with the data using Chart.js in an HTML
Source:stackexchange.com