We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
有时候数值轴需要表达人数等只能是整数的数据。在正常的数据下 ECharts 的刻度划分策略可以保证刻度是整数划分的,但是如果如果所有数据为 0 或者最大值为 1,2 等则会出现划分后出现小数的情况。所以需要加入一种机制保证数值轴刻度永远为整数。两个方案:
{ type: 'integer' }
{ minInterval: 1 }
第二种除了保证整数刻度还可以设置成诸如 0.01 用于保证货币的展现正确,等类似情况
The text was updated successfully, but these errors were encountered:
value axis add minInterval. #3115
bf1ce21
No branches or pull requests
有时候数值轴需要表达人数等只能是整数的数据。在正常的数据下 ECharts 的刻度划分策略可以保证刻度是整数划分的,但是如果如果所有数据为 0 或者最大值为 1,2 等则会出现划分后出现小数的情况。所以需要加入一种机制保证数值轴刻度永远为整数。两个方案:
第二种除了保证整数刻度还可以设置成诸如 0.01 用于保证货币的展现正确,等类似情况
The text was updated successfully, but these errors were encountered: