I'm trying to make a chart where a couple of the columns need to be floating. How can this be achieved?
Asked
Active
Viewed 263 times
0
-
Please check https://stackoverflow.com/a/61708696/2358409 for a solution that works sinceChart.js 2.9.0. – uminder May 10 '20 at 08:15
1 Answers
0
This is a waterfall chart, which is not available in Chart.js. See the issue on Github.
However, someone has made such a plugin for Chart.js, available here.
Usage of this plugin is simple, like so:
import waterFallPlugin from 'chartjs-plugin-waterfall';
var chart = new Chart(ctx, {
plugins: [waterFallPlugin]
});

Edwin Chua
- 658
- 1
- 8
- 20