Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS

Bar plot properties that can be animated using Core Animation. More...

+ Collaboration diagram for Bar Plot:

Appearance

CGFloat CPTBarPlot::barCornerRadius
 The corner radius for the end of the bars. Default is 0.0 for square corners. More...
 
CGFloat CPTBarPlot::barBaseCornerRadius
 The corner radius for the end of the bars drawn at the base value. Default is 0.0 for square corners. More...
 
NSNumberCPTBarPlot::barOffset
 The starting offset of the first bar in location data units. More...
 
NSNumberCPTBarPlot::barWidth
 The width of each bar. Either view or plot coordinates can be used. More...
 
NSNumberCPTBarPlot::baseValue
 The coordinate value of the fixed end of the bars. This is only used if barBasesVary is NO. Otherwise, the data source will be queried for an appropriate value of CPTBarPlotFieldBarBase. More...
 

Detailed Description

Bar plot properties that can be animated using Core Animation.

Properties

◆ barBaseCornerRadius

- (CGFloat) barBaseCornerRadius
readwritenonatomicassign

The corner radius for the end of the bars drawn at the base value. Default is 0.0 for square corners.

◆ barCornerRadius

- (CGFloat) barCornerRadius
readwritenonatomicassign

The corner radius for the end of the bars. Default is 0.0 for square corners.

◆ barOffset

- (nonnull NSNumber *) barOffset
readwritenonatomicstrong

The starting offset of the first bar in location data units.

◆ barWidth

- (nonnull NSNumber *) barWidth
readwritenonatomicstrong

The width of each bar. Either view or plot coordinates can be used.

With plot coordinates, the bar locations are one data unit apart (e.g., 1, 2, 3, etc.), a value of 1.0 will result in bars that touch each other; a value of 0.5 will result in bars that are as wide as the gap between them.

See also
barWidthsAreInViewCoordinates

◆ baseValue

- (nonnull NSNumber *) baseValue
readwritenonatomicstrong

The coordinate value of the fixed end of the bars. This is only used if barBasesVary is NO. Otherwise, the data source will be queried for an appropriate value of CPTBarPlotFieldBarBase.