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

BarChart如何设置每个柱状图的宽度 #5467

Open
SaiKeiSi opened this issue Jul 12, 2024 · 1 comment
Open

BarChart如何设置每个柱状图的宽度 #5467

SaiKeiSi opened this issue Jul 12, 2024 · 1 comment

Comments

@SaiKeiSi
Copy link

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

Describe alternatives you've considered

Additional context

ADD A REWARD using Speed to SOLVE this issue QUICKLY and SUPPORT this project.

@SaiKeiSi
Copy link
Author

相信有遇到和我一样的问题 添加每个柱状图后 宽度会随着减少 设置的宽度并不可用 可以尝试如下解决
原: barWidth = 0.3f
现在: barWidth = if (loadList.size<7) loadList.size * 0.055f else 0.3f

原理 Barchart总宽度为1 设置没个后 总占比0.3 然后 就需要你就算出每个的宽度if (list.size<7) list.size * 0.055f else 0.3f

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