[Chartjs]-Prevent chart.js "jumping"

1👍

Your attempt with defining ticks.min and ticks.max is fine. The only problem is that you defined ticks at the wrong place. Change it as follows and it will work as expected.

yAxes: [{
  scaleLabel: {
    display: true,
    labelString: 'value',
  },
  ticks: {
    max: 100,
    min: -100
  }
}]

Please have a look at your amended JSFiddle.

Leave a comment