score:3

Accepted answer

you can combine "floating bars" and "stacked bar chart". see https://codepen.io/fantasyzer/pen/kkaqgom for an example. note that the data of each bar is given as an array [ybegin,yend]. if you set stackable to false for the y scale the values are to be given as absolute:

  datasets: [
  {
    data: [
      [10,12],
      [20,25],
      [15,25],
      [25,28],
  ...

floating stacked bar chart example on codepen.io

ref: https://www.chartjs.org/docs/latest/samples/bar/floating.html, https://www.chartjs.org/docs/latest/samples/bar/stacked.html

score:1

i completely failed to get this working for bar charts (works for line, scatter, radar). then i found new chartjs 2.9 feature here min max bar values

using this on bar and horizontalbar successfully.


Related Query

More Query from same tag