PNChart
PNChart copied to clipboard
折线图y轴对不上
现在折线图的y轴还是对不上,有什么解决方法吗?
同求
same
在PNLineChart类里
- (void)setXLabels:(NSArray *)xLabels withWidth:(CGFloat)width 方法把x坐标计算公式改下就好了 NSInteger x = (index * _xLabelWidth + _chartMarginLeft )改成这样就对齐了 也可以自定义一个值
果断放弃了 改用Charts了