MermaidGanttDocument
ChartForgeX.Mermaid
Describes a parsed Mermaid Gantt diagram.
Inheritance
- MermaidDocument
- MermaidGanttDocument
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.ParseGantt
Accepted by parameters 8
- Extension method MermaidGanttDocument.ToChart
- Extension method MermaidGanttDocument.ToPng
- Extension method MermaidGanttDocument.ToSvg
- Extension method MermaidGanttDocument.ToVisualArtifact
- Method MermaidGanttRendering.ToChart
- Method MermaidGanttRendering.ToPng
- Method MermaidGanttRendering.ToSvg
- Method MermaidGanttRendering.ToVisualArtifact
Constructors
public MermaidGanttDocument() #Inherited Methods
Properties
public List<MermaidRawStatement> Statements { get; } #Gets retained non-empty Gantt statements.
public string? Title { get; set; } #Gets or sets the optional Mermaid title.
public string DateFormat { get; set; } #Gets or sets the Mermaid dateFormat directive.
public DateTime? DateAnchor { get; internal set; } #Gets the explicit calendar date used when resolving input fields without a year.
public string? AxisFormat { get; set; } #Gets or sets the optional Mermaid axisFormat directive.
public string? TickInterval { get; set; } #Gets or sets the optional Mermaid tickInterval directive.
public DayOfWeek Weekday { get; set; } #Gets or sets the weekday used to align weekly ticks. Mermaid defaults to Sunday.
public string? Excludes { get; set; } #Gets or sets merged tokens from Mermaid excludes directives.
public string? Includes { get; set; } #Gets or sets merged dates from includes directives that override excluded days.
public string Weekend { get; set; } #Gets or sets the first weekend day, friday or saturday.
public string? TodayMarker { get; set; } #Gets or sets the optional Mermaid todayMarker directive.
public List<MermaidGanttSection> Sections { get; } #Gets Gantt sections in source order.
public List<MermaidGanttTask> Tasks { get; } #Gets Gantt tasks in source order.
Inherited Properties
public MermaidSourceSpan HeaderSpan { get; set; } #public VisualAccessibility Accessibility { get; } #public MermaidSourceConfiguration Configuration { get; internal set; } #public List<MermaidDirective> Directives { get; } #public List<MermaidRawStatement> RawStatements { get; } #Extension Methods
public static Chart ToChart(MermaidGanttDocument document, MermaidGanttRenderOptions? options = null) #Converts a Mermaid Gantt document into a renderer-independent ChartForgeX chart.
Parameters
- document ChartForgeX.Mermaid.MermaidGanttDocument
- options ChartForgeX.Mermaid.MermaidGanttRenderOptions? = null
Returns
Chartpublic static byte[] ToPng(MermaidGanttDocument document, MermaidGanttRenderOptions? options = null) #Renders a Mermaid Gantt document to static PNG through ChartForgeX chart rendering.
Parameters
- document ChartForgeX.Mermaid.MermaidGanttDocument
- options ChartForgeX.Mermaid.MermaidGanttRenderOptions? = null
Returns
byte[]public static string ToSvg(MermaidGanttDocument document, MermaidGanttRenderOptions? options = null) #Renders a Mermaid Gantt document to static SVG through ChartForgeX chart rendering.
Parameters
- document ChartForgeX.Mermaid.MermaidGanttDocument
- options ChartForgeX.Mermaid.MermaidGanttRenderOptions? = null
Returns
stringpublic static VisualArtifact ToVisualArtifact(MermaidGanttDocument document, MermaidGanttRenderOptions? options = null) #Wraps a Mermaid Gantt document in a visual artifact envelope backed by a ChartForgeX chart.
Parameters
- document ChartForgeX.Mermaid.MermaidGanttDocument
- options ChartForgeX.Mermaid.MermaidGanttRenderOptions? = null
Returns
VisualArtifact