0👍
This looks like an open issue on Chartist. Github issue
I would recommend to use other charting libraries (like highcharts).
If you are still looking for a fix (until this feature is introduced), I found a workaround by taking the following steps
- Stack the negative series first
- Stack positive values of the negative series next
- Stack positive series next
Also you need to set stackBars
to true
for this to work.
series: [
[-1, -2, -4, -8, -6, -2, -1, -4, -10, -2],
[1, 2, 4, 8, 6, 2, 1, 4, 10, 2],
[5, 20, 5, 5, 21, 12, 22, 3, 20, 2],
]
}, {
stackBars: true,
- Chartjs-Add space between point of the chart and of the border chart in react-chartjs-2
- Chartjs-Chart.js minimal width of Chart with scrollable overflow
Source:stackexchange.com