XPlot


Google Sankey Diagram

1: 
2: 
3: 
4: 
5: 
6: 
7: 
8: 
9: 
let data = 
    [
        "A", "X", 5 
        "A", "Y", 7 
        "A", "Z", 6 
        "B", "X", 2 
        "B", "Y", 9 
        "B", "Z", 4
    ]
1: 
2: 
3: 
4: 
data
|> Chart.Sankey
|> Chart.WithHeight 300
|> Chart.WithWidth 600
namespace XPlot
namespace XPlot.GoogleCharts
val data : (string * string * int) list
type Chart =
  static member Annotation : data:seq<#seq<DateTime * 'V * string * string>> * ?Labels:seq<string> * ?Options:Options -> GoogleChart (requires 'V :> value)
  static member Annotation : data:seq<DateTime * #value * string * string> * ?Labels:seq<string> * ?Options:Options -> GoogleChart
  static member Area : data:seq<#seq<'K * 'V>> * ?Labels:seq<string> * ?Options:Options -> GoogleChart (requires 'K :> key and 'V :> value)
  static member Area : data:seq<#key * #value> * ?Labels:seq<string> * ?Options:Options -> GoogleChart
  static member Area : data:seq<#value> * ?Labels:seq<string> * ?Options:Options -> GoogleChart
  static member Bar : data:seq<#seq<'K * 'V>> * ?Labels:seq<string> * ?Options:Options -> GoogleChart (requires 'K :> key and 'V :> value)
  static member Bar : data:seq<#key * #value> * ?Labels:seq<string> * ?Options:Options -> GoogleChart
  static member Bar : data:seq<#value> * ?Labels:seq<string> * ?Options:Options -> GoogleChart
  static member Bubble : data:seq<string * #value * #value * #value * #value> * ?Labels:seq<string> * ?Options:Options -> GoogleChart
  static member Bubble : data:seq<string * #value * #value * #value> * ?Labels:seq<string> * ?Options:Options -> 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
Fork me on GitHub