Logo Plotly.NET

Update menus

Binder  Notebook

Summary: This example shows how to create charts with update menus in F#.

open Deedle
open Plotly.NET
open Plotly.NET.LayoutObjects

let data =
    __SOURCE_DIRECTORY__ + "/../data/volcano.csv"
    |> Frame.ReadCsv
    |> Frame.toJaggedArray

let updateMenu =
    UpdateMenu.init (
        Buttons = [   
            UpdateMenuButton.init (
                Args = [
                    let args = DynamicObj.DynamicObj()
                    args?("type") <- "surface"
                    args
                ],
                Label = "Surface",
                Method = StyleParam.UpdateMethod.Restyle
            )
            UpdateMenuButton.init (
                Args = [ 
                    let args = DynamicObj.DynamicObj()
                    args?("type") <- "heatmap"
                    args
                ],
                Label = "Heatmap",
                Method = StyleParam.UpdateMethod.Restyle
              )
        ],
        Direction = StyleParam.UpdateMenuDirection.Down,
        Pad = Padding.init (R = 10, T = 10),
        ShowActive = true,
        X = 0.1,
        XAnchor = StyleParam.XAnchorPosition.Left,
        Y = 1.1,
        YAnchor = StyleParam.YAnchorPosition.Top
    )

let updateChart =
    Chart.Surface(zData = data)
    |> Chart.withUpdateMenu updateMenu
    |> Chart.withAnnotation (
        Annotation.init (
            Text = "Trace Type:",
            ShowArrow = false,
            X = 0,
            Y = 1.085,
            YRef = "paper",
            Align = StyleParam.AnnotationAlignment.Left
        )
    )
    |> Chart.withScene (
        Scene.init (AspectRatio = AspectRatio.init (X = 1., Y = 1., Z = 0.7), AspectMode = StyleParam.AspectMode.Manual)
    )
    |> Chart.withLayoutStyle (Width = 800, Height = 900, AutoSize = false, Margin = Margin.init (0, 0, 0, 0))
namespace Plotly
namespace Plotly.NET
module Defaults from Plotly.NET
<summary> Contains mutable global default values. Changing these values will apply the default values to all consecutive Chart generations. </summary>
val mutable DefaultDisplayOptions: Plotly.NET.DisplayOptions
Multiple items
type DisplayOptions = inherit DynamicObj new: unit -> DisplayOptions static member addAdditionalHeadTags: additionalHeadTags: XmlNode list -> (DisplayOptions -> DisplayOptions) static member addChartDescription: description: XmlNode list -> (DisplayOptions -> DisplayOptions) static member combine: first: DisplayOptions -> second: DisplayOptions -> DisplayOptions static member getAdditionalHeadTags: displayOpts: DisplayOptions -> XmlNode list static member getChartDescription: displayOpts: DisplayOptions -> XmlNode list static member getDocumentCharset: displayOpts: DisplayOptions -> string static member getDocumentDescription: displayOpts: DisplayOptions -> string static member getDocumentFavicon: displayOpts: DisplayOptions -> XmlNode ...

--------------------
new: unit -> Plotly.NET.DisplayOptions
static member Plotly.NET.DisplayOptions.init: ?DocumentTitle: string * ?DocumentCharset: string * ?DocumentDescription: string * ?DocumentFavicon: Giraffe.ViewEngine.HtmlElements.XmlNode * ?AdditionalHeadTags: Giraffe.ViewEngine.HtmlElements.XmlNode list * ?ChartDescription: Giraffe.ViewEngine.HtmlElements.XmlNode list * ?PlotlyJSReference: Plotly.NET.PlotlyJSReference -> Plotly.NET.DisplayOptions
type PlotlyJSReference = | CDN of string | Full | Require of string | NoReference
<summary> Sets how plotly is referenced in the head of html docs. </summary>
union case Plotly.NET.PlotlyJSReference.NoReference: Plotly.NET.PlotlyJSReference
namespace Deedle
namespace Plotly.NET.LayoutObjects
val data: float array array
Multiple items
module Frame from Deedle

--------------------
type Frame = inherit DynamicObj new: unit -> Frame

