Chartjs-Chartjs Bar Chart Y Axis set base starting value to not be 0

0๐Ÿ‘

โœ…

I was able to display desired chart data by using:

a. Chartjs Multi Floating Bar

Sample: http://pravopys.net/chartjs/samples/charts/bar/vertical.html

GitHub: https://github.com/cprimera/Chart.MultiFloatingBar.js/blob/master/samples/multi-floating-bar.html

b. Chartjs annotation plugin(for base point horizontal line)

const Chart = require("chart.js");
const Annotation = require("chartjs-plugin-annotation");
Chart.plugins.register(Annotation);

Preview Image: final chart

Leave a comment