javascript - ChartJS Bar chart painting second bar to the right -
i have barchart using latest version of charts.js. need show bars , @ right, bar has nothing rest. (the first bars thre monthly values, last bar forecast month)
see here better understand mean. https://jsbin.com/diqetaxeqi/edit?js,output
the forecast bar has it's own y axis on right. i've struggled setting bar right , have solved creating new dataset filling values 0 make sure last bar drawn. problem labels not centered anymore bars 0 value still painted.
how can solve better? thanks
your code requires 2 different datasets ? or can 4 like:
data: [18739460, 33056135, 36562034, 3234234] ?
Comments
Post a Comment