0๐
you can use componentDidMount
method only to fetch the list and then in componentDidUpdate
method you can update that list with the filter and it will re-render your component with the latest data.
- Chartjs-Laravel โ How to Display both count and percentage (%) in chartjs pie chart
- Chartjs-Chart.js Time series โ x axis that change depending on timestamp
Source:stackexchange.com