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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -