SomeRandomName
SomeRandomName

Reputation: 603

Y-axis scale uneven

When using Chart.js i cant find a way to evenly scale the Y axis. Overiding and using manual scaling( scaleOverride: true ) for every chart is not really an option since there are alot of them and they have different data. Some one have an idea how to fix the scaling of the data?

This is the scaling i want: This is the scaling i want

Sometimes the scaling gets uneven depending on the data.

enter image description here

Upvotes: 0

Views: 332

Answers (1)

potatopeelings
potatopeelings

Reputation: 41065

You can set the options globally - this will apply to every chart instance. For instance

Chart.defaults.global.scaleOverride = true;
...

Upvotes: 1

Related Questions