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.
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?
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?