![]() |
Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
|
A bar plot data source. More...
#import <CPTBarPlot.h>
Inheritance diagram for <CPTBarPlotDataSource>:
Collaboration diagram for <CPTBarPlotDataSource>:Public Instance Methods | |
Bar Style | |
| (nullable CPTFillArray *) | - barFillsForBarPlot:recordIndexRange: |
| (Optional) Gets an array of bar fills for the given bar plot. More... | |
| (nullable CPTFill *) | - barFillForBarPlot:recordIndex: |
| (Optional) Gets a bar fill for the given bar plot. This method will not be called if -barFillsForBarPlot:recordIndexRange: is also implemented in the datasource. More... | |
| (nullable CPTLineStyleArray *) | - barLineStylesForBarPlot:recordIndexRange: |
| (Optional) Gets an array of bar line styles for the given bar plot. More... | |
| (nullable CPTLineStyle *) | - barLineStyleForBarPlot:recordIndex: |
| (Optional) Gets a bar line style for the given bar plot. This method will not be called if -barLineStylesForBarPlot:recordIndexRange: is also implemented in the datasource. More... | |
| (nullable CPTNumberArray *) | - barWidthsForBarPlot:recordIndexRange: |
| (Optional) Gets an array of bar widths for the given bar plot. More... | |
| (nullable NSNumber *) | - barWidthForBarPlot:recordIndex: |
| (Optional) Gets a bar width for the given bar plot. This method will not be called if -barWidthsForBarPlot:recordIndexRange: is also implemented in the datasource. More... | |
Legends | |
| (nullable NSString *) | - legendTitleForBarPlot:recordIndex: |
| (Optional) Gets the legend title for the given bar plot bar. More... | |
| (nullable NSAttributedString *) | - attributedLegendTitleForBarPlot:recordIndex: |
| (Optional) Gets the styled legend title for the given bar plot bar. 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 bar plot data source.
| - (nullable NSAttributedString *) attributedLegendTitleForBarPlot: | (nonnull CPTBarPlot *) | barPlot | |
| recordIndex: | (NSUInteger) | idx | |
(Optional) Gets the styled legend title for the given bar plot bar.
| barPlot | The bar plot. |
| idx | The data index of interest. |
| - (nullable CPTFill *) barFillForBarPlot: | (nonnull CPTBarPlot *) | barPlot | |
| recordIndex: | (NSUInteger) | idx | |
(Optional) Gets a bar fill for the given bar plot. This method will not be called if -barFillsForBarPlot:recordIndexRange: is also implemented in the datasource.
| barPlot | The bar plot. |
| idx | The data index of interest. |
| - (nullable CPTFillArray *) barFillsForBarPlot: | (nonnull CPTBarPlot *) | barPlot | |
| recordIndexRange: | (NSRange) | indexRange | |
(Optional) Gets an array of bar fills for the given bar plot.
| barPlot | The bar plot. |
| indexRange | The range of the data indexes of interest. |
| - (nullable CPTLineStyle *) barLineStyleForBarPlot: | (nonnull CPTBarPlot *) | barPlot | |
| recordIndex: | (NSUInteger) | idx | |
(Optional) Gets a bar line style for the given bar plot. This method will not be called if -barLineStylesForBarPlot:recordIndexRange: is also implemented in the datasource.
| barPlot | The bar plot. |
| idx | The data index of interest. |
| - (nullable CPTLineStyleArray *) barLineStylesForBarPlot: | (nonnull CPTBarPlot *) | barPlot | |
| recordIndexRange: | (NSRange) | indexRange | |
(Optional) Gets an array of bar line styles for the given bar plot.
| barPlot | The bar plot. |
| indexRange | The range of the data indexes of interest. |
| - (nullable NSNumber *) barWidthForBarPlot: | (nonnull CPTBarPlot *) | barPlot | |
| recordIndex: | (NSUInteger) | idx | |
(Optional) Gets a bar width for the given bar plot. This method will not be called if -barWidthsForBarPlot:recordIndexRange: is also implemented in the datasource.
| barPlot | The bar plot. |
| idx | The data index of interest. |
| - (nullable CPTNumberArray *) barWidthsForBarPlot: | (nonnull CPTBarPlot *) | barPlot | |
| recordIndexRange: | (NSRange) | indexRange | |
(Optional) Gets an array of bar widths for the given bar plot.
| barPlot | The bar plot. |
| indexRange | The range of the data indexes of interest. |
| - (nullable NSString *) legendTitleForBarPlot: | (nonnull CPTBarPlot *) | barPlot | |
| recordIndex: | (NSUInteger) | idx | |
(Optional) Gets the legend title for the given bar plot bar.
| barPlot | The bar plot. |
| idx | The data index of interest. |