Skip to main content

Class ChartTheme

Namespace: VelloSharp.Charting.Styling
Assembly: VelloSharp.Charting.dll

Represents a cohesive set of styling tokens for charts.

public sealed class ChartTheme

Inheritance

objectChartTheme

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

ChartTheme(string, ChartPalette, AxisStyle, LegendStyle, IReadOnlyDictionary<string, ChartTypography>?)

public ChartTheme(string name, ChartPalette palette, AxisStyle axisStyle, LegendStyle legendStyle, IReadOnlyDictionary<string, ChartTypography>? typographyVariants = null)

Parameters

name string

palette ChartPalette

axisStyle AxisStyle

legendStyle LegendStyle

typographyVariants IReadOnlyDictionary<string, ChartTypography>?

Properties

Axis

public AxisStyle Axis { get; }

Property Value

AxisStyle

Dark

public static ChartTheme Dark { get; }

Property Value

ChartTheme

Default

public static ChartTheme Default { get; }

Property Value

ChartTheme

Legend

public LegendStyle Legend { get; }

Property Value

LegendStyle

Light

public static ChartTheme Light { get; }

Property Value

ChartTheme

Name

public string Name { get; }

Property Value

string

Palette

public ChartPalette Palette { get; }

Property Value

ChartPalette

TypographyVariants

public IReadOnlyDictionary<string, ChartTypography> TypographyVariants { get; }

Property Value

IReadOnlyDictionary<string, ChartTypography>

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.