kevinzhow / PNChart

A simple and beautiful chart lib used in Piner and CoinsMan for iOS
MIT License
9.71k stars 1.76k forks source link

设置xLabel后算出的x轴数值坐标不对 #371

Open Felix3615 opened 7 years ago

Felix3615 commented 7 years ago

1.github上面的代码如下 PNLineChart.m 196行代码 NSInteger x = (NSInteger) (index * _xLabelWidth + _chartMarginLeft); NSInteger y = (NSInteger) (_chartMarginBottom + _chartCavanHeight);

2.pod下载后的代码 PNLineChart.m 200行代码 NSInteger x = (index * _xLabelWidth + _chartMarginLeft + _xLabelWidth / 2.0); NSInteger y = _chartMarginBottom + _chartCavanHeight;