# MermaidSankeyDocument

Describes a parsed Mermaid Sankey diagram document.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

[MermaidSankeyDocument.cs:11](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidSankeyDocument.cs#L11)

**Base**

`MermaidDocument`

**Modifiers**

sealed

Describes a parsed Mermaid Sankey diagram document.

## Inheritance

- [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)
- MermaidSankeyDocument

## Usage

 Explore 9 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 1

- Method [MermaidParser.ParseSankey](/api/chartforgex-mermaid-mermaidparser/#method-parsesankey-string)

### Accepted by parameters 8

- Extension method [MermaidSankeyDocument.ToChart](/api/chartforgex-mermaid-mermaidsankeydocument/#extension-tochart-chartforgex-mermaid-mermaidsankeydocument-chartforgex-mermaid-mermaidsankeyrenderoptions) parameter `document`
- Extension method [MermaidSankeyDocument.ToPng](/api/chartforgex-mermaid-mermaidsankeydocument/#extension-topng-chartforgex-mermaid-mermaidsankeydocument-chartforgex-mermaid-mermaidsankeyrenderoptions) parameter `document`
- Extension method [MermaidSankeyDocument.ToSvg](/api/chartforgex-mermaid-mermaidsankeydocument/#extension-tosvg-chartforgex-mermaid-mermaidsankeydocument-chartforgex-mermaid-mermaidsankeyrenderoptions) parameter `document`
- Extension method [MermaidSankeyDocument.ToVisualArtifact](/api/chartforgex-mermaid-mermaidsankeydocument/#extension-tovisualartifact-chartforgex-mermaid-mermaidsankeydocument-chartforgex-mermaid-mermaidsankeyrenderoptions) parameter `document`
- Method [MermaidSankeyRendering.ToChart](/api/chartforgex-mermaid-mermaidsankeyrendering/#method-tochart-chartforgex-mermaid-mermaidsankeydocument-chartforgex-mermaid-mermaidsankeyrenderoptions) parameter `document`
- Method [MermaidSankeyRendering.ToPng](/api/chartforgex-mermaid-mermaidsankeyrendering/#method-topng-chartforgex-mermaid-mermaidsankeydocument-chartforgex-mermaid-mermaidsankeyrenderoptions) parameter `document`
- Method [MermaidSankeyRendering.ToSvg](/api/chartforgex-mermaid-mermaidsankeyrendering/#method-tosvg-chartforgex-mermaid-mermaidsankeydocument-chartforgex-mermaid-mermaidsankeyrenderoptions) parameter `document`
- Method [MermaidSankeyRendering.ToVisualArtifact](/api/chartforgex-mermaid-mermaidsankeyrendering/#method-tovisualartifact-chartforgex-mermaid-mermaidsankeydocument-chartforgex-mermaid-mermaidsankeyrenderoptions) parameter `document`

 Filter members   

    Show inherited   

 

## Constructors

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

[MermaidSankeyDocument.cs:11](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidSankeyDocument.cs#L11)

## 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 List<MermaidRawStatement> Statements { get; }` [#](#property-statements) 

[MermaidSankeyDocument.cs:11](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidSankeyDocument.cs#L11)

Gets retained raw CSV rows.

 `public List<MermaidSankeyLink> Links { get; }` [#](#property-links) 

[MermaidSankeyDocument.cs:14](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidSankeyDocument.cs#L14)

Gets parsed source-to-target weighted links.

## Inherited Properties

 `public MermaidDiagramKind Kind { get; set; }` [#](#property-kind) 

[MermaidDocument.cs:91](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L91)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public bool IsDiagnosticOnly { get; }` [#](#property-isdiagnosticonly) 

[MermaidDocument.cs:94](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L94)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public string SourceText { get; set; }` [#](#property-sourcetext) 

[MermaidDocument.cs:97](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L97)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public MermaidSourceSpan HeaderSpan { get; set; }` [#](#property-headerspan) 

[MermaidDocument.cs:100](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L100)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public string Header { get; set; }` [#](#property-header) 

[MermaidDocument.cs:103](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L103)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public string? FrontMatter { get; set; }` [#](#property-frontmatter) 

[MermaidDocument.cs:106](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L106)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

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

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

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

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

[MermaidDocument.cs:112](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L112)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public MermaidSourceConfiguration Configuration { get; internal set; }` [#](#property-configuration) 

[MermaidDocument.cs:115](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L115)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public List<MermaidDirective> Directives { get; }` [#](#property-directives) 

[MermaidDocument.cs:118](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L118)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

 `public List<MermaidRawStatement> RawStatements { get; }` [#](#property-rawstatements) 

[MermaidDocument.cs:121](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidDocument.cs#L121)

Inherited from [MermaidDocument](/api/chartforgex-mermaid-mermaiddocument/)

## Extension Methods

 `public static Chart ToChart(MermaidSankeyDocument document, MermaidSankeyRenderOptions? options = null)` [#](#extension-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)` [#](#extension-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)` [#](#extension-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)` [#](#extension-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` 

<!-- PowerForge markdown artifact sha256:0BE672A24103087B07C5D9848601460C7499B70A80EE6FF16422F335FFAED613 -->
