Skip to content
New issue

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

显示,当左边坐标不为零,时折线显示bug #7

Open
xc8888 opened this issue Nov 13, 2020 · 0 comments
Open

显示,当左边坐标不为零,时折线显示bug #7

xc8888 opened this issue Nov 13, 2020 · 0 comments

Comments

@xc8888
Copy link

xc8888 commented Nov 13, 2020

在chart.js文件里面修改var y = chartOpt.axisBottom - (barHeight * ((item.data[k]) / (maxMark)));
改为下面
var y = chartOpt.axisBottom - (barHeight * ((item.data[k]-最低栏显示值) / (maxMark-最低栏显示值)));
这样显示就正常了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant