2012-03-12 89 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

ü可以告訴如何添加legendTitleforscatterplot? – Priya 2012-03-12 08:57:45

+8

你想添加文字到傳說中嗎?可以通過設置添加到圖中的每個CPTScatterPlot的title屬性來完成。如果您沒有給出標題的值,coreplot將顯示每個繪圖的標識符屬性作爲圖例中的文本。 – Neo 2012-03-12 09:04:22

+0

非常感謝。我的問題解決了 – Priya 2012-03-12 09:16:19

相關問題