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
infoBoxPlacement
Placement of the information box that appears on touch input.
infoBoxContentAlignment
Alignment of the content inside of the information box
infoBoxValueFont
Font for the value part of the touch info.
infoBoxValueColour
Colour of the value part of the touch info.
infoBoxDescriptionFont
Font for the description part of the touch info.
infoBoxDescriptionColour
Colour of the description part of the touch info.
infoBoxBackgroundColour
Background colour of touch info.
infoBoxBorderColour
Border colour of the touch info.
infoBoxBorderStyle
Border style of the touch info.
globalAnimation
Global control of animations.