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

BarChartView没有从0开始 #3963

Closed
1 task
GuanJinsong opened this issue Apr 23, 2019 · 2 comments
Closed
1 task

BarChartView没有从0开始 #3963

GuanJinsong opened this issue Apr 23, 2019 · 2 comments

Comments

@GuanJinsong
Copy link

GuanJinsong commented Apr 23, 2019

What did you do?

条形统计图没有从0开始,请看图
barChartView is not start on zero, look at the picture
581555991287_ pic
这是我的代码
this is my code

_chartView.rightAxis.gridLineDashLengths = @[@4, @2];
_chartView.rightAxis.axisMinimum = 0.0;
_chartView.rightAxis.drawAxisLineEnabled = NO;
_chartView.rightAxis.labelFont = [UIFont systemFontOfSize:12];
_chartView.rightAxis.labelTextColor = hexStringToColor(@"999999");
_chartView.rightAxis.axisLineColor = hexStringToColor(@"#d5d7db");

请问我该怎么做才能让柱形图从0开始
What do I do to start the bar at 0

Charts Environment

Charts version/Branch/Commit Number: 3.3/master
Xcode version: 10.2
Swift version: 5.0
Platform(s) running Charts: iOS 12
macOS version running Xcode: 10.14.4

@GuanJinsong
Copy link
Author

同样的代码,把leftAxis和rightAxis互换就没问题,请问这是怎么回事?

@GuanJinsong
Copy link
Author

原来左边必须设置值才行,我这里的需求是只显示右边。
已解决

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

2 participants