Skip to content
← Back to Community
Flask & Chart.js - data on charts doesn't refresh
Profile icon
makkoz

Has anyone tried to put together charts with Flask and Chart.js on replit?

I am having troubles in updating the chart I've created. It kind of works but is temperamental in the way that if I change the data in the "data" list, it doesn't get reflected on the chart.

Any help would be very appreciated!

Voters
Profile icon
lccomputersciencestudent2022
Profile icon
makkoz
Comments
hotnewtop
Profile icon
a5rocks

Is it because you only have 9 data things for both backgroundColor and labels?

Profile icon
makkoz

Thanks for your answer! It appears that when I open the app in new window and refresh it, the chart adjusts and incorporates the new data. So it kind of works although seems a bit temperamental.