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

HorizontalBarChartView 横向柱状图Y轴问题 #3530

Closed
FanZhiMing opened this issue Jun 25, 2018 · 2 comments
Closed

HorizontalBarChartView 横向柱状图Y轴问题 #3530

FanZhiMing opened this issue Jun 25, 2018 · 2 comments

Comments

@FanZhiMing
Copy link

在不使用Y轴的leftAxis 的情况下,还需要设置leftAxis和rightAxis一致,才能使柱状图高度正确,可能是我漏掉哪个属性了吗???
//Y轴
ChartYAxis *leftAxis = _barChartView.leftAxis;
leftAxis.enabled = NO;
leftAxis.axisMinimum = 0.0; // this replaces startAtZero = YES
leftAxis.axisMaximum = 500;
leftAxis.labelCount = 5;

    ChartYAxis *rightAxis = _barChartView.rightAxis;
    rightAxis.labelCount = 4;
    rightAxis.axisMinimum = 0;
    rightAxis.axisMaximum = 500;
    rightAxis.drawZeroLineEnabled = YES;
    rightAxis.drawGridLinesEnabled = NO;
@pmairoldi
Copy link
Collaborator

Please provide a description of your issue in english, the project's native language. It's hard to address problems when we don't understand the language.

@liuxuan30
Copy link
Member

liuxuan30 commented Jul 30, 2018

I second that. Though I can read, but I'm not always around, using the native language gets you better help.

And, please ask how-to question on stack overflow. We don't answer here any more, to save time to work on real things.

@FanZhiMing FanZhiMing changed the title 横向柱状图Y轴问题 HorizontalBarChartView 横向柱状图Y轴问题 Jul 30, 2018
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

3 participants