# MermaidXYChartRendering

Provides ChartForgeX rendering adapters for parsed Mermaid XY charts.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

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

**Modifiers**

static

Provides ChartForgeX rendering adapters for parsed Mermaid XY charts.

## Inheritance

- object
- MermaidXYChartRendering

 Filter members   

    Show inherited   

 

## Methods

 `public static Chart ToChart(MermaidXYChartDocument document, MermaidXYChartRenderOptions? options = null)` [#](#method-tochart-chartforgex-mermaid-mermaidxychartdocument-chartforgex-mermaid-mermaidxychartrenderoptions) 

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

Converts a Mermaid XY chart document into a renderer-independent ChartForgeX chart.

Parameters

**document ChartForgeX.Mermaid.MermaidXYChartDocument required**

**options ChartForgeX.Mermaid.MermaidXYChartRenderOptions? = null optional**

Returns

 `Chart` 

 `public static byte[] ToPng(MermaidXYChartDocument document, MermaidXYChartRenderOptions? options = null)` [#](#method-topng-chartforgex-mermaid-mermaidxychartdocument-chartforgex-mermaid-mermaidxychartrenderoptions) 

[MermaidXYChartRendering.cs:89](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidXYChartRendering.cs#L89)

Renders a Mermaid XY chart document to static PNG through ChartForgeX chart rendering.

Parameters

**document ChartForgeX.Mermaid.MermaidXYChartDocument required**

**options ChartForgeX.Mermaid.MermaidXYChartRenderOptions? = null optional**

Returns

 `byte[]` 

 `public static string ToSvg(MermaidXYChartDocument document, MermaidXYChartRenderOptions? options = null)` [#](#method-tosvg-chartforgex-mermaid-mermaidxychartdocument-chartforgex-mermaid-mermaidxychartrenderoptions) 

[MermaidXYChartRendering.cs:83](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidXYChartRendering.cs#L83)

Renders a Mermaid XY chart document to static SVG through ChartForgeX chart rendering.

Parameters

**document ChartForgeX.Mermaid.MermaidXYChartDocument required**

**options ChartForgeX.Mermaid.MermaidXYChartRenderOptions? = null optional**

Returns

 `string` 

 `public static VisualArtifact ToVisualArtifact(MermaidXYChartDocument document, MermaidXYChartRenderOptions? options = null)` [#](#method-tovisualartifact-chartforgex-mermaid-mermaidxychartdocument-chartforgex-mermaid-mermaidxychartrenderoptions) 

[MermaidXYChartRendering.cs:60](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidXYChartRendering.cs#L60)

Wraps a Mermaid XY chart document in a visual artifact envelope backed by a ChartForgeX chart.

Parameters

**document ChartForgeX.Mermaid.MermaidXYChartDocument required**

**options ChartForgeX.Mermaid.MermaidXYChartRenderOptions? = null optional**

Returns

 `VisualArtifact` 

## 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?` 

<!-- PowerForge markdown artifact sha256:E0922745849BA2A7FC73A65D666C46968B6615F37E55BE0FD9835E6D640C3F95 -->
