Frank.Mermaid
0.2.8-preview
See the version list below for details.
dotnet add package Frank.Mermaid --version 0.2.8-preview
NuGet\Install-Package Frank.Mermaid -Version 0.2.8-preview
<PackageReference Include="Frank.Mermaid" Version="0.2.8-preview" />
paket add Frank.Mermaid --version 0.2.8-preview
#r "nuget: Frank.Mermaid, 0.2.8-preview"
// Install Frank.Mermaid as a Cake Addin #addin nuget:?package=Frank.Mermaid&version=0.2.8-preview&prerelease // Install Frank.Mermaid as a Cake Tool #tool nuget:?package=Frank.Mermaid&version=0.2.8-preview&prerelease
Frank.Mermaid
This is a Blazor component that builds Mermaid diagrams. It has no rendering, just the just the different building blocks of the diagram types supported by Mermaid.
This is not complete yet, but more diagram types will be added as time permits.
Installation
You can install the package via NuGet.
dotnet add package Frank.Mermaid
Usage
Add the following using statement to your _Imports.razor:
using Frank.Mermaid;
namespace YourNamespace;
public class Program
{
public static void Main(string[] args)
{
var mermaidPieChart = new PieChart("MyPieChart");
mermaidPieChart.AddValue("A", 999);
mermaidPieChart.AddValue("B", 666);
mermaidPieChart.AddValue("C", 420);
mermaidPieChart.AddValue("D", 69);
Console.WriteLine(mermaidPieChart.ToMermaidSyntax().ToString());
}
}
Raw Mermaid syntax outputted:
pie showData
title MyPieChart
"A" : 999
"B" : 666
"C" : 420
"D" : 69
Mermaid diagram:
pie showData
title MyPieChart
"A" : 999
"B" : 666
"C" : 420
"D" : 69
License
This project is licensed under the MIT License - see the LICENSE file for details.
Credits
This project is 100% original work by Frank R. Haugen. It is
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- CodegenCS.Core (>= 3.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.5.0 | 129 | 4/28/2024 |
0.2.11-preview | 74 | 4/28/2024 |
0.2.10-preview | 81 | 4/28/2024 |
0.2.9-preview | 90 | 4/28/2024 |
0.2.8-preview | 76 | 4/28/2024 |
0.2.7-preview | 73 | 4/28/2024 |
0.2.0 | 98 | 4/28/2024 |