Table of Contents

Class TwChartTheme

Namespace
TwBlazor.Configuration.Components
Assembly
TwBlazor.dll

Theme configuration for TwChart and every chart drawn inside it. Override any property to customize chart styles globally.

[ExcludeFromCodeCoverage]
public class TwChartTheme
Inheritance
TwChartTheme
Inherited Members

Remarks

Chart geometry (positions and sizes) is written as inline styles because it is computed from data. Everything else, including every color, comes from here.

Constructors

TwChartTheme()

public TwChartTheme()

Properties

Axis

Gets or sets the color for baselines and axis lines.

public required TwChartColor Axis { get; set; }

Property Value

TwChartColor

AxisSizer

Gets or sets the classes for the invisible, zero-height copy of the vertical axis labels that gives the axis column its width. The visible labels are absolutely positioned, so they cannot size it themselves.

public required string AxisSizer { get; set; }

Property Value

string

AxisTitle

Gets or sets the classes for an axis title.

public required string AxisTitle { get; set; }

Property Value

string

Body

Gets or sets the classes for the container's body, which holds the charts.

public required string Body { get; set; }

Property Value

string

Canvas

Gets or sets the classes for the SVG layer that draws lines and paths.

public required string Canvas { get; set; }

Property Value

string

Chart

Gets or sets the classes for the root element of a chart.

public required string Chart { get; set; }

Property Value

string

Container

Gets or sets the classes for the TwChart container.

public required string Container { get; set; }

Property Value

string

Crosshair

Gets or sets the classes for the vertical hairline shown through a data point while it is hovered or focused.

public required string Crosshair { get; set; }

Property Value

string

Description

Gets or sets the classes for the container's description.

public required string Description { get; set; }

Property Value

string

Dot

Gets or sets the classes shared by every dot mark, including its surface-colored ring.

public required string Dot { get; set; }

Property Value

string

FillNone

Gets or sets the classes that remove the fill from a stroked SVG path.

public required string FillNone { get; set; }

Property Value

string

Frame

Gets or sets the classes for the element wrapping the plot and its axes when there is no vertical axis.

public required string Frame { get; set; }

Property Value

string

FrameWithYAxis

Gets or sets the classes for the element wrapping the plot and its axes when there is a vertical axis: a two-column grid whose first column sizes itself to the widest label.

public required string FrameWithYAxis { get; set; }

Property Value

string

Glyph

Gets or sets the classes for the element positioning an icon mark.

public required string Glyph { get; set; }

Property Value

string

Grid

Gets or sets the color for gridlines.

public required TwChartColor Grid { get; set; }

Property Value

TwChartColor

Header

Gets or sets the classes for the container's caption, which holds the title and description.

public required string Header { get; set; }

Property Value

string

Hit

Gets or sets the classes for the focusable element inside each data point.

public required string Hit { get; set; }

Property Value

string

HitHighlight

Gets or sets the classes for the wash shown over a data point while it is hovered or focused.

public required string HitHighlight { get; set; }

Property Value

string

HitShape

Gets or sets the classes for the element cut to the outline of a shaped data point. It is the only part of the data point that takes the pointer, so hovering or tapping anywhere on the shape shows its tooltip.

public string HitShape { get; set; }

Property Value

string

HitWrapper

Gets or sets the extra classes for the TwTooltip wrapper around each data point, including its minimum hit size.

public required string HitWrapper { get; set; }

Property Value

string

HitWrapperShaped

Gets or sets the classes added to the wrapper of a data point that has its own outline, such as a pie slice. They stop the wrapper's rectangle taking the pointer, so only HitShape does.

public string HitWrapperShaped { get; set; }

Property Value

string

Ink

Gets or sets the high-contrast ink color, used by target markers.

public required TwChartColor Ink { get; set; }

Property Value

TwChartColor

Large

Gets or sets the plot height classes for Large.

public required string Large { get; set; }

Property Value

string

Legend

Gets or sets the classes for the legend list.

public required string Legend { get; set; }

Property Value

string

LegendButton

Gets or sets the extra classes for a legend entry that can be clicked to hide its series.

public required string LegendButton { get; set; }

Property Value

string

LegendItem

Gets or sets the classes for a legend entry.

public required string LegendItem { get; set; }

Property Value

string

LegendItemHidden

Gets or sets the extra classes for a legend entry whose series is hidden.

public required string LegendItemHidden { get; set; }

Property Value

string

LegendSwatch

Gets or sets the classes for a legend entry's color swatch. The color itself comes from the series.

public required string LegendSwatch { get; set; }

Property Value

string

Medium

Gets or sets the plot height classes for Medium.

public required string Medium { get; set; }

Property Value

string

Negative

Gets or sets the color for an unfavourable change.

public required TwChartColor Negative { get; set; }

Property Value

TwChartColor

Plot

Gets or sets the classes for the plot area, the positioning context for every mark.

public required string Plot { get; set; }

Property Value

string

Positive

Gets or sets the color for a favourable change.

public required TwChartColor Positive { get; set; }

Property Value

TwChartColor

Rect

Gets or sets the classes shared by every rectangle mark.

public required string Rect { get; set; }

Property Value

string

RoundedAll

Gets or sets the classes that round every corner of a rectangle.

public required string RoundedAll { get; set; }

Property Value

string

RoundedBottom

Gets or sets the classes that round the bottom corners of a rectangle.

public required string RoundedBottom { get; set; }

Property Value

string

RoundedLeft

Gets or sets the classes that round the left corners of a rectangle.

