我在我的iphone应用程序中使用核心情节图。如何在散点图中添加图例。任何人都可以帮助我吗?
提前致谢
答案 0 :(得分:7)
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);