2012-03-12 19 views

答えて

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); 
+0

uはlegendTitleforscatterplotを追加する方法を伝えることができますか? – Priya

+8

凡例にテキストを追加しますか?これはグラフに追加された各CPTScatterPlotのtitleプロパティを設定することで行うことができます。 titleとして値を指定しないと、coreplotは各プロットのidentifierプロパティを凡例のテキストとして表示します。 – Neo

+0

ありがとうございました。私の問題は解決されました – Priya

関連する問題