2👍
You might want to concatenate the strings into floats
data_list =[]
for data in zip(range(12), keys_data):
data = data[1]
keys_spec = monthly_data[data]
date_list.append(data)
for item in keys_spec:
if item == "1. open":
data_list.append(keys_spec[item])
montly_year_dict = dict(zip(date_list, float(data_list))) # change it here
print(montly_year_dict)
Here is the documentation I used
- Chartjs-How can i loop some specific key in each index json data and put it in dataset: data ? (chart.js)
- Chartjs-Chartjs how to apply after animation
Source:stackexchange.com