ChartTheme Class
The colors, fonts and stroke widths of a chart.
public sealed class ChartTheme : IEquatable<ChartTheme>- Implements
Constructors
| Name | Description |
|---|---|
| ChartTheme() |
ChartTheme()
ChartTheme.cspublic ChartTheme()No documentation is available.
Properties
| Name | Description |
|---|---|
| AxisColor | Gets the color of the axis lines and of the ticks. |
| Background | Gets the color of the background, or null for a transparent background. |
| Dark | Gets a theme with light text on a dark background. |
| FontFamily | Gets the font family, or null to use the family of the text measurer. |
| FontSize | Gets the size of the axis and legend labels. |
| Foreground | Gets the color of the titles, the labels and the legend. |
| GridColor | Gets the color of the grid lines. |
| Light | Gets a theme with dark text on a white background. |
| LineWidth | Gets the stroke width of lines. |
| MarkStrokeColor | Gets the color of the outlines that separate adjacent shapes, such as the slices of a pie. |
| MutedForeground | Gets the color of the tick labels and of the subtitle. |
| NegativeColor | Gets the color of decreases (waterfall, falling candlesticks). |
| NeutralColor | Gets the color of totals and of neutral elements. |
| Palette | Gets the colors of the categories, used in order. |
| PositiveColor | Gets the color of increases (waterfall, rising candlesticks). |
| SubtitleFontSize | Gets the size of the subtitle. |
| TickFontSize | Gets the size of the tick labels. |
| TitleFontSize | Gets the size of the title. The title is bold. |
AxisColor
ChartTheme.csGets the color of the axis lines and of the ticks.
public ChartColor AxisColor { get; init; }Property value
Background
ChartTheme.csGets the color of the background, or null for a transparent background.
public ChartColor? Background { get; init; }Property value
Dark
ChartTheme.csGets a theme with light text on a dark background.
public static ChartTheme Dark { get; }Property value
FontFamily
ChartTheme.csFontSize
ChartTheme.csForeground
ChartTheme.csGets the color of the titles, the labels and the legend.
public ChartColor Foreground { get; init; }Property value
GridColor
ChartTheme.csLight
ChartTheme.csGets a theme with dark text on a white background.
public static ChartTheme Light { get; }Property value
LineWidth
ChartTheme.csMarkStrokeColor
ChartTheme.csGets the color of the outlines that separate adjacent shapes, such as the slices of a pie.
public ChartColor MarkStrokeColor { get; init; }Property value
MutedForeground
ChartTheme.csGets the color of the tick labels and of the subtitle.
public ChartColor MutedForeground { get; init; }Property value
NegativeColor
ChartTheme.csGets the color of decreases (waterfall, falling candlesticks).
public ChartColor NegativeColor { get; init; }Property value
NeutralColor
ChartTheme.csGets the color of totals and of neutral elements.
public ChartColor NeutralColor { get; init; }Property value
Palette
ChartTheme.csGets the colors of the categories, used in order.
public IReadOnlyList<ChartColor> Palette { get; init; }Property value
PositiveColor
ChartTheme.csGets the color of increases (waterfall, rising candlesticks).
public ChartColor PositiveColor { get; init; }Property value
SubtitleFontSize
ChartTheme.csTickFontSize
ChartTheme.csTitleFontSize
ChartTheme.csMethods
| Name | Description |
|---|---|
| Equals(ChartTheme?) | |
| Equals(object?) | |
| GetHashCode() | |
| GetPaletteColor(int) | Gets the color of a category, by index in ChartTheme.Palette, cycling when the index is past its end. |
| ToString() |
Equals overloads
Equals(ChartTheme?)
public bool Equals(ChartTheme? other)No documentation is available.
Equals(object?)
GetHashCode()
GetPaletteColor(int)
ChartTheme.csGets the color of a category, by index in ChartTheme.Palette, cycling when the index is past its end.
public ChartColor GetPaletteColor(int index)ToString()
Operators
| Name | Description |
|---|---|
| operator ==(ChartTheme?, ChartTheme?) | |
| operator !=(ChartTheme?, ChartTheme?) |
operator ==(ChartTheme?, ChartTheme?)
public static bool operator ==(ChartTheme? left, ChartTheme? right)No documentation is available.
operator !=(ChartTheme?, ChartTheme?)
public static bool operator !=(ChartTheme? left, ChartTheme? right)No documentation is available.