PieChartStyle
public struct PieChartStyle : CTPieChartStyle
Model for controlling the overall aesthetic of the chart.
-
Declaration
Swift
public var infoBoxPlacement: InfoBoxPlacement -
Declaration
Swift
public var infoBoxContentAlignment: InfoBoxAlignment -
Declaration
Swift
public var infoBoxValueFont: Font -
Declaration
Swift
public var infoBoxValueColour: Color -
Declaration
Swift
public var infoBoxDescriptionFont: Font -
Declaration
Swift
public var infoBoxDescriptionColour: Color -
Declaration
Swift
public var infoBoxBackgroundColour: Color -
Declaration
Swift
public var infoBoxBorderColour: Color -
Declaration
Swift
public var infoBoxBorderStyle: StrokeStyle -
Declaration
Swift
public var globalAnimation: Animation -
init(infoBoxPlacement:infoBoxContentAlignment: infoBoxValueFont: infoBoxValueColour: infoBoxDescriptionFont: infoBoxDescriptionColour: infoBoxBackgroundColour: infoBoxBorderColour: infoBoxBorderStyle: globalAnimation: ) Model for controlling the overall aesthetic of the chart.
Declaration
Swift
public init( infoBoxPlacement: InfoBoxPlacement = .floating, infoBoxContentAlignment: InfoBoxAlignment = .vertical, infoBoxValueFont: Font = .title3, infoBoxValueColour: Color = Color.primary, infoBoxDescriptionFont: Font = .caption, infoBoxDescriptionColour: Color = Color.primary, infoBoxBackgroundColour: Color = Color.systemsBackground, infoBoxBorderColour: Color = Color.clear, infoBoxBorderStyle: StrokeStyle = StrokeStyle(lineWidth: 0), globalAnimation: Animation = Animation.linear(duration: 1) )Parameters
infoBoxPlacementPlacement of the information box that appears on touch input.
infoBoxContentAlignmentAlignment of the content inside of the information box
infoBoxValueFontFont for the value part of the touch info.
infoBoxValueColourColour of the value part of the touch info.
infoBoxDescriptionFontFont for the description part of the touch info.
infoBoxDescriptionColourColour of the description part of the touch info.
infoBoxBackgroundColourBackground colour of touch info.
infoBoxBorderColourBorder colour of the touch info.
infoBoxBorderStyleBorder style of the touch info.
globalAnimationGlobal control of animations.