API Reference
ChartTheme
Defines colors, typography, and surface styling used by chart renderers.
Inheritance
- Object
- ChartTheme
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters
- Method ChartExtensions.WithTheme
- Method ChartExtensions.WithTheme
- Method ChartExtensions.WithTheme
- Method Chart.WithTheme
- Method ChartGrid.WithTheme
- Method ChartBrandKit.ApplyTo
- Method VisualDesignTokens.ApplyTo
- Method VisualBlock.WithTheme
- Method VisualGrid.WithTheme
Methods
Aurora() #Creates a vibrant dark theme for high-impact product and status dashboards.
Returns
A vibrant dark chart theme.
Colorblind() #Creates a colorblind-friendly light theme using a high-contrast qualitative palette.
Returns
A colorblind-friendly chart theme.
DashboardLight() #Creates a bright operational dashboard theme for compact KPI cards, progress rows, and utilization heatmaps.
Returns
A bright dashboard chart theme.
Editorial() #Creates a refined editorial theme with serif typography.
Returns
An editorial chart theme.
Minimal() #Creates a crisp minimal theme for dense business dashboards.
Returns
A minimal chart theme.
PeopleInfographic() #Creates a bright people-infographic theme for demographic and survey dashboards.
Returns
A people-infographic chart theme.
ReportDark() #Creates a polished dark theme for static reports and generated HTML.
Returns
A dark report chart theme.
ReportLight() #Creates a polished light theme for static reports and generated HTML.
Returns
A light report chart theme.
RestaurantDashboardLight() #Creates a soft restaurant operations dashboard theme for earnings, order, customer, and occupancy panels.
Returns
A restaurant operations dashboard chart theme.
SaasDashboardLight() #Creates a clean SaaS dashboard theme for recurring-revenue trends, targets, and driver cards.
Returns
A SaaS dashboard chart theme.
Terminal() #Creates a compact technical theme for operations and infrastructure charts.
Returns
A technical chart theme.
TransparentOverlayDark() #Creates a transparent dark overlay theme for charts rendered on existing imagery or wallpapers.
Returns
A transparent overlay chart theme.
WithBrandKit(ChartForgeX.Themes.ChartBrandKit brandKit) #Applies a reusable brand kit.
Parameters
- brandKit ChartForgeX.Themes.ChartBrandKit
- The brand kit to apply.
Returns
The current theme.
WithCornerRadius(System.Double card, System.Double plot) #Applies 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.
WithFontFamily(System.String fontFamily) #Applies a CSS font-family stack.
Parameters
- fontFamily System.String
- The CSS font-family stack.
Returns
The current theme.
WithGuideColors(ChartForgeX.Primitives.ChartColor grid, ChartForgeX.Primitives.ChartColor axis) #Applies 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.
WithMarkerRadius(System.Double markerRadius) #Applies 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.
WithPalette(ChartForgeX.Primitives.ChartColor[] colors) #Applies a default series palette.
Parameters
- colors ChartForgeX.Primitives.ChartColor[]
- The palette colors.
Returns
The current theme.
WithPalette(System.String[] colors) #Applies 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.
WithSemanticColors(ChartForgeX.Primitives.ChartColor positive, ChartForgeX.Primitives.ChartColor warning, ChartForgeX.Primitives.ChartColor negative) #Applies 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.
WithShadowColor(ChartForgeX.Primitives.ChartColor shadowColor) #Applies the card shadow color used by SVG and PNG renderers.
Parameters
- shadowColor ChartForgeX.Primitives.ChartColor
- The shadow color.
Returns
The current theme.
WithShadowOpacity(System.Double shadowOpacity) #Applies the SVG card shadow opacity.
Parameters
- shadowOpacity System.Double
- The shadow opacity from zero to one.
Returns
The current theme.
WithStrokeWidth(System.Double strokeWidth) #Applies the default line stroke width.
Parameters
- strokeWidth System.Double
- The stroke width.
Returns
The current theme.
WithSurfaceColors(ChartForgeX.Primitives.ChartColor background, ChartForgeX.Primitives.ChartColor cardBackground, ChartForgeX.Primitives.ChartColor plotBackground, ChartForgeX.Primitives.ChartColor cardBorder, ChartForgeX.Primitives.ChartColor plotBorder) #Applies 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.
WithSurfaceStyle(ChartForgeX.Themes.ChartSurfaceStyle style) #Applies a reusable card and plot surface style.
Parameters
- style ChartForgeX.Themes.ChartSurfaceStyle
- The surface style preset.
Returns
The current theme.
WithTextColors(ChartForgeX.Primitives.ChartColor text, ChartForgeX.Primitives.ChartColor mutedText) #Applies 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.
WithTypography(System.Double title, System.Double subtitle, System.Double axisTitle, System.Double tickLabel, System.Double legend, System.Double dataLabel) #Applies 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.
Properties
Background #Gets or sets the full chart background color.
CardBackground #Gets or sets the outer card background color.
PlotBackground #Gets or sets the plot area background color.
CardBorder #Gets or sets the outer card stroke color.
PlotBorder #Gets or sets the plot area stroke color.
Text #Gets or sets the primary text color.
MutedText #Gets or sets the secondary text color.
Grid #Gets or sets the grid line color.
Axis #Gets or sets the axis line color.
Positive #Gets or sets the semantic color used for positive status indicators.
Warning #Gets or sets the semantic color used for warning status indicators.
Negative #Gets or sets the semantic color used for negative status indicators.
Palette #Gets or sets the default series palette.
UseCard #Gets or sets a value indicating whether renderers should draw an outer card surface.
CornerRadius #Gets or sets the outer card corner radius.
PlotCornerRadius #Gets or sets the plot area corner radius.
StrokeWidth #Gets or sets the default stroke width used by capable renderers.
ShadowOpacity #Gets or sets the opacity used for the SVG card shadow.
ShadowColor #Gets or sets the color used for card shadows.
TitleFontSize #Gets or sets the title font size used by SVG and HTML renderers.
SubtitleFontSize #Gets or sets the subtitle font size used by SVG and HTML renderers.
AxisTitleFontSize #Gets or sets the axis title font size used by SVG renderers.
TickLabelFontSize #Gets or sets the tick label font size used by SVG renderers.
LegendFontSize #Gets or sets the legend font size used by SVG renderers.
DataLabelFontSize #Gets or sets the data label font size used by SVG renderers.
MarkerRadius #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.
FontFamily #Gets or sets the CSS font-family used by vector and HTML renderers.