如何在iPhone SDK的Core Plot中添加图例? [英] How Add a legend to Core Plot in iPhone SDK?

查看:150
本文介绍了如何在iPhone SDK的Core Plot中添加图例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Core Plot框架中添加图例?

How can I add Legends in Core Plot framework?

我非常感谢任何指导或帮助。

I am greatly appreciative of any guidance or help.

推荐答案


还没有Legend类。你可以使用图像有时伪造它,但它不是在核心绘图。 检查drewmcco评论

图例尚未在Core Plot中实现。

Legends have not yet been implemented in Core Plot. You're more than welcome to contribute an implementation of them to the framework.

在此期间,您可以使用UILabels和彩色线条构造一个自定义UIView作为图表的图例,然后将其作为同级添加到图表(而不是子视图,或将不会正确呈现),并命令它显示在图表上方。
检查Brad Larson答案

In the meantime, you could construct a custom UIView with UILabels and colored lines to act as the legend for the graph, then add it as a sibling to the graph (not a subview, or it will not be rendered properly) and order it to show above the graph. Check Brad Larson Answer

这篇关于如何在iPhone SDK的Core Plot中添加图例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