Chartjs-Is it possible to combine multiple charts in one canvas in chartjs?

1👍

You cant put 2 charts in 1 canvas, what you can do is use 2 canvases and make 2 charts, disable the on canvas legend and use an HTML legend as demonstrated in this example (https://www.chartjs.org/docs/master/samples/legend/html.html). With the API’s chart.js exposes you will then be able to hide and show your datasets of both charts

Leave a comment