--------------------
type Frame<'TRowKey,'TColumnKey (requires equality and equality)> = interface IDynamicMetaObjectProvider interface INotifyCollectionChanged interface IFrameFormattable interface IFsiFormattable interface IFrame new: rowIndex: IIndex<'TRowKey> * columnIndex: IIndex<'TColumnKey> * data: IVector<IVector> * indexBuilder: IIndexBuilder * vectorBuilder: IVectorBuilder -> Frame<'TRowKey,'TColumnKey> + 1 overload member AddColumn: column: 'TColumnKey * series: 'V seq -> unit + 3 overloads member AggregateRowsBy: groupBy: 'TColumnKey seq * aggBy: 'TColumnKey seq * aggFunc: Func<Series<'TRowKey,'a>,'b> -> Frame<int,'TColumnKey> member Clone: unit -> Frame<'TRowKey,'TColumnKey> member ColumnApply: f: Func<Series<'TRowKey,'T>,ISeries<'TRowKey>> -> Frame<'TRowKey,'TColumnKey> + 1 overload ...

--------------------
new: unit -> Frame

--------------------
new: names: 'TColumnKey seq * columns: ISeries<'TRowKey> seq -> Frame<'TRowKey,'TColumnKey>
new: rowIndex: Indices.IIndex<'TRowKey> * columnIndex: Indices.IIndex<'TColumnKey> * data: IVector<IVector> * indexBuilder: Indices.IIndexBuilder * vectorBuilder: Vectors.IVectorBuilder -> Frame<'TRowKey,'TColumnKey>
static member Frame.ReadCsv: path: string * ?hasHeaders: bool * ?inferTypes: bool * ?inferRows: int * ?schema: string * ?separators: string * ?culture: string * ?maxRows: int * ?missingValues: string array * ?preferOptions: bool -> Frame<int,string>
static member Frame.ReadCsv: stream: System.IO.Stream * ?hasHeaders: bool * ?inferTypes: bool * ?inferRows: int * ?schema: string * ?separators: string * ?culture: string * ?maxRows: int * ?missingValues: string array * ?preferOptions: bool -> Frame<int,string>
static member Frame.ReadCsv: reader: System.IO.TextReader * ?hasHeaders: bool * ?inferTypes: bool * ?inferRows: int * ?schema: string * ?separators: string * ?culture: string * ?maxRows: int * ?missingValues: string array * ?preferOptions: bool -> Frame<int,string>
static member Frame.ReadCsv: stream: System.IO.Stream * hasHeaders: System.Nullable<bool> * inferTypes: System.Nullable<bool> * inferRows: System.Nullable<int> * schema: string * separators: string * culture: string * maxRows: System.Nullable<int> * missingValues: string array * preferOptions: System.Nullable<bool> -> Frame<int,string>
static member Frame.ReadCsv: location: string * hasHeaders: System.Nullable<bool> * inferTypes: System.Nullable<bool> * inferRows: System.Nullable<int> * schema: string * separators: string * culture: string * maxRows: System.Nullable<int> * missingValues: string array * preferOptions: bool -> Frame<int,string>
static member Frame.ReadCsv: path: string * indexCol: string * ?hasHeaders: bool * ?inferTypes: bool * ?inferRows: int * ?schema: string * ?separators: string * ?culture: string * ?maxRows: int * ?missingValues: string array * ?preferOptions: bool -> Frame<'R,string> (requires equality)
val toJaggedArray: frame: Frame<'R,'C> -> float array array (requires equality and equality)
val updateMenu: UpdateMenu
Multiple items
type UpdateMenu = inherit DynamicObj new: unit -> UpdateMenu static member init: ?Active: int * ?BGColor: Color * ?BorderColor: Color * ?Buttons: UpdateMenuButton seq * ?Direction: UpdateMenuDirection * ?Font: Font * ?Name: string * ?Pad: Padding * ?ShowActive: bool * ?TemplateItemName: string * ?Type: UpdateMenuType * ?Visible: bool * ?X: float * ?XAnchor: XAnchorPosition * ?Y: float * ?YAnchor: YAnchorPosition -> UpdateMenu static member style: ?Active: int * ?BGColor: Color * ?BorderColor: Color * ?Buttons: UpdateMenuButton seq * ?Direction: UpdateMenuDirection * ?Font: Font * ?Name: string * ?Pad: Padding * ?ShowActive: bool * ?TemplateItemName: string * ?Type: UpdateMenuType * ?Visible: bool * ?X: float * ?XAnchor: XAnchorPosition * ?Y: float * ?YAnchor: YAnchorPosition -> (UpdateMenu -> UpdateMenu)

