2👍
You have to change the type of your useRef to ChartJS
:
const chartRef = useRef<ChartJS>(null)
- [Chartjs]-Chartjs doughnut chart with gradient color
- [Chartjs]-Chart js – Get bar width after render
Source:stackexchange.com
2👍
You have to change the type of your useRef to ChartJS
:
const chartRef = useRef<ChartJS>(null)