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

GitGraphBlock

Namespace ChartForgeX.VisualBlocks
Assembly ChartForgeX
Base VisualBlock<GitGraphBlock>
Modifiers sealed

A deterministic visual block for product-neutral commit and branch graphs.

Inheritance

  • VisualBlock<GitGraphBlock>
  • GitGraphBlock

Usage

Explore 16 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.

Constructors

public GitGraphBlock() #

Methods

public GitGraphBlock AddBranch(String name, Int32? order = null) #
Returns: GitGraphBlock

Adds a branch lane.

Parameters

name System.String requiredposition: 0
order System.Int32? = null optionalposition: 1
public GitGraphBlock AddCommit(String id, String branchName, IEnumerable<String>? parentIds = null, GitGraphCommitType type = Normal, String label = "", String tag = "", String sourceCommitId = "") #
Returns: GitGraphBlock

Adds a commit on a branch.

Parameters

id System.String requiredposition: 0
branchName System.String requiredposition: 1
parentIds System.Collections.Generic.IEnumerable<System.String>? = null optionalposition: 2
type ChartForgeX.VisualBlocks.GitGraphCommitType = Normal optionalposition: 3
label System.String = "" optionalposition: 4
tag System.String = "" optionalposition: 5
sourceCommitId System.String = "" optionalposition: 6
public static GitGraphBlock Create() #
Returns: GitGraphBlock

Creates a git graph block.

public GitGraphBlock WithBranchLabels(Boolean visible = true) #
Returns: GitGraphBlock

Sets whether branch labels are rendered.

Parameters

visible System.Boolean = true optionalposition: 0
public GitGraphBlock WithCommitLabels(Boolean visible = true) #
Returns: GitGraphBlock

Sets whether commit labels are rendered.

Parameters

visible System.Boolean = true optionalposition: 0

Properties

public IReadOnlyList<GitGraphBranch> Branches { get; } #

Gets branches in declaration order.

public IReadOnlyList<GitGraphCommit> Commits { get; } #

Gets commits in source order.

public Boolean ShowBranchLabels { get; set; } #

Gets or sets whether branch labels and lane lines are rendered.

public Boolean ShowCommitLabels { get; set; } #

Gets or sets whether commit labels are rendered.

public override String AccessibleName { get; } #

Gets a concise accessibility label.