Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
<CPTRangePlotDataSource> Protocol Reference

A range plot data source. More...

#import <CPTRangePlot.h>

+ Inheritance diagram for <CPTRangePlotDataSource>:
+ Collaboration diagram for <CPTRangePlotDataSource>:

Public Instance Methods

Bar Style
(nullable CPTLineStyleArray *) - barLineStylesForRangePlot:recordIndexRange:
 (Optional) Gets a range of bar line styles for the given range plot. More...
 
(nullable CPTLineStyle *) - barLineStyleForRangePlot:recordIndex:
 (Optional) Gets a bar line style for the given range plot. This method will not be called if -barLineStylesForRangePlot:recordIndexRange: is also implemented in the datasource. More...
 
(nullable CPTNumberArray *) - barWidthsForRangePlot:recordIndexRange:
 (Optional) Gets an array of bar widths for the given range plot. More...
 
(nullable NSNumber *) - barWidthForRangePlot:recordIndex:
 (Optional) Gets a bar width for the given range plot. This method will not be called if -barWidthsForRangePlot: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:
 

Detailed Description

A range plot data source.

Method Documentation

◆ barLineStyleForRangePlot:recordIndex:

- (nullable CPTLineStyle *) barLineStyleForRangePlot: (nonnull CPTRangePlot *)  plot
recordIndex: (NSUInteger idx 

(Optional) Gets a bar line style for the given range plot. This method will not be called if -barLineStylesForRangePlot:recordIndexRange: is also implemented in the datasource.

Parameters
plotThe range plot.
idxThe data index of interest.
Returns
The bar line style for the bar with the given index. If the data source returns nil, the default line style is used. If the data source returns an NSNull object, no line is drawn.

◆ barLineStylesForRangePlot:recordIndexRange:

- (nullable CPTLineStyleArray *) barLineStylesForRangePlot: (nonnull CPTRangePlot *)  plot
recordIndexRange: (NSRange indexRange 

(Optional) Gets a range of bar line styles for the given range plot.

Parameters
plotThe range plot.
indexRangeThe range of the data indexes of interest.
Returns
An array of line styles.

◆ barWidthForRangePlot:recordIndex:

- (nullable NSNumber *) barWidthForRangePlot: (nonnull CPTRangePlot *)  plot
recordIndex: (NSUInteger idx 

(Optional) Gets a bar width for the given range plot. This method will not be called if -barWidthsForRangePlot:recordIndexRange: is also implemented in the datasource.

Parameters
plotThe range plot.
idxThe data index of interest.
Returns
The bar width for the bar with the given index. If the data source returns nil, the default barWidth is used.

◆ barWidthsForRangePlot:recordIndexRange:

- (nullable CPTNumberArray *) barWidthsForRangePlot: (nonnull CPTRangePlot *)  plot
recordIndexRange: (NSRange indexRange 

(Optional) Gets an array of bar widths for the given range plot.

Parameters
plotThe range plot.
indexRangeThe range of the data indexes of interest.
Returns
An array of bar widths.

The documentation for this protocol was generated from the following file: