XPlot


Google Sankey Diagram

Binder

open XPlot.GoogleCharts

let data =
    [
        "A", "X", 5
        "A", "Y", 7
        "A", "Z", 6
        "B", "X", 2
        "B", "Y", 9
        "B", "Z", 4
    ]

let chart =
    data
    |> Chart.Sankey
    |> Chart.WithHeight 300
    |> Chart.WithWidth 600
Google Chart
namespace XPlot
namespace XPlot.GoogleCharts
val data : (string * string * int) list
val chart : GoogleChart
type Chart =
  static member Annotation : data:seq<DateTime * #value * string * string> * ?Labels:seq<string> * ?Options:Options -> GoogleChart + 1 overload
  static member Area : data:seq<#value> * ?Labels:seq<string> * ?Options:Options -> GoogleChart + 2 overloads
  static member Bar : data:seq<#value> * ?Labels:seq<string> * ?Options:Options -> GoogleChart + 2 overloads
  static member Bubble : data:seq<string * #value * #value> * ?Labels:seq<string> * ?Options:Options -> GoogleChart + 2 overloads
  static member Calendar : data:seq<DateTime * #value> * ?Labels:seq<string> * ?Options:Options -> GoogleChart
  static member Candlestick : data:seq<#key * #value * #value * #value * #value> * ?Labels:seq<string> * ?Options:Options -> GoogleChart + 1 overload
  static member Column : data:seq<#value> * ?Labels:seq<string> * ?Options:Options -> GoogleChart + 2 overloads
  static member Combo : data:seq<#seq<'K * 'V>> * ?Labels:seq<string> * ?Options:Options -> GoogleChart (requires 'K :> key and 'V :> value)
  static member private Create : data:seq<#seq<'T>> -> labels:seq<string> option -> options:Options option -> chartType:ChartGallery -> datumNew:('T -> Datum) -> GoogleChart
  static member private Create' : data:seq<#value> -> labels:seq<string> option -> options:Options option -> chartType:ChartGallery -> GoogleChart
  ...
static member Chart.Sankey : data:seq<string * string * #value> * ?Labels:seq<string> * ?Options:Options -> GoogleChart
static member Chart.WithHeight : height:int -> chart:GoogleChart -> GoogleChart
static member Chart.WithWidth : width:int -> chart:GoogleChart -> GoogleChart
member GoogleChart.GetHtml : unit -> string