-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
为什么我设置X轴不显示 #3456
Comments
使用CocoaPods安装的Charts |
ask on stack overflow. |
能具体说明一下吗? |
设置X轴数据格式
实现代理方法
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NSArray *xVals = @[@"2017-12",@"2018-12",@"2018-12",@"2018-12",@"2018-12",@"2018-12",@"2018-12",@"2018-12",@"2018-12",@"2018-12",@"2018-12",@"2018-12"];
ChartXAxis *xAxis = _chartView.xAxis;
xAxis.labelPosition = XAxisLabelPositionBottom;
xAxis.labelFont = [UIFont systemFontOfSize:10];
xAxis.labelCount = xVals.count;
xAxis.valueFormatter = [[ChartIndexAxisValueFormatter alloc] initWithValues:xVals];
xAxis.gridLineDashLengths = @[@5.0, @5.0];
The text was updated successfully, but these errors were encountered: