NChartScaleLegendDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | NChartScaleLegend.h |
Overview
The NChartScaleLegendDelegate protocol provides methods to manage the contents of the scale legend.
– scaleLegendDelegateStringRepresentationOfRangeFrom:to:forScaleLegend:
Get the string representation of the scale legend entry by given values.
- (NSString *)scaleLegendDelegateStringRepresentationOfRangeFrom:(NSNumber *)from to:(NSNumber *)to forScaleLegend:(NChartScaleLegend *)scaleLegend
Parameters
from |
|
---|---|
to |
|
scaleLegend |
|
Return Value
string representation of the entry. For example, it may be “10 .. 20”, or “10 < x < 20”. If nil is returned (or no delegate is attached to the legend, or method is not implemented), the default conversion is used. Assuming the values in the scale are 10, 20, 30, the default conversion looks like this: “> 30”, “20 - 30”, “10 - 20”, “< 10”.
Declared In
NChartScaleLegend.h