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, as a CSS font-family value, 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 SceneColor AxisColor { get; init; }Property value
Background
ChartTheme.csGets the color of the background, or null for a transparent background.
public SceneColor? 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.csGets the font family, as a CSS font-family value, or null to use the family of the text measurer.
public string? FontFamily { get; init; }Property value
Remarks
When the text measurer has fonts (ITextMeasurer.Fonts), the texts are measured and drawn with the first family of the list the fonts have. Otherwise the texts are laid out with the metrics of the measurer.
FontSize
ChartTheme.csForeground
ChartTheme.csGets the color of the titles, the labels and the legend.
public SceneColor 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 SceneColor MarkStrokeColor { get; init; }Property value
MutedForeground
ChartTheme.csGets the color of the tick labels and of the subtitle.
public SceneColor MutedForeground { get; init; }Property value
NegativeColor
ChartTheme.csGets the color of decreases (waterfall, falling candlesticks).
public SceneColor NegativeColor { get; init; }Property value
NeutralColor
ChartTheme.csGets the color of totals and of neutral elements.
public SceneColor NeutralColor { get; init; }Property value
Palette
ChartTheme.csGets the colors of the categories, used in order.
public IReadOnlyList<SceneColor> Palette { get; init; }Property value
PositiveColor
ChartTheme.csGets the color of increases (waterfall, rising candlesticks).
public SceneColor 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 SceneColor 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.