プロット識別子を凡例ラベルとして取得する代わりに、カスタムテキストを提供します。私のプロット識別子は、ラベルとして適切ではない私は、私は方法コアプロットlegendTitleForBarPlotは決して呼び出されません(バグ?)
-(NSString *)legendTitleForBarPlot:(CPTBarPlot *)barPlot recordIndex:(NSUInteger)index
と
-(BOOL)legend:(CPTLegend *)legend shouldDrawSwatchAtIndex:(NSUInteger)index forPlot:(CPTPlot *)plot inRect:(CGRect)rect inContext:(CGContextRef)context;
を実装している
「営業利益」と交換したいと思います「#OpMarg」、例えば
ただし、legendTitleForBarPlot
は呼び出されません。
私の実装のエラーは何ですか?
基本的な凡例のラベルを無効にして、各ラベルにカスタムテキストを提供するにはどうすればよいですか?
[Core Plot 1.0:伝説のカスタムラベルを提供する](http://stackoverflow.com/questions/9720863/core-plot-1-0-provide-custom-labels-for-legends) –