Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
|
A scatter plot data source. More...
#import <CPTScatterPlot.h>
Public Instance Methods | |
Plot Symbols | |
(nullable CPTPlotSymbolArray *) | - symbolsForScatterPlot:recordIndexRange: |
(Optional) Gets a range of plot symbols for the given scatter plot. More... | |
(nullable CPTPlotSymbol *) | - symbolForScatterPlot:recordIndex: |
(Optional) Gets a single plot symbol for the given scatter plot. This method will not be called if -symbolsForScatterPlot:recordIndexRange: is also implemented in the datasource. More... | |
Public Instance Methods inherited from <CPTPlotDataSource> | |
(NSUInteger) | - numberOfRecordsForPlot: |
(Required) The number of data points for the plot. More... | |
(nullable NSArray *) | - numbersForPlot:field:recordIndexRange: |
(Optional) Gets a range of plot data for the given plot and field. Implement one and only one of the optional methods in this section. More... | |
(nullable id) | - numberForPlot:field:recordIndex: |
(Optional) Gets a plot data value for the given plot and field. Implement one and only one of the optional methods in this section. More... | |
(nullable double *) | - doublesForPlot:field:recordIndexRange: |
(Optional) Gets a range of plot data for the given plot and field. Implement one and only one of the optional methods in this section. More... | |
(double) | - doubleForPlot:field:recordIndex: |
(Optional) Gets a plot data value for the given plot and field. Implement one and only one of the optional methods in this section. More... | |
(nullable CPTNumericData *) | - dataForPlot:field:recordIndexRange: |
(Optional) Gets a range of plot data for the given plot and field. Implement one and only one of the optional methods in this section. More... | |
(nullable CPTNumericData *) | - dataForPlot:recordIndexRange: |
(Optional) Gets a range of plot data for all fields of the given plot simultaneously. Implement one and only one of the optional methods in this section. More... | |
(nullable CPTLayerArray *) | - dataLabelsForPlot:recordIndexRange: |
(Optional) Gets a range of data labels for the given plot. More... | |
(nullable CPTLayer *) | - dataLabelForPlot:recordIndex: |
(Optional) Gets a data label for the given plot. This method will not be called if -dataLabelsForPlot:recordIndexRange: is also implemented in the datasource. More... | |
Public Instance Methods inherited from <NSObject> | |
(NSString *) | - description |
(NSUInteger) | - hash |
(BOOL) | - isEqual: |
A scatter plot data source.
- (nullable CPTPlotSymbol *) symbolForScatterPlot: | (nonnull CPTScatterPlot *) | plot | |
recordIndex: | (NSUInteger) | idx | |
(Optional) Gets a single plot symbol for the given scatter plot. This method will not be called if -symbolsForScatterPlot:recordIndexRange: is also implemented in the datasource.
plot | The scatter plot. |
idx | The data index of interest. |
- (nullable CPTPlotSymbolArray *) symbolsForScatterPlot: | (nonnull CPTScatterPlot *) | plot | |
recordIndexRange: | (NSRange) | indexRange | |
(Optional) Gets a range of plot symbols for the given scatter plot.
plot | The scatter plot. |
indexRange | The range of the data indexes of interest. |