score:2

Accepted answer

If you see the API documentation of max you'll see that:

If the endOnTick option is true, the max value might be rounded up.

So a solution is to set endOnTick: false, as the default is true. The same applies to min.

Note that this might make your ticks (axis labels) appear at strange points, but this can be remedied with a flood of tick... options like tickInterval, tickPositioner, tickPositions, tickAmount...

A example addition to your code could be (JSFiddle):

endOnTick: false,
startOnTick: false,
tickPositions: [81,105]

Note that there might still be some slight spacing from maxPadding, which is 0.05 by default. You could also set this to 0, but then points might go up to the very edge of the plot area.


Related Query

More Query from same tag