# ChartGrid

Describes a dependency-free small-multiple report made from multiple charts.

 Class  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartGrid.cs:16](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L16)

**Implements**

 `IVisualRenderable` 

**Modifiers**

sealed

**Attributes**

 `Fluent` 

Describes a dependency-free small-multiple report made from multiple charts.

## Inheritance

- object
- ChartGrid

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Small-multiple report grid](/examples/report-grid/) Sample 
  
  Typed records faceted into one chart per site, in a single report image.
- [Choose a rendering surface](/docs/choosing-a-surface/) Guide 
  
  When to use a chart, a grid, visual blocks, a canvas or topology.

## Usage

 Explore 124 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 41

- Method [ChartExtensions.Theme](/api/chartforgex-chartextensions/#method-theme-chartforgex-core-chartgrid-action-chartforgex-themes-visualthemebuilder)
- Extension method [ChartGrid.Accessibility](/api/chartforgex-core-chartgrid/#extension-accessibility-chartforgex-core-chartgrid-action-chartforgex-accessibility-visualaccessibility)
- Extension method [ChartGrid.Columns](/api/chartforgex-core-chartgrid/#extension-columns-chartforgex-core-chartgrid-int32)
- Extension method [ChartGrid.Gap](/api/chartforgex-core-chartgrid/#extension-gap-chartforgex-core-chartgrid-int32)
- Extension method [ChartGrid.Padding](/api/chartforgex-core-chartgrid/#extension-padding-chartforgex-core-chartgrid-int32)
- Extension method [ChartGrid.PanelFit](/api/chartforgex-core-chartgrid/#extension-panelfit-chartforgex-core-chartgrid-chartforgex-primitives-visualpanelfit)
- Extension method [ChartGrid.PanelSize](/api/chartforgex-core-chartgrid/#extension-panelsize-chartforgex-core-chartgrid-int32-int32)
- Extension method [ChartGrid.PreserveEmptyColumns](/api/chartforgex-core-chartgrid/#extension-preserveemptycolumns-chartforgex-core-chartgrid-boolean)
- Extension method [ChartGrid.RasterScale](/api/chartforgex-core-chartgrid/#extension-rasterscale-chartforgex-core-chartgrid-int32)
- Extension method [ChartGrid.Subtitle](/api/chartforgex-core-chartgrid/#extension-subtitle-chartforgex-core-chartgrid-string)
- Extension method [ChartGrid.SubtitleStyle](/api/chartforgex-core-chartgrid/#extension-subtitlestyle-chartforgex-core-chartgrid-chartforgex-typography-textstyleoverride)
- Extension method [ChartGrid.SvgColorVariables](/api/chartforgex-core-chartgrid/#extension-svgcolorvariables-chartforgex-core-chartgrid-chartforgex-themes-svgcolorvariables)
- Extension method [ChartGrid.Theme](/api/chartforgex-core-chartgrid/#extension-theme-chartforgex-core-chartgrid-chartforgex-themes-visualtheme)
- Extension method [ChartGrid.ThemeMode](/api/chartforgex-core-chartgrid/#extension-thememode-chartforgex-core-chartgrid-chartforgex-thememode)
- Extension method [ChartGrid.Title](/api/chartforgex-core-chartgrid/#extension-title-chartforgex-core-chartgrid-string)
- Extension method [ChartGrid.TitleStyle](/api/chartforgex-core-chartgrid/#extension-titlestyle-chartforgex-core-chartgrid-chartforgex-typography-textstyleoverride)
- Extension method [ChartGrid.UsePanelThemes](/api/chartforgex-core-chartgrid/#extension-usepanelthemes-chartforgex-core-chartgrid-boolean)
- Method [ChartGrid.Add](/api/chartforgex-core-chartgrid/#method-add-chartforgex-core-chart-int32-int32)
- Method [ChartGrid.Create](/api/chartforgex-core-chartgrid/#method-create)
- Method [ChartGrid.FromFacets``2](/api/chartforgex-core-chartgrid/#method-fromfacets-chartforgex-data-chartdataset-func-func-chartforgex-data-chartdataset-chartforgex-core-chart-int32-collections-generic-iequalitycomparer)
- Method [ChartGrid.PanelSpan](/api/chartforgex-core-chartgrid/#method-panelspan-int32-int32-int32)
- Method [ChartGrid.ShareAxes](/api/chartforgex-core-chartgrid/#method-shareaxes)
- Method [ChartGrid.ShareXAxis](/api/chartforgex-core-chartgrid/#method-sharexaxis)
- Method [ChartGrid.ShareYAxis](/api/chartforgex-core-chartgrid/#method-shareyaxis)
- Method [ChartGridFluent.Accessibility](/api/chartforgex-core-chartgridfluent/#method-accessibility-chartforgex-core-chartgrid-action-chartforgex-accessibility-visualaccessibility)
- Method [ChartGridFluent.Columns](/api/chartforgex-core-chartgridfluent/#method-columns-chartforgex-core-chartgrid-int32)
- Method [ChartGridFluent.Gap](/api/chartforgex-core-chartgridfluent/#method-gap-chartforgex-core-chartgrid-int32)
- Method [ChartGridFluent.Padding](/api/chartforgex-core-chartgridfluent/#method-padding-chartforgex-core-chartgrid-int32)
- Method [ChartGridFluent.PanelFit](/api/chartforgex-core-chartgridfluent/#method-panelfit-chartforgex-core-chartgrid-chartforgex-primitives-visualpanelfit)
- Method [ChartGridFluent.PanelSize](/api/chartforgex-core-chartgridfluent/#method-panelsize-chartforgex-core-chartgrid-int32-int32)
- Method [ChartGridFluent.PreserveEmptyColumns](/api/chartforgex-core-chartgridfluent/#method-preserveemptycolumns-chartforgex-core-chartgrid-boolean)
- Method [ChartGridFluent.RasterScale](/api/chartforgex-core-chartgridfluent/#method-rasterscale-chartforgex-core-chartgrid-int32)
- Method [ChartGridFluent.Subtitle](/api/chartforgex-core-chartgridfluent/#method-subtitle-chartforgex-core-chartgrid-string)
- Method [ChartGridFluent.SubtitleStyle](/api/chartforgex-core-chartgridfluent/#method-subtitlestyle-chartforgex-core-chartgrid-action-chartforgex-typography-textstyleoverride)
- Method [ChartGridFluent.SvgColorVariables](/api/chartforgex-core-chartgridfluent/#method-svgcolorvariables-chartforgex-core-chartgrid-chartforgex-themes-svgcolorvariables)
- Method [ChartGridFluent.Theme](/api/chartforgex-core-chartgridfluent/#method-theme-chartforgex-core-chartgrid-chartforgex-themes-visualtheme)
- Method [ChartGridFluent.ThemeMode](/api/chartforgex-core-chartgridfluent/#method-thememode-chartforgex-core-chartgrid-chartforgex-thememode)
- Method [ChartGridFluent.Title](/api/chartforgex-core-chartgridfluent/#method-title-chartforgex-core-chartgrid-string)
- Method [ChartGridFluent.TitleStyle](/api/chartforgex-core-chartgridfluent/#method-titlestyle-chartforgex-core-chartgrid-chartforgex-typography-textstyleoverride)
- Method [ChartGridFluent.UsePanelThemes](/api/chartforgex-core-chartgridfluent/#method-usepanelthemes-chartforgex-core-chartgrid-boolean)
- Property [ChartGridPage.Grid](/api/chartforgex-core-chartgridpage/#property-grid)

### Accepted by parameters 83

- Method [ChartExtensions.Save](/api/chartforgex-chartextensions/#method-save-chartforgex-core-chartgrid-string-chartforgex-core-rasterimageoptions) parameter `grid`
- Method [ChartExtensions.SaveBmp](/api/chartforgex-chartextensions/#method-savebmp-chartforgex-core-chartgrid-string-chartforgex-core-rasterimageoptions) parameter `grid`
- Method [ChartExtensions.SaveHtml](/api/chartforgex-chartextensions/#method-savehtml-chartforgex-core-chartgrid-string) parameter `grid`
- Method [ChartExtensions.SavePng](/api/chartforgex-chartextensions/#method-savepng-chartforgex-core-chartgrid-string) parameter `grid`
- Method [ChartExtensions.SavePpm](/api/chartforgex-chartextensions/#method-saveppm-chartforgex-core-chartgrid-string-chartforgex-core-rasterimageoptions) parameter `grid`
- Method [ChartExtensions.SaveRasterImage](/api/chartforgex-chartextensions/#method-saverasterimage-chartforgex-core-chartgrid-string-chartforgex-core-rasterimageoptions) parameter `grid`
- Method [ChartExtensions.SaveSvg](/api/chartforgex-chartextensions/#method-savesvg-chartforgex-core-chartgrid-string) parameter `grid`
- Method [ChartExtensions.SaveTiff](/api/chartforgex-chartextensions/#method-savetiff-chartforgex-core-chartgrid-string-chartforgex-core-rasterimageoptions) parameter `grid`
- Method [ChartExtensions.Theme](/api/chartforgex-chartextensions/#method-theme-chartforgex-core-chartgrid-action-chartforgex-themes-visualthemebuilder) parameter `grid`
- Method [ChartExtensions.ToBmp](/api/chartforgex-chartextensions/#method-tobmp-chartforgex-core-chartgrid-chartforgex-core-rasterimageoptions) parameter `grid`
- Method [ChartExtensions.ToHtmlFragment](/api/chartforgex-chartextensions/#method-tohtmlfragment-chartforgex-core-chartgrid) parameter `grid`
- Method [ChartExtensions.ToHtmlPage](/api/chartforgex-chartextensions/#method-tohtmlpage-chartforgex-core-chartgrid) parameter `grid`
- Method [ChartExtensions.ToPng](/api/chartforgex-chartextensions/#method-topng-chartforgex-core-chartgrid) parameter `grid`
- Method [ChartExtensions.ToPpm](/api/chartforgex-chartextensions/#method-toppm-chartforgex-core-chartgrid-chartforgex-core-rasterimageoptions) parameter `grid`
- Method [ChartExtensions.ToRasterImage](/api/chartforgex-chartextensions/#method-torasterimage-chartforgex-core-chartgrid-chartforgex-core-rasterimageformat-chartforgex-core-rasterimageoptions) parameter `grid`
- Method [ChartExtensions.ToRgbaImage](/api/chartforgex-chartextensions/#method-torgbaimage-chartforgex-core-chartgrid) parameter `grid`
- Method [ChartExtensions.ToSvg](/api/chartforgex-chartextensions/#method-tosvg-chartforgex-core-chartgrid-string) parameter `grid`
- Method [ChartExtensions.ToTiff](/api/chartforgex-chartextensions/#method-totiff-chartforgex-core-chartgrid-chartforgex-core-rasterimageoptions) parameter `grid`
- Method [ChartExtensions.WriteBmp](/api/chartforgex-chartextensions/#method-writebmp-chartforgex-core-chartgrid-io-stream-chartforgex-core-rasterimageoptions) parameter `grid`
- Method [ChartExtensions.WritePpm](/api/chartforgex-chartextensions/#method-writeppm-chartforgex-core-chartgrid-io-stream-chartforgex-core-rasterimageoptions) parameter `grid`
- Method [ChartExtensions.WriteRasterImage](/api/chartforgex-chartextensions/#method-writerasterimage-chartforgex-core-chartgrid-io-stream-chartforgex-core-rasterimageformat-chartforgex-core-rasterimageoptions) parameter `grid`
- Method [ChartExtensions.WriteTiff](/api/chartforgex-chartextensions/#method-writetiff-chartforgex-core-chartgrid-io-stream-chartforgex-core-rasterimageoptions) parameter `grid`
- Method [ImageComposition.DrawChartGrid](/api/chartforgex-composition-imagecomposition/#method-drawchartgrid-chartforgex-core-chartgrid-chartforgex-composition-visualcanvasplacement-double-double-chartforgex-composition-visualcanvasimagefit-double) parameter `grid`
- Extension method [VisualCanvas.AddChartGrid](/api/chartforgex-composition-visualcanvas/#extension-addchartgrid-chartforgex-composition-visualcanvas-chartforgex-composition-visualcanvasplacement-double-double-chartforgex-core-chartgrid-chartforgex-composition-visualcanvasimagefit-double) parameter `grid`
- Extension method [ChartGrid.Accessibility](/api/chartforgex-core-chartgrid/#extension-accessibility-chartforgex-core-chartgrid-action-chartforgex-accessibility-visualaccessibility) parameter `chartGrid`
- Extension method [ChartGrid.Columns](/api/chartforgex-core-chartgrid/#extension-columns-chartforgex-core-chartgrid-int32) parameter `chartGrid`
- Extension method [ChartGrid.Gap](/api/chartforgex-core-chartgrid/#extension-gap-chartforgex-core-chartgrid-int32) parameter `chartGrid`
- Extension method [ChartGrid.Padding](/api/chartforgex-core-chartgrid/#extension-padding-chartforgex-core-chartgrid-int32) parameter `chartGrid`
- Extension method [ChartGrid.PanelFit](/api/chartforgex-core-chartgrid/#extension-panelfit-chartforgex-core-chartgrid-chartforgex-primitives-visualpanelfit) parameter `chartGrid`
- Extension method [ChartGrid.PanelSize](/api/chartforgex-core-chartgrid/#extension-panelsize-chartforgex-core-chartgrid-nullable-chartforgex-primitives-chartsize) parameter `chartGrid`
- Extension method [ChartGrid.PreserveEmptyColumns](/api/chartforgex-core-chartgrid/#extension-preserveemptycolumns-chartforgex-core-chartgrid-boolean) parameter `chartGrid`
- Extension method [ChartGrid.RasterScale](/api/chartforgex-core-chartgrid/#extension-rasterscale-chartforgex-core-chartgrid-int32) parameter `chartGrid`
- Extension method [ChartGrid.Save](/api/chartforgex-core-chartgrid/#extension-save-chartforgex-core-chartgrid-string-chartforgex-core-rasterimageoptions) parameter `grid`
- Extension method [ChartGrid.SaveBmp](/api/chartforgex-core-chartgrid/#extension-savebmp-chartforgex-core-chartgrid-string-chartforgex-core-rasterimageoptions) parameter `grid`
- Extension method [ChartGrid.SaveHtml](/api/chartforgex-core-chartgrid/#extension-savehtml-chartforgex-core-chartgrid-string) parameter `grid`
- Extension method [ChartGrid.SavePng](/api/chartforgex-core-chartgrid/#extension-savepng-chartforgex-core-chartgrid-string) parameter `grid`
- Extension method [ChartGrid.SavePpm](/api/chartforgex-core-chartgrid/#extension-saveppm-chartforgex-core-chartgrid-string-chartforgex-core-rasterimageoptions) parameter `grid`
- Extension method [ChartGrid.SaveRasterImage](/api/chartforgex-core-chartgrid/#extension-saverasterimage-chartforgex-core-chartgrid-string-chartforgex-core-rasterimageoptions) parameter `grid`
- Extension method [ChartGrid.SaveSvg](/api/chartforgex-core-chartgrid/#extension-savesvg-chartforgex-core-chartgrid-string) parameter `grid`
- Extension method [ChartGrid.SaveTiff](/api/chartforgex-core-chartgrid/#extension-savetiff-chartforgex-core-chartgrid-string-chartforgex-core-rasterimageoptions) parameter `grid`
- Extension method [ChartGrid.Subtitle](/api/chartforgex-core-chartgrid/#extension-subtitle-chartforgex-core-chartgrid-string) parameter `chartGrid`
- Extension method [ChartGrid.SubtitleStyle](/api/chartforgex-core-chartgrid/#extension-subtitlestyle-chartforgex-core-chartgrid-chartforgex-typography-textstyleoverride) parameter `chartGrid`
- Extension method [ChartGrid.SvgColorVariables](/api/chartforgex-core-chartgrid/#extension-svgcolorvariables-chartforgex-core-chartgrid-chartforgex-themes-svgcolorvariables) parameter `chartGrid`
- Extension method [ChartGrid.Theme](/api/chartforgex-core-chartgrid/#extension-theme-chartforgex-core-chartgrid-chartforgex-themes-visualtheme) parameter `chartGrid`
- Extension method [ChartGrid.Theme](/api/chartforgex-core-chartgrid/#extension-theme-chartforgex-core-chartgrid-action-chartforgex-themes-visualthemebuilder) parameter `grid`
- Extension method [ChartGrid.ThemeMode](/api/chartforgex-core-chartgrid/#extension-thememode-chartforgex-core-chartgrid-chartforgex-thememode) parameter `chartGrid`
- Extension method [ChartGrid.Title](/api/chartforgex-core-chartgrid/#extension-title-chartforgex-core-chartgrid-string) parameter `chartGrid`
- Extension method [ChartGrid.TitleStyle](/api/chartforgex-core-chartgrid/#extension-titlestyle-chartforgex-core-chartgrid-chartforgex-typography-textstyleoverride) parameter `chartGrid`
- Extension method [ChartGrid.ToBmp](/api/chartforgex-core-chartgrid/#extension-tobmp-chartforgex-core-chartgrid-chartforgex-core-rasterimageoptions) parameter `grid`
- Extension method [ChartGrid.ToHtmlFragment](/api/chartforgex-core-chartgrid/#extension-tohtmlfragment-chartforgex-core-chartgrid) parameter `grid`
- Extension method [ChartGrid.ToHtmlPage](/api/chartforgex-core-chartgrid/#extension-tohtmlpage-chartforgex-core-chartgrid) parameter `grid`
- Extension method [ChartGrid.ToPng](/api/chartforgex-core-chartgrid/#extension-topng-chartforgex-core-chartgrid) parameter `grid`
- Extension method [ChartGrid.ToPpm](/api/chartforgex-core-chartgrid/#extension-toppm-chartforgex-core-chartgrid-chartforgex-core-rasterimageoptions) parameter `grid`
- Extension method [ChartGrid.ToRasterImage](/api/chartforgex-core-chartgrid/#extension-torasterimage-chartforgex-core-chartgrid-chartforgex-core-rasterimageformat-chartforgex-core-rasterimageoptions) parameter `grid`
- Extension method [ChartGrid.ToRgbaImage](/api/chartforgex-core-chartgrid/#extension-torgbaimage-chartforgex-core-chartgrid) parameter `grid`
- Extension method [ChartGrid.ToSvg](/api/chartforgex-core-chartgrid/#extension-tosvg-chartforgex-core-chartgrid-string) parameter `grid`
- Extension method [ChartGrid.ToTiff](/api/chartforgex-core-chartgrid/#extension-totiff-chartforgex-core-chartgrid-chartforgex-core-rasterimageoptions) parameter `grid`
- Extension method [ChartGrid.ToVisualArtifact](/api/chartforgex-core-chartgrid/#extension-tovisualartifact-chartforgex-core-chartgrid-string-chartforgex-visualartifacts-visualartifactsourcelanguage) parameter `grid`
- Extension method [ChartGrid.UsePanelThemes](/api/chartforgex-core-chartgrid/#extension-usepanelthemes-chartforgex-core-chartgrid-boolean) parameter `chartGrid`
- Extension method [ChartGrid.WriteBmp](/api/chartforgex-core-chartgrid/#extension-writebmp-chartforgex-core-chartgrid-io-stream-chartforgex-core-rasterimageoptions) parameter `grid`
- Extension method [ChartGrid.WritePpm](/api/chartforgex-core-chartgrid/#extension-writeppm-chartforgex-core-chartgrid-io-stream-chartforgex-core-rasterimageoptions) parameter `grid`
- Extension method [ChartGrid.WriteRasterImage](/api/chartforgex-core-chartgrid/#extension-writerasterimage-chartforgex-core-chartgrid-io-stream-chartforgex-core-rasterimageformat-chartforgex-core-rasterimageoptions) parameter `grid`
- Extension method [ChartGrid.WriteTiff](/api/chartforgex-core-chartgrid/#extension-writetiff-chartforgex-core-chartgrid-io-stream-chartforgex-core-rasterimageoptions) parameter `grid`
- Method [ChartGridFluent.Accessibility](/api/chartforgex-core-chartgridfluent/#method-accessibility-chartforgex-core-chartgrid-action-chartforgex-accessibility-visualaccessibility) parameter `chartGrid`
- Method [ChartGridFluent.Columns](/api/chartforgex-core-chartgridfluent/#method-columns-chartforgex-core-chartgrid-int32) parameter `chartGrid`
- Method [ChartGridFluent.Gap](/api/chartforgex-core-chartgridfluent/#method-gap-chartforgex-core-chartgrid-int32) parameter `chartGrid`
- Method [ChartGridFluent.Padding](/api/chartforgex-core-chartgridfluent/#method-padding-chartforgex-core-chartgrid-int32) parameter `chartGrid`
- Method [ChartGridFluent.PanelFit](/api/chartforgex-core-chartgridfluent/#method-panelfit-chartforgex-core-chartgrid-chartforgex-primitives-visualpanelfit) parameter `chartGrid`
- Method [ChartGridFluent.PanelSize](/api/chartforgex-core-chartgridfluent/#method-panelsize-chartforgex-core-chartgrid-int32-int32) parameter `chartGrid`
- Method [ChartGridFluent.PreserveEmptyColumns](/api/chartforgex-core-chartgridfluent/#method-preserveemptycolumns-chartforgex-core-chartgrid-boolean) parameter `chartGrid`
- Method [ChartGridFluent.RasterScale](/api/chartforgex-core-chartgridfluent/#method-rasterscale-chartforgex-core-chartgrid-int32) parameter `chartGrid`
- Method [ChartGridFluent.Subtitle](/api/chartforgex-core-chartgridfluent/#method-subtitle-chartforgex-core-chartgrid-string) parameter `chartGrid`
- Method [ChartGridFluent.SubtitleStyle](/api/chartforgex-core-chartgridfluent/#method-subtitlestyle-chartforgex-core-chartgrid-action-chartforgex-typography-textstyleoverride) parameter `chartGrid`
- Method [ChartGridFluent.SvgColorVariables](/api/chartforgex-core-chartgridfluent/#method-svgcolorvariables-chartforgex-core-chartgrid-chartforgex-themes-svgcolorvariables) parameter `chartGrid`
- Method [ChartGridFluent.Theme](/api/chartforgex-core-chartgridfluent/#method-theme-chartforgex-core-chartgrid-chartforgex-themes-visualtheme) parameter `chartGrid`
- Method [ChartGridFluent.ThemeMode](/api/chartforgex-core-chartgridfluent/#method-thememode-chartforgex-core-chartgrid-chartforgex-thememode) parameter `chartGrid`
- Method [ChartGridFluent.Title](/api/chartforgex-core-chartgridfluent/#method-title-chartforgex-core-chartgrid-string) parameter `chartGrid`
- Method [ChartGridFluent.TitleStyle](/api/chartforgex-core-chartgridfluent/#method-titlestyle-chartforgex-core-chartgrid-chartforgex-typography-textstyleoverride) parameter `chartGrid`
- Method [ChartGridFluent.UsePanelThemes](/api/chartforgex-core-chartgridfluent/#method-usepanelthemes-chartforgex-core-chartgrid-boolean) parameter `chartGrid`
- Method [HtmlChartGridRenderer.RenderFragment](/api/chartforgex-html-htmlchartgridrenderer/#method-renderfragment-chartforgex-core-chartgrid) parameter `grid`
- Method [HtmlChartGridRenderer.RenderPage](/api/chartforgex-html-htmlchartgridrenderer/#method-renderpage-chartforgex-core-chartgrid) parameter `grid`
- Method [CompositeArtifactRendering.ToVisualArtifact](/api/chartforgex-visualartifacts-compositeartifactrendering/#method-tovisualartifact-chartforgex-core-chartgrid-string-chartforgex-visualartifacts-visualartifactsourcelanguage) parameter `grid`
- Method [VisualsExtensions.AddChartGrid](/api/chartforgex-visualsextensions/#method-addchartgrid-chartforgex-composition-visualcanvas-double-double-double-double-chartforgex-core-chartgrid-chartforgex-composition-visualcanvasimagefit-double) parameter `grid`

 Filter members   

    Show inherited   

 

## Constructors

 `public ChartGrid()` [#](#constructor-ctor) 

[ChartGrid.cs:16](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L16)

## Methods

 Add 2 overloads 

 `public ChartGrid Add(Chart chart)` [#](#method-add-chartforgex-core-chart) 

[ChartGrid.cs:183](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L183)

Adds a chart to the grid.

Parameters

**chart ChartForgeX.Core.Chart required**

The chart to add.

Returns

 `ChartGrid` The current chart grid. 

 `public ChartGrid Add(Chart chart, int columnSpan, int rowSpan = 1)` [#](#method-add-chartforgex-core-chart-int32-int32) 

[ChartGrid.cs:193](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L193)

Adds a chart to the grid with a panel span.

Parameters

**chart ChartForgeX.Core.Chart required**

The chart to add.

**columnSpan int required**

The number of columns occupied by the chart panel.

**rowSpan int = 1 optional**

The number of rows occupied by the chart panel.

Returns

 `ChartGrid` The current chart grid. 

 `public static ChartGrid Create()` [#](#method-create) 

[ChartGrid.cs:168](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L168)

Creates a new chart grid.

Returns

 `ChartGrid` A new chart grid instance. 

 `public static ChartGrid FromFacets<T, TKey>(ChartDataset<T?> dataset, Func<T?, TKey?> facet, Func<TKey?, ChartDataset<T?>, Chart> chartFactory, int columns = 2, IEqualityComparer<TKey?>? comparer = null)` [#](#method-fromfacets-chartforgex-data-chartdataset-func-func-chartforgex-data-chartdataset-chartforgex-core-chart-int32-collections-generic-iequalitycomparer) 

[ChartGrid.Facets.cs:15](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.Facets.cs#L15)

Builds a small-multiple grid from deterministic dataset groups.

Type Parameters

**T**

**TKey**

Parameters

**dataset ChartForgeX.Data.ChartDataset<T?> required**

**facet System.Func<T?, TKey?> required**

**chartFactory System.Func<TKey?, ChartForgeX.Data.ChartDataset<T?>, ChartForgeX.Core.Chart> required**

**columns int = 2 optional**

**comparer System.Collections.Generic.IEqualityComparer<TKey?>? = null optional**

Returns

 `ChartGrid` 

 `public IReadOnlyList<ChartGridPage> Paginate(int maximumChartsPerPage = 6)` [#](#method-paginate-int32) 

[ChartGrid.Pagination.cs:17](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.Pagination.cs#L17)

Splits this grid into ordered pages with at most the specified number of charts.

Parameters

**maximumChartsPerPage int = 6 optional**

The maximum chart count per page, independent of panel spans.

Returns

 `IReadOnlyList<ChartGridPage>` Read-only page metadata and independently configurable grids; an empty grid produces no pages. 

 `public ChartGrid PanelSpan(int chartIndex, int columnSpan, int rowSpan = 1)` [#](#method-panelspan-int32-int32-int32) 

[ChartGrid.cs:208](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L208)

Sets the panel span for an existing chart in the grid.

Parameters

**chartIndex int required**

The zero-based chart index.

**columnSpan int required**

The number of columns occupied by the chart panel.

**rowSpan int = 1 optional**

The number of rows occupied by the chart panel.

Returns

 `ChartGrid` The current chart grid. 

 `public PreparedVisual Prepare(VisualRenderContext context)` [#](#method-prepare-chartforgex-rendering-visualrendercontext) 

[ChartGrid.Prepare.cs:23](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.Prepare.cs#L23)

Prepares all panels once in the supplied fixed viewport and common frame.

Parameters

**context ChartForgeX.Rendering.VisualRenderContext required**

Returns

 `PreparedVisual` 

 `public ChartGrid ShareAxes()` [#](#method-shareaxes) 

[ChartGrid.cs:295](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L295)

Applies shared cartesian x-axis and y-axis ranges to all compatible charts in the grid.

Returns

 `ChartGrid` The current chart grid. 

 `public ChartGrid ShareXAxis()` [#](#method-sharexaxis) 

[ChartGrid.cs:263](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L263)

Applies one shared cartesian x-axis range to all compatible charts in the grid.

Returns

 `ChartGrid` The current chart grid. 

 `public ChartGrid ShareYAxis()` [#](#method-shareyaxis) 

[ChartGrid.cs:218](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L218)

Applies one shared cartesian y-axis range to all compatible charts in the grid.

Returns

 `ChartGrid` The current chart grid. 

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public string Title { get; set; }` [#](#property-title) 

[ChartGrid.cs:34](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L34)

Gets or sets the report title.

 `public string Subtitle { get; set; }` [#](#property-subtitle) 

[ChartGrid.cs:42](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L42)

Gets or sets the report subtitle.

 `public int Columns { get; set; }` [#](#property-columns) 

[ChartGrid.cs:50](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L50)

Gets or sets the preferred number of columns on wide viewports.

 `public bool PreserveEmptyColumns { get; set; }` [#](#property-preserveemptycolumns) 

[ChartGrid.cs:59](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L59)

Gets or sets whether composed SVG and PNG exports retain columns without charts.

 `public int Gap { get; set; }` [#](#property-gap) 

[ChartGrid.cs:65](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L65)

Gets or sets the gap between charts in pixels.

 `public int Padding { get; set; }` [#](#property-padding) 

[ChartGrid.cs:76](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L76)

Gets or sets the outer padding around exported grid content in pixels.

 `public int RasterScale { get; set; }` [#](#property-rasterscale) 

[ChartGrid.cs:87](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L87)

Gets or sets the output pixel multiplier used by composed PNG grid exports.

 `public ChartSize? PanelSize { get; set; }` [#](#property-panelsize) 

[ChartGrid.cs:98](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L98)

Gets or sets the optional fixed panel size used by composed SVG and PNG grid exports.

 `public VisualPanelFit PanelFit { get; set; }` [#](#property-panelfit) 

[ChartGrid.cs:109](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L109)

Gets or sets how charts fit inside fixed-size grid panels.

 `public VisualTheme Theme { get; set; }` [#](#property-theme) 

[ChartGrid.cs:120](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L120)

Gets or sets the paired theme for the grid frame and, by default, every panel.

 `public ThemeMode ThemeMode { get; set; }` [#](#property-thememode) 

[ChartGrid.cs:126](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L126)

Gets or sets the explicit palette mode for the grid frame and shared panels.

 `public bool UsePanelThemes { get; set; }` [#](#property-usepanelthemes) 

[ChartGrid.cs:134](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L134)

Gets or sets whether each panel retains its chart's authored theme, mode and font request.

 `public TextStyleOverride TitleStyle { get; set; }` [#](#property-titlestyle) 

[ChartGrid.cs:140](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L140)

Gets the text style used for the grid title.

 `public TextStyleOverride SubtitleStyle { get; set; }` [#](#property-subtitlestyle) 

[ChartGrid.cs:149](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L149)

Gets the text style used for the grid subtitle.

 `public IReadOnlyList<Chart> Charts { get; }` [#](#property-charts) 

[ChartGrid.cs:157](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L157)

Gets the charts included in the grid.

 `public IReadOnlyList<ChartGridPanelSpan> PanelSpans { get; }` [#](#property-panelspans) 

[ChartGrid.cs:162](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.cs#L162)

Gets the panel spans for charts included in the grid.

 `public VisualAccessibility Accessibility { get; }` [#](#property-accessibility) 

[ChartGrid.Prepare.cs:12](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.Prepare.cs#L12)

Gets the text alternative for the complete chart comparison.

 `public SvgColorVariables? SvgColorVariables { get; set; }` [#](#property-svgcolorvariables) 

[ChartGrid.SvgColors.cs:12](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.SvgColors.cs#L12)

Gets or sets the CSS custom properties the grid SVG writes for mapped colours (see [SvgColorVariables](/api/chartforgex-themes-svgcolorvariables/)): the grid title, background, and every panel, including charts without their own variables. With [ChartGrid.UsePanelThemes](/api/chartforgex-core-chartgrid/) enabled, this mapping applies only to the outer frame; each panel retains its chart mapping or literal colours. PNG output always uses literal colours.

## Extension Methods

 `public static ChartGrid Accessibility(ChartGrid chartGrid, Action<VisualAccessibility> configure)` [#](#extension-accessibility-chartforgex-core-chartgrid-action-chartforgex-accessibility-visualaccessibility) 

Configures [ChartGrid.Accessibility](/api/chartforgex-core-chartgrid/) in place: Gets the text alternative for the complete chart comparison.

Parameters

**chartGrid ChartForgeX.Core.ChartGrid required**

The instance.

**configure System.Action<ChartForgeX.Accessibility.VisualAccessibility> required**

Configures the value.

Returns

 `ChartGrid` The same instance. 

 `public static ChartGrid Columns(ChartGrid chartGrid, int value)` [#](#extension-columns-chartforgex-core-chartgrid-int32) 

Sets [ChartGrid.Columns](/api/chartforgex-core-chartgrid/): Gets or sets the preferred number of columns on wide viewports.

Parameters

**chartGrid ChartForgeX.Core.ChartGrid required**

The instance.

**value int required**

The value.

Returns

 `ChartGrid` The same instance. 

Examples

```csharp
// C# initializer or property                                  // C# fluent
new global::ChartForgeX.Core.ChartGrid { Columns = value };    chartGrid.Columns(value);
```

 `public static ChartGrid Gap(ChartGrid chartGrid, int value)` [#](#extension-gap-chartforgex-core-chartgrid-int32) 

Sets [ChartGrid.Gap](/api/chartforgex-core-chartgrid/): Gets or sets the gap between charts in pixels.

Parameters

**chartGrid ChartForgeX.Core.ChartGrid required**

The instance.

**value int required**

The value.

Returns

 `ChartGrid` The same instance. 

Examples

```csharp
// C# initializer or property                              // C# fluent
new global::ChartForgeX.Core.ChartGrid { Gap = value };    chartGrid.Gap(value);
```

 `public static ChartGrid Padding(ChartGrid chartGrid, int value)` [#](#extension-padding-chartforgex-core-chartgrid-int32) 

Sets [ChartGrid.Padding](/api/chartforgex-core-chartgrid/): Gets or sets the outer padding around exported grid content in pixels.

Parameters

**chartGrid ChartForgeX.Core.ChartGrid required**

The instance.

**value int required**

The value.

Returns

 `ChartGrid` The same instance. 

Examples

```csharp
// C# initializer or property                                  // C# fluent
new global::ChartForgeX.Core.ChartGrid { Padding = value };    chartGrid.Padding(value);
```

 `public static ChartGrid PanelFit(ChartGrid chartGrid, VisualPanelFit value)` [#](#extension-panelfit-chartforgex-core-chartgrid-chartforgex-primitives-visualpanelfit) 

Sets [ChartGrid.PanelFit](/api/chartforgex-core-chartgrid/): Gets or sets how charts fit inside fixed-size grid panels.

Parameters

**chartGrid ChartForgeX.Core.ChartGrid required**

The instance.

**value ChartForgeX.Primitives.VisualPanelFit required**

The value.

Returns

 `ChartGrid` The same instance. 

Examples

```csharp
// C# initializer or property                                   // C# fluent
new global::ChartForgeX.Core.ChartGrid { PanelFit = value };    chartGrid.PanelFit(value);
```

 PanelSize 2 overloads 

 `public static ChartGrid PanelSize(ChartGrid chartGrid, int width, int height)` [#](#extension-panelsize-chartforgex-core-chartgrid-int32-int32) 

[ChartGrid.Fluent.cs:21](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGrid.Fluent.cs#L21)

Sets a fixed panel size for composed SVG and PNG grid exports.

Parameters

**chartGrid ChartForgeX.Core.ChartGrid required**

The instance to configure.

**width int required**

The panel width in pixels.

**height int required**

The panel height in pixels.

Returns

 `ChartGrid` The current chart grid. 

 `public static ChartGrid PanelSize(ChartGrid chartGrid, ChartSize? value)` [#](#extension-panelsize-chartforgex-core-chartgrid-nullable-chartforgex-primitives-chartsize) 

Sets [ChartGrid.PanelSize](/api/chartforgex-core-chartgrid/): Gets or sets the optional fixed panel size used by composed SVG and PNG grid exports.

Parameters

**chartGrid ChartForgeX.Core.ChartGrid required**

The instance.

**value ChartForgeX.Primitives.ChartSize? required**

The value.

Returns

 `ChartGrid` The same instance. 

Examples

```csharp
// C# initializer or property                                    // C# fluent
new global::ChartForgeX.Core.ChartGrid { PanelSize = value };    chartGrid.PanelSize(value);
```

 `public static ChartGrid PreserveEmptyColumns(ChartGrid chartGrid, bool value = true)` [#](#extension-preserveemptycolumns-chartforgex-core-chartgrid-boolean) 

Sets [ChartGrid.PreserveEmptyColumns](/api/chartforgex-core-chartgrid/): Gets or sets whether composed SVG and PNG exports retain columns without charts.

Parameters

**chartGrid ChartForgeX.Core.ChartGrid required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

 `ChartGrid` The same instance. 

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::ChartForgeX.Core.ChartGrid { PreserveEmptyColumns = value };    chartGrid.PreserveEmptyColumns(value);
```

 `public static ChartGrid RasterScale(ChartGrid chartGrid, int value)` [#](#extension-rasterscale-chartforgex-core-chartgrid-int32) 

Sets [ChartGrid.RasterScale](/api/chartforgex-core-chartgrid/): Gets or sets the output pixel multiplier used by composed PNG grid exports.

Parameters

**chartGrid ChartForgeX.Core.ChartGrid required**

The instance.

**value int required**

The value.

Returns

 `ChartGrid` The same instance. 

Examples

```csharp
// C# initializer or property                                      // C# fluent
new global::ChartForgeX.Core.ChartGrid { RasterScale = value };    chartGrid.RasterScale(value);
```

 `public static void Save(ChartGrid grid, string path, RasterImageOptions? rasterOptions = null)` [#](#extension-save-chartforgex-core-chartgrid-string-chartforgex-core-rasterimageoptions) 

[ChartExtensions.Save.cs:26](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.Save.cs#L26)

Saves a chart grid using the output path extension to choose SVG, HTML, PNG, or another raster image format.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

**path string required**

The output file path.

**rasterOptions ChartForgeX.Core.RasterImageOptions? = null optional**

Optional raster export options.

 `public static void SaveBmp(ChartGrid grid, string path, RasterImageOptions? options = null)` [#](#extension-savebmp-chartforgex-core-chartgrid-string-chartforgex-core-rasterimageoptions) 

[ChartExtensions.Raster.cs:204](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.Raster.cs#L204)

Saves a chart grid as a BMP file.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

**path string required**

The output file path.

**options ChartForgeX.Core.RasterImageOptions? = null optional**

Optional raster export options.

 `public static void SaveHtml(ChartGrid grid, string path)` [#](#extension-savehtml-chartforgex-core-chartgrid-string) 

[ChartExtensions.cs:200](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.cs#L200)

Saves a chart grid as a complete HTML file.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

**path string required**

The output file path.

 `public static void SavePng(ChartGrid grid, string path)` [#](#extension-savepng-chartforgex-core-chartgrid-string) 

[ChartExtensions.cs:207](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.cs#L207)

Saves a chart grid as a PNG file.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

**path string required**

The output file path.

 `public static void SavePpm(ChartGrid grid, string path, RasterImageOptions? options = null)` [#](#extension-saveppm-chartforgex-core-chartgrid-string-chartforgex-core-rasterimageoptions) 

[ChartExtensions.Raster.cs:212](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.Raster.cs#L212)

Saves a chart grid as a PPM file.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

**path string required**

The output file path.

**options ChartForgeX.Core.RasterImageOptions? = null optional**

Optional raster export options.

 SaveRasterImage 2 overloads 

 `public static void SaveRasterImage(ChartGrid grid, string path, RasterImageFormat format, RasterImageOptions? options = null)` [#](#extension-saverasterimage-chartforgex-core-chartgrid-string-chartforgex-core-rasterimageformat-chartforgex-core-rasterimageoptions) 

[ChartExtensions.Raster.cs:230](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.Raster.cs#L230)

Saves a chart grid as an opaque raster image file.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

**path string required**

The output file path.

**format ChartForgeX.Core.RasterImageFormat required**

The raster image format.

**options ChartForgeX.Core.RasterImageOptions? = null optional**

Optional raster export options.

 `public static void SaveRasterImage(ChartGrid grid, string path, RasterImageOptions? options = null)` [#](#extension-saverasterimage-chartforgex-core-chartgrid-string-chartforgex-core-rasterimageoptions) 

[ChartExtensions.Raster.cs:239](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.Raster.cs#L239)

Saves a chart grid as an opaque raster image file using the output path extension to choose the format.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

**path string required**

The output file path.

**options ChartForgeX.Core.RasterImageOptions? = null optional**

Optional raster export options.

 `public static void SaveSvg(ChartGrid grid, string path)` [#](#extension-savesvg-chartforgex-core-chartgrid-string) 

[ChartExtensions.cs:193](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.cs#L193)

Saves a chart grid as an SVG file.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

**path string required**

The output file path.

 `public static void SaveTiff(ChartGrid grid, string path, RasterImageOptions? options = null)` [#](#extension-savetiff-chartforgex-core-chartgrid-string-chartforgex-core-rasterimageoptions) 

[ChartExtensions.Raster.cs:220](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.Raster.cs#L220)

Saves a chart grid as a TIFF file.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

**path string required**

The output file path.

**options ChartForgeX.Core.RasterImageOptions? = null optional**

Optional raster export options.

 `public static ChartGrid Subtitle(ChartGrid chartGrid, string value)` [#](#extension-subtitle-chartforgex-core-chartgrid-string) 

Sets [ChartGrid.Subtitle](/api/chartforgex-core-chartgrid/): Gets or sets the report subtitle.

Parameters

**chartGrid ChartForgeX.Core.ChartGrid required**

The instance.

**value string required**

The value.

Returns

 `ChartGrid` The same instance. 

Examples

```csharp
// C# initializer or property                                   // C# fluent
new global::ChartForgeX.Core.ChartGrid { Subtitle = value };    chartGrid.Subtitle(value);
```

 SubtitleStyle 2 overloads 

 `public static ChartGrid SubtitleStyle(ChartGrid chartGrid, TextStyleOverride value)` [#](#extension-subtitlestyle-chartforgex-core-chartgrid-chartforgex-typography-textstyleoverride) 

Sets [ChartGrid.SubtitleStyle](/api/chartforgex-core-chartgrid/): Gets the text style used for the grid subtitle.

Parameters

**chartGrid ChartForgeX.Core.ChartGrid required**

The instance.

**value ChartForgeX.Typography.TextStyleOverride required**

The value.

Returns

 `ChartGrid` The same instance. 

Examples

```csharp
// C# initializer or property                                        // C# fluent
new global::ChartForgeX.Core.ChartGrid { SubtitleStyle = value };    chartGrid.SubtitleStyle(value);
```

 `public static ChartGrid SubtitleStyle(ChartGrid chartGrid, Action<TextStyleOverride> configure)` [#](#extension-subtitlestyle-chartforgex-core-chartgrid-action-chartforgex-typography-textstyleoverride) 

Configures a copy of [ChartGrid.SubtitleStyle](/api/chartforgex-core-chartgrid/) (a new one when not set) and assigns a copy of it once the callback returns, leaving the property unchanged when the callback throws: Gets the text style used for the grid subtitle.

Parameters

**chartGrid ChartForgeX.Core.ChartGrid required**

The instance.

**configure System.Action<ChartForgeX.Typography.TextStyleOverride> required**

Configures the copy.

Returns

 `ChartGrid` The same instance. 

 `public static ChartGrid SvgColorVariables(ChartGrid chartGrid, SvgColorVariables? value)` [#](#extension-svgcolorvariables-chartforgex-core-chartgrid-chartforgex-themes-svgcolorvariables) 

Sets [ChartGrid.SvgColorVariables](/api/chartforgex-core-chartgrid/): Gets or sets the CSS custom properties the grid SVG writes for mapped colours (see [SvgColorVariables](/api/chartforgex-themes-svgcolorvariables/)): the grid title, background, and every panel, including charts without their own variables. With [ChartGrid.UsePanelThemes](/api/chartforgex-core-chartgrid/) enabled, this mapping applies only to the outer frame; each panel retains its chart mapping or literal colours. PNG output always uses literal colours.

Parameters

**chartGrid ChartForgeX.Core.ChartGrid required**

The instance.

**value ChartForgeX.Themes.SvgColorVariables? required**

The value.

Returns

 `ChartGrid` The same instance. 

Examples

```csharp
// C# initializer or property                                            // C# fluent
new global::ChartForgeX.Core.ChartGrid { SvgColorVariables = value };    chartGrid.SvgColorVariables(value);
```

 Theme 2 overloads 

 `public static ChartGrid Theme(ChartGrid grid, Action<VisualThemeBuilder> configure)` [#](#extension-theme-chartforgex-core-chartgrid-action-chartforgex-themes-visualthemebuilder) 

[ChartExtensions.cs:52](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.cs#L52)

Replaces the grid theme with an independently configured immutable snapshot.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to configure.

**configure System.Action<ChartForgeX.Themes.VisualThemeBuilder> required**

The theme customization callback.

Returns

 `ChartGrid` The current chart grid. 

 `public static ChartGrid Theme(ChartGrid chartGrid, VisualTheme value)` [#](#extension-theme-chartforgex-core-chartgrid-chartforgex-themes-visualtheme) 

Sets [ChartGrid.Theme](/api/chartforgex-core-chartgrid/): Gets or sets the paired theme for the grid frame and, by default, every panel.

Parameters

**chartGrid ChartForgeX.Core.ChartGrid required**

The instance.

**value ChartForgeX.Themes.VisualTheme required**

The value.

Returns

 `ChartGrid` The same instance. 

Examples

```csharp
// C# initializer or property                                // C# fluent
new global::ChartForgeX.Core.ChartGrid { Theme = value };    chartGrid.Theme(value);
```

 `public static ChartGrid ThemeMode(ChartGrid chartGrid, ThemeMode value)` [#](#extension-thememode-chartforgex-core-chartgrid-chartforgex-thememode) 

Sets [ChartGrid.ThemeMode](/api/chartforgex-core-chartgrid/): Gets or sets the explicit palette mode for the grid frame and shared panels.

Parameters

**chartGrid ChartForgeX.Core.ChartGrid required**

The instance.

**value ChartForgeX.ThemeMode required**

The value.

Returns

 `ChartGrid` The same instance. 

Examples

```csharp
// C# initializer or property                                    // C# fluent
new global::ChartForgeX.Core.ChartGrid { ThemeMode = value };    chartGrid.ThemeMode(value);
```

 `public static ChartGrid Title(ChartGrid chartGrid, string value)` [#](#extension-title-chartforgex-core-chartgrid-string) 

Sets [ChartGrid.Title](/api/chartforgex-core-chartgrid/): Gets or sets the report title.

Parameters

**chartGrid ChartForgeX.Core.ChartGrid required**

The instance.

**value string required**

The value.

Returns

 `ChartGrid` The same instance. 

Examples

```csharp
// C# initializer or property                                // C# fluent
new global::ChartForgeX.Core.ChartGrid { Title = value };    chartGrid.Title(value);
```

 TitleStyle 2 overloads 

 `public static ChartGrid TitleStyle(ChartGrid chartGrid, TextStyleOverride value)` [#](#extension-titlestyle-chartforgex-core-chartgrid-chartforgex-typography-textstyleoverride) 

Sets [ChartGrid.TitleStyle](/api/chartforgex-core-chartgrid/): Gets the text style used for the grid title.

Parameters

**chartGrid ChartForgeX.Core.ChartGrid required**

The instance.

**value ChartForgeX.Typography.TextStyleOverride required**

The value.

Returns

 `ChartGrid` The same instance. 

Examples

```csharp
// C# initializer or property                                     // C# fluent
new global::ChartForgeX.Core.ChartGrid { TitleStyle = value };    chartGrid.TitleStyle(value);
```

 `public static ChartGrid TitleStyle(ChartGrid chartGrid, Action<TextStyleOverride> configure)` [#](#extension-titlestyle-chartforgex-core-chartgrid-action-chartforgex-typography-textstyleoverride) 

Configures a copy of [ChartGrid.TitleStyle](/api/chartforgex-core-chartgrid/) (a new one when not set) and assigns a copy of it once the callback returns, leaving the property unchanged when the callback throws: Gets the text style used for the grid title.

Parameters

**chartGrid ChartForgeX.Core.ChartGrid required**

The instance.

**configure System.Action<ChartForgeX.Typography.TextStyleOverride> required**

Configures the copy.

Returns

 `ChartGrid` The same instance. 

 `public static byte[] ToBmp(ChartGrid grid, RasterImageOptions? options = null)` [#](#extension-tobmp-chartforgex-core-chartgrid-chartforgex-core-rasterimageoptions) 

[ChartExtensions.Raster.cs:131](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.Raster.cs#L131)

Renders a chart grid to BMP bytes.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

**options ChartForgeX.Core.RasterImageOptions? = null optional**

Optional raster export options.

Returns

 `byte[]` A BMP image. 

 ToHtmlFragment 2 overloads 

 `public static string ToHtmlFragment(ChartGrid grid)` [#](#extension-tohtmlfragment-chartforgex-core-chartgrid) 

[ChartExtensions.cs:164](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.cs#L164)

Renders a chart grid to a standalone HTML fragment containing inline SVG charts.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

Returns

 `string` An HTML fragment. 

 `public static string ToHtmlFragment(ChartGrid grid, string idScope)` [#](#extension-tohtmlfragment-chartforgex-core-chartgrid-string) 

[ChartExtensions.cs:172](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.cs#L172)

Renders a chart grid to an HTML fragment with an additional deterministic ID scope.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

**idScope string required**

A caller-provided scope used to keep IDs unique when embedding equivalent fragments together.

Returns

 `string` An HTML fragment. 

 `public static string ToHtmlPage(ChartGrid grid)` [#](#extension-tohtmlpage-chartforgex-core-chartgrid) 

[ChartExtensions.cs:179](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.cs#L179)

Renders a chart grid to a complete HTML document.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

Returns

 `string` An HTML page. 

 `public static byte[] ToPng(ChartGrid grid)` [#](#extension-topng-chartforgex-core-chartgrid) 

[ChartExtensions.cs:186](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.cs#L186)

Renders a chart grid to PNG bytes.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

Returns

 `byte[]` A PNG image. 

 `public static byte[] ToPpm(ChartGrid grid, RasterImageOptions? options = null)` [#](#extension-toppm-chartforgex-core-chartgrid-chartforgex-core-rasterimageoptions) 

[ChartExtensions.Raster.cs:139](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.Raster.cs#L139)

Renders a chart grid to PPM bytes.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

**options ChartForgeX.Core.RasterImageOptions? = null optional**

Optional raster export options.

Returns

 `byte[]` A PPM image. 

 `public static byte[] ToRasterImage(ChartGrid grid, RasterImageFormat format, RasterImageOptions? options = null)` [#](#extension-torasterimage-chartforgex-core-chartgrid-chartforgex-core-rasterimageformat-chartforgex-core-rasterimageoptions) 

[ChartExtensions.Raster.cs:157](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.Raster.cs#L157)

Renders a chart grid to opaque raster image bytes.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

**format ChartForgeX.Core.RasterImageFormat required**

The raster image format.

**options ChartForgeX.Core.RasterImageOptions? = null optional**

Optional raster export options.

Returns

 `byte[]` Encoded raster image bytes. 

 `public static RgbaImage ToRgbaImage(ChartGrid grid)` [#](#extension-torgbaimage-chartforgex-core-chartgrid) 

[ChartExtensions.Rgba.cs:16](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.Rgba.cs#L16)

Renders a chart grid directly to an in-memory RGBA image without encoding it.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

Returns

 `RgbaImage` The rendered RGBA image. 

 ToSvg 2 overloads 

 `public static string ToSvg(ChartGrid grid)` [#](#extension-tosvg-chartforgex-core-chartgrid) 

[ChartExtensions.cs:149](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.cs#L149)

Renders a chart grid to SVG markup.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

Returns

 `string` SVG markup. 

 `public static string ToSvg(ChartGrid grid, string idScope)` [#](#extension-tosvg-chartforgex-core-chartgrid-string) 

[ChartExtensions.cs:157](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.cs#L157)

Renders a chart grid to SVG markup with an additional deterministic ID scope.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

**idScope string required**

A caller-provided scope used to keep SVG element IDs unique when embedding multiple SVG grids in one document.

Returns

 `string` SVG markup. 

 `public static byte[] ToTiff(ChartGrid grid, RasterImageOptions? options = null)` [#](#extension-totiff-chartforgex-core-chartgrid-chartforgex-core-rasterimageoptions) 

[ChartExtensions.Raster.cs:147](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.Raster.cs#L147)

Renders a chart grid to TIFF bytes.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

**options ChartForgeX.Core.RasterImageOptions? = null optional**

Optional raster export options.

Returns

 `byte[]` A TIFF image. 

 `public static VisualArtifact ToVisualArtifact(ChartGrid grid, string? id = null, VisualArtifactSourceLanguage sourceLanguage = Native)` [#](#extension-tovisualartifact-chartforgex-core-chartgrid-string-chartforgex-visualartifacts-visualartifactsourcelanguage) 

[CompositeArtifactRendering.cs:17](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/CompositeArtifactRendering.cs#L17)

Wraps a chart grid in a reusable visual artifact.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

**id string? = null optional**

**sourceLanguage ChartForgeX.VisualArtifacts.VisualArtifactSourceLanguage = Native optional**

Returns

 `VisualArtifact` 

 `public static ChartGrid UsePanelThemes(ChartGrid chartGrid, bool value = true)` [#](#extension-usepanelthemes-chartforgex-core-chartgrid-boolean) 

Sets [ChartGrid.UsePanelThemes](/api/chartforgex-core-chartgrid/): Gets or sets whether each panel retains its chart's authored theme, mode and font request.

Parameters

**chartGrid ChartForgeX.Core.ChartGrid required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

 `ChartGrid` The same instance. 

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::ChartForgeX.Core.ChartGrid { UsePanelThemes = value };    chartGrid.UsePanelThemes(value);
```

 `public static void WriteBmp(ChartGrid grid, Stream stream, RasterImageOptions? options = null)` [#](#extension-writebmp-chartforgex-core-chartgrid-io-stream-chartforgex-core-rasterimageoptions) 

[ChartExtensions.Raster.cs:180](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.Raster.cs#L180)

Writes a chart grid to a BMP stream.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

**stream System.IO.Stream required**

The destination stream.

**options ChartForgeX.Core.RasterImageOptions? = null optional**

Optional raster export options.

 `public static void WritePpm(ChartGrid grid, Stream stream, RasterImageOptions? options = null)` [#](#extension-writeppm-chartforgex-core-chartgrid-io-stream-chartforgex-core-rasterimageoptions) 

[ChartExtensions.Raster.cs:188](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.Raster.cs#L188)

Writes a chart grid to a PPM stream.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

**stream System.IO.Stream required**

The destination stream.

**options ChartForgeX.Core.RasterImageOptions? = null optional**

Optional raster export options.

 `public static void WriteRasterImage(ChartGrid grid, Stream stream, RasterImageFormat format, RasterImageOptions? options = null)` [#](#extension-writerasterimage-chartforgex-core-chartgrid-io-stream-chartforgex-core-rasterimageformat-chartforgex-core-rasterimageoptions) 

[ChartExtensions.Raster.cs:169](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.Raster.cs#L169)

Writes a chart grid to an opaque raster image stream.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

**stream System.IO.Stream required**

The destination stream.

**format ChartForgeX.Core.RasterImageFormat required**

The raster image format.

**options ChartForgeX.Core.RasterImageOptions? = null optional**

Optional raster export options.

 `public static void WriteTiff(ChartGrid grid, Stream stream, RasterImageOptions? options = null)` [#](#extension-writetiff-chartforgex-core-chartgrid-io-stream-chartforgex-core-rasterimageoptions) 

[ChartExtensions.Raster.cs:196](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/ChartExtensions.Raster.cs#L196)

Writes a chart grid to a TIFF stream.

Parameters

**grid ChartForgeX.Core.ChartGrid required**

The chart grid to render.

**stream System.IO.Stream required**

The destination stream.

**options ChartForgeX.Core.RasterImageOptions? = null optional**

Optional raster export options.

<!-- PowerForge markdown artifact sha256:950B20D311ADF517823FC5C621C53F78F9AC5D690C4209D47CD60FBAB2E62F11 -->
