Chartjs-How can I make my chart's axes use the same proportions for scaling?

0๐Ÿ‘

โœ…

I was able to do this by updating the tick settings for each axis:

public scatterChartOptions = {
    ...
    scales: {
      xAxes: [{
        ticks: {
          min : - 130,
          max : 130
        }
      }],
      yAxes: [{
        ticks: {
          min : - 130,
          max : 130
        }
      }]
    }
  }

Leave a comment