作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我在我的 iPhone 应用程序中使用核心绘图。如何在散点图中添加图例。谁能帮帮我?
提前致谢
最佳答案
graph_.legend = [CPTLegend legendWithGraph:graph_];
graph_.legend.fill = [CPTFill fillWithColor:[CPTColor darkGrayColor]];
graph_.legend.cornerRadius = 5.0;
graph_.legend.swatchSize = CGSizeMake(25.0, 25.0);
graph_.legendAnchor = CPTRectAnchorBottom;
graph_.legendDisplacement = CGPointMake(0.0, 12.0);
关于objective-c - 如何将图例添加到核心图的散点图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9662423/
我是一名优秀的程序员,十分优秀!