# MermaidSankeyRendering

Provides ChartForgeX rendering adapters for parsed Mermaid Sankey diagrams.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

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

**Modifiers**

static

Provides ChartForgeX rendering adapters for parsed Mermaid Sankey diagrams.

## Inheritance

- object
- MermaidSankeyRendering

 Filter members   

    Show inherited   

 

## Methods

 `public static Chart ToChart(MermaidSankeyDocument document, MermaidSankeyRenderOptions? options = null)` [#](#method-tochart-chartforgex-mermaid-mermaidsankeydocument-chartforgex-mermaid-mermaidsankeyrenderoptions) 

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

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

Parameters

**document ChartForgeX.Mermaid.MermaidSankeyDocument required**

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

Returns

 `Chart` 

 `public static byte[] ToPng(MermaidSankeyDocument document, MermaidSankeyRenderOptions? options = null)` [#](#method-topng-chartforgex-mermaid-mermaidsankeydocument-chartforgex-mermaid-mermaidsankeyrenderoptions) 

[MermaidSankeyRendering.cs:55](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidSankeyRendering.cs#L55)

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

Parameters

**document ChartForgeX.Mermaid.MermaidSankeyDocument required**

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

Returns

 `byte[]` 

 `public static string ToSvg(MermaidSankeyDocument document, MermaidSankeyRenderOptions? options = null)` [#](#method-tosvg-chartforgex-mermaid-mermaidsankeydocument-chartforgex-mermaid-mermaidsankeyrenderoptions) 

[MermaidSankeyRendering.cs:49](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidSankeyRendering.cs#L49)

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

Parameters

**document ChartForgeX.Mermaid.MermaidSankeyDocument required**

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

Returns

 `string` 

 `public static VisualArtifact ToVisualArtifact(MermaidSankeyDocument document, MermaidSankeyRenderOptions? options = null)` [#](#method-tovisualartifact-chartforgex-mermaid-mermaidsankeydocument-chartforgex-mermaid-mermaidsankeyrenderoptions) 

[MermaidSankeyRendering.cs:33](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidSankeyRendering.cs#L33)

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

Parameters

**document ChartForgeX.Mermaid.MermaidSankeyDocument required**

**options ChartForgeX.Mermaid.MermaidSankeyRenderOptions? = 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:3577F274CEF2AE6826E405455AC7AA766C0EC72C5E4876E8DCFEA1543F9DDEFF -->
