如何将图例添加到核心图散点图
答
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);
ü可以告诉如何添加legendTitleforscatterplot? – Priya 2012-03-12 08:57:45
你想添加文字到传说中吗?可以通过设置添加到图中的每个CPTScatterPlot的title属性来完成。如果您没有给出标题的值,coreplot将显示每个绘图的标识符属性作为图例中的文本。 – Neo 2012-03-12 09:04:22
非常感谢。我的问题解决了 – Priya 2012-03-12 09:16:19