Skip to content
ChartForgeX
Class

VisualSeriesDefaults

ChartForgeX.Themes

Namespace
ChartForgeX.Themes
Assembly
ChartForgeX
Modifiers
sealed

Theme defaults for one series kind, such as every line or every bar in charts that use the theme.

Inheritance

  • object
  • VisualSeriesDefaults

Remarks

Each unset value inherits the global theme and family default. An explicit series setting always wins: ChartSeries.StrokeWidth, ChartSeries.StrokeStyle, ChartSeries.Markers, ChartSeries.Interpolation and ChartSeries.DataLabelStyle fields replace the matching default. Chart-level data-label styling and an authored bar corner radius also take precedence over these defaults. A theme snapshots its defaults, so later edits to this instance do not change an existing theme.

Usage

Explore 4 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 1

Constructors

public VisualSeriesDefaults() #

Methods

public VisualSeriesDefaults ConfigureDataLabelStyle(Action<TextStyleOverride> configure) #

Configures data-label text defaults.

Parameters

configure System.Action<ChartForgeX.Typography.TextStyleOverride> required
The configuration callback.

Returns

VisualSeriesDefaults The current defaults.
public VisualSeriesDefaults ConfigureMarkers(Action<ChartMarkerOptions> configure) #

Configures marker defaults.

Parameters

configure System.Action<ChartForgeX.Core.ChartMarkerOptions> required
The configuration callback.

Returns

VisualSeriesDefaults The current defaults.

Properties

public double? StrokeWidth { get; set; } #

Gets or sets the stroke width for this kind's lines, area edges and outlines. Null keeps the theme width.

public IReadOnlyList<double>? Dash { get; set; } #

Gets or sets alternating dash/gap lengths for this kind's connected strokes. Null keeps the family pattern; empty is solid.

public ChartInterpolation? Interpolation { get; set; } #

Gets or sets connected-path interpolation for line and area kinds. Null keeps the family default.

public double? CornerRadius { get; set; } #

Gets or sets the corner radius for bar, horizontal bar, range bar and waterfall marks. Null keeps the theme bar radius.

public ChartMarkerOptions Markers { get; private set; } #

Gets the marker shape, radius, visibility and paint defaults for kinds that draw point markers.

public TextStyleOverride DataLabelStyle { get; private set; } #

Gets the data-label text defaults for this kind.