--------------------
new: unit -> UpdateMenu
static member UpdateMenu.init: ?Active: int * ?BGColor: Color * ?BorderColor: Color * ?Buttons: UpdateMenuButton seq * ?Direction: StyleParam.UpdateMenuDirection * ?Font: Font * ?Name: string * ?Pad: Padding * ?ShowActive: bool * ?TemplateItemName: string * ?Type: StyleParam.UpdateMenuType * ?Visible: bool * ?X: float * ?XAnchor: StyleParam.XAnchorPosition * ?Y: float * ?YAnchor: StyleParam.YAnchorPosition -> UpdateMenu
Multiple items
type UpdateMenuButton = inherit DynamicObj new: unit -> UpdateMenuButton static member init: ?Args: DynamicObj seq * ?Args2: DynamicObj seq * ?Execute: bool * ?Label: string * ?Method: UpdateMethod * ?Name: string * ?TemplateItemName: string * ?Visible: bool -> UpdateMenuButton static member style: ?Args: DynamicObj seq * ?Args2: DynamicObj seq * ?Execute: bool * ?Label: string * ?Method: UpdateMethod * ?Name: string * ?TemplateItemName: string * ?Visible: bool -> (UpdateMenuButton -> UpdateMenuButton)

--------------------
new: unit -> UpdateMenuButton
static member UpdateMenuButton.init: ?Args: DynamicObj.DynamicObj seq * ?Args2: DynamicObj.DynamicObj seq * ?Execute: bool * ?Label: string * ?Method: StyleParam.UpdateMethod * ?Name: string * ?TemplateItemName: string * ?Visible: bool -> UpdateMenuButton
val args: DynamicObj.DynamicObj
namespace DynamicObj
Multiple items
type DynamicObj = inherit DynamicObject new: unit -> DynamicObj member DeepCopyProperties: ?includeInstanceProperties: bool -> obj member DeepCopyPropertiesTo: target: #DynamicObj * ?overWrite: bool * ?includeInstanceProperties: bool -> unit override Equals: o: obj -> bool override GetDynamicMemberNames: unit -> string seq override GetHashCode: unit -> int member GetProperties: includeInstanceProperties: bool -> KeyValuePair<string,obj> seq member GetPropertyHelpers: includeInstanceProperties: bool -> PropertyHelper seq member GetPropertyNames: includeInstanceProperties: bool -> string seq ...

--------------------
new: unit -> DynamicObj.DynamicObj
module StyleParam from Plotly.NET
type UpdateMethod = | Restyle | Relayout | Animate | Update | Skip member Convert: unit -> objnull override ToString: unit -> string static member convert: (UpdateMethod -> objnull) static member toString: (UpdateMethod -> string)
union case StyleParam.UpdateMethod.Restyle: StyleParam.UpdateMethod
type Direction = | Backward = 0 | Forward = 1
type UpdateMenuDirection = | Left | Right | Up | Down member Convert: unit -> objnull override ToString: unit -> string static member convert: (UpdateMenuDirection -> objnull) static member toString: (UpdateMenuDirection -> string)
union case StyleParam.UpdateMenuDirection.Down: StyleParam.UpdateMenuDirection
Multiple items
type Padding = inherit DynamicObj new: unit -> Padding static member init: ?B: int * ?L: int * ?R: int * ?T: int -> Padding static member style: ?B: int * ?L: int * ?R: int * ?T: int -> (Padding -> Padding)

