Mermish 1.0.0-alpha.2
dotnet add package Mermish --version 1.0.0-alpha.2
NuGet\Install-Package Mermish -Version 1.0.0-alpha.2
<PackageReference Include="Mermish" Version="1.0.0-alpha.2" />
paket add Mermish --version 1.0.0-alpha.2
#r "nuget: Mermish, 1.0.0-alpha.2"
// 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:
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:
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 | Versions 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. |
-
.NETStandard 2.1
- FSharp.Core (>= 6.0.6)
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