Project

ChartForgeX

Render deterministic charts, dashboards, topology, hierarchy, and report visuals directly from .NET.

Stars 47
Forks 2
NuGet downloads 75,067
Release ChartForgeX-v2.0.0
Language: HTML Updated: 2026-10-12

API Reference

Class

MermaidGitGraphDocument

Namespace ChartForgeX.Mermaid
Assembly ChartForgeX.Mermaid
Modifiers sealed

Describes a parsed Mermaid git graph diagram.

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 MermaidGitGraphDocument() #

Properties

public List<MermaidRawStatement> Statements { get; } #

Gets git graph statements retained in source order.

public List<MermaidGitGraphBranch> Branches { get; } #

Gets parsed git graph branches.

public List<MermaidGitGraphCommit> Commits { get; } #

Gets parsed git graph commits.

public List<MermaidRawStatement> RetainedStatements { get; } #

Gets configuration, theme, or unsupported statements retained for future support.

public String Direction { get; set; } #

Gets or sets the diagram orientation token from the header.

Extension Methods

public static GitGraphBlock ToGitGraphBlock(MermaidGitGraphDocument document, MermaidGitGraphRenderOptions? options = null) #
Returns: GitGraphBlock

Converts a Mermaid git graph document into a reusable git graph visual block.

Parameters

document ChartForgeX.Mermaid.MermaidGitGraphDocument requiredposition: 0
options ChartForgeX.Mermaid.MermaidGitGraphRenderOptions? = null optionalposition: 1
public static Byte[] ToPng(MermaidGitGraphDocument document, MermaidGitGraphRenderOptions? options = null) #
Returns: Byte[]

Renders a Mermaid git graph document to static PNG.

Parameters

document ChartForgeX.Mermaid.MermaidGitGraphDocument requiredposition: 0
options ChartForgeX.Mermaid.MermaidGitGraphRenderOptions? = null optionalposition: 1
public static String ToSvg(MermaidGitGraphDocument document, MermaidGitGraphRenderOptions? options = null) #
Returns: String

Renders a Mermaid git graph document to static SVG.

Parameters

document ChartForgeX.Mermaid.MermaidGitGraphDocument requiredposition: 0
options ChartForgeX.Mermaid.MermaidGitGraphRenderOptions? = null optionalposition: 1
public static VisualArtifact ToVisualArtifact(MermaidGitGraphDocument document, MermaidGitGraphRenderOptions? options = null) #
Returns: VisualArtifact

Wraps a Mermaid git graph document in a visual artifact envelope backed by a git graph block.

Parameters

document ChartForgeX.Mermaid.MermaidGitGraphDocument requiredposition: 0
options ChartForgeX.Mermaid.MermaidGitGraphRenderOptions? = null optionalposition: 1