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
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
AxisTitle
Gets or sets the classes for an axis title.
public required string AxisTitle { get; set; }
Property Value
Body
Gets or sets the classes for the container's body, which holds the charts.
public required string Body { get; set; }
Property Value
Canvas
Gets or sets the classes for the SVG layer that draws lines and paths.
public required string Canvas { get; set; }
Property Value
Chart
Gets or sets the classes for the root element of a chart.
public required string Chart { get; set; }
Property Value
Container
Gets or sets the classes for the TwChart container.
public required string Container { get; set; }
Property Value
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
Description
Gets or sets the classes for the container's description.
public required string Description { get; set; }
Property Value
Dot
Gets or sets the classes shared by every dot mark, including its surface-colored ring.
public required string Dot { get; set; }
Property Value
FillNone
Gets or sets the classes that remove the fill from a stroked SVG path.
public required string FillNone { get; set; }
Property Value
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
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
Glyph
Gets or sets the classes for the element positioning an icon mark.
public required string Glyph { get; set; }
Property Value
Grid
Gets or sets the color for gridlines.
public required TwChartColor Grid { get; set; }
Property Value
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
Hit
Gets or sets the classes for the focusable element inside each data point.
public required string Hit { get; set; }
Property Value
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
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
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
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
Ink
Gets or sets the high-contrast ink color, used by target markers.
public required TwChartColor Ink { get; set; }
Property Value
Large
Gets or sets the plot height classes for Large.
public required string Large { get; set; }
Property Value
Legend
Gets or sets the classes for the legend list.
public required string Legend { get; set; }
Property Value
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
LegendItem
Gets or sets the classes for a legend entry.
public required string LegendItem { get; set; }
Property Value
LegendItemHidden
Gets or sets the extra classes for a legend entry whose series is hidden.
public required string LegendItemHidden { get; set; }
Property Value
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
Medium
Gets or sets the plot height classes for Medium.
public required string Medium { get; set; }
Property Value
Negative
Gets or sets the color for an unfavourable change.
public required TwChartColor Negative { get; set; }
Property Value
Plot
Gets or sets the classes for the plot area, the positioning context for every mark.
public required string Plot { get; set; }
Property Value
Positive
Gets or sets the color for a favourable change.
public required TwChartColor Positive { get; set; }
Property Value
Rect
Gets or sets the classes shared by every rectangle mark.
public required string Rect { get; set; }
Property Value
RoundedAll
Gets or sets the classes that round every corner of a rectangle.
public required string RoundedAll { get; set; }
Property Value
RoundedBottom
Gets or sets the classes that round the bottom corners of a rectangle.
public required string RoundedBottom { get; set; }
Property Value
RoundedLeft
Gets or sets the classes that round the left corners of a rectangle.
public required string RoundedLeft { get; set; }
Property Value
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
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
Sequential
Gets or sets the single hue whose opacity shows magnitude, used by heatmaps.
public required TwChartColor Sequential { get; set; }
Property Value
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
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
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
SquareLarge
Gets or sets the maximum width classes for a square plot at Large.
public required string SquareLarge { get; set; }
Property Value
SquareMedium
Gets or sets the maximum width classes for a square plot at Medium.
public required string SquareMedium { get; set; }
Property Value
SquareSmall
Gets or sets the maximum width classes for a square plot at Small.
public required string SquareSmall { get; set; }
Property Value
StrokeHairline
Gets or sets the classes for a hairline stroke, used by gridlines and baselines.
public required string StrokeHairline { get; set; }
Property Value
StrokeNormal
Gets or sets the classes for a standard stroke, used by data lines.
public required string StrokeNormal { get; set; }
Property Value
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
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
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
TableRowHeader
Gets or sets the extra classes for a row header cell in the table view.
public required string TableRowHeader { get; set; }
Property Value
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
Text
Gets or sets the classes shared by every text mark.
public required string Text { get; set; }
Property Value
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
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
TextMuted
Gets or sets the color classes for quiet text marks such as secondary labels.
public required string TextMuted { get; set; }
Property Value
TextPrimary
Gets or sets the color classes for prominent text marks such as value labels.
public required string TextPrimary { get; set; }
Property Value
TextStrong
Gets or sets the extra classes for an emphasized text mark.
public required string TextStrong { get; set; }
Property Value
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
Tick
Gets or sets the typography classes shared by every axis label.
public required string Tick { get; set; }
Property Value
Title
Gets or sets the classes for the container's title.
public required string Title { get; set; }
Property Value
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
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
TooltipLabel
Gets or sets the classes for the label in a tooltip row.
public required string TooltipLabel { get; set; }
Property Value
TooltipRow
Gets or sets the classes for a row of a data point's tooltip.
public required string TooltipRow { get; set; }
Property Value
TooltipTitle
Gets or sets the classes for the title line of a data point's tooltip.
public required string TooltipTitle { get; set; }
Property Value
TooltipValue
Gets or sets the classes for the value in a tooltip row.
public required string TooltipValue { get; set; }
Property Value
Total
Gets or sets the color for a neutral summary value.
public required TwChartColor Total { get; set; }
Property Value
Track
Gets or sets the color for an unfilled track.
public required TwChartColor Track { get; set; }
Property Value
XAxis
Gets or sets the classes for the horizontal axis row.
public required string XAxis { get; set; }
Property Value
XAxisTitle
Gets or sets the extra classes for the title under the horizontal axis.
public required string XAxisTitle { get; set; }
Property Value
XTick
Gets or sets the extra classes for a horizontal axis label.
public required string XTick { get; set; }
Property Value
YAxis
Gets or sets the classes for the vertical axis column.
public required string YAxis { get; set; }
Property Value
YTick
Gets or sets the extra classes for a vertical axis label.
public required string YTick { get; set; }