score:1

Accepted answer

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)

Related Query

More Query from same tag