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

折线图y轴对不上 #453

Open
mayiwoaini opened this issue Dec 12, 2018 · 4 comments
Open

折线图y轴对不上 #453

mayiwoaini opened this issue Dec 12, 2018 · 4 comments

Comments

@mayiwoaini
Copy link

现在折线图的y轴还是对不上,有什么解决方法吗?

@RiberWang
Copy link

同求

@RiberWang
Copy link

same

@su5380863
Copy link

在PNLineChart类里

  • (void)setXLabels:(NSArray *)xLabels withWidth:(CGFloat)width
    方法把x坐标计算公式改下就好了
    NSInteger x = (index * _xLabelWidth + _chartMarginLeft )改成这样就对齐了 也可以自定义一个值

@RiberWang
Copy link

果断放弃了 改用Charts了

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