0

I want to make a bar graph like this.. is it possible in chart.js?

enter image description here

assuming that OK, Difficult, and Problematic has its own value..

Example:

  • Problematic = 11 or more
  • Difficult = 6 - 10
  • OK = 0 - 5
Jesign
  • 35
  • 6

1 Answers1

1

Yes, like this:

options: {
            scales: {
            yAxes: [{
              ticks: {
                userCallback: function(value) {
                    return value;
                },
                stepSize: 1
              }
            }]
          },
        },

You can also set the step size.

lem93
  • 26
  • 3