Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

Horizontal graph line expected, received near vertical instead.

Open benguild opened this issue 10 years ago • 2 comments

[reacted]

benguild avatar Nov 20 '16 20:11 benguild

The min and max are part of the ticks sub-option. So the y scale should be like so:

        yAxes: [{
            display: false,
            ticks: {
            min: 0,
            max: 14
          }
        }]

This will give you the result you want.

jeffcarey avatar Nov 20 '16 20:11 jeffcarey

Ah, yes. That's more like it. My mistake, thanks!

benguild avatar Nov 20 '16 21:11 benguild