Skip to content
Advertisement

Tag: chart.js

How to pass a dictionary to ChartJS?

I’m trying to pass a dictionary from my Flask file to my ChartJS but the data doesn’t load on my chart. I think there’s a problem on passing my data. Here is the format of my dictionary. Basically, it’s a time series dataframe I converted as dict. Here is my flask file: Here is my HTML file Answer I solved

How to display legend in toolbox in Charts.js?

I created a scatter chart by using charts.js in my Django project. It is working clearly but in the toolbox, the legends name does not show just number is displaying. How can I display it? I want to display it as: Argentina(44015314.68,28) my code: Answer You can achieve this by using a custom callback to alter the text of the

Advertisement