View Code? Open in Web Editor
NEW
Open-source iPhone/iPad graph/chart framework includes line chart,stick chart,candlestick chart,pie chart,spider-web chart etc. Based on iOS graph SDK, Using native Objective-c Codes
Home Page: http://www.lidaren.com/cocoacharts
License: Apache License 2.0
Objective-C 23.04%
C 76.78%
C++ 0.08%
Shell 0.09%
Ruby 0.01%
cocoa-charts's Issues
I checked your code. Its very helpful for me. I want the Y axis to be on the left. Can you please help me or guide me the steps to do.
Thanks,
Prajnaranjan Das
我不太了解axisMarginTop和axisMarginRight是什么用,从字面上看应该是上部边距和右边距,但是代码里为什么总是减去2_axisMarginTop和 2_ axisMarginRight,两倍是什么意思?
默认情况 数据画法会根据数据量占满图表区域,
但是对于分时图来说 相当于X坐标永远固定. 对于接受来的数据画在对应的位置, 而不对根据数据量调整X坐标系的位置.
好像找不到可以设置成分时风格的画法? 要么默认把X坐标系通过空数据填满?
CCFloat stickWidth = [self getDataStickWidth] if (pt1.x - _firstX > stickWidth) { [self moveToLeft]; } else if (pt1.x - _firstX < -stickWidth) { [self moveToRight]; }
这个计算的stickWidth有一些问题,当需要显示的数据间隔为1时,这个getDataStickWidth算出来的值会超过40,但是往左和往右边Move的距离不会超过20,所以会导致滑动没有任何效果