coroo / nova-chartjs

A Simple Dashboard Chart in Laravel Nova using Chart JS. Starting create your own dashboard with Chart JS Integration can save your time and help you maintain consistency across standard elements such as Bar, Stacked, Line, Area, Doughnut and Pie Chart.
https://coroo.github.io/nova-chartjs
MIT License
215 stars 71 forks source link

[BUG] BarChart is not re-rendering with new dataset in its series option when calling new BarChart() again inside the resource -> cards method. #172

Open arslanakhtar61 opened 11 months ago

arslanakhtar61 commented 11 months ago

I am using nova version 4 and trying to integerate nova-chartjs with nemrutco/nova-global-filter. When the nova-global-filter changes, I am recalculating the dataset which is passed to the series option of the new BarChart() inside the cards method of my resource. But I am not sure why the BarChart is not updating with the new dataset.

Shouldn't calling new BarChart() again with new series data re-render the chart with the new dataset?