iOS Charting Documentation - SciChart iOS Charts SDK v3.x

SCIColorMap

@interface SCIColorMap : NSObject

Defines a color map for SCIFastUniformHeatmapRenderableSeries.

  • The color map colors.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSArray<UIColor *> *colors;

    Swift

    var colors: [UIColor]! { get }
  • The color map stop points.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSArray<NSNumber *> *stops;

    Swift

    var stops: [NSNumber]! { get }
  • Creates a new instance of SCIColorMap class.

    Declaration

    Objective-C

    - (instancetype)initWithColors:(NSArray<UIColor *> *)colors
                          andStops:(NSArray<NSNumber *> *)stops;

    Swift

    init!(colors: [UIColor]!, andStops stops: [NSNumber]!)

    Parameters

    colors

    The colors used by this color map.

    stops

    The stops used by this color map.

  • Creates a new instance of SCIColorMap class.

    Declaration

    Objective-C

    - (instancetype)initWithStartColor:(UIColor *)startColor
                              endColor:(UIColor *)endColor;

    Swift

    init!(start startColor: UIColor!, end endColor: UIColor!)

    Parameters

    startColor

    The start color.

    endColor

    The end color.

  • Helper method which creates SCIIntegerValues bitmap data from SCIColorMap instance.

    Declaration

    Objective-C

    + (SCIUnsignedIntegerValues *)createColorMapBitmap:(SCIColorMap *)colorMap
                                                 width:(int)width
                                                height:(int)height;

    Swift

    class func createColorMapBitmap(_ colorMap: SCIColorMap!, width: Int32, height: Int32) -> SCIUnsignedIntegerValues!

    Parameters

    colorMap

    The color map.

    width

    The width of bitmap.

    height

    The height of bitmap.

    Return Value

    The SCIUnsignedIntegerValues bitmap data.