Google Area Chart
open XPlot.GoogleCharts
let sales = ["2013", 1000; "2014", 1170; "2015", 660; "2016", 1030]
let expenses = ["2013", 400; "2014", 460; "2015", 1120; "2016", 540]
let options =
Options(
title = "Company Performance",
hAxis =
Axis(
title = "Year",
titleTextStyle = TextStyle(color = "#333")
),
vAxis = Axis(minValue = 0)
)
let chart =
[sales; expenses]
|> Chart.Area
|> Chart.WithLabels ["Sales"; "Expenses"]
|> Chart.WithOptions options
Google Chart
namespace XPlot
namespace XPlot.GoogleCharts
val sales : (string * int) list
val expenses : (string * int) list
val options : Options
Multiple items
type Options =
new : unit -> Options
member ShouldSerializeaggregationTarget : unit -> bool
member ShouldSerializeallValuesSuffix : unit -> bool
member ShouldSerializeallowHtml : unit -> bool
member ShouldSerializealternatingRowStyle : unit -> bool
member ShouldSerializeanimation : unit -> bool
member ShouldSerializeannotations : unit -> bool
member ShouldSerializeannotationsWidth : unit -> bool
member ShouldSerializeareaOpacity : unit -> bool
member ShouldSerializeavoidOverlappingGridLines : unit -> bool
...
--------------------
new : unit -> Options
Multiple items
type Axis =
new : unit -> Axis
member ShouldSerializeallowContainerBoundaryTextCufoff : unit -> bool
member ShouldSerializebaseline : unit -> bool
member ShouldSerializebaselineColor : unit -> bool
member ShouldSerializedirection : unit -> bool
member ShouldSerializeformat : unit -> bool
member ShouldSerializegridlines : unit -> bool
member ShouldSerializelogScale : unit -> bool
member ShouldSerializemaxAlternation : unit -> bool
member ShouldSerializemaxTextLines : unit -> bool
...
--------------------
new : unit -> Axis
Multiple items
type TextStyle =
new : unit -> TextStyle
member ShouldSerializeauraColor : unit -> bool
member ShouldSerializebold : unit -> bool
member ShouldSerializecolor : unit -> bool
member ShouldSerializefontName : unit -> bool
member ShouldSerializefontSize : unit -> bool
member ShouldSerializeitalic : unit -> bool
member ShouldSerializeopacity : unit -> bool
member auraColor : string
member bold : bool
...
--------------------
new : unit -> TextStyle
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.Area : data:seq<#seq<'K * 'V>> * ?Labels:seq<string> * ?Options:Options -> GoogleChart (requires 'K :> key and 'V :> value)
static member Chart.Area : data:seq<#key * #value> * ?Labels:seq<string> * ?Options:Options -> GoogleChart
static member Chart.Area : data:seq<#value> * ?Labels:seq<string> * ?Options:Options -> GoogleChart
static member Chart.WithLabels : labels:seq<string> -> chart:GoogleChart -> GoogleChart
static member Chart.WithOptions : options:Options -> chart:GoogleChart -> GoogleChart
member GoogleChart.GetHtml : unit -> string