--------------------
new: unit -> Padding
static member Padding.init: ?B: int * ?L: int * ?R: int * ?T: int -> Padding
argument R: int option
<summary> Returns a new Padding object with the given styling. Set the padding of the component along each side </summary>
<param name="B">The amount of padding (in px) along the bottom of the component</param>
<param name="L">The amount of padding (in px) on the left side of the component</param>
<param name="R">The amount of padding (in px) on the right side of the component</param>
<param name="T">The amount of padding (in px) along the top of the component</param>
argument T: int option
<summary> Returns a new Padding object with the given styling. Set the padding of the component along each side </summary>
<param name="B">The amount of padding (in px) along the bottom of the component</param>
<param name="L">The amount of padding (in px) on the left side of the component</param>
<param name="R">The amount of padding (in px) on the right side of the component</param>
<param name="T">The amount of padding (in px) along the top of the component</param>
argument X: float option
type XAnchorPosition = | Auto | Left | Center | Right member Convert: unit -> objnull override ToString: unit -> string static member convert: (XAnchorPosition -> objnull) static member toString: (XAnchorPosition -> string)
union case StyleParam.XAnchorPosition.Left: StyleParam.XAnchorPosition
argument Y: float option
type YAnchorPosition = | Auto | Top | Middle | Bottom member Convert: unit -> objnull override ToString: unit -> string static member convert: (YAnchorPosition -> objnull) static member toString: (YAnchorPosition -> string)
union case StyleParam.YAnchorPosition.Top: StyleParam.YAnchorPosition
val updateChart: GenericChart
type Chart = static member Bubble: x: #IConvertible seq * y: #IConvertible seq * sizes: int seq * ?Name: string * ?ShowLegend: bool * ?Opacity: float * ?MultiOpacity: float seq * ?Text: 'c * ?MultiText: 'c seq * ?TextPosition: TextPosition * ?MultiTextPosition: TextPosition seq * ?MarkerColor: Color * ?MarkerColorScale: Colorscale * ?MarkerOutline: Line * ?MarkerSymbol: MarkerSymbol * ?MultiMarkerSymbol: MarkerSymbol seq * ?Marker: Marker * ?LineColor: Color * ?LineColorScale: Colorscale * ?LineWidth: float * ?LineDash: DrawingStyle * ?Line: Line * ?AlignmentGroup: string * ?OffsetGroup: string * ?StackGroup: string * ?Orientation: Orientation * ?GroupNorm: GroupNorm * ?UseWebGL: bool * ?UseDefaults: bool -> GenericChart (requires 'c :> IConvertible) + 2 overloads static member Line: x: #IConvertible seq * y: #IConvertible seq * ?ShowMarkers: bool * ?Name: string * ?ShowLegend: bool * ?Opacity: float * ?MultiOpacity: float seq * ?Text: 'c * ?MultiText: 'c seq * ?TextPosition: TextPosition * ?MultiTextPosition: TextPosition seq * ?MarkerColor: Color * ?MarkerColorScale: Colorscale * ?MarkerOutline: Line * ?MarkerSymbol: MarkerSymbol * ?MultiMarkerSymbol: MarkerSymbol seq * ?Marker: Marker * ?LineColor: Color * ?LineColorScale: Colorscale * ?LineWidth: float * ?LineDash: DrawingStyle * ?Line: Line * ?AlignmentGroup: string * ?OffsetGroup: string * ?StackGroup: string * ?Orientation: Orientation * ?GroupNorm: GroupNorm * ?Fill: Fill * ?FillColor: Color * ?FillPattern: Pattern * ?UseWebGL: bool * ?UseDefaults: bool -> GenericChart (requires 'c :> IConvertible) + 2 overloads static member Point: x: #IConvertible seq * y: #IConvertible seq * ?Name: string * ?ShowLegend: bool * ?Opacity: float * ?MultiOpacity: float seq * ?Text: 'c * ?MultiText: 'c seq * ?TextPosition: TextPosition * ?MultiTextPosition: TextPosition seq * ?MarkerColor: Color * ?MarkerColorScale: Colorscale * ?MarkerOutline: Line * ?MarkerSymbol: MarkerSymbol * ?MultiMarkerSymbol: MarkerSymbol seq * ?Marker: Marker * ?AlignmentGroup: string * ?OffsetGroup: string * ?StackGroup: string * ?Orientation: Orientation * ?GroupNorm: GroupNorm * ?UseWebGL: bool * ?UseDefaults: bool -> GenericChart (requires 'c :> IConvertible) + 2 overloads static member Range: x: #IConvertible seq * y: #IConvertible seq * upper: #IConvertible seq * lower: #IConvertible seq * mode: Mode * ?Name: string * ?GroupName: string * ?ShowMarkers: bool * ?ShowLegend: bool * ?Text: 'e * ?MultiText: 'e seq * ?TextPosition: TextPosition * ?MultiTextPosition: TextPosition seq * ?MarkerColor: Color * ?MarkerColorScale: Colorscale * ?MarkerOutline: Line * ?MarkerSymbol: MarkerSymbol * ?MultiMarkerSymbol: MarkerSymbol seq * ?Marker: Marker * ?UpperMarker: Marker * ?LowerMarker: Marker * ?LineColor: Color * ?LineColorScale: Colorscale * ?LineWidth: float * ?LineDash: DrawingStyle * ?Line: Line * ?UpperLine: Line * ?LowerLine: Line * ?RangeColor: Color * ?RangePattern: Pattern * ?UpperText: 'f * ?MultiUpperText: 'f seq * ?LowerText: 'g * ?MultiLowerText: 'g seq * ?TextFont: Font * ?LowerName: string * ?UpperName: string * ?UseDefaults: bool -> GenericChart (requires 'e :> IConvertible and 'f :> IConvertible and 'g :> IConvertible) + 2 overloads static member Scatter: ?X: 'a seq * ?XEncoded: EncodedTypedArray * ?MultiX: 'a seq seq * ?Y: 'b seq * ?YEncoded: EncodedTypedArray * ?MultiY: 'b seq seq * ?Mode: Mode * ?Name: string * ?ShowLegend: bool * ?Opacity: float * ?MultiOpacity: float seq * ?Text: 'c * ?MultiText: 'c seq * ?TextPosition: TextPosition * ?MultiTextPosition: TextPosition seq * ?MarkerColor: Color * ?MarkerColorScale: Colorscale * ?MarkerOutline: Line * ?MarkerSymbol: MarkerSymbol * ?MultiMarkerSymbol: MarkerSymbol seq * ?Marker: Marker * ?LineColor: Color * ?LineColorScale: Colorscale * ?LineWidth: float * ?LineDash: DrawingStyle * ?Line: Line * ?AlignmentGroup: string * ?OffsetGroup: string * ?StackGroup: string * ?Orientation: Orientation * ?GroupNorm: GroupNorm * ?Fill: Fill * ?FillColor: Color * ?FillPattern: Pattern * ?UseWebGL: bool * ?UseDefaults: bool -> GenericChart (requires 'a :> IConvertible and 'b :> IConvertible and 'c :> IConvertible) + 3 overloads static member Spline: x: #IConvertible seq * y: #IConvertible seq * ?ShowMarkers: bool * ?Smoothing: float * ?Name: string * ?ShowLegend: bool * ?Opacity: float * ?MultiOpacity: float seq * ?Text: 'c * ?MultiText: 'c seq * ?TextPosition: TextPosition * ?MultiTextPosition: TextPosition seq * ?MarkerColor: Color * ?MarkerColorScale: Colorscale * ?MarkerOutline: Line * ?MarkerSymbol: MarkerSymbol * ?MultiMarkerSymbol: MarkerSymbol seq * ?Marker: Marker * ?LineColor: Color * ?LineColorScale: Colorscale * ?LineWidth: float * ?LineDash: DrawingStyle * ?Line: Line * ?AlignmentGroup: string * ?OffsetGroup: string * ?StackGroup: string * ?Orientation: Orientation * ?GroupNorm: GroupNorm * ?Fill: Fill * ?FillColor: Color * ?FillPattern: Pattern * ?UseWebGL: bool * ?UseDefaults: bool -> GenericChart (requires 'c :> IConvertible) + 2 overloads
static member Chart.Surface: zEncoded: EncodedTypedArray * ?xEncoded: EncodedTypedArray * ?yEncoded: EncodedTypedArray * ?Name: string * ?ShowLegend: bool * ?Opacity: float * ?Text: 'a * ?MultiText: 'a seq * ?Contours: TraceObjects.Contours * ?ColorScale: StyleParam.Colorscale * ?ShowScale: bool * ?CameraProjectionType: StyleParam.CameraProjectionType * ?Camera: Camera * ?UseDefaults: bool -> GenericChart (requires 'a :> System.IConvertible)
static member Chart.Surface: zData: #seq<'b> seq * ?X: #System.IConvertible seq * ?Y: #System.IConvertible seq * ?Name: string * ?ShowLegend: bool * ?Opacity: float * ?Text: 'e * ?MultiText: 'e seq * ?Contours: TraceObjects.Contours * ?ColorScale: StyleParam.Colorscale * ?ShowScale: bool * ?CameraProjectionType: StyleParam.CameraProjectionType * ?Camera: Camera * ?UseDefaults: bool -> GenericChart (requires 'b :> System.IConvertible and 'e :> System.IConvertible)
static member Chart.withUpdateMenu: updateMenu: UpdateMenu * ?Append: bool -> (GenericChart -> GenericChart)
static member Chart.withAnnotation: annotation: Annotation * ?Append: bool -> (GenericChart -> GenericChart)
Multiple items
type Annotation = inherit DynamicObj new: unit -> Annotation static member init: ?X: #IConvertible * ?Y: #IConvertible * ?Align: AnnotationAlignment * ?ArrowColor: Color * ?ArrowHead: ArrowHead * ?ArrowSide: ArrowSide * ?ArrowSize: float * ?AX: #IConvertible * ?AXRef: #IConvertible * ?AY: #IConvertible * ?AYRef: #IConvertible * ?BGColor: Color * ?BorderColor: Color * ?BorderPad: int * ?BorderWidth: int * ?CaptureEvents: bool * ?ClickToShow: ClickToShow * ?Font: Font * ?Height: int * ?HoverLabel: Hoverlabel * ?HoverText: string * ?Name: string * ?Opacity: float * ?ShowArrow: bool * ?StandOff: int * ?StartArrowHead: int * ?StartArrowSize: float * ?StartStandOff: int * ?TemplateItemName: string * ?Text: string * ?TextAngle: float * ?VAlign: VerticalAlign * ?Visible: bool * ?Width: int * ?XAnchor: XAnchorPosition * ?XClick: #IConvertible * ?XRef: #IConvertible * ?XShift: int * ?YAnchor: YAnchorPosition * ?YClick: #IConvertible * ?YRef: #IConvertible * ?YShift: int -> Annotation static member style: ?X: #IConvertible * ?Y: #IConvertible * ?Align: AnnotationAlignment * ?ArrowColor: Color * ?ArrowHead: ArrowHead * ?ArrowSide: ArrowSide * ?ArrowSize: float * ?AX: #IConvertible * ?AXRef: #IConvertible * ?AY: #IConvertible * ?AYRef: #IConvertible * ?BGColor: Color * ?BorderColor: Color * ?BorderPad: int * ?BorderWidth: int * ?CaptureEvents: bool * ?ClickToShow: ClickToShow * ?Font: Font * ?Height: int * ?HoverLabel: Hoverlabel * ?HoverText: string * ?Name: string * ?Opacity: float * ?ShowArrow: bool * ?StandOff: int * ?StartArrowHead: int * ?StartArrowSize: float * ?StartStandOff: int * ?TemplateItemName: string * ?Text: string * ?TextAngle: float * ?VAlign: VerticalAlign * ?Visible: bool * ?Width: int * ?XAnchor: XAnchorPosition * ?XClick: #IConvertible * ?XRef: #IConvertible * ?XShift: int * ?YAnchor: YAnchorPosition * ?YClick: #IConvertible * ?YRef: #IConvertible * ?YShift: int -> (Annotation -> Annotation)
<summary> Text annotations inside a plot </summary>

--------------------
new: unit -> Annotation
static member Annotation.init: ?X: #System.IConvertible * ?Y: #System.IConvertible * ?Align: StyleParam.AnnotationAlignment * ?ArrowColor: Color * ?ArrowHead: StyleParam.ArrowHead * ?ArrowSide: StyleParam.ArrowSide * ?ArrowSize: float * ?AX: #System.IConvertible * ?AXRef: #System.IConvertible * ?AY: #System.IConvertible * ?AYRef: #System.IConvertible * ?BGColor: Color * ?BorderColor: Color * ?BorderPad: int * ?BorderWidth: int * ?CaptureEvents: bool * ?ClickToShow: StyleParam.ClickToShow * ?Font: Font * ?Height: int * ?HoverLabel: Hoverlabel * ?HoverText: string * ?Name: string * ?Opacity: float * ?ShowArrow: bool * ?StandOff: int * ?StartArrowHead: int * ?StartArrowSize: float * ?StartStandOff: int * ?TemplateItemName: string * ?Text: string * ?TextAngle: float * ?VAlign: StyleParam.VerticalAlign * ?Visible: bool * ?Width: int * ?XAnchor: StyleParam.XAnchorPosition * ?XClick: #System.IConvertible * ?XRef: #System.IConvertible * ?XShift: int * ?YAnchor: StyleParam.YAnchorPosition * ?YClick: #System.IConvertible * ?YRef: #System.IConvertible * ?YShift: int -> Annotation
argument X: int option
<summary> Init Annotation type </summary>
argument Y: float option
<summary> Init Annotation type </summary>
type AnnotationAlignment = | Left | Center | Right member Convert: unit -> objnull override ToString: unit -> string static member convert: (AnnotationAlignment -> objnull) static member toString: (AnnotationAlignment -> string)
union case StyleParam.AnnotationAlignment.Left: StyleParam.AnnotationAlignment
static member Chart.withScene: scene: Scene * ?Id: int -> (GenericChart -> GenericChart)
Multiple items
type Scene = inherit DynamicObj new: unit -> Scene static member getXAxis: scene: Scene -> LinearAxis static member getYAxis: scene: Scene -> LinearAxis static member getZAxis: scene: Scene -> LinearAxis static member init: ?Annotations: Annotation seq * ?AspectMode: AspectMode * ?AspectRatio: AspectRatio * ?BGColor: Color * ?Camera: Camera * ?Domain: Domain * ?DragMode: DragMode * ?HoverMode: HoverMode * ?UIRevision: string * ?XAxis: LinearAxis * ?YAxis: LinearAxis * ?ZAxis: LinearAxis -> Scene static member setXAxis: xAxis: LinearAxis -> (Scene -> Scene) static member setYAxis: yAxis: LinearAxis -> (Scene -> Scene) static member setZAxis: zAxis: LinearAxis -> (Scene -> Scene) static member style: ?Annotations: Annotation seq * ?AspectMode: AspectMode * ?AspectRatio: AspectRatio * ?BGColor: Color * ?Camera: Camera * ?Domain: Domain * ?DragMode: DragMode * ?HoverMode: HoverMode * ?UIRevision: string * ?XAxis: LinearAxis * ?YAxis: LinearAxis * ?ZAxis: LinearAxis -> (Scene -> Scene) ...
<summary> Scene </summary>

--------------------
new: unit -> Scene
static member Scene.init: ?Annotations: Annotation seq * ?AspectMode: StyleParam.AspectMode * ?AspectRatio: AspectRatio * ?BGColor: Color * ?Camera: Camera * ?Domain: Domain * ?DragMode: StyleParam.DragMode * ?HoverMode: StyleParam.HoverMode * ?UIRevision: string * ?XAxis: LinearAxis * ?YAxis: LinearAxis * ?ZAxis: LinearAxis -> Scene
Multiple items
type AspectRatio = inherit DynamicObj new: unit -> AspectRatio static member init: ?X: float * ?Y: float * ?Z: float -> AspectRatio static member style: ?X: float * ?Y: float * ?Z: float -> (AspectRatio -> AspectRatio)

--------------------
new: unit -> AspectRatio
static member AspectRatio.init: ?X: float * ?Y: float * ?Z: float -> AspectRatio
argument Z: float option
type AspectMode = | Auto | Cube | Data | Manual member Convert: unit -> objnull override ToString: unit -> string static member convert: (AspectMode -> objnull) static member toString: (AspectMode -> string)
union case StyleParam.AspectMode.Manual: StyleParam.AspectMode
static member Chart.withLayoutStyle: ?Title: Title * ?ShowLegend: bool * ?Margin: Margin * ?AutoSize: bool * ?Width: int * ?Height: int * ?Font: Font * ?UniformText: UniformText * ?Separators: string * ?PaperBGColor: Color * ?PlotBGColor: Color * ?AutoTypeNumbers: StyleParam.AutoTypeNumbers * ?Colorscale: DefaultColorScales * ?Colorway: Color * ?ModeBar: ModeBar * ?HoverMode: StyleParam.HoverMode * ?ClickMode: StyleParam.ClickMode * ?DragMode: StyleParam.DragMode * ?SelectDirection: StyleParam.SelectDirection * ?ActiveSelection: ActiveSelection * ?NewSelection: NewSelection * ?HoverDistance: int * ?SpikeDistance: int * ?Hoverlabel: Hoverlabel * ?Transition: Transition * ?DataRevision: string * ?UIRevision: string * ?EditRevision: string * ?SelectRevision: string * ?Template: DynamicObj.DynamicObj * ?Meta: string * ?Computed: string * ?Grid: LayoutGrid * ?Calendar: StyleParam.Calendar * ?MinReducedHeight: int * ?MinReducedWidth: int * ?NewShape: NewShape * ?ActiveShape: ActiveShape * ?HideSources: bool * ?ScatterGap: float * ?ScatterMode: StyleParam.ScatterMode * ?BarGap: float * ?BarGroupGap: float * ?BarMode: StyleParam.BarMode * ?BarNorm: StyleParam.BarNorm * ?ExtendPieColors: bool * ?HiddenLabels: #System.IConvertible seq * ?PieColorWay: Color * ?BoxGap: float * ?BoxGroupGap: float * ?BoxMode: StyleParam.BoxMode * ?ViolinGap: float * ?ViolinGroupGap: float * ?ViolinMode: StyleParam.ViolinMode * ?WaterfallGap: float * ?WaterfallGroupGap: float * ?WaterfallMode: StyleParam.WaterfallMode * ?FunnelGap: float * ?FunnelGroupGap: float * ?FunnelMode: StyleParam.FunnelMode * ?ExtendFunnelAreaColors: bool * ?FunnelAreaColorWay: Color * ?ExtendSunBurstColors: bool * ?SunBurstColorWay: Color * ?ExtendTreeMapColors: bool * ?TreeMapColorWay: Color * ?ExtendIcicleColors: bool * ?IcicleColorWay: Color * ?Annotations: Annotation seq * ?Shapes: Shape seq * ?Selections: Selection seq * ?Images: LayoutImage seq * ?Sliders: Slider seq * ?UpdateMenus: UpdateMenu seq -> (GenericChart -> GenericChart)
Multiple items
type Margin = inherit DynamicObj new: unit -> Margin static member init: ?Left: 'a * ?Right: 'b * ?Top: 'c * ?Bottom: 'd * ?Pad: 'e * ?Autoexpand: 'f -> Margin static member style: ?Left: 'a * ?Right: 'b * ?Top: 'c * ?Bottom: 'd * ?Pad: 'e * ?Autoexpand: 'f -> (Margin -> Margin)
<summary> Margin </summary>

--------------------
new: unit -> Margin
static member Margin.init: ?Left: 'a * ?Right: 'b * ?Top: 'c * ?Bottom: 'd * ?Pad: 'e * ?Autoexpand: 'f -> Margin
type GenericChart = | Chart of data: Trace * layout: Layout * config: Config * displayOpts: DisplayOptions | MultiChart of data: Trace list * layout: Layout * config: Config * displayOpts: DisplayOptions static member addConfig: config: Config -> gChart: GenericChart -> GenericChart static member addDisplayOptions: displayOpts: DisplayOptions -> gChart: GenericChart -> GenericChart static member addLayout: layout: Layout -> gChart: GenericChart -> GenericChart static member combine: gCharts: GenericChart seq -> GenericChart static member countTrace: gChart: GenericChart -> int static member existsTrace: predicate: (Trace -> bool) -> gChart: GenericChart -> bool static member fromChartDTO: dto: ChartDTO -> GenericChart static member fromFigure: fig: Figure -> GenericChart static member getConfig: gChart: GenericChart -> Config static member getDisplayOptions: gChart: GenericChart -> DisplayOptions ...
<summary> The central type that gets created by all Chart constructors is GenericChart, which itself represents either a single chart or a multi chart (as a Discriminate Union type). A GenericChart consists of four top level objects: Trace (multiple of those in the case of a MultiChart), Layout, Config, and DisplayOptions. - `Trace` is in principle the representation of a dataset on a chart, including for example the data itself, color and shape of the visualization, etc. - `Layout` is everything of the chart that is not dataset specific - e.g. the shape and style of axes, the chart title, etc. - `Config` is an object that configures high level properties of the chart like making all chart elements editable or the tool bar on top - `DisplayOptions` is an object that contains meta information about how the html document that contains the chart. </summary>
static member GenericChart.toChartHTML: gChart: GenericChart -> string

Type something to start searching.