public required string RoundedLeft { get; set; }

Property Value

string

RoundedRight

Gets or sets the classes that round the right corners of a rectangle (the data end of a rising bar).

public required string RoundedRight { get; set; }

Property Value

string

RoundedTop

Gets or sets the classes that round the top corners of a rectangle (the data end of a rising column).

public required string RoundedTop { get; set; }

Property Value

string

Sequential

Gets or sets the single hue whose opacity shows magnitude, used by heatmaps.

public required TwChartColor Sequential { get; set; }

Property Value

TwChartColor

Series

Gets or sets the categorical colors, assigned to series in this fixed order. A series beyond the last color reuses the last one, so keep charts to this many series or fewer.

public required IReadOnlyList<TwChartColor> Series { get; set; }

Property Value

IReadOnlyList<TwChartColor>

Remarks

The order is part of the design: neighboring colors must stay distinguishable for color-blind readers.

Small

Gets or sets the plot height classes for Small.

public required string Small { get; set; }

Property Value

string

Square

Gets or sets the classes that make the plot area a centered square, used by radial charts.

public required string Square { get; set; }

Property Value

string

SquareLarge

Gets or sets the maximum width classes for a square plot at Large.

public required string SquareLarge { get; set; }

Property Value

string

SquareMedium

Gets or sets the maximum width classes for a square plot at Medium.

public required string SquareMedium { get; set; }

Property Value

string

SquareSmall

Gets or sets the maximum width classes for a square plot at Small.

public required string SquareSmall { get; set; }

Property Value

string

StrokeHairline

Gets or sets the classes for a hairline stroke, used by gridlines and baselines.

public required string StrokeHairline { get; set; }

Property Value

string

StrokeNormal

Gets or sets the classes for a standard stroke, used by data lines.

public required string StrokeNormal { get; set; }

Property Value

string

StrokeThick

Gets or sets the classes for a heavy stroke, used by connectors such as a dumbbell's bar.

public required string StrokeThick { get; set; }

Property Value

string

SurfaceRing

Gets or sets the classes that draw a thin ring in the surface color around a rectangle, separating touching marks with a gap instead of a border. Must match the background the chart sits on.

public required string SurfaceRing { get; set; }

Property Value

string

SurfaceStroke

Gets or sets the classes that draw a surface-colored outline around a filled path, separating touching shapes such as pie slices. Must match the background the chart sits on.

public required string SurfaceStroke { get; set; }

Property Value

string

TableRowHeader

Gets or sets the extra classes for a row header cell in the table view.

public required string TableRowHeader { get; set; }

Property Value

string

TableToggle

Gets or sets the classes for the button that switches between the plot and the table view.

public required string TableToggle { get; set; }

Property Value

string

Text

Gets or sets the classes shared by every text mark.

public required string Text { get; set; }

Property Value

string

TextInverse

Gets or sets the color classes for text marks drawn on top of a colored fill.

public required string TextInverse { get; set; }

Property Value

string

TextLarge

Gets or sets the extra classes for a headline text mark such as a gauge's value.

public required string TextLarge { get; set; }

Property Value

string

TextMuted

Gets or sets the color classes for quiet text marks such as secondary labels.

public required string TextMuted { get; set; }

Property Value

string

TextPrimary

Gets or sets the color classes for prominent text marks such as value labels.

public required string TextPrimary { get; set; }

Property Value

string

TextStrong

Gets or sets the extra classes for an emphasized text mark.

public required string TextStrong { get; set; }

Property Value

string

TextTruncate

Gets or sets the extra classes for a text mark with a maximum width, which cut it short with an ellipsis.

public string TextTruncate { get; set; }

Property Value

string

Tick

Gets or sets the typography classes shared by every axis label.

public required string Tick { get; set; }

Property Value

string

Title

Gets or sets the classes for the container's title.

public required string Title { get; set; }

Property Value

string

Toolbar

Gets or sets the classes for the row above the plot that holds the legend and the table toggle.

public required string Toolbar { get; set; }

Property Value

string

TooltipKey

Gets or sets the classes for the short color key at the start of a tooltip row.

public required string TooltipKey { get; set; }

Property Value

string

TooltipLabel

Gets or sets the classes for the label in a tooltip row.

public required string TooltipLabel { get; set; }

Property Value

string

TooltipRow

Gets or sets the classes for a row of a data point's tooltip.

public required string TooltipRow { get; set; }

Property Value

string

TooltipTitle

Gets or sets the classes for the title line of a data point's tooltip.

public required string TooltipTitle { get; set; }

Property Value

string

TooltipValue

Gets or sets the classes for the value in a tooltip row.

public required string TooltipValue { get; set; }

Property Value

string

Total

Gets or sets the color for a neutral summary value.

public required TwChartColor Total { get; set; }

Property Value

TwChartColor

Track

Gets or sets the color for an unfilled track.

public required TwChartColor Track { get; set; }

Property Value

TwChartColor

XAxis

Gets or sets the classes for the horizontal axis row.

public required string XAxis { get; set; }

Property Value

string

XAxisTitle

Gets or sets the extra classes for the title under the horizontal axis.

public required string XAxisTitle { get; set; }

Property Value

string

XTick

Gets or sets the extra classes for a horizontal axis label.

public required string XTick { get; set; }

Property Value

string

YAxis

Gets or sets the classes for the vertical axis column.

public required string YAxis { get; set; }

Property Value

string

YTick

Gets or sets the extra classes for a vertical axis label.

public required string YTick { get; set; }

Property Value

string