Chartjs Bar Chart showing old data when hovering
With the approach you are taking (e.g. creating a new Chart object each time the date range changes), then you must first destroy the previous chart and then create the new one. You can use the .destroy() prototype method to do this. Here is exactly what the API states. Use this to destroy any chart … Read more