Chartjs-PolarArea Chart: disable data on startup

0πŸ‘

βœ…

I would suggest to use version 4.x (latest major) but I think the API https://www.chartjs.org/docs/latest/developers/api.html#toggledatavisibility-index was implemented in v3 (I don’t know exactly in which minor).

Having an updated Chart.js version, after chart creation, invoke (chart = chart instance created before)

chart.toggleDataVisibility(3); 
chart.update(); 

Leave a comment