API Reference
ChartTheme
Defines colors, typography, and surface styling used by chart renderers.
Inheritance
- Object
- ChartTheme
Usage
Explore 68 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 38
- Property ChartGrid.Theme
- Property ChartOptions.Theme
- Method ChartBrandKit.ApplyTo
- Method ChartTheme.Aurora
- Method ChartTheme.Candy
- Method ChartTheme.Clone
- Method ChartTheme.Colorblind
- Method ChartTheme.Dark
- Method ChartTheme.DashboardLight
- Method ChartTheme.Editorial
- Method ChartTheme.GraphiteDark
- Method ChartTheme.GraphiteLight
- Method ChartTheme.Light
- Method ChartTheme.Minimal
- Method ChartTheme.PeopleInfographic
- Method ChartTheme.ReportDark
- Method ChartTheme.ReportLight
- Method ChartTheme.RestaurantDashboardLight
- Method ChartTheme.SaasDashboardLight
- Method ChartTheme.Terminal
- Method ChartTheme.TransparentOverlayDark
- Method ChartTheme.WithBrandKit
- Method ChartTheme.WithCornerRadius
- Method ChartTheme.WithFontFamily
- Method ChartTheme.WithGuideColors
- Method ChartTheme.WithMarkerRadius
- Method ChartTheme.WithPalette
- Method ChartTheme.WithSemanticColors
- Method ChartTheme.WithShadowColor
- Method ChartTheme.WithShadowOpacity
- Method ChartTheme.WithStrokeWidth
- Method ChartTheme.WithSurfaceColors
- Method ChartTheme.WithSurfaceStyle
- Method ChartTheme.WithTextColors
- Method ChartTheme.WithTypography
- Method VisualDesignTokens.ApplyTo
- Property VisualBlockOptions.Theme
- Property VisualGrid.Theme
Accepted by parameters 30
- Method ChartExtensions.ConfigureTheme
- Extension method Chart.ConfigureTheme
- Method Chart.WithTheme
- Extension method ChartGrid.ConfigureTheme
- Method ChartGrid.WithTheme
- Method ChartBrandKit.ApplyTo
- Method VisualDesignTokens.ApplyTo
- Method ActivityTimelineBlock.WithTheme
- Method BlockLayoutBlock.WithTheme
- Method ChartList.WithTheme
- Method ChartTable.WithTheme
- Method DateStripBlock.WithTheme
- Method EntityStripBlock.WithTheme
- Method FactualVisualBlock.WithTheme
- Method FishboneDiagramBlock.WithTheme
- Method GitGraphBlock.WithTheme
- Method HeatmapInsightCard.WithTheme
- Method MetricCard.WithTheme
- Method PacketLayoutBlock.WithTheme
- Method RadialMetricCard.WithTheme
- Method ScheduleTimelineBlock.WithTheme
- Method SectionHeaderBlock.WithTheme
- Method SegmentedMetricBlock.WithTheme
- Method VennDiagramBlock.WithTheme
- Method VisualBlock.WithTheme
- Extension method VisualGrid.ConfigureTheme
- Method VisualGrid.WithTheme
- Method WardleyMapBlock.WithTheme
- Method WorkloadListBlock.WithTheme
- Method VisualsExtensions.ConfigureTheme
Constructors
public ChartTheme() #Methods
public static ChartTheme Aurora() #ChartThemeCreates a vibrant dark theme for high-impact product and status dashboards.
Returns
A vibrant dark chart theme.
public static ChartTheme Candy() #ChartThemeCreates a soft, playful light theme with rounded typography.
Returns
A playful chart theme.
public ChartTheme Clone() #ChartThemeCreates an independent copy of this theme.
Returns
A copied chart theme.
public static ChartTheme Colorblind() #ChartThemeCreates a colorblind-friendly light theme using a high-contrast qualitative palette.
Returns
A colorblind-friendly chart theme.
public static ChartTheme Dark() #ChartThemeCreates the default dark report theme.
Returns
A dark chart theme.
public static ChartTheme DashboardLight() #ChartThemeCreates a bright operational dashboard theme for compact KPI cards, progress rows, and utilization heatmaps.
Returns
A bright dashboard chart theme.
public static ChartTheme Editorial() #ChartThemeCreates a refined editorial theme with serif typography.
Returns
An editorial chart theme.
public static ChartTheme GraphiteDark() #ChartThemeCreates the lifted Graphite dark theme with the same semantic roles.
public static ChartTheme GraphiteLight() #ChartThemeCreates the default flat Graphite light theme.
public static ChartTheme Light() #ChartThemeCreates the default light report theme.
Returns
A light chart theme.
public static ChartTheme Minimal() #ChartThemeCreates a crisp minimal theme for dense business dashboards.
Returns
A minimal chart theme.
public static ChartTheme PeopleInfographic() #ChartThemeCreates a bright people-infographic theme for demographic and survey dashboards.
Returns
A people-infographic chart theme.
public static ChartTheme ReportDark() #ChartThemeCreates a polished dark theme for static reports and generated HTML.
Returns
A dark report chart theme.
public static ChartTheme ReportLight() #ChartThemeCreates a polished light theme for static reports and generated HTML.
Returns
A light report chart theme.
public static ChartTheme RestaurantDashboardLight() #ChartThemeCreates a soft restaurant operations dashboard theme for earnings, order, customer, and occupancy panels.
Returns
A restaurant operations dashboard chart theme.
public static ChartTheme SaasDashboardLight() #ChartThemeCreates a clean SaaS dashboard theme for recurring-revenue trends, targets, and driver cards.
Returns
A SaaS dashboard chart theme.
public static ChartTheme Terminal() #ChartThemeCreates a compact technical theme for operations and infrastructure charts.
Returns
A technical chart theme.
public static ChartTheme TransparentOverlayDark() #ChartThemeCreates a transparent dark overlay theme for charts rendered on existing imagery or wallpapers.
Returns
A transparent overlay chart theme.
public ChartTheme WithBrandKit(ChartBrandKit brandKit) #ChartThemeApplies a reusable brand kit.
Parameters
- brandKit ChartForgeX.Themes.ChartBrandKit
- The brand kit to apply.
Returns
The current theme.
public ChartTheme WithCornerRadius(Double card, Double plot) #ChartThemeApplies chart and plot corner radii.
Parameters
- card System.Double
- The outer card corner radius.
- plot System.Double
- The plot area corner radius.
Returns
The current theme.
public ChartTheme WithFontFamily(String fontFamily) #ChartThemeApplies a CSS font-family stack.
Parameters
- fontFamily System.String
- The CSS font-family stack.
Returns
The current theme.
public ChartTheme WithGuideColors(ChartColor grid, ChartColor axis) #ChartThemeApplies grid and axis guide colors.
Parameters
- grid ChartForgeX.Primitives.ChartColor
- The grid line color.
- axis ChartForgeX.Primitives.ChartColor
- The axis line color.
Returns
The current theme.
public ChartTheme WithMarkerRadius(Double markerRadius) #ChartThemeApplies the marker radius used by point-capable renderers.
Parameters
- markerRadius System.Double
- The non-negative marker radius. Use zero to suppress optional line markers.
Returns
The current theme.
public ChartTheme WithPalette(params ChartColor[] colors) #ChartThemeApplies a default series palette.
Parameters
- colors ChartForgeX.Primitives.ChartColor[]
- The palette colors.
Returns
The current theme.
public ChartTheme WithPalette(params String[] colors) #ChartThemeApplies a default series palette from hexadecimal color strings.
Parameters
- colors System.String[]
- The color strings in #RGB, #RGBA, #RRGGBB, or #RRGGBBAA notation.
Returns
The current theme.
public ChartTheme WithSemanticColors(ChartColor positive, ChartColor warning, ChartColor negative) #ChartThemeApplies semantic status colors.
Parameters
- positive ChartForgeX.Primitives.ChartColor
- The positive status color.
- warning ChartForgeX.Primitives.ChartColor
- The warning status color.
- negative ChartForgeX.Primitives.ChartColor
- The negative status color.
Returns
The current theme.
public ChartTheme WithShadowColor(ChartColor shadowColor) #ChartThemeApplies the card shadow color used by SVG and PNG renderers.
Parameters
- shadowColor ChartForgeX.Primitives.ChartColor
- The shadow color.
Returns
The current theme.
public ChartTheme WithShadowOpacity(Double shadowOpacity) #ChartThemeApplies the SVG card shadow opacity.
Parameters
- shadowOpacity System.Double
- The shadow opacity from zero to one.
Returns
The current theme.
public ChartTheme WithStrokeWidth(Double strokeWidth) #ChartThemeApplies the default line stroke width.
Parameters
- strokeWidth System.Double
- The stroke width.
Returns
The current theme.
public ChartTheme WithSurfaceColors(ChartColor background, ChartColor cardBackground, ChartColor plotBackground, ChartColor cardBorder, ChartColor plotBorder) #ChartThemeApplies background and surface colors.
Parameters
- background ChartForgeX.Primitives.ChartColor
- The full chart background.
- cardBackground ChartForgeX.Primitives.ChartColor
- The outer card background.
- plotBackground ChartForgeX.Primitives.ChartColor
- The plot area background.
- cardBorder ChartForgeX.Primitives.ChartColor
- The outer card border.
- plotBorder ChartForgeX.Primitives.ChartColor
- The plot area border.
Returns
The current theme.
public ChartTheme WithSurfaceStyle(ChartSurfaceStyle style) #ChartThemeApplies a reusable card and plot surface style.
Parameters
- style ChartForgeX.Themes.ChartSurfaceStyle
- The surface style preset.
Returns
The current theme.
public ChartTheme WithTextColors(ChartColor text, ChartColor mutedText) #ChartThemeApplies primary and secondary text colors.
Parameters
- text ChartForgeX.Primitives.ChartColor
- The primary text color.
- mutedText ChartForgeX.Primitives.ChartColor
- The secondary text color.
Returns
The current theme.
public ChartTheme WithTypography(Double title, Double subtitle, Double axisTitle, Double tickLabel, Double legend, Double dataLabel) #ChartThemeApplies the main typography sizes used by renderers.
Parameters
- title System.Double
- The title font size.
- subtitle System.Double
- The subtitle font size.
- axisTitle System.Double
- The axis title font size.
- tickLabel System.Double
- The tick label font size.
- legend System.Double
- The legend font size.
- dataLabel System.Double
- The data label font size.
Returns
The current theme.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public ChartColor Background { get; set; } #Gets or sets the full chart background color.
public ChartColor CardBackground { get; set; } #Gets or sets the outer card background color.
public ChartColor PlotBackground { get; set; } #Gets or sets the plot area background color.
public ChartColor CardBorder { get; set; } #Gets or sets the outer card stroke color.
public ChartColor PlotBorder { get; set; } #Gets or sets the plot area stroke color.
public ChartColor Text { get; set; } #Gets or sets the primary text color.
public ChartColor MutedText { get; set; } #Gets or sets the secondary text color.
public ChartColor Grid { get; set; } #Gets or sets the grid line color.
public ChartColor Axis { get; set; } #Gets or sets the axis line color.
public ChartColor Positive { get; set; } #Gets or sets the semantic color used for positive status indicators.
public ChartColor Warning { get; set; } #Gets or sets the semantic color used for warning status indicators.
public ChartColor Negative { get; set; } #Gets or sets the semantic color used for negative status indicators.
public ChartColor[]? SequentialRamp { get; set; } #Gets or sets an optional sequential ramp (weakest to strongest) for count and intensity heatmaps. When set, heatmap, hexbin, and calendar cells without an explicit colour interpolate along it instead of blending the first palette colour into the plot background. It applies to the sequential heatmap scale only, not the semantic status scale. Design tokens with ramps.sequential set it.
public ChartColor[] Palette { get; set; } #Gets or sets the default series palette.
public Boolean UseCard { get; set; } #Gets or sets a value indicating whether renderers should draw an outer card surface.
public Double CornerRadius { get; set; } #Gets or sets the outer card corner radius.
public Double PlotCornerRadius { get; set; } #Gets or sets the plot area corner radius.
public Double StrokeWidth { get; set; } #Gets or sets the default stroke width used by capable renderers.
public Double ShadowOpacity { get; set; } #Gets or sets the opacity used for the SVG card shadow.
public ChartColor ShadowColor { get; set; } #Gets or sets the color used for card shadows.
public Double TitleFontSize { get; set; } #Gets or sets the title font size used by SVG and HTML renderers.
public Double SubtitleFontSize { get; set; } #Gets or sets the subtitle font size used by SVG and HTML renderers.
public Double AxisTitleFontSize { get; set; } #Gets or sets the axis title font size used by SVG renderers.
public Double TickLabelFontSize { get; set; } #Gets or sets the tick label font size used by SVG renderers.
public Double LegendFontSize { get; set; } #Gets or sets the legend font size used by SVG renderers.
public Double DataLabelFontSize { get; set; } #Gets or sets the data label font size used by SVG renderers.
public Double MarkerRadius { get; set; } #Gets or sets the marker radius used by SVG and PNG point-capable renderers. A value of zero suppresses optional line markers while preserving markers required by scatter and specialized chart types.
public String FontFamily { get; set; } #Gets or sets the CSS font-family used by vector and HTML renderers.
public Boolean UseGraphiteLayout { get; set; } #Gets or sets whether the shared Graphite frame, axes, legend, and family geometry are used.
public Boolean FlatMarks { get; set; } #Gets or sets whether filled marks and surfaces use flat colour without highlights or shadows.
public ChartColor Text2 { get; set; } #Gets or sets the secondary text colour used for data labels and legends.
public ChartColor Info { get; set; } #Gets or sets the informational state colour, independent of the categorical palette.
public ChartColor Quiet { get; set; } #Gets or sets the quiet healthy fill colour.
public ChartColor QuietLine { get; set; } #Gets or sets the understated healthy line colour.
public ChartColor Neutral { get; set; } #Gets or sets the neutral aggregate colour.
public ChartColor Neutral2 { get; set; } #Gets or sets the neutral track colour.
public ChartColor Neutral3 { get; set; } #Gets or sets the neutral zero-cell colour.