Mermish 1.0.0-alpha.2

This is a prerelease version of Mermish.
The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Mermish --version 1.0.0-alpha.2
NuGet\Install-Package Mermish -Version 1.0.0-alpha.2
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="Mermish" Version="1.0.0-alpha.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Mermish --version 1.0.0-alpha.2
#r "nuget: Mermish, 1.0.0-alpha.2"
#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.
// Install Mermish as a Cake Addin
#addin nuget:?package=Mermish&version=1.0.0-alpha.2&prerelease

// Install Mermish as a Cake Tool
#tool nuget:?package=Mermish&version=1.0.0-alpha.2&prerelease

Mermish

This library exists primarily to have a programmatic way to generate and display Mermaid charts in .Net Interactive:

Pie Chart Sample

It can also be used to generate Mermaid syntax for other reasons, or to create local .html files containing Mermaid charts.

#r "nuget: Mermish, 1.0.0-alpha.1"

open Mermish

type Animal = {
    Species : string
    Population : int
}

module Repository =
    let LoadZooAnimals() = [
        { Species = "Lion" ; Population = 4 }
        { Species = "Tiger" ; Population = 6 }
        { Species = "Bear" ; Population = 3 }
    ]

let animals = 
    Repository.LoadZooAnimals() |> Seq.map (fun a -> a.Species, a.Population)
    
let chart = Mermaid.PieChart [
    Title "Zoo Population"
    ShowData
    PieSlice ("Zookeepers", 10)
    PieSlices animals
]

printfn "%A" chart
// Outputs the following:
//
// pie showData
//     title Zoo Population
//     "Bear" : 3
//     "Lion" : 4
//     "Tiger" : 6
//     "Zookeepers" : 10

Mermaid.WriteToFile "output.html" chart

This is very much still a work in progress. It's still buggy in .Net Interactive, and most of the chart types have not been implemented yet. However, there's always the ManualChart to plug the holes:

Manual Chart Sample


Dumbledore was crouching at the water's edge, deep in conversation with what seemed to be the chief merperson, a particularly wild and ferocious-looking female. He was making the same sort of screechy noises that the merpeople made when they were above water; clearly, Dumbledore could speak Mermish.

-- Harry Potter and the Goblet of Fire, J.K. Rowling

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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

1.0.0.alpha-2
- Updated Mermaid version
- Fix for charts that are sensitive to extra whitespace