NChartScatterArray Class Reference

Inherits from NChartMarker : NSObject
Declared in NChartScatterSeries.h

Overview

The NChartScatterArray class provides optimized storage for massive scatter that can be displayed by the NChartScatterSeries.

+ scatterArrayWithElementType:values:elementsCount:

Create an instance of .

+ (instancetype)scatterArrayWithElementType:(NChartRawArrayElementType)elementType values:(double *)values elementsCount:(NSUInteger)elementsCount

Parameters

elementType
  • type of elements encoded in the values array.
values
  • array of values. This array is not copied and not deleted by . You have to store it outside of the chart and ensure that its life and content last at least until the nearest updateData call. After that, you may free or reuse it, but beware, that the next updateData call will again attempt to access it unless you remove corresponding NChartScatterSeries from the chart.
elementsCount
  • number of elements in the values array (means, length of values array divided by length of element).

Return Value

the new instance of .

Declared In

NChartScatterSeries.h

– initWithElementType:values:elementsCount:

Initialize the newly allocated instance of .

- (instancetype)initWithElementType:(NChartRawArrayElementType)elementType values:(double *)values elementsCount:(NSUInteger)elementsCount

Parameters

elementType
  • type of elements encoded in the values array.
values
  • array of values. See the scatterArray:values:count: description for details about this argument.
elementsCount
  • number of elements in the values array (means, length of values array divided by length of element).

Return Value

the initialized instance of .

Declared In

NChartScatterSeries.h

  elementType

Type of array elements.

@property (nonatomic, readonly) NChartRawArrayElementType elementType

Declared In

NChartScatterSeries.h

  values

Values array.

@property (nonatomic, readonly) const double *values

Declared In

NChartScatterSeries.h

  elementsCount

Count of elements in the values array.

@property (nonatomic, readonly) NSUInteger elementsCount

Declared In

NChartScatterSeries.h

  isDynamic

Flag indicating if the array is intended to be updated while the NChartScatterSeries is displayed (YES) or not (NO). The default value is NO.

@property (nonatomic, assign) BOOL isDynamic

Declared In

NChartScatterSeries.h