Skip to content

PlotStyleBuilder

ClassChartGuruChartGuru
public class PlotStyleBuilder

Builder for fluent plot style configuration. Swift Charts equivalent: .chartPlotStyle { $0.Background(.blue) }

public PlotStyleBuilder(PlotStyleConfig config)

No description is available for this member.

Parameters

Name Type Description
config ChartGuru.PlotStyleConfig

public PlotStyleBuilder Background(Color color)

Sets the plot area background color. Swift Charts equivalent: .Background(color)

Parameters

Name Type Description
color UnityEngine.Color

Returns

ChartGuru.PlotStyleBuilder — No return description is available.

public PlotStyleBuilder Background(Gradient gradient)

Sets the plot area background gradient. Swift Charts equivalent: .Background(gradient)

Parameters

Name Type Description
gradient UnityEngine.Gradient

Returns

ChartGuru.PlotStyleBuilder — No return description is available.

public PlotStyleBuilder Background(LinearGradientStyle gradient)

Sets the plot area background using a LinearGradientStyle (gradient + direction).

Parameters

Name Type Description
gradient ChartGuru.LinearGradientStyle

Returns

ChartGuru.PlotStyleBuilder — No return description is available.

public PlotStyleBuilder Background(FourCornerGradient fourCorner)

Sets the plot area background using a four-corner gradient.

Parameters

Name Type Description
fourCorner ChartGuru.FourCornerGradient

Returns

ChartGuru.PlotStyleBuilder — No return description is available.

public PlotStyleBuilder Border(Color color, float width = 1)

Adds a border to the plot area. Swift Charts equivalent: .Border(color, width:)

Parameters

Name Type Description
color UnityEngine.Color
width System.Single

Returns

ChartGuru.PlotStyleBuilder — No return description is available.

public PlotStyleBuilder CornerRadius(float radius)

Sets the corner radius for rounded plot area. Swift Charts equivalent: .ClipShape(.rect(cornerRadius:))

Parameters

Name Type Description
radius System.Single

Returns

ChartGuru.PlotStyleBuilder — No return description is available.

public PlotStyleBuilder Frame(float width, float height)

Applies a frame/padding around the plot area.

Parameters

Name Type Description
width System.Single
height System.Single

Returns

ChartGuru.PlotStyleBuilder — No return description is available.

public PlotStyleBuilder Padding()

Adds 16 px of padding on every side of the plot area. Swift Charts equivalent: .Padding().

Returns

ChartGuru.PlotStyleBuilder — No return description is available.

public PlotStyleBuilder Padding(float all)

Adds the given amount of padding on every side of the plot area. Swift Charts equivalent: .Padding(length).

Parameters

Name Type Description
all System.Single

Returns

ChartGuru.PlotStyleBuilder — No return description is available.

public PlotStyleBuilder Padding(float horizontal, float vertical)

Adds horizontal/vertical padding around the plot area. Swift Charts equivalent: .Padding(.horizontal, h).Padding(.vertical, v).

Parameters

Name Type Description
horizontal System.Single
vertical System.Single

Returns

ChartGuru.PlotStyleBuilder — No return description is available.

public PlotStyleBuilder Padding(Edge edges, float length)

Adds padding on the specified edges. Swift Charts equivalent: .Padding(edges, length).

Parameters

Name Type Description
edges ChartGuru.Edge
length System.Single

Returns

ChartGuru.PlotStyleBuilder — No return description is available.