Skip to content
ChartForgeX
Class

MermaidQuadrantDocument

ChartForgeX.Mermaid

Namespace
ChartForgeX.Mermaid
Assembly
ChartForgeX.Mermaid
Modifiers
sealed

Describes a parsed Mermaid quadrant chart.

Inheritance

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

Accepted by parameters 8

Constructors

public MermaidQuadrantDocument() #

Properties

public List<MermaidRawStatement> Statements { get; } #

Gets raw quadrant statements retained with source spans.

public string? Title { get; set; } #

Gets or sets the optional Mermaid quadrant title.

public string? XAxisStart { get; set; } #

Gets or sets the low-side X axis label.

public string? XAxisEnd { get; set; } #

Gets or sets the high-side X axis label.

public string? YAxisStart { get; set; } #

Gets or sets the low-side Y axis label.

public string? YAxisEnd { get; set; } #

Gets or sets the high-side Y axis label.

public Dictionary<int, string> QuadrantLabels { get; } #

Gets quadrant labels keyed from 1 to 4.

public List<MermaidStyleDefinition> ClassDefinitions { get; } #

Gets source-ordered named point styles. The last complete definition of a name wins.

public List<MermaidQuadrantPoint> Points { get; } #

Gets plotted quadrant points in source order.

Extension Methods

public static Chart ToChart(MermaidQuadrantDocument document, MermaidQuadrantRenderOptions? options = null) #

Converts a Mermaid quadrant document into a scatter chart with four native background regions.

Parameters

document ChartForgeX.Mermaid.MermaidQuadrantDocument required
options ChartForgeX.Mermaid.MermaidQuadrantRenderOptions? = null optional

Returns

Chart
public static byte[] ToPng(MermaidQuadrantDocument document, MermaidQuadrantRenderOptions? options = null) #

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

Parameters

document ChartForgeX.Mermaid.MermaidQuadrantDocument required
options ChartForgeX.Mermaid.MermaidQuadrantRenderOptions? = null optional

Returns

byte[]
public static string ToSvg(MermaidQuadrantDocument document, MermaidQuadrantRenderOptions? options = null) #

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

Parameters

document ChartForgeX.Mermaid.MermaidQuadrantDocument required
options ChartForgeX.Mermaid.MermaidQuadrantRenderOptions? = null optional

Returns

string
public static VisualArtifact ToVisualArtifact(MermaidQuadrantDocument document, MermaidQuadrantRenderOptions? options = null) #

Wraps a Mermaid quadrant document in an artifact backed by native scatter points and quadrant regions.

Parameters

document ChartForgeX.Mermaid.MermaidQuadrantDocument required
options ChartForgeX.Mermaid.MermaidQuadrantRenderOptions? = null optional