Chartjs-Django + chart.js : Cannot get two bar charts on the same graph with appropriate data

1👍

Can try passing the 2 values of the bar with the setChart() function , like this :

function setChart(d1,d2) { 
...
data [ d1 , d2 ]

And the extraction of the value can be done while calling the function :

reference = data.reference
forecastdata = data.forecastdata
d1 = ...
d2 = ...
setChart(d1,d2)

Leave a comment