Project

ChartForgeX

Render deterministic charts, dashboards, topology, hierarchy, and report visuals directly from .NET.

Stars 45
Forks 2
NuGet downloads 48,107
Release ChartForgeX-v1.7.0
Language: HTML Updated: 2026-09-02

API Reference

Class

ChartTheme

Namespace ChartForgeX.Themes

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

Methods

Aurora() #

Creates a vibrant dark theme for high-impact product and status dashboards.

Returns

A vibrant dark chart theme.

Candy() #

Creates a soft, playful light theme with rounded typography.

Returns

A playful chart theme.

Clone() #

Creates an independent copy of this theme.

Returns

A copied chart theme.

Colorblind() #

Creates a colorblind-friendly light theme using a high-contrast qualitative palette.

Returns

A colorblind-friendly chart theme.

Dark() #

Creates the default dark report theme.

Returns

A dark 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.

Light() #

Creates the default light report theme.

Returns

A light 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 required
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 required
The outer card corner radius.
plot System.Double required
The plot area corner radius.

Returns

The current theme.

WithFontFamily(System.String fontFamily) #

Applies a CSS font-family stack.

Parameters

fontFamily System.String required
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 required
The grid line color.
axis ChartForgeX.Primitives.ChartColor required
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 required
The non-negative marker radius. Use zero to suppress optional line markers.

Returns

The current theme.

WithPalette 2 overloads
WithPalette(ChartForgeX.Primitives.ChartColor[] colors) #

Applies a default series palette.

Parameters

colors ChartForgeX.Primitives.ChartColor[] required
The palette colors.

Returns

The current theme.

WithPalette(System.String[] colors) #

Applies a default series palette from hexadecimal color strings.

Parameters

colors System.String[] required
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 required
The positive status color.
warning ChartForgeX.Primitives.ChartColor required
The warning status color.
negative ChartForgeX.Primitives.ChartColor required
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 required
The shadow color.

Returns

The current theme.

WithShadowOpacity(System.Double shadowOpacity) #

Applies the SVG card shadow opacity.

Parameters

shadowOpacity System.Double required
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 required
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 required
The full chart background.
cardBackground ChartForgeX.Primitives.ChartColor required
The outer card background.
plotBackground ChartForgeX.Primitives.ChartColor required
The plot area background.
cardBorder ChartForgeX.Primitives.ChartColor required
The outer card border.
plotBorder ChartForgeX.Primitives.ChartColor required
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 required
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 required
The primary text color.
mutedText ChartForgeX.Primitives.ChartColor required
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 required
The title font size.
subtitle System.Double required
The subtitle font size.
axisTitle System.Double required
The axis title font size.
tickLabel System.Double required
The tick label font size.
legend System.Double required
The legend font size.
dataLabel System.Double required
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.