我试图在一个页面中添加多个图表,但是出现了错误Canvas is already in use.Chart with ID '0' must be destroyed before the canvas can be reused。在研究之后,我读到我必须把我的画布放在div里,因为:
无法直接从画布元素检测画布大小更改的时间。Chart.js使用</e
当我使用CoreUI ChartBar, labels: ['January', 'February', 'March', 'AprilChart with ID '0' must be destroyed before the canvas can be reused.
at new Chart (chart.esm.js:5354: