iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCILabelFormatter
@protocol ISCILabelFormatter <ISCIDoubleLabelFormatter>
Defines the protocol to a label formatter which is used by SCIFormatterLabelProviderBase.
-
Updates this label formatter with values provided by axis.
Declaration
Objective-C
- (void)updateWithAxis:(nonnull id<ISCIAxisCore>)axis;Swift
func update(_ axis: any ISCIAxisCore)Parameters
axisThe current axis.
-
Updates ticks collection according to provided axis ticks.
Declaration
Objective-C
- (BOOL)updateTickLabels: (nonnull NSMutableArray<id<ISCIString>> *)formattedTickLabels majorTicks:(nonnull SCIDoubleValues *)majorTicks;Swift
func updateTickLabels(_ formattedTickLabels: NSMutableArray, majorTicks: SCIDoubleValues) -> BoolParameters
formattedTickLabelsThe list where formatted ticks should be stored.
majorTicksMajor ticks to use for tick labels.
Return Value
Return true if ticks were formatted by this
ISCILabelFormatterimplementation, so there is no need to format them in parentISCILabelProvider, otherwise return false
View on GitHub