Angri450.Nong.Diagram 3.0.4

dotnet add package Angri450.Nong.Diagram --version 3.0.4
                    
NuGet\Install-Package Angri450.Nong.Diagram -Version 3.0.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Angri450.Nong.Diagram" Version="3.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Angri450.Nong.Diagram" Version="3.0.4" />
                    
Directory.Packages.props
<PackageReference Include="Angri450.Nong.Diagram" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Angri450.Nong.Diagram --version 3.0.4
                    
#r "nuget: Angri450.Nong.Diagram, 3.0.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Angri450.Nong.Diagram@3.0.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Angri450.Nong.Diagram&version=3.0.4
                    
Install as a Cake Addin
#tool nuget:?package=Angri450.Nong.Diagram&version=3.0.4
                    
Install as a Cake Tool

Angri450.Nong.Diagram

Scientific diagram generator. Flowcharts, network graphs, phylogenetic trees, and mechanism diagrams — all as publication-quality PNG or SVG.

NuGet .NET

Supported Platforms

.NET 8.0 and above (net8.0, net9.0, net10.0, net11.0). Windows, macOS, Linux.

Install

dotnet add package Angri450.Nong.Diagram

Quick Start

Flowchart

using DiagramCore;
using DiagramCore.Models;

var graph = new Graph();
graph.AddNode("A", "Sample Collection");
graph.AddNode("B", "DNA Extraction");
graph.AddNode("C", "PCR Amplification");
graph.AddNode("D", "Sequencing");
graph.AddEdge("A", "B");
graph.AddEdge("B", "C");
graph.AddEdge("C", "D");
DiagramBuilder.Flowchart(graph, "flowchart.png", 800, 600);

Phylogenetic Tree

var newick = "((Human:0.1,Chimp:0.12):0.05,(Gorilla:0.15,Orangutan:0.2):0.1);";
DiagramBuilder.PhylogeneticTree(newick, "tree.png", radial: false, 800, 600);

Network Graph

var net = new Graph();
net.AddNode("n1", "Server A");
net.AddNode("n2", "Server B");
net.AddNode("n3", "Database");
net.AddEdge("n1", "n2", weight: 0.8);
net.AddEdge("n2", "n3", weight: 0.5);
net.AddEdge("n1", "n3", weight: 0.3);
DiagramBuilder.NetworkGraph(net, "network.png", 800, 600);

Diagram Types

Type Method Use Case
Flowchart Flowchart() Process diagrams, pipelines
Network NetworkGraph() System architecture, topology
Phylogenetic Tree PhylogeneticTree() Newick format trees (rectangular/radial)
Mechanism MechanismDiagram() Scientific mechanism illustrations
Sankey SankeyDiagram() Flow and transfer diagrams

Node and Edge Customization

graph.AddNode("X", "Label", shape: NodeShape.Diamond, color: "#FF6B6B");
graph.AddEdge("A", "B", weight: 0.7, label: "0.7", style: EdgeStyle.Dashed);

Dependencies

  • Angri450.Nong.ThirdParty — merged foundation (MSAGL + SkiaSharp + all transitive deps)
  • Angri450.Nong.Bioicons — 40 scientific SVG icons for node decoration

API Reference

Class Description
DiagramBuilder Entry point for all diagram types, output to file or stream
Graph / Node / Edge Graph model classes
PhylogeneticTreeParser Newick format parser

Source

https://github.com/angri450/Nong.NET — Issues and PRs welcome.

License

MIT

Product 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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
3.0.4 55 6/1/2026
3.0.2 61 6/1/2026
3.0.1 57 6/1/2026
3.0.0 62 6/1/2026
1.0.2 63 5/31/2026
1.0.1 60 5/31/2026
1.0.0 55 5/30/2026