API Reference
ChartBrandKit
Defines reusable brand tokens that can be applied to charts, grids, and themes.
Inheritance
- Object
- ChartBrandKit
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.WithBrandKit
- Method ChartExtensions.WithBrandKit
- Method ChartExtensions.WithBrandKit``1
- Method ChartTheme.WithBrandKit
Methods
ApplyTo(ChartForgeX.Themes.ChartTheme theme) #Applies this brand kit to a theme.
Parameters
- theme ChartForgeX.Themes.ChartTheme
- The theme to update.
Returns
The updated theme.
PeopleInfographic() #Creates a clean cyan and magenta people-infographic brand kit.
Returns
A people-infographic brand kit.
WithFontFamily(System.String fontFamily) #Applies a CSS font-family stack.
Parameters
- fontFamily System.String
- The CSS font-family stack.
Returns
The current brand kit.
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 brand kit.
WithPalette(ChartForgeX.Primitives.ChartColor[] colors) #Applies a brand palette.
Parameters
- colors ChartForgeX.Primitives.ChartColor[]
- The palette colors.
Returns
The current brand kit.
WithPalette(System.String[] colors) #Applies a brand palette from hexadecimal color strings.
Parameters
- colors System.String[]
- The color strings in #RGB, #RGBA, #RRGGBB, or #RRGGBBAA notation.
Returns
The current brand kit.
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 brand kit.
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 brand kit.
WithSurfaceStyle(ChartForgeX.Themes.ChartSurfaceStyle style) #Applies a surface style preset.
Parameters
- style ChartForgeX.Themes.ChartSurfaceStyle
- The surface style preset.
Returns
The current brand kit.
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 brand kit.