s7graphview 示例
我正在寻找一个适用于 iPhone 的图形库,它允许我将文本设置为 X 轴上的值。快速查看 core-plot 后,它似乎无法做到这一点。我偶然发现了 s7graphview 但似乎无法让它工作。
有没有人确实成功了,并且可以与我分享?或者有一些例子的链接吗? 它认为我的大脑只是因为迟到而关闭了,但我正在尝试;)
最诚挚的问候, 保罗·皮伦
I am looking for an graph library for the iPhone which allowes me to set texts as values on the X-axis. After a quick look at core-plot, it seems its uncapable to do so. I stumbled over s7graphview but can't seem to get it working.
Is there anyone who did got it working, and might be able to share it with me? Or any links to some examples?
It think my brain just shut off cause its late, but I am giving it a try ;)
Best regards,
Paul Peelen
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Core Plot 确实支持 X 轴上的自定义刻度标签:
(来源:sunsetlakesoftware.com)
要生成这些自定义标签,您只需将 X 轴的标签策略设置为 CPAxisLabelingPolicyNone 并提供您自己的标签策略。例如,您可以执行以下操作来复制上面的绘图(在 Core Plot iPhone 测试应用程序中):
无需子类化 CPAxis 来添加这些标签。
Core Plot does indeed support custom tick labels on the X axis:
(source: sunsetlakesoftware.com)
To produce these custom labels, you just need to set the labeling policy of the X axis to CPAxisLabelingPolicyNone and provide your own. For example, you can do the following to replicate the above drawing (in the Core Plot iPhone test application):
There's no need to subclass CPAxis to add these labels.
您可以更改标签名称,如
core-plot 中的 CPAxis.m
希望这有帮助...;)
You can change the label names as
in the CPAxis.m in core-plot
Hope this helps... ;)