0

I can't find any documentation on how to change the y axis values from the default ones. The data im plugging into the chart can have any value from 0-150. However, the y-axis starts at 84 and ends at 98. Here's the link to it's npm page. https://www.npmjs.com/package/react-chartjs-2

cris
  • 265
  • 3
  • 11

1 Answers1

0

I would say that what you need is this:

const options = {
    scales: {
      yAxes: [{
        ticks: {
            beginAtZero: true,
        }
      }],
    }     
  }
Marta C
  • 51
  • 4