简体   繁体   中英

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: 这是我想要的缩放比例

Sometimes the scaling gets uneven depending on the data.

在此处输入图片说明

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM