From 45573e38b2488754a776cd2bcf38d656c83f37f9 Mon Sep 17 00:00:00 2001 From: Greg Wilson Date: Mon, 16 Sep 2024 09:56:06 -0400 Subject: [PATCH 01/36] updating year(s) in license --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 58ccc3853..749ceed74 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright 2016-2023 Kevin Schneider, Timo Mühlhaus +Copyright 2016-2024 Kevin Schneider, Timo Mühlhaus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: From cdacd3b3a2fa56b0585d690c02a738cb59379577 Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Thu, 26 Sep 2024 10:58:08 +0200 Subject: [PATCH 02/36] wip replace obsolete DynObj functions --- .../CSharpLayer/GenericChartExtensions.fs | 6 +- src/Plotly.NET/ChartAPI/Chart.fs | 26 +- src/Plotly.NET/ChartAPI/GenericChart.fs | 2 +- .../CommonAbstractions/AutoRangeOptions.fs | 14 +- src/Plotly.NET/CommonAbstractions/ColorBar.fs | 96 +- src/Plotly.NET/CommonAbstractions/Font.fs | 11 +- src/Plotly.NET/CommonAbstractions/Line.fs | 43 +- src/Plotly.NET/CommonAbstractions/Padding.fs | 11 +- .../CommonAbstractions/TickFormatStop.fs | 15 +- src/Plotly.NET/CommonAbstractions/Title.fs | 31 +- src/Plotly.NET/Config/Config.fs | 90 +- .../Config/ObjectAbstractions/Edits.fs | 20 +- .../ToImageButtonOptions.fs | 10 +- .../DisplayOptions/DisplayOptions.fs | 50 +- src/Plotly.NET/InternalUtils.fs | 58 +- src/Plotly.NET/Layout/Layout.fs | 317 ++-- .../ObjectAbstractions/3D/AspectRatio.fs | 6 +- .../Layout/ObjectAbstractions/3D/Camera.fs | 28 +- .../Layout/ObjectAbstractions/3D/Scene.fs | 26 +- .../Common/ActiveSelection.fs | 4 +- .../ObjectAbstractions/Common/ActiveShape.fs | 4 +- .../ObjectAbstractions/Common/Annotation.fs | 84 +- .../ObjectAbstractions/Common/Button.fs | 14 +- .../ObjectAbstractions/Common/ColorAxis.fs | 18 +- .../Common/DefaultColorScales.fs | 6 +- .../ObjectAbstractions/Common/Domain.fs | 8 +- .../ObjectAbstractions/Common/Hoverlabel.fs | 12 +- .../ObjectAbstractions/Common/LayoutGrid.fs | 24 +- .../ObjectAbstractions/Common/LayoutImage.fs | 30 +- .../ObjectAbstractions/Common/Legend.fs | 50 +- .../ObjectAbstractions/Common/LinearAxis.fs | 208 +-- .../ObjectAbstractions/Common/Margin.fs | 12 +- .../Layout/ObjectAbstractions/Common/Minor.fs | 26 +- .../ObjectAbstractions/Common/ModeBar.fs | 14 +- .../ObjectAbstractions/Common/NewSelection.fs | 4 +- .../ObjectAbstractions/Common/NewShape.fs | 30 +- .../Common/RangeSelector.fs | 22 +- .../ObjectAbstractions/Common/RangeSlider.fs | 20 +- .../ObjectAbstractions/Common/Rangebreak.fs | 14 +- .../ObjectAbstractions/Common/Selection.fs | 24 +- .../Layout/ObjectAbstractions/Common/Shape.fs | 58 +- .../ObjectAbstractions/Common/ShapeLabel.fs | 16 +- .../Common/Slider/Slider.fs | 46 +- .../Common/Slider/SliderCurrentValue.fs | 12 +- .../Common/Slider/SliderStep.fs | 16 +- .../ObjectAbstractions/Common/Transition.fs | 6 +- .../ObjectAbstractions/Common/UniformText.fs | 4 +- .../ObjectAbstractions/Common/UpdateMenu.fs | 48 +- .../Layout/ObjectAbstractions/Map/Geo.fs | 62 +- .../ObjectAbstractions/Map/GeoProjection.fs | 14 +- .../Layout/ObjectAbstractions/Map/Mapbox.fs | 18 +- .../ObjectAbstractions/Map/MapboxBounds.fs | 8 +- .../ObjectAbstractions/Map/MapboxCluster.fs | 12 +- .../ObjectAbstractions/Map/MapboxLayer.fs | 34 +- .../Map/MapboxLayerSymbol.fs | 12 +- .../ObjectAbstractions/Polar/AngularAxis.fs | 90 +- .../Layout/ObjectAbstractions/Polar/Polar.fs | 22 +- .../ObjectAbstractions/Polar/RadialAxis.fs | 102 +- .../ObjectAbstractions/Smith/ImaginaryAxis.fs | 48 +- .../ObjectAbstractions/Smith/RealAxis.fs | 52 +- .../Layout/ObjectAbstractions/Smith/Smith.fs | 10 +- .../ObjectAbstractions/Ternary/Ternary.fs | 14 +- src/Plotly.NET/Plotly.NET.fsproj | 4 +- src/Plotly.NET/Templates/ChartTemplates.fs | 8 +- src/Plotly.NET/Templates/Template.fs | 12 +- .../Traces/ObjectAbstractions/Bins.fs | 6 +- .../Traces/ObjectAbstractions/Box.fs | 8 +- .../Traces/ObjectAbstractions/Caps.fs | 10 +- .../Traces/ObjectAbstractions/Contours.fs | 56 +- .../Traces/ObjectAbstractions/Cumulative.fs | 6 +- .../Traces/ObjectAbstractions/Dimensions.fs | 26 +- .../Traces/ObjectAbstractions/Error.fs | 26 +- .../ObjectAbstractions/FinanceMarker.fs | 6 +- .../ObjectAbstractions/FunnelConnector.fs | 6 +- .../Traces/ObjectAbstractions/Gradient.fs | 4 +- .../Traces/ObjectAbstractions/Icicle.fs | 10 +- .../Traces/ObjectAbstractions/Indicator.fs | 70 +- .../Traces/ObjectAbstractions/Lighting.fs | 20 +- .../Traces/ObjectAbstractions/Marker.fs | 54 +- .../Traces/ObjectAbstractions/MeanLine.fs | 6 +- .../Traces/ObjectAbstractions/Pathbar.fs | 10 +- .../Traces/ObjectAbstractions/Pattern.fs | 12 +- .../Traces/ObjectAbstractions/Projection.fs | 12 +- .../Traces/ObjectAbstractions/Sankey.fs | 62 +- .../Traces/ObjectAbstractions/Slices.fs | 12 +- .../Traces/ObjectAbstractions/SpaceFrame.fs | 4 +- .../ObjectAbstractions/SplomDiagonal.fs | 2 +- .../ObjectAbstractions/StreamTubeStarts.fs | 6 +- .../Traces/ObjectAbstractions/Sunburst.fs | 4 +- .../Traces/ObjectAbstractions/Surface.fs | 8 +- .../Traces/ObjectAbstractions/Table.fs | 18 +- .../ObjectAbstractions/TraceSelection.fs | 18 +- .../Traces/ObjectAbstractions/Treemap.fs | 12 +- .../ObjectAbstractions/WaterfallConnector.fs | 6 +- src/Plotly.NET/Traces/Trace.fs | 32 +- src/Plotly.NET/Traces/Trace2D.fs | 1474 ++++++++--------- src/Plotly.NET/Traces/Trace3D.fs | 638 +++---- src/Plotly.NET/Traces/TraceCarpet.fs | 210 +-- src/Plotly.NET/Traces/TraceDomain.fs | 534 +++--- src/Plotly.NET/Traces/TraceGeo.fs | 144 +- src/Plotly.NET/Traces/TraceMapbox.fs | 204 +-- src/Plotly.NET/Traces/TracePolar.fs | 142 +- src/Plotly.NET/Traces/TraceSmith.fs | 68 +- src/Plotly.NET/Traces/TraceTernary.fs | 72 +- 104 files changed, 3117 insertions(+), 3117 deletions(-) diff --git a/src/Plotly.NET/CSharpLayer/GenericChartExtensions.fs b/src/Plotly.NET/CSharpLayer/GenericChartExtensions.fs index cf346c11a..e9d085d22 100644 --- a/src/Plotly.NET/CSharpLayer/GenericChartExtensions.fs +++ b/src/Plotly.NET/CSharpLayer/GenericChartExtensions.fs @@ -426,7 +426,7 @@ module GenericChartExtensions = member this.withColorBar(colorbar: ColorBar) = this |> GenericChart.mapTrace (fun t -> - colorbar |> DynObj.setValue t "colorbar" + colorbar |> DynObj.withProperty t "colorbar" t) [] @@ -805,7 +805,7 @@ module GenericChartExtensions = let updatedGrid = let currentGrid = - match layout.TryGetTypedValue "grid" with + match layout.TryGetTypedPropertyValue "grid" with | Some grid -> grid | None -> LayoutGrid() @@ -913,7 +913,7 @@ module GenericChartExtensions = member this.WithTemplate(template: Template) = this |> GenericChart.mapLayout (fun l -> - template |> DynObj.setValue l "template" + template |> DynObj.withProperty l "template" l) // TODO: Include withLegend & withLegendStyle diff --git a/src/Plotly.NET/ChartAPI/Chart.fs b/src/Plotly.NET/ChartAPI/Chart.fs index 151c896ea..b603e28fa 100644 --- a/src/Plotly.NET/ChartAPI/Chart.fs +++ b/src/Plotly.NET/ChartAPI/Chart.fs @@ -2746,7 +2746,7 @@ type Chart = let layout = GenericChart.getLayout ch - layout.TryGetTypedValue>("annotations") + layout.TryGetTypedPropertyValue>("annotations") |> Option.defaultValue Seq.empty |> Seq.append annotations @@ -2857,7 +2857,7 @@ type Chart = let layout = GenericChart.getLayout ch - layout.TryGetTypedValue>("shapes") |> Option.defaultValue Seq.empty |> Seq.append shapes + layout.TryGetTypedPropertyValue>("shapes") |> Option.defaultValue Seq.empty |> Seq.append shapes else shapes @@ -2885,7 +2885,7 @@ type Chart = let layout = GenericChart.getLayout ch - layout.TryGetTypedValue>("selections") + layout.TryGetTypedPropertyValue>("selections") |> Option.defaultValue Seq.empty |> Seq.append selections @@ -3219,10 +3219,10 @@ type Chart = | TraceID.Carpet -> let xAxis = - layout.TryGetTypedValue "xaxis" |> Option.defaultValue (LinearAxis.init ()) + layout.TryGetTypedPropertyValue "xaxis" |> Option.defaultValue (LinearAxis.init ()) let yAxis = - layout.TryGetTypedValue "yaxis" |> Option.defaultValue (LinearAxis.init ()) + layout.TryGetTypedPropertyValue "yaxis" |> Option.defaultValue (LinearAxis.init ()) let allXAxes = Layout.getXAxes layout |> Seq.map fst let allYAxes = Layout.getYAxes layout |> Seq.map fst @@ -3245,7 +3245,7 @@ type Chart = | TraceID.Cartesian3D -> let scene = - layout.TryGetTypedValue "scene" + layout.TryGetTypedPropertyValue "scene" |> Option.defaultValue (Scene.init ()) |> Scene.style (Domain = LayoutObjects.Domain.init (Row = rowIndex - 1, Column = colIndex - 1)) @@ -3263,7 +3263,7 @@ type Chart = | TraceID.Polar -> let polar = - layout.TryGetTypedValue "polar" + layout.TryGetTypedPropertyValue "polar" |> Option.defaultValue (Polar.init ()) |> Polar.style (Domain = LayoutObjects.Domain.init (Row = rowIndex - 1, Column = colIndex - 1)) @@ -3283,7 +3283,7 @@ type Chart = | TraceID.Smith -> let smith = - layout.TryGetTypedValue "smith" + layout.TryGetTypedPropertyValue "smith" |> Option.defaultValue (Smith.init ()) |> Smith.style (Domain = LayoutObjects.Domain.init (Row = rowIndex - 1, Column = colIndex - 1)) @@ -3302,7 +3302,7 @@ type Chart = | TraceID.Geo -> let geo = - layout.TryGetTypedValue "geo" + layout.TryGetTypedPropertyValue "geo" |> Option.defaultValue (Geo.init ()) |> Geo.style (Domain = LayoutObjects.Domain.init (Row = rowIndex - 1, Column = colIndex - 1)) @@ -3320,7 +3320,7 @@ type Chart = | TraceID.Mapbox -> let mapbox = - layout.TryGetTypedValue "mapbox" + layout.TryGetTypedPropertyValue "mapbox" |> Option.defaultValue (Mapbox.init ()) |> Mapbox.style ( Domain = LayoutObjects.Domain.init (Row = rowIndex - 1, Column = colIndex - 1) @@ -3345,7 +3345,7 @@ type Chart = | TraceID.Ternary -> let ternary = - layout.TryGetTypedValue "ternary" + layout.TryGetTypedPropertyValue "ternary" |> Option.defaultValue (Ternary.init ()) |> Ternary.style ( Domain = LayoutObjects.Domain.init (Row = rowIndex - 1, Column = colIndex - 1) @@ -3612,7 +3612,7 @@ type Chart = let layout = GenericChart.getLayout ch - layout.TryGetTypedValue>("images") + layout.TryGetTypedPropertyValue>("images") |> Option.defaultValue Seq.empty |> Seq.append images @@ -3647,7 +3647,7 @@ type Chart = let layout = GenericChart.getLayout ch - layout.TryGetTypedValue>("updatemenus") + layout.TryGetTypedPropertyValue>("updatemenus") |> Option.defaultValue Seq.empty |> Seq.append updateMenus diff --git a/src/Plotly.NET/ChartAPI/GenericChart.fs b/src/Plotly.NET/ChartAPI/GenericChart.fs index 8bcf86fb0..e8c9ad6bc 100644 --- a/src/Plotly.NET/ChartAPI/GenericChart.fs +++ b/src/Plotly.NET/ChartAPI/GenericChart.fs @@ -162,7 +162,7 @@ type GenericChart = /// the input GenericChart to get the layout size from static member tryGetLayoutSize gChart = let layout = GenericChart.getLayout gChart - layout.TryGetTypedValue "width", layout.TryGetTypedValue "height" + layout.TryGetTypedPropertyValue "width", layout.TryGetTypedPropertyValue "height" /// /// Returns the config of a given GenericChart. diff --git a/src/Plotly.NET/CommonAbstractions/AutoRangeOptions.fs b/src/Plotly.NET/CommonAbstractions/AutoRangeOptions.fs index 6065e752a..be571d0f2 100644 --- a/src/Plotly.NET/CommonAbstractions/AutoRangeOptions.fs +++ b/src/Plotly.NET/CommonAbstractions/AutoRangeOptions.fs @@ -52,10 +52,10 @@ type AutoRangeOptions() = ) = (fun (autoRangeOptions: AutoRangeOptions) -> - ClipMax |> DynObj.setValueOpt autoRangeOptions "clipmax" - ClipMin |> DynObj.setValueOpt autoRangeOptions "clipmin" - Include |> DynObj.setValueOpt autoRangeOptions "include" - MaxAllowed |> DynObj.setValueOpt autoRangeOptions "maxallowed" - MinAllowed |> DynObj.setValueOpt autoRangeOptions "minallowed" - - autoRangeOptions) \ No newline at end of file + autoRangeOptions + |> DynObj.withOptionalProperty "clipmax" ClipMax + |> DynObj.withOptionalProperty "clipmin" ClipMin + |> DynObj.withOptionalProperty "include" Include + |> DynObj.withOptionalProperty "maxallowed" MaxAllowed + |> DynObj.withOptionalProperty "minallowed" MinAllowed + ) \ No newline at end of file diff --git a/src/Plotly.NET/CommonAbstractions/ColorBar.fs b/src/Plotly.NET/CommonAbstractions/ColorBar.fs index 91bc1475c..1451213bc 100644 --- a/src/Plotly.NET/CommonAbstractions/ColorBar.fs +++ b/src/Plotly.NET/CommonAbstractions/ColorBar.fs @@ -254,52 +254,52 @@ type ColorBar() = ) = (fun (colorBar: ColorBar) -> + colorBar + |> DynObj.withOptionalProperty "bgcolor" BGColor + |> DynObj.withOptionalProperty "bordercolor" BorderColor + |> DynObj.withOptionalProperty "borderwidth" BorderWidth + |> DynObj.withOptionalProperty "dtick" DTick + |> DynObj.withOptionalPropertyBy "exponentformat" ExponentFormat StyleParam.ExponentFormat.convert + |> DynObj.withOptionalProperty "labelalias" LabelAlias + |> DynObj.withOptionalProperty "len" Len + |> DynObj.withOptionalPropertyBy "lenmode" LenMode StyleParam.UnitMode.convert + |> DynObj.withOptionalProperty "min3xponent" MinExponent + |> DynObj.withOptionalProperty "nticks" NTicks + |> DynObj.withOptionalPropertyBy "orientation" Orientation StyleParam.Orientation.convert + |> DynObj.withOptionalProperty "outlinecolor" OutlineColor + |> DynObj.withOptionalProperty "outlinewidth" OutlineWidth + |> DynObj.withOptionalProperty "separatethousands" SeparateThousands + |> DynObj.withOptionalPropertyBy "showexponent" ShowExponent StyleParam.ShowExponent.convert + |> DynObj.withOptionalProperty "showticklabels" ShowTickLabels + |> DynObj.withOptionalPropertyBy "showtickprefix" ShowTickPrefix StyleParam.ShowTickOption.convert + |> DynObj.withOptionalPropertyBy "showticksuffix" ShowTickSuffix StyleParam.ShowTickOption.convert + |> DynObj.withOptionalProperty "thickness" Thickness + |> DynObj.withOptionalPropertyBy "thicknessmode" ThicknessMode StyleParam.UnitMode.convert + |> DynObj.withOptionalProperty "tick0" Tick0 + |> DynObj.withOptionalProperty "tickangle" TickAngle + |> DynObj.withOptionalProperty "tickcolor" TickColor + |> DynObj.withOptionalProperty "tickfont" TickFont + |> DynObj.withOptionalProperty "tickformat" TickFormat + |> DynObj.withOptionalProperty "tickformatstops" TickFormatStops + |> DynObj.withOptionalPropertyBy "ticklabeloverflow" TickLabelOverflow StyleParam.TickLabelOverflow.convert + |> DynObj.withOptionalPropertyBy "ticklabelposition" TickLabelPosition StyleParam.TickLabelPosition.convert + |> DynObj.withOptionalProperty "ticklabelstep" TickLabelStep + |> DynObj.withOptionalProperty "ticklen" TickLen + |> DynObj.withOptionalPropertyBy "tickmode" TickMode StyleParam.TickMode.convert + |> DynObj.withOptionalProperty "tickprefix" TickPrefix + |> DynObj.withOptionalPropertyBy "ticks" Ticks StyleParam.TickOptions.convert + |> DynObj.withOptionalProperty "ticksuffix" TickSuffix + |> DynObj.withOptionalProperty "ticktext" TickText + |> DynObj.withOptionalProperty "tickvals" TickVals + |> DynObj.withOptionalProperty "tickwidth" TickWidth + |> DynObj.withOptionalProperty "title" Title + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalPropertyBy "xanchor" XAnchor StyleParam.HorizontalAlign.convert + |> DynObj.withOptionalProperty "xpad" XPad + |> DynObj.withOptionalProperty "xref" XRef + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalPropertyBy "yanchor" YAnchor StyleParam.VerticalAlign.convert + |> DynObj.withOptionalProperty "ypad" YPad + |> DynObj.withOptionalProperty "yref" YRef - BGColor |> DynObj.setValueOpt colorBar "bgcolor" - BorderColor |> DynObj.setValueOpt colorBar "bordercolor" - BorderWidth |> DynObj.setValueOpt colorBar "borderwidth" - DTick |> DynObj.setValueOpt colorBar "dtick" - ExponentFormat |> DynObj.setValueOptBy colorBar "exponentformat" StyleParam.ExponentFormat.convert - LabelAlias |> DynObj.setValueOpt colorBar "labelalias" - Len |> DynObj.setValueOpt colorBar "len" - LenMode |> DynObj.setValueOptBy colorBar "lenmode" StyleParam.UnitMode.convert - MinExponent |> DynObj.setValueOpt colorBar "min3xponent" - NTicks |> DynObj.setValueOpt colorBar "nticks" - Orientation |> DynObj.setValueOptBy colorBar "orientation" StyleParam.Orientation.convert - OutlineColor |> DynObj.setValueOpt colorBar "outlinecolor" - OutlineWidth |> DynObj.setValueOpt colorBar "outlinewidth" - SeparateThousands |> DynObj.setValueOpt colorBar "separatethousands" - ShowExponent |> DynObj.setValueOptBy colorBar "showexponent" StyleParam.ShowExponent.convert - ShowTickLabels |> DynObj.setValueOpt colorBar "showticklabels" - ShowTickPrefix |> DynObj.setValueOptBy colorBar "showtickprefix" StyleParam.ShowTickOption.convert - ShowTickSuffix |> DynObj.setValueOptBy colorBar "showticksuffix" StyleParam.ShowTickOption.convert - Thickness |> DynObj.setValueOpt colorBar "thickness" - ThicknessMode |> DynObj.setValueOptBy colorBar "thicknessmode" StyleParam.UnitMode.convert - Tick0 |> DynObj.setValueOpt colorBar "tick0" - TickAngle |> DynObj.setValueOpt colorBar "tickangle" - TickColor |> DynObj.setValueOpt colorBar "tickcolor" - TickFont |> DynObj.setValueOpt colorBar "tickfont" - TickFormat |> DynObj.setValueOpt colorBar "tickformat" - TickFormatStops |> DynObj.setValueOpt colorBar "tickformatstops" - TickLabelOverflow |> DynObj.setValueOptBy colorBar "ticklabeloverflow" StyleParam.TickLabelOverflow.convert - TickLabelPosition |> DynObj.setValueOptBy colorBar "ticklabelposition" StyleParam.TickLabelPosition.convert - TickLabelStep |> DynObj.setValueOpt colorBar "ticklabelstep" - TickLen |> DynObj.setValueOpt colorBar "ticklen" - TickMode |> DynObj.setValueOptBy colorBar "tickmode" StyleParam.TickMode.convert - TickPrefix |> DynObj.setValueOpt colorBar "tickprefix" - Ticks |> DynObj.setValueOptBy colorBar "ticks" StyleParam.TickOptions.convert - TickSuffix |> DynObj.setValueOpt colorBar "ticksuffix" - TickText |> DynObj.setValueOpt colorBar "ticktext" - TickVals |> DynObj.setValueOpt colorBar "tickvals" - TickWidth |> DynObj.setValueOpt colorBar "tickwidth" - Title |> DynObj.setValueOpt colorBar "title" - X |> DynObj.setValueOpt colorBar "x" - XAnchor |> DynObj.setValueOptBy colorBar "xanchor" StyleParam.HorizontalAlign.convert - XPad |> DynObj.setValueOpt colorBar "xpad" - XRef |> DynObj.setValueOpt colorBar "xref" - Y |> DynObj.setValueOpt colorBar "y" - YAnchor |> DynObj.setValueOptBy colorBar "yanchor" StyleParam.VerticalAlign.convert - YPad |> DynObj.setValueOpt colorBar "ypad" - YRef |> DynObj.setValueOpt colorBar "yref" - - colorBar) + ) diff --git a/src/Plotly.NET/CommonAbstractions/Font.fs b/src/Plotly.NET/CommonAbstractions/Font.fs index fd4852979..8b208f958 100644 --- a/src/Plotly.NET/CommonAbstractions/Font.fs +++ b/src/Plotly.NET/CommonAbstractions/Font.fs @@ -26,9 +26,8 @@ type Font() = [] ?Color: Color ) = (fun (font: Font) -> - - Family |> DynObj.setValueOptBy font "family" StyleParam.FontFamily.toString - Size |> DynObj.setValueOpt font "size" - Color |> DynObj.setValueOpt font "color" - - font) + font + |> DynObj.withOptionalPropertyBy "family" Family StyleParam.FontFamily.toString + |> DynObj.withOptionalProperty "size" Size + |> DynObj.withOptionalProperty "color" Color + ) diff --git a/src/Plotly.NET/CommonAbstractions/Line.fs b/src/Plotly.NET/CommonAbstractions/Line.fs index f9991a2d8..6d5e9d257 100644 --- a/src/Plotly.NET/CommonAbstractions/Line.fs +++ b/src/Plotly.NET/CommonAbstractions/Line.fs @@ -125,25 +125,26 @@ type Line() = [] ?OutlierWidth: float ) = (fun (line: Line) -> - BackOff |> DynObj.setValueOptBy line "backoff" StyleParam.BackOff.convert - Color |> DynObj.setValueOpt line "color" - (Width, MultiWidth) |> DynObj.setSingleOrMultiOpt line "width" - Shape |> DynObj.setValueOptBy line "shape" StyleParam.Shape.convert - Smoothing |> DynObj.setValueOpt line "smoothing" - Dash |> DynObj.setValueOptBy line "dash" StyleParam.DrawingStyle.convert - OutlierColor |> DynObj.setValueOpt line "outliercolor" - OutlierWidth |> DynObj.setValueOpt line "outlierwidth" - AutoColorScale |> DynObj.setValueOpt line "autocolorscale" - CAuto |> DynObj.setValueOpt line "cauto" - CMax |> DynObj.setValueOpt line "cmax" - CMid |> DynObj.setValueOpt line "cmid" - CMin |> DynObj.setValueOpt line "cmin" - Color |> DynObj.setValueOpt line "color" - ColorAxis |> DynObj.setValueOptBy line "coloraxis" StyleParam.SubPlotId.convert - Colorscale |> DynObj.setValueOptBy line "colorscale" StyleParam.Colorscale.convert - ReverseScale |> DynObj.setValueOpt line "reversescale" - ShowScale |> DynObj.setValueOpt line "showscale" - ColorBar |> DynObj.setValueOpt line "colorbar" - Simplify |> DynObj.setValueOpt line "simplify" + line + |> DynObj.withOptionalPropertyBy "backoff" BackOff StyleParam.BackOff.convert + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalSingleOrMultiProperty "width" (Width, MultiWidth) + |> DynObj.withOptionalPropertyBy "shape" Shape StyleParam.Shape.convert + |> DynObj.withOptionalProperty "smoothing" Smoothing + |> DynObj.withOptionalPropertyBy "dash" Dash StyleParam.DrawingStyle.convert + |> DynObj.withOptionalProperty "outliercolor" OutlierColor + |> DynObj.withOptionalProperty "outlierwidth" OutlierWidth + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalProperty "cauto" CAuto + |> DynObj.withOptionalProperty "cmax" CMax + |> DynObj.withOptionalProperty "cmid" CMid + |> DynObj.withOptionalProperty "cmin" CMin + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalPropertyBy "colorscale" Colorscale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "simplify" Simplify - line) + ) diff --git a/src/Plotly.NET/CommonAbstractions/Padding.fs b/src/Plotly.NET/CommonAbstractions/Padding.fs index 53d71900b..708d710f9 100644 --- a/src/Plotly.NET/CommonAbstractions/Padding.fs +++ b/src/Plotly.NET/CommonAbstractions/Padding.fs @@ -37,8 +37,9 @@ type Padding() = [] ?T: int ) = (fun (padding: Padding) -> - B |> DynObj.setValueOpt padding "b" - L |> DynObj.setValueOpt padding "l" - R |> DynObj.setValueOpt padding "r" - T |> DynObj.setValueOpt padding "t" - padding) + padding + |> DynObj.withOptionalProperty "b" B + |> DynObj.withOptionalProperty "l" L + |> DynObj.withOptionalProperty "r" R + |> DynObj.withOptionalProperty "t" T + ) diff --git a/src/Plotly.NET/CommonAbstractions/TickFormatStop.fs b/src/Plotly.NET/CommonAbstractions/TickFormatStop.fs index 358e7589a..684d7ad58 100644 --- a/src/Plotly.NET/CommonAbstractions/TickFormatStop.fs +++ b/src/Plotly.NET/CommonAbstractions/TickFormatStop.fs @@ -35,11 +35,10 @@ type TickFormatStop() = ) = (fun (tickFormatStop: TickFormatStop) -> - Enabled |> DynObj.setValueOpt tickFormatStop "enabled" - DTickRange |> DynObj.setValueOpt tickFormatStop "dtickrange" - Value |> DynObj.setValueOpt tickFormatStop "value" - Name |> DynObj.setValueOpt tickFormatStop "name" - TemplateItemName |> DynObj.setValueOpt tickFormatStop "templateitemname" - - - tickFormatStop) + tickFormatStop + |> DynObj.withOptionalProperty "enabled" Enabled + |> DynObj.withOptionalProperty "dtickrange" DTickRange + |> DynObj.withOptionalProperty "value" Value + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName + ) diff --git a/src/Plotly.NET/CommonAbstractions/Title.fs b/src/Plotly.NET/CommonAbstractions/Title.fs index aee71e189..d26184e68 100644 --- a/src/Plotly.NET/CommonAbstractions/Title.fs +++ b/src/Plotly.NET/CommonAbstractions/Title.fs @@ -87,19 +87,18 @@ type Title() = // For colorbar titles [] ?Side: StyleParam.Side ) = - (fun (title: Title) -> - - Text |> DynObj.setValueOpt title "text" - Font |> DynObj.setValueOpt title "font" - AutoMargin |> DynObj.setValueOpt title "automargin" - Pad |> DynObj.setValueOpt title "pad" - X |> DynObj.setValueOpt title "x" - XAnchor |> DynObj.setValueOptBy title "xanchor" StyleParam.XAnchorPosition.convert - XRef |> DynObj.setValueOpt title "xref" - Y |> DynObj.setValueOpt title "y" - YAnchor |> DynObj.setValueOptBy title "yanchor" StyleParam.YAnchorPosition.convert - YRef |> DynObj.setValueOpt title "yref" - Standoff |> DynObj.setValueOpt title "standoff" - Side |> DynObj.setValueOptBy title "side" StyleParam.Side.convert - - title) + (fun (title: Title) -> + title + |> DynObj.withOptionalProperty "text" Text + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "automargin" AutoMargin + |> DynObj.withOptionalProperty "pad" Pad + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalPropertyBy "xanchor" XAnchor StyleParam.XAnchorPosition.convert + |> DynObj.withOptionalProperty "xref" XRef + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalPropertyBy "yanchor" YAnchor StyleParam.YAnchorPosition.convert + |> DynObj.withOptionalProperty "yref" YRef + |> DynObj.withOptionalProperty "standoff" Standoff + |> DynObj.withOptionalPropertyBy "side" Side StyleParam.Side.convert + ) diff --git a/src/Plotly.NET/Config/Config.fs b/src/Plotly.NET/Config/Config.fs index 6df593e88..433a59695 100644 --- a/src/Plotly.NET/Config/Config.fs +++ b/src/Plotly.NET/Config/Config.fs @@ -262,55 +262,55 @@ type Config() = ) = fun (config: Config) -> - StaticPlot |> DynObj.setValueOpt config "staticPlot" - TypesetMath |> DynObj.setValueOpt config "typesetMath" - PlotlyServerUrl |> DynObj.setValueOpt config "plotlyServerUrl" - Editable |> DynObj.setValueOpt config "editable" - Edits |> DynObj.setValueOpt config "edits" - EditSelection |> DynObj.setValueOpt config "editSelection" - Autosizable |> DynObj.setValueOpt config "autosizable" - Responsive |> DynObj.setValueOpt config "responsive" - FillFrame |> DynObj.setValueOpt config "fillFrame" - FrameMargins |> DynObj.setValueOpt config "frameMargins" - ScrollZoom |> DynObj.setValueOptBy config "scrollZoom" StyleParam.ScrollZoom.convert - DoubleClick |> DynObj.setValueOptBy config "doubleClick" StyleParam.DoubleClick.convert - DoubleClickDelay |> DynObj.setValueOpt config "doubleClickDelay" - ShowAxisDragHandles |> DynObj.setValueOpt config "showAxisDragHandles" - ShowAxisRangeEntryBoxes |> DynObj.setValueOpt config "showAxisRangeEntryBoxes" - ShowTips |> DynObj.setValueOpt config "showTips" - ShowLink |> DynObj.setValueOpt config "showLink" - LinkText |> DynObj.setValueOpt config "linkText" - SendData |> DynObj.setValueOpt config "sendData" - ShowSources |> DynObj.setValueOpt config "showSources" - DisplayModeBar |> DynObj.setValueOpt config "displayModeBar" - ShowSendToCloud |> DynObj.setValueOpt config "showSendToCloud" - ShowEditInChartStudio |> DynObj.setValueOpt config "showEditInChartStudio" + StaticPlot |> DynObj.setOptionalProperty config "staticPlot" + TypesetMath |> DynObj.setOptionalProperty config "typesetMath" + PlotlyServerUrl |> DynObj.setOptionalProperty config "plotlyServerUrl" + Editable |> DynObj.setOptionalProperty config "editable" + Edits |> DynObj.setOptionalProperty config "edits" + EditSelection |> DynObj.setOptionalProperty config "editSelection" + Autosizable |> DynObj.setOptionalProperty config "autosizable" + Responsive |> DynObj.setOptionalProperty config "responsive" + FillFrame |> DynObj.setOptionalProperty config "fillFrame" + FrameMargins |> DynObj.setOptionalProperty config "frameMargins" + ScrollZoom |> DynObj.setOptionalPropertyBy config "scrollZoom" StyleParam.ScrollZoom.convert + DoubleClick |> DynObj.setOptionalPropertyBy config "doubleClick" StyleParam.DoubleClick.convert + DoubleClickDelay |> DynObj.setOptionalProperty config "doubleClickDelay" + ShowAxisDragHandles |> DynObj.setOptionalProperty config "showAxisDragHandles" + ShowAxisRangeEntryBoxes |> DynObj.setOptionalProperty config "showAxisRangeEntryBoxes" + ShowTips |> DynObj.setOptionalProperty config "showTips" + ShowLink |> DynObj.setOptionalProperty config "showLink" + LinkText |> DynObj.setOptionalProperty config "linkText" + SendData |> DynObj.setOptionalProperty config "sendData" + ShowSources |> DynObj.setOptionalProperty config "showSources" + DisplayModeBar |> DynObj.setOptionalProperty config "displayModeBar" + ShowSendToCloud |> DynObj.setOptionalProperty config "showSendToCloud" + ShowEditInChartStudio |> DynObj.setOptionalProperty config "showEditInChartStudio" ModeBarButtonsToRemove - |> DynObj.setValueOptBy config "modeBarButtonsToRemove" (fun x -> + |> DynObj.setOptionalPropertyBy config "modeBarButtonsToRemove" (fun x -> x |> Seq.map StyleParam.ModeBarButton.toString) ModeBarButtonsToAdd - |> DynObj.setValueOptBy config "modeBarButtonsToAdd" (fun x -> + |> DynObj.setOptionalPropertyBy config "modeBarButtonsToAdd" (fun x -> x |> Seq.map StyleParam.ModeBarButton.toString) ModeBarButtons - |> DynObj.setValueOptBy config "modeBarButtons" (fun x -> + |> DynObj.setOptionalPropertyBy config "modeBarButtons" (fun x -> x |> Seq.map (Seq.map StyleParam.ModeBarButton.toString)) - ToImageButtonOptions |> DynObj.setValueOpt config "toImageButtonOptions" - Displaylogo |> DynObj.setValueOpt config "displaylogo" - Watermark |> DynObj.setValueOpt config "watermark" - plotGlPixelRatio |> DynObj.setValueOpt config "plotGlPixelRatio" - SetBackground |> DynObj.setValueOpt config "setBackground" - TopojsonURL |> DynObj.setValueOpt config "topojsonURL" - MapboxAccessToken |> DynObj.setValueOpt config "mapboxAccessToken" - Logging |> DynObj.setValueOpt config "logging" - NotifyOnLogging |> DynObj.setValueOpt config "notifyOnLogging" - QueueLength |> DynObj.setValueOpt config "queueLength" - GlobalTransforms |> DynObj.setValueOpt config "globalTransforms" - Locale |> DynObj.setValueOpt config "locale" - Locales |> DynObj.setValueOpt config "locales" + ToImageButtonOptions |> DynObj.setOptionalProperty config "toImageButtonOptions" + Displaylogo |> DynObj.setOptionalProperty config "displaylogo" + Watermark |> DynObj.setOptionalProperty config "watermark" + plotGlPixelRatio |> DynObj.setOptionalProperty config "plotGlPixelRatio" + SetBackground |> DynObj.setOptionalProperty config "setBackground" + TopojsonURL |> DynObj.setOptionalProperty config "topojsonURL" + MapboxAccessToken |> DynObj.setOptionalProperty config "mapboxAccessToken" + Logging |> DynObj.setOptionalProperty config "logging" + NotifyOnLogging |> DynObj.setOptionalProperty config "notifyOnLogging" + QueueLength |> DynObj.setOptionalProperty config "queueLength" + GlobalTransforms |> DynObj.setOptionalProperty config "globalTransforms" + Locale |> DynObj.setOptionalProperty config "locale" + Locales |> DynObj.setOptionalProperty config "locales" config @@ -331,18 +331,18 @@ type Config() = let modeBarButtonsToRemove = InternalUtils.combineOptSeqs - (first.TryGetTypedValue>("modeBarButtonsToRemove")) - (second.TryGetTypedValue>("modeBarButtonsToRemove")) + (first.TryGetTypedPropertyValue>("modeBarButtonsToRemove")) + (second.TryGetTypedPropertyValue>("modeBarButtonsToRemove")) let modeBarButtonsToAdd = InternalUtils.combineOptSeqs - (first.TryGetTypedValue>("modeBarButtonsToAdd")) - (second.TryGetTypedValue>("modeBarButtonsToAdd")) + (first.TryGetTypedPropertyValue>("modeBarButtonsToAdd")) + (second.TryGetTypedPropertyValue>("modeBarButtonsToAdd")) let modeBarButtons = InternalUtils.combineOptSeqs - (first.TryGetTypedValue>>("modeBarButtons")) - (second.TryGetTypedValue>>("modeBarButtons")) + (first.TryGetTypedPropertyValue>>("modeBarButtons")) + (second.TryGetTypedPropertyValue>>("modeBarButtons")) DynObj.combine first second |> unbox diff --git a/src/Plotly.NET/Config/ObjectAbstractions/Edits.fs b/src/Plotly.NET/Config/ObjectAbstractions/Edits.fs index e2e6aea01..fa3f5ca65 100644 --- a/src/Plotly.NET/Config/ObjectAbstractions/Edits.fs +++ b/src/Plotly.NET/Config/ObjectAbstractions/Edits.fs @@ -78,15 +78,15 @@ type Edits() = [] ?TitleText: bool ) = fun (edits: Edits) -> - AnnotationPosition |> DynObj.setValueOpt edits "annotationPosition" - AnnotationTail |> DynObj.setValueOpt edits "annotationTail" - AnnotationText |> DynObj.setValueOpt edits "annotationText" - AxisTitleText |> DynObj.setValueOpt edits "axisTitleText" - ColorbarPosition |> DynObj.setValueOpt edits "colorbarPosition" - ColorbarTitleText |> DynObj.setValueOpt edits "colorbarTitleText" - LegendPosition |> DynObj.setValueOpt edits "legendPosition" - LegendText |> DynObj.setValueOpt edits "legendText" - ShapePosition |> DynObj.setValueOpt edits "shapePosition" - TitleText |> DynObj.setValueOpt edits "titleText" + AnnotationPosition |> DynObj.setOptionalProperty edits "annotationPosition" + AnnotationTail |> DynObj.setOptionalProperty edits "annotationTail" + AnnotationText |> DynObj.setOptionalProperty edits "annotationText" + AxisTitleText |> DynObj.setOptionalProperty edits "axisTitleText" + ColorbarPosition |> DynObj.setOptionalProperty edits "colorbarPosition" + ColorbarTitleText |> DynObj.setOptionalProperty edits "colorbarTitleText" + LegendPosition |> DynObj.setOptionalProperty edits "legendPosition" + LegendText |> DynObj.setOptionalProperty edits "legendText" + ShapePosition |> DynObj.setOptionalProperty edits "shapePosition" + TitleText |> DynObj.setOptionalProperty edits "titleText" edits diff --git a/src/Plotly.NET/Config/ObjectAbstractions/ToImageButtonOptions.fs b/src/Plotly.NET/Config/ObjectAbstractions/ToImageButtonOptions.fs index f41d0926c..f4b97bfaf 100644 --- a/src/Plotly.NET/Config/ObjectAbstractions/ToImageButtonOptions.fs +++ b/src/Plotly.NET/Config/ObjectAbstractions/ToImageButtonOptions.fs @@ -35,9 +35,9 @@ type ToImageButtonOptions() = [] ?Scale ) = fun (btnConf: ToImageButtonOptions) -> - Format |> Option.map StyleParam.ImageFormat.toString |> DynObj.setValueOpt btnConf "format" - Filename |> DynObj.setValueOpt btnConf "filename" - Width |> DynObj.setValueOpt btnConf "width" - Height |> DynObj.setValueOpt btnConf "height" - Scale |> DynObj.setValueOpt btnConf "scale" + Format |> Option.map StyleParam.ImageFormat.toString |> DynObj.setOptionalProperty btnConf "format" + Filename |> DynObj.setOptionalProperty btnConf "filename" + Width |> DynObj.setOptionalProperty btnConf "width" + Height |> DynObj.setOptionalProperty btnConf "height" + Scale |> DynObj.setOptionalProperty btnConf "scale" btnConf diff --git a/src/Plotly.NET/DisplayOptions/DisplayOptions.fs b/src/Plotly.NET/DisplayOptions/DisplayOptions.fs index 34808e356..15a9fcdc9 100644 --- a/src/Plotly.NET/DisplayOptions/DisplayOptions.fs +++ b/src/Plotly.NET/DisplayOptions/DisplayOptions.fs @@ -64,13 +64,13 @@ type DisplayOptions() = ) = (fun (displayOpts: DisplayOptions) -> - DocumentTitle |> DynObj.setValueOpt displayOpts "DocumentTitle" - DocumentCharset |> DynObj.setValueOpt displayOpts "DocumentCharset" - DocumentDescription |> DynObj.setValueOpt displayOpts "DocumentDescription" - DocumentFavicon |> DynObj.setValueOpt displayOpts "DocumentFavicon" - AdditionalHeadTags |> DynObj.setValueOpt displayOpts "AdditionalHeadTags" - ChartDescription |> DynObj.setValueOpt displayOpts "ChartDescription" - PlotlyJSReference |> DynObj.setValueOpt displayOpts "PlotlyJSReference" + DocumentTitle |> DynObj.setOptionalProperty displayOpts "DocumentTitle" + DocumentCharset |> DynObj.setOptionalProperty displayOpts "DocumentCharset" + DocumentDescription |> DynObj.setOptionalProperty displayOpts "DocumentDescription" + DocumentFavicon |> DynObj.setOptionalProperty displayOpts "DocumentFavicon" + AdditionalHeadTags |> DynObj.setOptionalProperty displayOpts "AdditionalHeadTags" + ChartDescription |> DynObj.setOptionalProperty displayOpts "ChartDescription" + PlotlyJSReference |> DynObj.setOptionalProperty displayOpts "PlotlyJSReference" displayOpts) @@ -100,13 +100,13 @@ type DisplayOptions() = let additionalHeadTags = InternalUtils.combineOptLists - (first.TryGetTypedValue("AdditionalHeadTags")) - (second.TryGetTypedValue("AdditionalHeadTags")) + (first.TryGetTypedPropertyValue("AdditionalHeadTags")) + (second.TryGetTypedPropertyValue("AdditionalHeadTags")) let description = InternalUtils.combineOptLists - (first.TryGetTypedValue("ChartDescription")) - (second.TryGetTypedValue("ChartDescription")) + (first.TryGetTypedPropertyValue("ChartDescription")) + (second.TryGetTypedPropertyValue("ChartDescription")) DynObj.combine first second |> unbox @@ -118,7 +118,7 @@ type DisplayOptions() = /// The document title to set on the given DisplayOptions object static member setDocumentTitle(documentTitle: string) = (fun (displayOpts: DisplayOptions) -> - documentTitle |> DynObj.setValue displayOpts "DocumentTitle" + documentTitle |> DynObj.withProperty displayOpts "DocumentTitle" displayOpts) /// @@ -126,7 +126,7 @@ type DisplayOptions() = /// /// The DisplayOptions object to get the document title from static member tryGetDocumentTitle(displayOpts: DisplayOptions) = - displayOpts.TryGetTypedValue("DocumentTitle") + displayOpts.TryGetTypedPropertyValue("DocumentTitle") /// /// Returns the document title from the given DisplayOptions object if it exists, an empty string otherwise @@ -141,7 +141,7 @@ type DisplayOptions() = /// The document charset to set on the given DisplayOptions object static member setDocumentCharset(documentCharset: string) = (fun (displayOpts: DisplayOptions) -> - documentCharset |> DynObj.setValue displayOpts "DocumentCharset" + documentCharset |> DynObj.withProperty displayOpts "DocumentCharset" displayOpts) /// @@ -149,7 +149,7 @@ type DisplayOptions() = /// /// The DisplayOptions object to get the document charset from static member tryGetDocumentCharset(displayOpts: DisplayOptions) = - displayOpts.TryGetTypedValue("DocumentCharset") + displayOpts.TryGetTypedPropertyValue("DocumentCharset") /// /// Returns the document charset from the given DisplayOptions object if it exists, an empty string otherwise @@ -164,7 +164,7 @@ type DisplayOptions() = /// The document description to set on the given DisplayOptions object static member setDocumentDescription(documentDescription: string) = (fun (displayOpts: DisplayOptions) -> - documentDescription |> DynObj.setValue displayOpts "DocumentDescription" + documentDescription |> DynObj.withProperty displayOpts "DocumentDescription" displayOpts) /// @@ -172,7 +172,7 @@ type DisplayOptions() = /// /// The DisplayOptions object to get the document description from static member tryGetDocumentDescription(displayOpts: DisplayOptions) = - displayOpts.TryGetTypedValue("DocumentDescription") + displayOpts.TryGetTypedPropertyValue("DocumentDescription") /// /// Returns the document description from the given DisplayOptions object if it exists, an empty string otherwise @@ -187,7 +187,7 @@ type DisplayOptions() = /// The document favicon to set on the given DisplayOptions object static member setDocumentFavicon(documentFavicon: XmlNode) = (fun (displayOpts: DisplayOptions) -> - documentFavicon |> DynObj.setValue displayOpts "DocumentFavicon" + documentFavicon |> DynObj.withProperty displayOpts "DocumentFavicon" displayOpts) /// @@ -195,7 +195,7 @@ type DisplayOptions() = /// /// static member tryGetDocumentFavicon(displayOpts: DisplayOptions) = - displayOpts.TryGetTypedValue("DocumentFavicon") + displayOpts.TryGetTypedPropertyValue("DocumentFavicon") /// /// Returns the document favicon from the given DisplayOptions object if it exists, an empty XML Node otherwise @@ -210,7 +210,7 @@ type DisplayOptions() = /// The additional head tags to set on the given DisplayOptions object static member setAdditionalHeadTags(additionalHeadTags: XmlNode list) = (fun (displayOpts: DisplayOptions) -> - additionalHeadTags |> DynObj.setValue displayOpts "AdditionalHeadTags" + additionalHeadTags |> DynObj.withProperty displayOpts "AdditionalHeadTags" displayOpts) /// @@ -218,7 +218,7 @@ type DisplayOptions() = /// /// The DisplayOptions object to get the additional head tags from static member tryGetAdditionalHeadTags(displayOpts: DisplayOptions) = - displayOpts.TryGetTypedValue("AdditionalHeadTags") + displayOpts.TryGetTypedPropertyValue("AdditionalHeadTags") /// /// Returns the additional head tags from the given DisplayOptions object if they exist, an empty list otherwise @@ -244,7 +244,7 @@ type DisplayOptions() = /// The chart chart description to set on the given DisplayOptions object static member setChartDescription(chartDescription: XmlNode list) = (fun (displayOpts: DisplayOptions) -> - chartDescription |> DynObj.setValue displayOpts "ChartDescription" + chartDescription |> DynObj.withProperty displayOpts "ChartDescription" displayOpts) /// @@ -252,7 +252,7 @@ type DisplayOptions() = /// /// The DisplayOptions object to get the chart description from static member tryGetChartDescription(displayOpts: DisplayOptions) = - displayOpts.TryGetTypedValue("ChartDescription") + displayOpts.TryGetTypedPropertyValue("ChartDescription") /// /// Returns the chart description from the given DisplayOptions object if it exists, an empty list otherwise @@ -276,7 +276,7 @@ type DisplayOptions() = /// The reference to a plotly.js source to set on the given DisplayOptions object static member setPlotlyReference(plotlyReference: PlotlyJSReference) = (fun (displayOpts: DisplayOptions) -> - plotlyReference |> DynObj.setValue displayOpts "PlotlyJSReference" + plotlyReference |> DynObj.withProperty displayOpts "PlotlyJSReference" displayOpts) /// @@ -284,7 +284,7 @@ type DisplayOptions() = /// /// The DisplayOptions object to get the reference to a plotly.js source from static member tryGetPlotlyReference(displayOpts: DisplayOptions) = - displayOpts.TryGetTypedValue("PlotlyJSReference") + displayOpts.TryGetTypedPropertyValue("PlotlyJSReference") /// /// Returns the reference to a plotly.js source from the given DisplayOptions object if it exists, NoReference otherwise diff --git a/src/Plotly.NET/InternalUtils.fs b/src/Plotly.NET/InternalUtils.fs index 5b84168e3..3a802f279 100644 --- a/src/Plotly.NET/InternalUtils.fs +++ b/src/Plotly.NET/InternalUtils.fs @@ -33,41 +33,67 @@ let getFullPlotlyJS () = [] module DynObj = - let setSingleOrMultiOpt (dyn: #DynamicObj) (propName: string) (single: 'A option, multi: seq<'A> option) = + let setOptionalSingleOrMultiProperty (propName: string) (single: 'A option, multi: seq<'A> option) (dyn: #DynamicObj) = if multi.IsSome then - multi |> DynObj.setValueOpt dyn propName + dyn |> DynObj.setOptionalProperty propName multi else - single |> DynObj.setValueOpt dyn propName + dyn |> DynObj.setOptionalProperty propName single - let setSingleOrMultiOptBy - (dyn: #DynamicObj) + let withOptionalSingleOrMultiProperty (propName: string) (single: 'A option, multi: seq<'A> option) (dyn: #DynamicObj) = + dyn |> setOptionalSingleOrMultiProperty propName (single,multi) + dyn + + let setOptionalSingleOrMultiPropertyBy (propName: string) - (f: 'A -> 'B) (single: 'A option, multi: seq<'A> option) + (f: 'A -> 'B) + (dyn: #DynamicObj) = if multi.IsSome then - multi |> DynObj.setValueOptBy dyn propName (Seq.map f) + dyn |> DynObj.setOptionalPropertyBy propName multi (Seq.map f) else - single |> DynObj.setValueOptBy dyn propName f + dyn |> DynObj.setOptionalPropertyBy propName single f + + let withOptionalSingleOrMultiPropertyBy + (propName: string) + (single: 'A option, multi: seq<'A> option) + (f: 'A -> 'B) + (dyn: #DynamicObj) + = + dyn |> setOptionalSingleOrMultiPropertyBy propName (single,multi) f + dyn - let setSingleOrAnyOpt (dyn: #DynamicObj) (propName: string) (single: 'A option, any: 'B option) = + let setOptionalSingleOrAnyProperty (propName: string) (single: 'A option, any: 'B option) (dyn: #DynamicObj) = if any.IsSome then - any |> DynObj.setValueOpt dyn propName + dyn |> DynObj.setOptionalProperty propName any else - single |> DynObj.setValueOpt dyn propName + dyn |> DynObj.setOptionalProperty propName single - let setSingleOrAnyOptBy - (dyn: #DynamicObj) + let withOptionalSingleOrAnyProperty (propName: string) (single: 'A option, any: 'B option) (dyn: #DynamicObj) = + dyn |> setOptionalSingleOrAnyProperty propName (single, any) + dyn + + let setOptionalSingleOrAnyPropertyBy (propName: string) + (single: 'A option, any: 'B option) (singleF: 'A -> 'C) (anyF: 'B -> 'D) - (single: 'A option, any: 'B option) + (dyn: #DynamicObj) = if any.IsSome then - any |> DynObj.setValueOptBy dyn propName anyF + dyn |> DynObj.setOptionalPropertyBy propName any (Seq.map anyF) else - single |> DynObj.setValueOptBy dyn propName singleF + dyn |> DynObj.setOptionalPropertyBy propName single singleF + let withOptionalSingleOrAnyPropertyBy + (propName: string) + (single: 'A option, any: 'B option) + (singleF: 'A -> 'C) + (anyF: 'B -> 'D) + (dyn: #DynamicObj) + = + dyn |> setOptionalSingleOrAnyPropertyBy propName (single, any) singleF anyF + dyn // Copied from FSharp.Care.Collections to remove dependencies [] diff --git a/src/Plotly.NET/Layout/Layout.fs b/src/Plotly.NET/Layout/Layout.fs index 2270be1f6..95fced511 100644 --- a/src/Plotly.NET/Layout/Layout.fs +++ b/src/Plotly.NET/Layout/Layout.fs @@ -397,83 +397,82 @@ type Layout() = [] ?UpdateMenus: seq ) = (fun (layout: Layout) -> - - Title |> DynObj.setValueOpt layout "title" - ShowLegend |> DynObj.setValueOpt layout "showlegend" - Margin |> DynObj.setValueOpt layout "margin" - AutoSize |> DynObj.setValueOpt layout "autosize" - Width |> DynObj.setValueOpt layout "width" - Height |> DynObj.setValueOpt layout "height" - Font |> DynObj.setValueOpt layout "font" - UniformText |> DynObj.setValueOpt layout "uniformtext" - Separators |> DynObj.setValueOpt layout "separators" - PaperBGColor |> DynObj.setValueOpt layout "paper_bgcolor" - PlotBGColor |> DynObj.setValueOpt layout "plot_bgcolor" - AutoTypeNumbers |> DynObj.setValueOptBy layout "autotypenumbers" StyleParam.AutoTypeNumbers.convert - Colorscale |> DynObj.setValueOpt layout "colorscale" - Colorway |> DynObj.setValueOpt layout "colorway" - ModeBar |> DynObj.setValueOpt layout "modebar" - HoverMode |> DynObj.setValueOptBy layout "hovermode" StyleParam.HoverMode.convert - ClickMode |> DynObj.setValueOptBy layout "clickmode" StyleParam.ClickMode.convert - DragMode |> DynObj.setValueOptBy layout "dragmode" StyleParam.DragMode.convert - SelectDirection |> DynObj.setValueOptBy layout "selectdirection" StyleParam.SelectDirection.convert - ActiveSelection |> DynObj.setValueOpt layout "activeselection" - NewSelection |> DynObj.setValueOpt layout "newselection" - HoverDistance |> DynObj.setValueOpt layout "hoverdistance" - SpikeDistance |> DynObj.setValueOpt layout "spikedistance" - Hoverlabel |> DynObj.setValueOpt layout "hoverlabel" - Transition |> DynObj.setValueOpt layout "transition" - DataRevision |> DynObj.setValueOpt layout "datarevision" - UIRevision |> DynObj.setValueOpt layout "uirevision" - EditRevision |> DynObj.setValueOpt layout "editrevision" - SelectRevision |> DynObj.setValueOpt layout "selectrevision" - Template |> DynObj.setValueOpt layout "template" - Meta |> DynObj.setValueOpt layout "meta" - Computed |> DynObj.setValueOpt layout "computed" - Grid |> DynObj.setValueOpt layout "grid" - Calendar |> DynObj.setValueOptBy layout "calendar" StyleParam.Calendar.convert - MinReducedHeight |> DynObj.setValueOpt layout "minreducedheight" - MinReducedWidth |> DynObj.setValueOpt layout "minreducedwidth" - NewShape |> DynObj.setValueOpt layout "newshape" - ActiveShape |> DynObj.setValueOpt layout "activeshape" - HideSources |> DynObj.setValueOpt layout "hidesources" - ScatterGap |> DynObj.setValueOpt layout "scattergap" - ScatterMode |> DynObj.setValueOptBy layout "scattermode" StyleParam.ScatterMode.convert - BarGap |> DynObj.setValueOpt layout "bargap" - BarGroupGap |> DynObj.setValueOpt layout "bargroupgap" - BarMode |> DynObj.setValueOptBy layout "barmode" StyleParam.BarMode.convert - BarNorm |> DynObj.setValueOptBy layout "barnorm" StyleParam.BarNorm.convert - ExtendPieColors |> DynObj.setValueOpt layout "extendpiecolors" - HiddenLabels |> DynObj.setValueOpt layout "hiddenlabels" - PieColorWay |> DynObj.setValueOpt layout "piecolorway" - BoxGap |> DynObj.setValueOpt layout "boxgap" - BoxGroupGap |> DynObj.setValueOpt layout "boxgroupgap" - BoxMode |> DynObj.setValueOptBy layout "boxmode" StyleParam.BoxMode.convert - ViolinGap |> DynObj.setValueOpt layout "violingap" - ViolinGroupGap |> DynObj.setValueOpt layout "violingroupgap" - ViolinMode |> DynObj.setValueOptBy layout "violinmode" StyleParam.ViolinMode.convert - WaterfallGap |> DynObj.setValueOpt layout "waterfallgap" - WaterfallGroupGap |> DynObj.setValueOpt layout "waterfallgroupgap" - WaterfallMode |> DynObj.setValueOptBy layout "waterfallmode" StyleParam.WaterfallMode.convert - FunnelGap |> DynObj.setValueOpt layout "funnelgap" - FunnelGroupGap |> DynObj.setValueOpt layout "funnelgroupgap" - FunnelMode |> DynObj.setValueOptBy layout "funnelmode" StyleParam.FunnelMode.convert - ExtendFunnelAreaColors |> DynObj.setValueOpt layout "extendfunnelareacolors" - FunnelAreaColorWay |> DynObj.setValueOpt layout "funnelareacolorway" - ExtendSunBurstColors |> DynObj.setValueOpt layout "extendsunburstcolors" - SunBurstColorWay |> DynObj.setValueOpt layout "sunburstcolorway" - ExtendTreeMapColors |> DynObj.setValueOpt layout "extendtreemapcolors" - TreeMapColorWay |> DynObj.setValueOpt layout "treemapcolorway" - ExtendIcicleColors |> DynObj.setValueOpt layout "extendiciclecolors" - IcicleColorWay |> DynObj.setValueOpt layout "iciclecolorway" - Annotations |> DynObj.setValueOpt layout "annotations" - Shapes |> DynObj.setValueOpt layout "shapes" - Selections |> DynObj.setValueOpt layout "selections" - Images |> DynObj.setValueOpt layout "images" - Sliders |> DynObj.setValueOpt layout "sliders" - UpdateMenus |> DynObj.setValueOpt layout "updatemenus" - - layout) + layout + |> DynObj.withOptionalProperty "title" Title + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalProperty "margin" Margin + |> DynObj.withOptionalProperty "autosize" AutoSize + |> DynObj.withOptionalProperty "width" Width + |> DynObj.withOptionalProperty "height" Height + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "uniformtext" UniformText + |> DynObj.withOptionalProperty "separators" Separators + |> DynObj.withOptionalProperty "paper_bgcolor" PaperBGColor + |> DynObj.withOptionalProperty "plot_bgcolor" PlotBGColor + |> DynObj.withOptionalPropertyBy "autotypenumbers" AutoTypeNumbers StyleParam.AutoTypeNumbers.convert + |> DynObj.withOptionalProperty "colorscale" Colorscale + |> DynObj.withOptionalProperty "colorway" Colorway + |> DynObj.withOptionalProperty "modebar" ModeBar + |> DynObj.withOptionalPropertyBy "hovermode" HoverMode StyleParam.HoverMode.convert + |> DynObj.withOptionalPropertyBy "clickmode" ClickMode StyleParam.ClickMode.convert + |> DynObj.withOptionalPropertyBy "dragmode" DragMode StyleParam.DragMode.convert + |> DynObj.withOptionalPropertyBy "selectdirection" SelectDirection StyleParam.SelectDirection.convert + |> DynObj.withOptionalProperty "activeselection" ActiveSelection + |> DynObj.withOptionalProperty "newselection" NewSelection + |> DynObj.withOptionalProperty "hoverdistance" HoverDistance + |> DynObj.withOptionalProperty "spikedistance" SpikeDistance + |> DynObj.withOptionalProperty "hoverlabel" Hoverlabel + |> DynObj.withOptionalProperty "transition" Transition + |> DynObj.withOptionalProperty "datarevision" DataRevision + |> DynObj.withOptionalProperty "uirevision" UIRevision + |> DynObj.withOptionalProperty "editrevision" EditRevision + |> DynObj.withOptionalProperty "selectrevision" SelectRevision + |> DynObj.withOptionalProperty "template" Template + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "computed" Computed + |> DynObj.withOptionalProperty "grid" Grid + |> DynObj.withOptionalPropertyBy "calendar" Calendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "minreducedheight" MinReducedHeight + |> DynObj.withOptionalProperty "minreducedwidth" MinReducedWidth + |> DynObj.withOptionalProperty "newshape" NewShape + |> DynObj.withOptionalProperty "activeshape" ActiveShape + |> DynObj.withOptionalProperty "hidesources" HideSources + |> DynObj.withOptionalProperty "scattergap" ScatterGap + |> DynObj.withOptionalPropertyBy "scattermode" ScatterMode StyleParam.ScatterMode.convert + |> DynObj.withOptionalProperty "bargap" BarGap + |> DynObj.withOptionalProperty "bargroupgap" BarGroupGap + |> DynObj.withOptionalPropertyBy "barmode" BarMode StyleParam.BarMode.convert + |> DynObj.withOptionalPropertyBy "barnorm" BarNorm StyleParam.BarNorm.convert + |> DynObj.withOptionalProperty "extendpiecolors" ExtendPieColors + |> DynObj.withOptionalProperty "hiddenlabels" HiddenLabels + |> DynObj.withOptionalProperty "piecolorway" PieColorWay + |> DynObj.withOptionalProperty "boxgap" BoxGap + |> DynObj.withOptionalProperty "boxgroupgap" BoxGroupGap + |> DynObj.withOptionalPropertyBy "boxmode" BoxMode StyleParam.BoxMode.convert + |> DynObj.withOptionalProperty "violingap" ViolinGap + |> DynObj.withOptionalProperty "violingroupgap" ViolinGroupGap + |> DynObj.withOptionalPropertyBy "violinmode" ViolinMode StyleParam.ViolinMode.convert + |> DynObj.withOptionalProperty "waterfallgap" WaterfallGap + |> DynObj.withOptionalProperty "waterfallgroupgap" WaterfallGroupGap + |> DynObj.withOptionalPropertyBy "waterfallmode" WaterfallMode StyleParam.WaterfallMode.convert + |> DynObj.withOptionalProperty "funnelgap" FunnelGap + |> DynObj.withOptionalProperty "funnelgroupgap" FunnelGroupGap + |> DynObj.withOptionalPropertyBy "funnelmode" FunnelMode StyleParam.FunnelMode.convert + |> DynObj.withOptionalProperty "extendfunnelareacolors" ExtendFunnelAreaColors + |> DynObj.withOptionalProperty "funnelareacolorway" FunnelAreaColorWay + |> DynObj.withOptionalProperty "extendsunburstcolors" ExtendSunBurstColors + |> DynObj.withOptionalProperty "sunburstcolorway" SunBurstColorWay + |> DynObj.withOptionalProperty "extendtreemapcolors" ExtendTreeMapColors + |> DynObj.withOptionalProperty "treemapcolorway" TreeMapColorWay + |> DynObj.withOptionalProperty "extendiciclecolors" ExtendIcicleColors + |> DynObj.withOptionalProperty "iciclecolorway" IcicleColorWay + |> DynObj.withOptionalProperty "annotations" Annotations + |> DynObj.withOptionalProperty "shapes" Shapes + |> DynObj.withOptionalProperty "selections" Selections + |> DynObj.withOptionalProperty "images" Images + |> DynObj.withOptionalProperty "sliders" Sliders + |> DynObj.withOptionalProperty "updatemenus" UpdateMenus + ) /// /// Combines two Layout objects. @@ -492,38 +491,38 @@ type Layout() = let annotations = InternalUtils.combineOptSeqs - (first.TryGetTypedValue>("annotations")) - (second.TryGetTypedValue>("annotations")) + (first.TryGetTypedPropertyValue>("annotations")) + (second.TryGetTypedPropertyValue>("annotations")) let shapes = InternalUtils.combineOptSeqs - (first.TryGetTypedValue>("shapes")) - (second.TryGetTypedValue>("shapes")) + (first.TryGetTypedPropertyValue>("shapes")) + (second.TryGetTypedPropertyValue>("shapes")) let selections = InternalUtils.combineOptSeqs - (first.TryGetTypedValue>("selections")) - (second.TryGetTypedValue>("selections")) + (first.TryGetTypedPropertyValue>("selections")) + (second.TryGetTypedPropertyValue>("selections")) let images = InternalUtils.combineOptSeqs - (first.TryGetTypedValue>("images")) - (second.TryGetTypedValue>("images")) + (first.TryGetTypedPropertyValue>("images")) + (second.TryGetTypedPropertyValue>("images")) let sliders = InternalUtils.combineOptSeqs - (first.TryGetTypedValue>("sliders")) - (second.TryGetTypedValue>("sliders")) + (first.TryGetTypedPropertyValue>("sliders")) + (second.TryGetTypedPropertyValue>("sliders")) let hiddenLabels = InternalUtils.combineOptSeqs - (first.TryGetTypedValue>("hiddenlabels")) - (second.TryGetTypedValue>("hiddenlabels")) + (first.TryGetTypedPropertyValue>("hiddenlabels")) + (second.TryGetTypedPropertyValue>("hiddenlabels")) let updateMenus = InternalUtils.combineOptSeqs - (first.TryGetTypedValue>("updatemenus")) - (second.TryGetTypedValue>("updatemenus")) + (first.TryGetTypedPropertyValue>("updatemenus")) + (second.TryGetTypedPropertyValue>("updatemenus")) DynObj.combine first second |> unbox @@ -542,14 +541,14 @@ type Layout() = /// /// The name of the dynamic member to get the value of /// The layout to get the dynamic member value from - static member tryGetTypedMember<'T> (propName: string) (layout: Layout) = layout.TryGetTypedValue<'T>(propName) + static member tryGetTypedMember<'T> (propName: string) (layout: Layout) = layout.TryGetTypedPropertyValue<'T>(propName) /// /// Returns Some(LinearAxis) if there is an axis object set on the layout with the given id, and None otherwise. /// /// The target axis id static member tryGetLinearAxisById(id: StyleParam.SubPlotId) = - (fun (layout: Layout) -> layout.TryGetTypedValue(StyleParam.SubPlotId.toString id)) + (fun (layout: Layout) -> layout.TryGetTypedPropertyValue(StyleParam.SubPlotId.toString id)) /// /// Combines the given axis object with the one already present on the layout. @@ -558,19 +557,15 @@ type Layout() = /// The updated axis object. static member updateLinearAxisById(id: StyleParam.SubPlotId, axis: LinearAxis) = (fun (layout: Layout) -> - match id with | StyleParam.SubPlotId.XAxis _ | StyleParam.SubPlotId.YAxis _ -> - let axis' = match Layout.tryGetLinearAxisById id layout with | Some a -> (DynObj.combine a axis) :?> LinearAxis | None -> axis - - axis' |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - layout + |> DynObj.withProperty (StyleParam.SubPlotId.toString id) axis' | _ -> failwith $"{StyleParam.SubPlotId.toString id} is an invalid subplot id for setting a linear axis on layout") @@ -592,7 +587,7 @@ type Layout() = layout.GetProperties(includeInstanceProperties = false) |> Seq.choose (fun kv -> if StyleParam.SubPlotId.isValidXAxisId kv.Key then - match layout.TryGetTypedValue(kv.Key) with + match layout.TryGetTypedPropertyValue(kv.Key) with | Some axis -> Some (kv.Key, axis) | None -> None else None @@ -606,7 +601,7 @@ type Layout() = layout.GetProperties(includeInstanceProperties = false) |> Seq.choose (fun kv -> if StyleParam.SubPlotId.isValidYAxisId kv.Key then - match layout.TryGetTypedValue(kv.Key) with + match layout.TryGetTypedPropertyValue(kv.Key) with | Some axis -> Some (kv.Key, axis) | None -> None else None @@ -623,9 +618,7 @@ type Layout() = match id with | StyleParam.SubPlotId.XAxis _ | StyleParam.SubPlotId.YAxis _ -> - axis |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - layout - + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) axis | _ -> failwith $"{StyleParam.SubPlotId.toString id} is an invalid subplot id for setting a linear axis on layout") @@ -635,7 +628,7 @@ type Layout() = /// /// The target scene id static member tryGetSceneById(id: StyleParam.SubPlotId) = - (fun (layout: Layout) -> layout.TryGetTypedValue(StyleParam.SubPlotId.toString id)) + (fun (layout: Layout) -> layout.TryGetTypedPropertyValue(StyleParam.SubPlotId.toString id)) /// /// Combines the given scene object with the one already present on the layout. @@ -648,9 +641,9 @@ type Layout() = match Layout.tryGetSceneById id layout with | Some a -> (DynObj.combine a scene) :?> Scene | None -> scene - - scene' |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - layout) + layout + |> DynObj.withProperty (StyleParam.SubPlotId.toString id) scene' + ) /// /// Returns the Scene object of the layout with the given id. @@ -670,7 +663,7 @@ type Layout() = layout.GetProperties(includeInstanceProperties = false) |> Seq.choose (fun kv -> if StyleParam.SubPlotId.isValidSceneId kv.Key then - match layout.TryGetTypedValue(kv.Key) with + match layout.TryGetTypedPropertyValue(kv.Key) with | Some scene -> Some (kv.Key, scene) | None -> None else None @@ -683,15 +676,15 @@ type Layout() = /// The scene to add to the layout. static member setScene(id: StyleParam.SubPlotId, scene: Scene) = (fun (layout: Layout) -> - scene |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - layout) + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) scene + ) /// /// Returns Some(Geo) if there is a geo object set on the layout with the given id, and None otherwise. /// /// The target geo id static member tryGetGeoById(id: StyleParam.SubPlotId) = - (fun (layout: Layout) -> layout.TryGetTypedValue(StyleParam.SubPlotId.toString id)) + (fun (layout: Layout) -> layout.TryGetTypedPropertyValue(StyleParam.SubPlotId.toString id)) /// /// Combines the given geo object with the one already present on the layout. @@ -705,8 +698,8 @@ type Layout() = | Some a -> (DynObj.combine a geo) :?> Geo | None -> geo - geo' |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - layout) + layout|> DynObj.withProperty (StyleParam.SubPlotId.toString id) geo' + ) /// /// Returns the Geo object of the layout with the given id. @@ -725,7 +718,7 @@ type Layout() = layout.GetProperties(includeInstanceProperties = false) |> Seq.choose (fun kv -> if StyleParam.SubPlotId.isValidGeoId kv.Key then - match layout.TryGetTypedValue(kv.Key) with + match layout.TryGetTypedPropertyValue(kv.Key) with | Some geo -> Some (kv.Key, geo) | None -> None else None @@ -738,17 +731,15 @@ type Layout() = /// The geo to add to the layout. static member setGeo(id: StyleParam.SubPlotId, geo: Geo) = (fun (layout: Layout) -> - - geo |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - - layout) + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) geo + ) /// /// Returns Some(Mapbox) if there is amapbox object set on the layout with the given id, and None otherwise. /// /// The target mapbox id static member tryGetMapboxById(id: StyleParam.SubPlotId) = - (fun (layout: Layout) -> layout.TryGetTypedValue(StyleParam.SubPlotId.toString id)) + (fun (layout: Layout) -> layout.TryGetTypedPropertyValue(StyleParam.SubPlotId.toString id)) /// /// Combines the given mapbox object with the one already present on the layout. @@ -762,8 +753,8 @@ type Layout() = | Some a -> (DynObj.combine a mapbox) :?> Mapbox | None -> mapbox - mapbox' |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - layout) + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) mapbox' + ) /// /// Returns the Mapbox object of the layout with the given id. @@ -782,7 +773,7 @@ type Layout() = layout.GetProperties(includeInstanceProperties = false) |> Seq.choose (fun kv -> if StyleParam.SubPlotId.isValidMapboxId kv.Key then - match layout.TryGetTypedValue(kv.Key) with + match layout.TryGetTypedPropertyValue(kv.Key) with | Some mapbox -> Some (kv.Key, mapbox) | None -> None else None @@ -795,17 +786,15 @@ type Layout() = /// The mapbox to add to the layout. static member setMapbox(id: StyleParam.SubPlotId, mapbox: Mapbox) = (fun (layout: Layout) -> - - mapbox |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - - layout) + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) mapbox + ) /// /// Returns Some(Polar) if there is a polar object set on the layout with the given id, and None otherwise. /// /// he target polar id static member tryGetPolarById(id: StyleParam.SubPlotId) = - (fun (layout: Layout) -> layout.TryGetTypedValue(StyleParam.SubPlotId.toString id)) + (fun (layout: Layout) -> layout.TryGetTypedPropertyValue(StyleParam.SubPlotId.toString id)) /// /// Combines the given polar object with the one already present on the layout. @@ -820,9 +809,8 @@ type Layout() = | Some a -> (DynObj.combine a polar) :?> Polar | None -> polar - polar' |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - - layout) + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) polar' + ) /// /// Returns the Polar object of the layout with the given id. @@ -841,7 +829,7 @@ type Layout() = layout.GetProperties(includeInstanceProperties = false) |> Seq.choose (fun kv -> if StyleParam.SubPlotId.isValidPolarId kv.Key then - match layout.TryGetTypedValue(kv.Key) with + match layout.TryGetTypedPropertyValue(kv.Key) with | Some polar -> Some (kv.Key, polar) | None -> None else None @@ -854,17 +842,15 @@ type Layout() = /// The polar to add to the layout. static member setPolar(id: StyleParam.SubPlotId, polar: Polar) = (fun (layout: Layout) -> - - polar |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - - layout) + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) polar + ) /// /// Returns Some(smith) if there is a smith object set on the layout with the given id, and None otherwise. /// /// the target Smith id static member tryGetSmithById(id: StyleParam.SubPlotId) = - (fun (layout: Layout) -> layout.TryGetTypedValue(StyleParam.SubPlotId.toString id)) + (fun (layout: Layout) -> layout.TryGetTypedPropertyValue(StyleParam.SubPlotId.toString id)) /// /// Combines the given Smith object with the one already present on the layout. @@ -879,9 +865,8 @@ type Layout() = | Some a -> (DynObj.combine a smith) :?> Smith | None -> smith - smith' |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - - layout) + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) smith' + ) /// /// Returns the Smith object of the layout with the given id. @@ -900,7 +885,7 @@ type Layout() = layout.GetProperties(includeInstanceProperties = false) |> Seq.choose (fun kv -> if StyleParam.SubPlotId.isValidSmithId kv.Key then - match layout.TryGetTypedValue(kv.Key) with + match layout.TryGetTypedPropertyValue(kv.Key) with | Some smith -> Some (kv.Key, smith) | None -> None else None @@ -913,17 +898,15 @@ type Layout() = /// The smith to add to the layout. static member setSmith(id: StyleParam.SubPlotId, smith: Smith) = (fun (layout: Layout) -> - - smith |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - - layout) + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) smith + ) /// /// Returns Some(ColorAxis) if there is a ColorAxis object set on the layout with the given id, and None otherwise. /// /// The target ColorAxis id static member tryGetColorAxisById(id: StyleParam.SubPlotId) = - (fun (layout: Layout) -> layout.TryGetTypedValue(StyleParam.SubPlotId.toString id)) + (fun (layout: Layout) -> layout.TryGetTypedPropertyValue(StyleParam.SubPlotId.toString id)) /// /// Combines the given colorAxis object with the one already present on the layout. @@ -938,9 +921,8 @@ type Layout() = | Some a -> (DynObj.combine a colorAxis) :?> ColorAxis | None -> colorAxis - colorAxis' |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - - layout) + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) colorAxis' + ) /// /// Returns the ColorAxis object of the layout with the given id. @@ -959,7 +941,7 @@ type Layout() = layout.GetProperties(includeInstanceProperties = false) |> Seq.choose (fun kv -> if StyleParam.SubPlotId.isValidColorAxisId kv.Key then - match layout.TryGetTypedValue(kv.Key) with + match layout.TryGetTypedPropertyValue(kv.Key) with | Some colorAxis -> Some (kv.Key, colorAxis) | None -> None else None @@ -972,17 +954,15 @@ type Layout() = /// The ColorAxis to add to the layout. static member setColorAxis(id: StyleParam.SubPlotId, colorAxis: ColorAxis) = (fun (layout: Layout) -> - - colorAxis |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - - layout) + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) colorAxis + ) /// /// Returns Some(Ternary) if there is a ColorAxis object set on the layout with the given id, and None otherwise. /// /// The target Ternary id static member tryGetTernaryById(id: StyleParam.SubPlotId) = - (fun (layout: Layout) -> layout.TryGetTypedValue(StyleParam.SubPlotId.toString id)) + (fun (layout: Layout) -> layout.TryGetTypedPropertyValue(StyleParam.SubPlotId.toString id)) /// /// Combines the given ternary object with the one already present on the layout. @@ -997,9 +977,8 @@ type Layout() = | Some a -> (DynObj.combine a ternary) :?> Ternary | None -> ternary - ternary' |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - - layout) + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) ternary' + ) /// /// Returns the Ternary object of the layout with the given id. @@ -1018,7 +997,7 @@ type Layout() = layout.GetProperties(includeInstanceProperties = false) |> Seq.choose (fun kv -> if StyleParam.SubPlotId.isValidTernaryId kv.Key then - match layout.TryGetTypedValue(kv.Key) with + match layout.TryGetTypedPropertyValue(kv.Key) with | Some ternary -> Some (kv.Key, ternary) | None -> None else None @@ -1031,10 +1010,8 @@ type Layout() = /// The Ternary to add to the layout. static member setTernary(id: StyleParam.SubPlotId, ternary: Ternary) = (fun (layout: Layout) -> - - ternary |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - - layout) + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) ternary + ) /// /// Returns the LayoutGrid object of the given layout. @@ -1051,8 +1028,8 @@ type Layout() = /// The new LayoutGrid object static member setLayoutGrid(layoutGrid: LayoutGrid) = (fun (layout: Layout) -> - layout.SetValue("grid", layoutGrid) - layout) + layout |> DynObj.withProperty "grid" layoutGrid + ) /// /// Combines the given layoutGrid object with the one already present on the layout. @@ -1070,7 +1047,7 @@ type Layout() = /// /// The target Legend id static member tryGetLegendById(id: StyleParam.SubPlotId) = - (fun (layout: Layout) -> layout.TryGetTypedValue(StyleParam.SubPlotId.toString id)) + (fun (layout: Layout) -> layout.TryGetTypedPropertyValue(StyleParam.SubPlotId.toString id)) /// /// Returns a sequence of key-value pairs of the layout's dynamic members that are valid legends (if the key matches and object can be cast to the correct type). @@ -1080,7 +1057,7 @@ type Layout() = layout.GetProperties(includeInstanceProperties = false) |> Seq.choose (fun kv -> if StyleParam.SubPlotId.isValidLegendId kv.Key then - match layout.TryGetTypedValue(kv.Key) with + match layout.TryGetTypedPropertyValue(kv.Key) with | Some legend -> Some (kv.Key, legend) | None -> None else None @@ -1102,9 +1079,8 @@ type Layout() = | Some l -> (DynObj.combine l legend) :?> Legend | None -> legend - legend' |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - - layout + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) legend' + | _ -> failwith $"{StyleParam.SubPlotId.toString id} is an invalid subplot id for setting a legend on layout") @@ -1128,8 +1104,7 @@ type Layout() = match id with | StyleParam.SubPlotId.Legend _ -> - legend |> DynObj.setValue layout (StyleParam.SubPlotId.toString id) - layout + layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) legend | _ -> failwith diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/3D/AspectRatio.fs b/src/Plotly.NET/Layout/ObjectAbstractions/3D/AspectRatio.fs index e6874be03..06c9bc960 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/3D/AspectRatio.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/3D/AspectRatio.fs @@ -26,8 +26,8 @@ type AspectRatio() = fun (aspectRatio: AspectRatio) -> - X |> DynObj.setValueOpt aspectRatio "x" - Y |> DynObj.setValueOpt aspectRatio "y" - Z |> DynObj.setValueOpt aspectRatio "z" + X |> DynObj.setOptionalProperty aspectRatio "x" + Y |> DynObj.setOptionalProperty aspectRatio "y" + Z |> DynObj.setOptionalProperty aspectRatio "z" aspectRatio diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/3D/Camera.fs b/src/Plotly.NET/Layout/ObjectAbstractions/3D/Camera.fs index 2886dc85f..497cf011e 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/3D/Camera.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/3D/Camera.fs @@ -27,9 +27,9 @@ type CameraCenter() = fun (cameraCenter: CameraCenter) -> - X |> DynObj.setValueOpt cameraCenter "x" - Y |> DynObj.setValueOpt cameraCenter "y" - Z |> DynObj.setValueOpt cameraCenter "z" + X |> DynObj.setOptionalProperty cameraCenter "x" + Y |> DynObj.setOptionalProperty cameraCenter "y" + Z |> DynObj.setOptionalProperty cameraCenter "z" cameraCenter @@ -53,9 +53,9 @@ type CameraEye() = fun (cameraEye: CameraEye) -> - X |> DynObj.setValueOpt cameraEye "x" - Y |> DynObj.setValueOpt cameraEye "y" - Z |> DynObj.setValueOpt cameraEye "z" + X |> DynObj.setOptionalProperty cameraEye "x" + Y |> DynObj.setOptionalProperty cameraEye "y" + Z |> DynObj.setOptionalProperty cameraEye "z" cameraEye @@ -79,9 +79,9 @@ type CameraUp() = fun (cameraUp: CameraUp) -> - X |> DynObj.setValueOpt cameraUp "x" - Y |> DynObj.setValueOpt cameraUp "y" - Z |> DynObj.setValueOpt cameraUp "z" + X |> DynObj.setOptionalProperty cameraUp "x" + Y |> DynObj.setOptionalProperty cameraUp "y" + Z |> DynObj.setOptionalProperty cameraUp "z" cameraUp @@ -95,7 +95,7 @@ type CameraProjection() = fun (cameraProjection: CameraProjection) -> - ProjectionType |> DynObj.setValueOptBy cameraProjection "type" StyleParam.CameraProjectionType.convert + ProjectionType |> DynObj.setOptionalPropertyBy cameraProjection "type" StyleParam.CameraProjectionType.convert cameraProjection @@ -121,9 +121,9 @@ type Camera() = fun (camera: Camera) -> - Center |> DynObj.setValueOpt camera "center" - Eye |> DynObj.setValueOpt camera "eye" - Projection |> DynObj.setValueOpt camera "projection" - Up |> DynObj.setValueOpt camera "up" + Center |> DynObj.setOptionalProperty camera "center" + Eye |> DynObj.setOptionalProperty camera "eye" + Projection |> DynObj.setOptionalProperty camera "projection" + Up |> DynObj.setOptionalProperty camera "up" camera diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/3D/Scene.fs b/src/Plotly.NET/Layout/ObjectAbstractions/3D/Scene.fs index 4b419598a..ab70be78a 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/3D/Scene.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/3D/Scene.fs @@ -88,18 +88,18 @@ type Scene() = ) = (fun (scene: Scene) -> - Annotations |> DynObj.setValueOpt scene "annotations" - AspectMode |> DynObj.setValueOptBy scene "aspectmode" StyleParam.AspectMode.convert - AspectRatio |> DynObj.setValueOpt scene "aspectratio" - BGColor |> DynObj.setValueOpt scene "bgcolor" - Camera |> DynObj.setValueOpt scene "camera" - Domain |> DynObj.setValueOpt scene "domain" - DragMode |> DynObj.setValueOptBy scene "dragmode" StyleParam.DragMode.convert - HoverMode |> DynObj.setValueOptBy scene "hovermode" StyleParam.HoverMode.convert - UIRevision |> DynObj.setValueOpt scene "uirevision" - XAxis |> DynObj.setValueOpt scene "xaxis" - YAxis |> DynObj.setValueOpt scene "yaxis" - ZAxis |> DynObj.setValueOpt scene "zaxis" + Annotations |> DynObj.setOptionalProperty scene "annotations" + AspectMode |> DynObj.setOptionalPropertyBy scene "aspectmode" StyleParam.AspectMode.convert + AspectRatio |> DynObj.setOptionalProperty scene "aspectratio" + BGColor |> DynObj.setOptionalProperty scene "bgcolor" + Camera |> DynObj.setOptionalProperty scene "camera" + Domain |> DynObj.setOptionalProperty scene "domain" + DragMode |> DynObj.setOptionalPropertyBy scene "dragmode" StyleParam.DragMode.convert + HoverMode |> DynObj.setOptionalPropertyBy scene "hovermode" StyleParam.HoverMode.convert + UIRevision |> DynObj.setOptionalProperty scene "uirevision" + XAxis |> DynObj.setOptionalProperty scene "xaxis" + YAxis |> DynObj.setOptionalProperty scene "yaxis" + ZAxis |> DynObj.setOptionalProperty scene "zaxis" scene) @@ -108,7 +108,7 @@ type Scene() = /// /// The name of the dynamic member to get the value of /// The scene to get the dynamic member value from - static member tryGetTypedMember<'T> (propName: string) (scene: Scene) = scene.TryGetTypedValue<'T>(propName) + static member tryGetTypedMember<'T> (propName: string) (scene: Scene) = scene.TryGetTypedPropertyValue<'T>(propName) /// /// Returns the x axis object of the given scene. diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveSelection.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveSelection.fs index 0e8cc4e57..e2615d373 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveSelection.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveSelection.fs @@ -22,7 +22,7 @@ type ActiveSelection() = ) = (fun (activeSelection: ActiveSelection) -> - FillColor |> DynObj.setValueOpt activeSelection "fillcolor" - Opacity |> DynObj.setValueOpt activeSelection "opacity" + FillColor |> DynObj.setOptionalProperty activeSelection "fillcolor" + Opacity |> DynObj.setOptionalProperty activeSelection "opacity" activeSelection) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveShape.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveShape.fs index b5ab2f896..35c20a2c2 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveShape.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveShape.fs @@ -22,7 +22,7 @@ type ActiveShape() = ) = (fun (activeShape: ActiveShape) -> - FillColor |> DynObj.setValueOpt activeShape "fillcolor" - Opacity |> DynObj.setValueOpt activeShape "opacity" + FillColor |> DynObj.setOptionalProperty activeShape "fillcolor" + Opacity |> DynObj.setOptionalProperty activeShape "opacity" activeShape) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Annotation.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Annotation.fs index c313350e3..a3bc4300b 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Annotation.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Annotation.fs @@ -148,47 +148,47 @@ type Annotation() = ) = (fun (ann: Annotation) -> - X |> DynObj.setValueOpt ann "x" - Y |> DynObj.setValueOpt ann "y" - Align |> DynObj.setValueOptBy ann "align" StyleParam.AnnotationAlignment.convert - ArrowColor |> DynObj.setValueOpt ann "arrowcolor" - ArrowHead |> DynObj.setValueOptBy ann "arrowhead" StyleParam.ArrowHead.convert - ArrowSide |> DynObj.setValueOptBy ann "arrowside" StyleParam.ArrowSide.convert - ArrowSize |> DynObj.setValueOpt ann "arrowsize" - AX |> DynObj.setValueOpt ann "ax" - AXRef |> DynObj.setValueOpt ann "axref" - AY |> DynObj.setValueOpt ann "ay" - AYRef |> DynObj.setValueOpt ann "ayref" - BGColor |> DynObj.setValueOpt ann "bgcolor" - BorderColor |> DynObj.setValueOpt ann "bordercolor" - BorderPad |> DynObj.setValueOpt ann "borderpad" - BorderWidth |> DynObj.setValueOpt ann "borderwidth" - CaptureEvents |> DynObj.setValueOpt ann "captureevents" - ClickToShow |> DynObj.setValueOptBy ann "clicktoshow" StyleParam.ClickToShow.convert - Font |> DynObj.setValueOpt ann "font" - Height |> DynObj.setValueOpt ann "height" - HoverLabel |> DynObj.setValueOpt ann "hoverlabel" - HoverText |> DynObj.setValueOpt ann "hovertext" - Name |> DynObj.setValueOpt ann "name" - Opacity |> DynObj.setValueOpt ann "opacity" - ShowArrow |> DynObj.setValueOpt ann "showarrow" - StandOff |> DynObj.setValueOpt ann "standoff" - StartArrowHead |> DynObj.setValueOpt ann "startarrowhead" - StartArrowSize |> DynObj.setValueOpt ann "startarrowsize" - StartStandOff |> DynObj.setValueOpt ann "startstandoff" - TemplateItemName |> DynObj.setValueOpt ann "templateitemname" - Text |> DynObj.setValueOpt ann "text" - TextAngle |> DynObj.setValueOpt ann "textangle" - VAlign |> DynObj.setValueOptBy ann "valign" StyleParam.VerticalAlign.convert - Visible |> DynObj.setValueOpt ann "visible" - Width |> DynObj.setValueOpt ann "width" - XAnchor |> DynObj.setValueOptBy ann "xanchor" StyleParam.XAnchorPosition.convert - XClick |> DynObj.setValueOpt ann "xclick" - XRef |> DynObj.setValueOpt ann "xref" - XShift |> DynObj.setValueOpt ann "xshift" - YAnchor |> DynObj.setValueOptBy ann "yanchor" StyleParam.YAnchorPosition.convert - YClick |> DynObj.setValueOpt ann "yclick" - YRef |> DynObj.setValueOpt ann "yref" - YShift |> DynObj.setValueOpt ann "yshift" + X |> DynObj.setOptionalProperty ann "x" + Y |> DynObj.setOptionalProperty ann "y" + Align |> DynObj.setOptionalPropertyBy ann "align" StyleParam.AnnotationAlignment.convert + ArrowColor |> DynObj.setOptionalProperty ann "arrowcolor" + ArrowHead |> DynObj.setOptionalPropertyBy ann "arrowhead" StyleParam.ArrowHead.convert + ArrowSide |> DynObj.setOptionalPropertyBy ann "arrowside" StyleParam.ArrowSide.convert + ArrowSize |> DynObj.setOptionalProperty ann "arrowsize" + AX |> DynObj.setOptionalProperty ann "ax" + AXRef |> DynObj.setOptionalProperty ann "axref" + AY |> DynObj.setOptionalProperty ann "ay" + AYRef |> DynObj.setOptionalProperty ann "ayref" + BGColor |> DynObj.setOptionalProperty ann "bgcolor" + BorderColor |> DynObj.setOptionalProperty ann "bordercolor" + BorderPad |> DynObj.setOptionalProperty ann "borderpad" + BorderWidth |> DynObj.setOptionalProperty ann "borderwidth" + CaptureEvents |> DynObj.setOptionalProperty ann "captureevents" + ClickToShow |> DynObj.setOptionalPropertyBy ann "clicktoshow" StyleParam.ClickToShow.convert + Font |> DynObj.setOptionalProperty ann "font" + Height |> DynObj.setOptionalProperty ann "height" + HoverLabel |> DynObj.setOptionalProperty ann "hoverlabel" + HoverText |> DynObj.setOptionalProperty ann "hovertext" + Name |> DynObj.setOptionalProperty ann "name" + Opacity |> DynObj.setOptionalProperty ann "opacity" + ShowArrow |> DynObj.setOptionalProperty ann "showarrow" + StandOff |> DynObj.setOptionalProperty ann "standoff" + StartArrowHead |> DynObj.setOptionalProperty ann "startarrowhead" + StartArrowSize |> DynObj.setOptionalProperty ann "startarrowsize" + StartStandOff |> DynObj.setOptionalProperty ann "startstandoff" + TemplateItemName |> DynObj.setOptionalProperty ann "templateitemname" + Text |> DynObj.setOptionalProperty ann "text" + TextAngle |> DynObj.setOptionalProperty ann "textangle" + VAlign |> DynObj.setOptionalPropertyBy ann "valign" StyleParam.VerticalAlign.convert + Visible |> DynObj.setOptionalProperty ann "visible" + Width |> DynObj.setOptionalProperty ann "width" + XAnchor |> DynObj.setOptionalPropertyBy ann "xanchor" StyleParam.XAnchorPosition.convert + XClick |> DynObj.setOptionalProperty ann "xclick" + XRef |> DynObj.setOptionalProperty ann "xref" + XShift |> DynObj.setOptionalProperty ann "xshift" + YAnchor |> DynObj.setOptionalPropertyBy ann "yanchor" StyleParam.YAnchorPosition.convert + YClick |> DynObj.setOptionalProperty ann "yclick" + YRef |> DynObj.setOptionalProperty ann "yref" + YShift |> DynObj.setOptionalProperty ann "yshift" ann) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Button.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Button.fs index b0e04223c..7952ef157 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Button.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Button.fs @@ -42,12 +42,12 @@ type Button() = ) = (fun (button: Button) -> - Visible |> DynObj.setValueOpt button "visible" - Step |> DynObj.setValueOptBy button "step" StyleParam.TimeStep.convert - StepMode |> DynObj.setValueOptBy button "stepmode" StyleParam.TimeStepMode.convert - Count |> DynObj.setValueOpt button "count" - Label |> DynObj.setValueOpt button "label" - Name |> DynObj.setValueOpt button "name" - TemplateItemName |> DynObj.setValueOpt button "templateitemname" + Visible |> DynObj.setOptionalProperty button "visible" + Step |> DynObj.setOptionalPropertyBy button "step" StyleParam.TimeStep.convert + StepMode |> DynObj.setOptionalPropertyBy button "stepmode" StyleParam.TimeStepMode.convert + Count |> DynObj.setOptionalProperty button "count" + Label |> DynObj.setOptionalProperty button "label" + Name |> DynObj.setOptionalProperty button "name" + TemplateItemName |> DynObj.setOptionalProperty button "templateitemname" button) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ColorAxis.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ColorAxis.fs index 97f13a654..459ad2185 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ColorAxis.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ColorAxis.fs @@ -72,14 +72,14 @@ type ColorAxis() = ) = fun (ca: ColorAxis) -> - AutoColorScale |> DynObj.setValueOpt ca "autocolorscale" - CAuto |> DynObj.setValueOpt ca "cauto" - CMin |> DynObj.setValueOpt ca "cmin" - CMid |> DynObj.setValueOpt ca "cmid" - CMax |> DynObj.setValueOpt ca "cmax" - ColorBar |> DynObj.setValueOpt ca "colorbar" - ColorScale |> DynObj.setValueOptBy ca "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt ca "showscale" - ReverseScale |> DynObj.setValueOpt ca "reversescale" + AutoColorScale |> DynObj.setOptionalProperty ca "autocolorscale" + CAuto |> DynObj.setOptionalProperty ca "cauto" + CMin |> DynObj.setOptionalProperty ca "cmin" + CMid |> DynObj.setOptionalProperty ca "cmid" + CMax |> DynObj.setOptionalProperty ca "cmax" + ColorBar |> DynObj.setOptionalProperty ca "colorbar" + ColorScale |> DynObj.setOptionalPropertyBy ca "colorscale" StyleParam.Colorscale.convert + ShowScale |> DynObj.setOptionalProperty ca "showscale" + ReverseScale |> DynObj.setOptionalProperty ca "reversescale" ca diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/DefaultColorScales.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/DefaultColorScales.fs index 797fbbc93..36801c8b8 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/DefaultColorScales.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/DefaultColorScales.fs @@ -29,8 +29,8 @@ type DefaultColorScales() = ) = (fun (defaultColorScales: DefaultColorScales) -> - Diverging |> DynObj.setValueOptBy defaultColorScales "diverging" StyleParam.Colorscale.convert - Sequential |> DynObj.setValueOptBy defaultColorScales "sequential" StyleParam.Colorscale.convert - SequentialMinus |> DynObj.setValueOptBy defaultColorScales "sequentialminus" StyleParam.Colorscale.convert + Diverging |> DynObj.setOptionalPropertyBy defaultColorScales "diverging" StyleParam.Colorscale.convert + Sequential |> DynObj.setOptionalPropertyBy defaultColorScales "sequential" StyleParam.Colorscale.convert + SequentialMinus |> DynObj.setOptionalPropertyBy defaultColorScales "sequentialminus" StyleParam.Colorscale.convert defaultColorScales) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Domain.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Domain.fs index 7c6560422..d5f43f974 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Domain.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Domain.fs @@ -29,10 +29,10 @@ type Domain() = [] ?Column: int ) = (fun (dom: Domain) -> - X |> DynObj.setValueOptBy dom "x" StyleParam.Range.convert - Y |> DynObj.setValueOptBy dom "y" StyleParam.Range.convert - Row |> DynObj.setValueOpt dom "row" - Column |> DynObj.setValueOpt dom "column" + X |> DynObj.setOptionalPropertyBy dom "x" StyleParam.Range.convert + Y |> DynObj.setOptionalPropertyBy dom "y" StyleParam.Range.convert + Row |> DynObj.setOptionalProperty dom "row" + Column |> DynObj.setOptionalProperty dom "column" // out -> dom) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Hoverlabel.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Hoverlabel.fs index bd8782df4..b8b37350d 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Hoverlabel.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Hoverlabel.fs @@ -57,11 +57,11 @@ type Hoverlabel() = [] ?Namelength: int ) = (fun (label: Hoverlabel) -> - BgColor |> DynObj.setValueOpt label "bgcolor" - BorderColor |> DynObj.setValueOpt label "bordercolor" - Font |> DynObj.setValueOpt label "font" - GroupTitleFont |> DynObj.setValueOpt label "grouptitlefont" - Align |> DynObj.setValueOptBy label "align" StyleParam.Align.convert - Namelength |> DynObj.setValueOpt label "namelength" + BgColor |> DynObj.setOptionalProperty label "bgcolor" + BorderColor |> DynObj.setOptionalProperty label "bordercolor" + Font |> DynObj.setOptionalProperty label "font" + GroupTitleFont |> DynObj.setOptionalProperty label "grouptitlefont" + Align |> DynObj.setOptionalPropertyBy label "align" StyleParam.Align.convert + Namelength |> DynObj.setOptionalProperty label "namelength" label) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutGrid.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutGrid.fs index a6ceb2841..bd2869fe4 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutGrid.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutGrid.fs @@ -86,7 +86,7 @@ type LayoutGrid() = ) = (fun (layoutGrid: LayoutGrid) -> SubPlots - |> DynObj.setValueOptBy + |> DynObj.setOptionalPropertyBy layoutGrid "subplots" (Array.map ( @@ -94,16 +94,16 @@ type LayoutGrid() = $"{StyleParam.LinearAxisId.toString x}{StyleParam.LinearAxisId.toString y}") )) - XAxes |> DynObj.setValueOptBy layoutGrid "xaxes" (Array.map StyleParam.LinearAxisId.toString) - YAxes |> DynObj.setValueOptBy layoutGrid "yaxes" (Array.map StyleParam.LinearAxisId.toString) - Rows |> DynObj.setValueOpt layoutGrid "rows" - Columns |> DynObj.setValueOpt layoutGrid "columns" - RowOrder |> DynObj.setValueOptBy layoutGrid "roworder" StyleParam.LayoutGridRowOrder.toString - Pattern |> DynObj.setValueOptBy layoutGrid "pattern" StyleParam.LayoutGridPattern.toString - XGap |> DynObj.setValueOpt layoutGrid "xgap" - YGap |> DynObj.setValueOpt layoutGrid "ygap" - Domain |> DynObj.setValueOpt layoutGrid "domain" - XSide |> DynObj.setValueOptBy layoutGrid "xside" StyleParam.LayoutGridXSide.toString - YSide |> DynObj.setValueOptBy layoutGrid "yside" StyleParam.LayoutGridYSide.toString + XAxes |> DynObj.setOptionalPropertyBy layoutGrid "xaxes" (Array.map StyleParam.LinearAxisId.toString) + YAxes |> DynObj.setOptionalPropertyBy layoutGrid "yaxes" (Array.map StyleParam.LinearAxisId.toString) + Rows |> DynObj.setOptionalProperty layoutGrid "rows" + Columns |> DynObj.setOptionalProperty layoutGrid "columns" + RowOrder |> DynObj.setOptionalPropertyBy layoutGrid "roworder" StyleParam.LayoutGridRowOrder.toString + Pattern |> DynObj.setOptionalPropertyBy layoutGrid "pattern" StyleParam.LayoutGridPattern.toString + XGap |> DynObj.setOptionalProperty layoutGrid "xgap" + YGap |> DynObj.setOptionalProperty layoutGrid "ygap" + Domain |> DynObj.setOptionalProperty layoutGrid "domain" + XSide |> DynObj.setOptionalPropertyBy layoutGrid "xside" StyleParam.LayoutGridXSide.toString + YSide |> DynObj.setOptionalPropertyBy layoutGrid "yside" StyleParam.LayoutGridYSide.toString layoutGrid) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutImage.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutImage.fs index b3cd0f92a..de4e0d87d 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutImage.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutImage.fs @@ -66,20 +66,20 @@ type LayoutImage() = ) = (fun (layoutImage: LayoutImage) -> - Layer |> DynObj.setValueOptBy layoutImage "layer" StyleParam.Layer.convert - Name |> DynObj.setValueOpt layoutImage "name" - Opacity |> DynObj.setValueOpt layoutImage "opacity" - SizeX |> DynObj.setValueOpt layoutImage "sizex" - SizeY |> DynObj.setValueOpt layoutImage "sizey" - Sizing |> DynObj.setValueOptBy layoutImage "sizing" StyleParam.LayoutImageSizing.convert - Source |> DynObj.setValueOpt layoutImage "source" - TemplateItemname |> DynObj.setValueOpt layoutImage "templateitemname" - Visible |> DynObj.setValueOpt layoutImage "visible" - X |> DynObj.setValueOpt layoutImage "x" - XAnchor |> DynObj.setValueOptBy layoutImage "xanchor" StyleParam.XAnchorPosition.convert - XRef |> DynObj.setValueOpt layoutImage "xref" - Y |> DynObj.setValueOpt layoutImage "y" - YAnchor |> DynObj.setValueOptBy layoutImage "yanchor" StyleParam.YAnchorPosition.convert - YRef |> DynObj.setValueOpt layoutImage "yref" + Layer |> DynObj.setOptionalPropertyBy layoutImage "layer" StyleParam.Layer.convert + Name |> DynObj.setOptionalProperty layoutImage "name" + Opacity |> DynObj.setOptionalProperty layoutImage "opacity" + SizeX |> DynObj.setOptionalProperty layoutImage "sizex" + SizeY |> DynObj.setOptionalProperty layoutImage "sizey" + Sizing |> DynObj.setOptionalPropertyBy layoutImage "sizing" StyleParam.LayoutImageSizing.convert + Source |> DynObj.setOptionalProperty layoutImage "source" + TemplateItemname |> DynObj.setOptionalProperty layoutImage "templateitemname" + Visible |> DynObj.setOptionalProperty layoutImage "visible" + X |> DynObj.setOptionalProperty layoutImage "x" + XAnchor |> DynObj.setOptionalPropertyBy layoutImage "xanchor" StyleParam.XAnchorPosition.convert + XRef |> DynObj.setOptionalProperty layoutImage "xref" + Y |> DynObj.setOptionalProperty layoutImage "y" + YAnchor |> DynObj.setOptionalPropertyBy layoutImage "yanchor" StyleParam.YAnchorPosition.convert + YRef |> DynObj.setOptionalProperty layoutImage "yref" layoutImage) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Legend.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Legend.fs index 032412219..f1df9ec01 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Legend.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Legend.fs @@ -151,31 +151,31 @@ type Legend() = [] ?YRef: string ) = (fun (legend: Legend) -> - BGColor |> DynObj.setValueOpt legend "bgcolor" - BorderColor |> DynObj.setValueOpt legend "bordercolor" - BorderWidth |> DynObj.setValueOpt legend "borderwidth" - EntryWidth |> DynObj.setValueOpt legend "entrywidth" - EntryWidthMode |> DynObj.setValueOptBy legend "entrywidthmode" StyleParam.EntryWidthMode.convert - Font |> DynObj.setValueOpt legend "font" - GroupClick |> DynObj.setValueOptBy legend "groupclick" StyleParam.TraceGroupClickOptions.convert - GroupTitleFont |> DynObj.setValueOpt legend "grouptitlefont" - ItemClick |> DynObj.setValueOptBy legend "itemclick" StyleParam.TraceItemClickOptions.convert - ItemDoubleClick |> DynObj.setValueOptBy legend "itemdoubleclick" StyleParam.TraceItemClickOptions.convert - ItemSizing |> DynObj.setValueOptBy legend "itemsizing" StyleParam.TraceItemSizing.convert - ItemWidth |> DynObj.setValueOpt legend "itemwidth" - Orientation |> DynObj.setValueOptBy legend "orientation" StyleParam.Orientation.convert - Title |> DynObj.setValueOpt legend "title" - TraceGroupGap |> DynObj.setValueOpt legend "tracegroupgap" - TraceOrder |> DynObj.setValueOptBy legend "traceorder" StyleParam.TraceOrder.convert - UIRevision |> DynObj.setValueOpt legend "uirevision" - VerticalAlign |> DynObj.setValueOptBy legend "valign" StyleParam.VerticalAlign.convert - Visible |> DynObj.setValueOpt legend "visible" - X |> DynObj.setValueOpt legend "x" - XAnchor |> DynObj.setValueOptBy legend "xanchor" StyleParam.XAnchorPosition.convert - XRef |> DynObj.setValueOpt legend "xref" - Y |> DynObj.setValueOpt legend "y" - YAnchor |> DynObj.setValueOptBy legend "yanchor" StyleParam.YAnchorPosition.convert - YRef |> DynObj.setValueOpt legend "yref" + BGColor |> DynObj.setOptionalProperty legend "bgcolor" + BorderColor |> DynObj.setOptionalProperty legend "bordercolor" + BorderWidth |> DynObj.setOptionalProperty legend "borderwidth" + EntryWidth |> DynObj.setOptionalProperty legend "entrywidth" + EntryWidthMode |> DynObj.setOptionalPropertyBy legend "entrywidthmode" StyleParam.EntryWidthMode.convert + Font |> DynObj.setOptionalProperty legend "font" + GroupClick |> DynObj.setOptionalPropertyBy legend "groupclick" StyleParam.TraceGroupClickOptions.convert + GroupTitleFont |> DynObj.setOptionalProperty legend "grouptitlefont" + ItemClick |> DynObj.setOptionalPropertyBy legend "itemclick" StyleParam.TraceItemClickOptions.convert + ItemDoubleClick |> DynObj.setOptionalPropertyBy legend "itemdoubleclick" StyleParam.TraceItemClickOptions.convert + ItemSizing |> DynObj.setOptionalPropertyBy legend "itemsizing" StyleParam.TraceItemSizing.convert + ItemWidth |> DynObj.setOptionalProperty legend "itemwidth" + Orientation |> DynObj.setOptionalPropertyBy legend "orientation" StyleParam.Orientation.convert + Title |> DynObj.setOptionalProperty legend "title" + TraceGroupGap |> DynObj.setOptionalProperty legend "tracegroupgap" + TraceOrder |> DynObj.setOptionalPropertyBy legend "traceorder" StyleParam.TraceOrder.convert + UIRevision |> DynObj.setOptionalProperty legend "uirevision" + VerticalAlign |> DynObj.setOptionalPropertyBy legend "valign" StyleParam.VerticalAlign.convert + Visible |> DynObj.setOptionalProperty legend "visible" + X |> DynObj.setOptionalProperty legend "x" + XAnchor |> DynObj.setOptionalPropertyBy legend "xanchor" StyleParam.XAnchorPosition.convert + XRef |> DynObj.setOptionalProperty legend "xref" + Y |> DynObj.setOptionalProperty legend "y" + YAnchor |> DynObj.setOptionalPropertyBy legend "yanchor" StyleParam.YAnchorPosition.convert + YRef |> DynObj.setOptionalProperty legend "yref" diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/LinearAxis.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/LinearAxis.fs index 303ef4035..db4de8225 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/LinearAxis.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/LinearAxis.fs @@ -1007,110 +1007,110 @@ type LinearAxis() = ) = (fun (axis: LinearAxis) -> - Visible |> DynObj.setValueOpt axis "visible" - Color |> DynObj.setValueOpt axis "color" - Title |> DynObj.setValueOpt axis "title" - AxisType |> DynObj.setValueOptBy axis "type" StyleParam.AxisType.convert - AutoTypeNumbers |> DynObj.setValueOptBy axis "autotypenumbers" StyleParam.AutoTypeNumbers.convert - AutoRange |> DynObj.setValueOptBy axis "autorange" StyleParam.AutoRange.convert - AutoRangeOptions |> DynObj.setValueOpt axis "autorangeoptions" - AutoShift |> DynObj.setValueOpt axis "autoshift" - RangeMode |> DynObj.setValueOptBy axis "rangemode" StyleParam.RangeMode.convert - Range |> DynObj.setValueOptBy axis "range" StyleParam.Range.convert - FixedRange |> DynObj.setValueOpt axis "fixedrange" - ScaleAnchor |> DynObj.setValueOptBy axis "scaleanchor" StyleParam.ScaleAnchor.convert - ScaleRatio |> DynObj.setValueOpt axis "scaleratio" - Constrain |> DynObj.setValueOptBy axis "constrain" StyleParam.AxisConstraint.convert - ConstrainToward |> DynObj.setValueOptBy axis "constraintoward" StyleParam.AxisConstraintDirection.convert - Matches |> DynObj.setValueOptBy axis "matches" StyleParam.LinearAxisId.convert - MaxAllowed |> DynObj.setValueOpt axis "maxallowed" - MinAllowed |> DynObj.setValueOpt axis "minallowed" - Rangebreaks |> DynObj.setValueOpt axis "rangebreaks" - TickMode |> DynObj.setValueOptBy axis "tickmode" StyleParam.TickMode.convert - NTicks |> DynObj.setValueOpt axis "nticks" - Tick0 |> DynObj.setValueOpt axis "tick0" - DTick |> DynObj.setValueOpt axis "dtick" - TickVals |> DynObj.setValueOpt axis "tickvals" - TickText |> DynObj.setValueOpt axis "ticktext" - Ticks |> DynObj.setValueOptBy axis "ticks" StyleParam.TickOptions.convert - TicksOn |> DynObj.setValueOptBy axis "tickson" StyleParam.CategoryTickAnchor.convert - TickLabelMode |> DynObj.setValueOptBy axis "ticklabelmode" StyleParam.TickLabelMode.convert - TickLabelPosition |> DynObj.setValueOptBy axis "ticklabelposition" StyleParam.TickLabelPosition.convert - TickLabelStep |> DynObj.setValueOpt axis "ticklabelstep" - TickLabelOverflow |> DynObj.setValueOptBy axis "ticklabeloverflow" StyleParam.TickLabelOverflow.convert - Mirror |> DynObj.setValueOptBy axis "mirror" StyleParam.Mirror.convert - TickLen |> DynObj.setValueOpt axis "ticklen" - TickWidth |> DynObj.setValueOpt axis "tickwidth" - TickColor |> DynObj.setValueOpt axis "tickcolor" - ShowTickLabels |> DynObj.setValueOpt axis "showticklabels" - AutoMargin |> DynObj.setValueOptBy axis "automargin" StyleParam.TickAutoMargin.convert - ShowSpikes |> DynObj.setValueOpt axis "showspikes" - SpikeColor |> DynObj.setValueOpt axis "spikecolor" - SpikeThickness |> DynObj.setValueOpt axis "spikethickness" - SpikeDash |> DynObj.setValueOptBy axis "spikedash" StyleParam.DrawingStyle.convert - SpikeMode |> DynObj.setValueOptBy axis "spikemode" StyleParam.SpikeMode.convert - SpikeSnap |> DynObj.setValueOptBy axis "spikesnap" StyleParam.SpikeSnap.convert - TickFont |> DynObj.setValueOpt axis "tickfont" - TickAngle |> DynObj.setValueOpt axis "tickangle" - ShowTickPrefix |> DynObj.setValueOptBy axis "showtickprefix" StyleParam.ShowTickOption.convert - TickPrefix |> DynObj.setValueOpt axis "tickprefix" - ShowTickSuffix |> DynObj.setValueOptBy axis "showticksuffix" StyleParam.ShowTickOption.convert - TickSuffix |> DynObj.setValueOpt axis "ticksuffix" - ShowExponent |> DynObj.setValueOptBy axis "showexponent" StyleParam.ShowExponent.convert - ExponentFormat |> DynObj.setValueOptBy axis "exponentformat" StyleParam.ExponentFormat.convert - MinExponent |> DynObj.setValueOpt axis "minexponent" - Minor |> DynObj.setValueOpt axis "minor" - SeparateThousands |> DynObj.setValueOpt axis "separatethousands" - TickFormat |> DynObj.setValueOpt axis "tickformat" - TickFormatStops |> DynObj.setValueOpt axis "tickformatstops" - HoverFormat |> DynObj.setValueOpt axis "hoverformat" - InsideRange |> DynObj.setValueOptBy axis "insiderange" StyleParam.Range.convert - ShowLine |> DynObj.setValueOpt axis "showline" - LineColor |> DynObj.setValueOpt axis "linecolor" - LineWidth |> DynObj.setValueOpt axis "linewidth" - ShowGrid |> DynObj.setValueOpt axis "showgrid" - GridColor |> DynObj.setValueOpt axis "gridcolor" - GridDash |> DynObj.setValueOptBy axis "griddash" StyleParam.DrawingStyle.convert - GridWidth |> DynObj.setValueOpt axis "gridwidth" - ZeroLine |> DynObj.setValueOpt axis "zeroline" - ZeroLineColor |> DynObj.setValueOpt axis "zerolinecolor" - ZeroLineWidth |> DynObj.setValueOpt axis "zerolinewidth" - Shift |> DynObj.setValueOpt axis "shift" - ShowDividers |> DynObj.setValueOpt axis "showdividers" - DividerColor |> DynObj.setValueOpt axis "dividercolor" - DividerWidth |> DynObj.setValueOpt axis "dividerwidth" - Anchor |> DynObj.setValueOptBy axis "anchor" StyleParam.LinearAxisId.convert - Side |> DynObj.setValueOptBy axis "side" StyleParam.Side.convert - Overlaying |> DynObj.setValueOptBy axis "overlaying" StyleParam.LinearAxisId.convert - LabelAlias |> DynObj.setValueOpt axis "labelalias" - Layer |> DynObj.setValueOptBy axis "layer" StyleParam.Layer.convert - Domain |> DynObj.setValueOptBy axis "domain" StyleParam.Range.convert - Position |> DynObj.setValueOpt axis "position" - CategoryOrder |> DynObj.setValueOptBy axis "categoryorder" StyleParam.CategoryOrder.convert - CategoryArray |> DynObj.setValueOpt axis "categoryarray" - UIRevision |> DynObj.setValueOpt axis "uirevision" - RangeSlider |> DynObj.setValueOpt axis "rangeslider" - RangeSelector |> DynObj.setValueOpt axis "rangeselector" - Calendar |> DynObj.setValueOptBy axis "calendar" StyleParam.Calendar.convert - ArrayDTick |> DynObj.setValueOpt axis "arraydtick" - ArrayTick0 |> DynObj.setValueOpt axis "arraytick0" - CheaterType |> DynObj.setValueOptBy axis "cheatertype" StyleParam.CheaterType.convert - EndLine |> DynObj.setValueOpt axis "endline" - EndLineColor |> DynObj.setValueOpt axis "endlinecolor" - EndLineWidth |> DynObj.setValueOpt axis "endlinewidth" - LabelPadding |> DynObj.setValueOpt axis "labelpadding" - LabelPrefix |> DynObj.setValueOpt axis "labelprefix" - LabelSuffix |> DynObj.setValueOpt axis "labelsuffix" - MinorGridColor |> DynObj.setValueOpt axis "minorgridcolor" - MinorGridDash |> DynObj.setValueOptBy axis "minorgriddash" StyleParam.DrawingStyle.convert - MinorGridCount |> DynObj.setValueOpt axis "minorgridcount" - MinorGridWidth |> DynObj.setValueOpt axis "minorgridwidth" - Smoothing |> DynObj.setValueOpt axis "smoothing" - StartLine |> DynObj.setValueOpt axis "startline" - StartLineColor |> DynObj.setValueOpt axis "startlinecolor" - StartLineWidth |> DynObj.setValueOpt axis "startlinewidth" - BackgroundColor |> DynObj.setValueOpt axis "backgroundcolor" - ShowBackground |> DynObj.setValueOpt axis "showbackground" + Visible |> DynObj.setOptionalProperty axis "visible" + Color |> DynObj.setOptionalProperty axis "color" + Title |> DynObj.setOptionalProperty axis "title" + AxisType |> DynObj.setOptionalPropertyBy axis "type" StyleParam.AxisType.convert + AutoTypeNumbers |> DynObj.setOptionalPropertyBy axis "autotypenumbers" StyleParam.AutoTypeNumbers.convert + AutoRange |> DynObj.setOptionalPropertyBy axis "autorange" StyleParam.AutoRange.convert + AutoRangeOptions |> DynObj.setOptionalProperty axis "autorangeoptions" + AutoShift |> DynObj.setOptionalProperty axis "autoshift" + RangeMode |> DynObj.setOptionalPropertyBy axis "rangemode" StyleParam.RangeMode.convert + Range |> DynObj.setOptionalPropertyBy axis "range" StyleParam.Range.convert + FixedRange |> DynObj.setOptionalProperty axis "fixedrange" + ScaleAnchor |> DynObj.setOptionalPropertyBy axis "scaleanchor" StyleParam.ScaleAnchor.convert + ScaleRatio |> DynObj.setOptionalProperty axis "scaleratio" + Constrain |> DynObj.setOptionalPropertyBy axis "constrain" StyleParam.AxisConstraint.convert + ConstrainToward |> DynObj.setOptionalPropertyBy axis "constraintoward" StyleParam.AxisConstraintDirection.convert + Matches |> DynObj.setOptionalPropertyBy axis "matches" StyleParam.LinearAxisId.convert + MaxAllowed |> DynObj.setOptionalProperty axis "maxallowed" + MinAllowed |> DynObj.setOptionalProperty axis "minallowed" + Rangebreaks |> DynObj.setOptionalProperty axis "rangebreaks" + TickMode |> DynObj.setOptionalPropertyBy axis "tickmode" StyleParam.TickMode.convert + NTicks |> DynObj.setOptionalProperty axis "nticks" + Tick0 |> DynObj.setOptionalProperty axis "tick0" + DTick |> DynObj.setOptionalProperty axis "dtick" + TickVals |> DynObj.setOptionalProperty axis "tickvals" + TickText |> DynObj.setOptionalProperty axis "ticktext" + Ticks |> DynObj.setOptionalPropertyBy axis "ticks" StyleParam.TickOptions.convert + TicksOn |> DynObj.setOptionalPropertyBy axis "tickson" StyleParam.CategoryTickAnchor.convert + TickLabelMode |> DynObj.setOptionalPropertyBy axis "ticklabelmode" StyleParam.TickLabelMode.convert + TickLabelPosition |> DynObj.setOptionalPropertyBy axis "ticklabelposition" StyleParam.TickLabelPosition.convert + TickLabelStep |> DynObj.setOptionalProperty axis "ticklabelstep" + TickLabelOverflow |> DynObj.setOptionalPropertyBy axis "ticklabeloverflow" StyleParam.TickLabelOverflow.convert + Mirror |> DynObj.setOptionalPropertyBy axis "mirror" StyleParam.Mirror.convert + TickLen |> DynObj.setOptionalProperty axis "ticklen" + TickWidth |> DynObj.setOptionalProperty axis "tickwidth" + TickColor |> DynObj.setOptionalProperty axis "tickcolor" + ShowTickLabels |> DynObj.setOptionalProperty axis "showticklabels" + AutoMargin |> DynObj.setOptionalPropertyBy axis "automargin" StyleParam.TickAutoMargin.convert + ShowSpikes |> DynObj.setOptionalProperty axis "showspikes" + SpikeColor |> DynObj.setOptionalProperty axis "spikecolor" + SpikeThickness |> DynObj.setOptionalProperty axis "spikethickness" + SpikeDash |> DynObj.setOptionalPropertyBy axis "spikedash" StyleParam.DrawingStyle.convert + SpikeMode |> DynObj.setOptionalPropertyBy axis "spikemode" StyleParam.SpikeMode.convert + SpikeSnap |> DynObj.setOptionalPropertyBy axis "spikesnap" StyleParam.SpikeSnap.convert + TickFont |> DynObj.setOptionalProperty axis "tickfont" + TickAngle |> DynObj.setOptionalProperty axis "tickangle" + ShowTickPrefix |> DynObj.setOptionalPropertyBy axis "showtickprefix" StyleParam.ShowTickOption.convert + TickPrefix |> DynObj.setOptionalProperty axis "tickprefix" + ShowTickSuffix |> DynObj.setOptionalPropertyBy axis "showticksuffix" StyleParam.ShowTickOption.convert + TickSuffix |> DynObj.setOptionalProperty axis "ticksuffix" + ShowExponent |> DynObj.setOptionalPropertyBy axis "showexponent" StyleParam.ShowExponent.convert + ExponentFormat |> DynObj.setOptionalPropertyBy axis "exponentformat" StyleParam.ExponentFormat.convert + MinExponent |> DynObj.setOptionalProperty axis "minexponent" + Minor |> DynObj.setOptionalProperty axis "minor" + SeparateThousands |> DynObj.setOptionalProperty axis "separatethousands" + TickFormat |> DynObj.setOptionalProperty axis "tickformat" + TickFormatStops |> DynObj.setOptionalProperty axis "tickformatstops" + HoverFormat |> DynObj.setOptionalProperty axis "hoverformat" + InsideRange |> DynObj.setOptionalPropertyBy axis "insiderange" StyleParam.Range.convert + ShowLine |> DynObj.setOptionalProperty axis "showline" + LineColor |> DynObj.setOptionalProperty axis "linecolor" + LineWidth |> DynObj.setOptionalProperty axis "linewidth" + ShowGrid |> DynObj.setOptionalProperty axis "showgrid" + GridColor |> DynObj.setOptionalProperty axis "gridcolor" + GridDash |> DynObj.setOptionalPropertyBy axis "griddash" StyleParam.DrawingStyle.convert + GridWidth |> DynObj.setOptionalProperty axis "gridwidth" + ZeroLine |> DynObj.setOptionalProperty axis "zeroline" + ZeroLineColor |> DynObj.setOptionalProperty axis "zerolinecolor" + ZeroLineWidth |> DynObj.setOptionalProperty axis "zerolinewidth" + Shift |> DynObj.setOptionalProperty axis "shift" + ShowDividers |> DynObj.setOptionalProperty axis "showdividers" + DividerColor |> DynObj.setOptionalProperty axis "dividercolor" + DividerWidth |> DynObj.setOptionalProperty axis "dividerwidth" + Anchor |> DynObj.setOptionalPropertyBy axis "anchor" StyleParam.LinearAxisId.convert + Side |> DynObj.setOptionalPropertyBy axis "side" StyleParam.Side.convert + Overlaying |> DynObj.setOptionalPropertyBy axis "overlaying" StyleParam.LinearAxisId.convert + LabelAlias |> DynObj.setOptionalProperty axis "labelalias" + Layer |> DynObj.setOptionalPropertyBy axis "layer" StyleParam.Layer.convert + Domain |> DynObj.setOptionalPropertyBy axis "domain" StyleParam.Range.convert + Position |> DynObj.setOptionalProperty axis "position" + CategoryOrder |> DynObj.setOptionalPropertyBy axis "categoryorder" StyleParam.CategoryOrder.convert + CategoryArray |> DynObj.setOptionalProperty axis "categoryarray" + UIRevision |> DynObj.setOptionalProperty axis "uirevision" + RangeSlider |> DynObj.setOptionalProperty axis "rangeslider" + RangeSelector |> DynObj.setOptionalProperty axis "rangeselector" + Calendar |> DynObj.setOptionalPropertyBy axis "calendar" StyleParam.Calendar.convert + ArrayDTick |> DynObj.setOptionalProperty axis "arraydtick" + ArrayTick0 |> DynObj.setOptionalProperty axis "arraytick0" + CheaterType |> DynObj.setOptionalPropertyBy axis "cheatertype" StyleParam.CheaterType.convert + EndLine |> DynObj.setOptionalProperty axis "endline" + EndLineColor |> DynObj.setOptionalProperty axis "endlinecolor" + EndLineWidth |> DynObj.setOptionalProperty axis "endlinewidth" + LabelPadding |> DynObj.setOptionalProperty axis "labelpadding" + LabelPrefix |> DynObj.setOptionalProperty axis "labelprefix" + LabelSuffix |> DynObj.setOptionalProperty axis "labelsuffix" + MinorGridColor |> DynObj.setOptionalProperty axis "minorgridcolor" + MinorGridDash |> DynObj.setOptionalPropertyBy axis "minorgriddash" StyleParam.DrawingStyle.convert + MinorGridCount |> DynObj.setOptionalProperty axis "minorgridcount" + MinorGridWidth |> DynObj.setOptionalProperty axis "minorgridwidth" + Smoothing |> DynObj.setOptionalProperty axis "smoothing" + StartLine |> DynObj.setOptionalProperty axis "startline" + StartLineColor |> DynObj.setOptionalProperty axis "startlinecolor" + StartLineWidth |> DynObj.setOptionalProperty axis "startlinewidth" + BackgroundColor |> DynObj.setOptionalProperty axis "backgroundcolor" + ShowBackground |> DynObj.setOptionalProperty axis "showbackground" axis) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Margin.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Margin.fs index 7cb8e62d7..c2e48f9b4 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Margin.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Margin.fs @@ -39,12 +39,12 @@ type Margin() = [] ?Autoexpand ) = (fun (margin: Margin) -> - Left |> DynObj.setValueOpt margin "l" - Right |> DynObj.setValueOpt margin "r" - Top |> DynObj.setValueOpt margin "t" - Bottom |> DynObj.setValueOpt margin "b" + Left |> DynObj.setOptionalProperty margin "l" + Right |> DynObj.setOptionalProperty margin "r" + Top |> DynObj.setOptionalProperty margin "t" + Bottom |> DynObj.setOptionalProperty margin "b" - Pad |> DynObj.setValueOpt margin "pad" - Autoexpand |> DynObj.setValueOpt margin "autoexpand" + Pad |> DynObj.setOptionalProperty margin "pad" + Autoexpand |> DynObj.setOptionalProperty margin "autoexpand" margin) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Minor.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Minor.fs index 67e00580d..0629a990f 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Minor.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Minor.fs @@ -92,18 +92,18 @@ type Minor() = ) = (fun (minor: Minor) -> - DTick |> DynObj.setValueOpt minor "dtick" - GridColor |> DynObj.setValueOpt minor "gridcolor" - GridDash |> DynObj.setValueOptBy minor "griddash" StyleParam.DrawingStyle.convert - GridWidth |> DynObj.setValueOpt minor "gridwidth" - NTicks |> DynObj.setValueOpt minor "nticks" - ShowGrid |> DynObj.setValueOpt minor "showgrid" - Tick0 |> DynObj.setValueOpt minor "tick0" - TickColor |> DynObj.setValueOpt minor "tickcolor" - TickLen |> DynObj.setValueOpt minor "ticklen" - TickMode |> DynObj.setValueOptBy minor "tickmode" StyleParam.TickMode.convert - Ticks |> DynObj.setValueOptBy minor "ticks" StyleParam.TickOptions.convert - TickVals |> DynObj.setValueOpt minor "tickvals" - TickWidth |> DynObj.setValueOpt minor "tickwidth" + DTick |> DynObj.setOptionalProperty minor "dtick" + GridColor |> DynObj.setOptionalProperty minor "gridcolor" + GridDash |> DynObj.setOptionalPropertyBy minor "griddash" StyleParam.DrawingStyle.convert + GridWidth |> DynObj.setOptionalProperty minor "gridwidth" + NTicks |> DynObj.setOptionalProperty minor "nticks" + ShowGrid |> DynObj.setOptionalProperty minor "showgrid" + Tick0 |> DynObj.setOptionalProperty minor "tick0" + TickColor |> DynObj.setOptionalProperty minor "tickcolor" + TickLen |> DynObj.setOptionalProperty minor "ticklen" + TickMode |> DynObj.setOptionalPropertyBy minor "tickmode" StyleParam.TickMode.convert + Ticks |> DynObj.setOptionalPropertyBy minor "ticks" StyleParam.TickOptions.convert + TickVals |> DynObj.setOptionalProperty minor "tickvals" + TickWidth |> DynObj.setOptionalProperty minor "tickwidth" minor) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ModeBar.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ModeBar.fs index 31b63cd9e..513ef5701 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ModeBar.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ModeBar.fs @@ -41,12 +41,12 @@ type ModeBar() = ) = (fun (modeBar: ModeBar) -> - ActiveColor |> DynObj.setValueOpt modeBar "activecolor" - Add |> DynObj.setValueOpt modeBar "add" - BGColor |> DynObj.setValueOpt modeBar "bgcolor" - Color |> DynObj.setValueOpt modeBar "color" - Orientation |> DynObj.setValueOptBy modeBar "orientation" StyleParam.Orientation.convert - Remove |> DynObj.setValueOpt modeBar "remove" - UIRevision |> DynObj.setValueOpt modeBar "uirevision " + ActiveColor |> DynObj.setOptionalProperty modeBar "activecolor" + Add |> DynObj.setOptionalProperty modeBar "add" + BGColor |> DynObj.setOptionalProperty modeBar "bgcolor" + Color |> DynObj.setOptionalProperty modeBar "color" + Orientation |> DynObj.setOptionalPropertyBy modeBar "orientation" StyleParam.Orientation.convert + Remove |> DynObj.setOptionalProperty modeBar "remove" + UIRevision |> DynObj.setOptionalProperty modeBar "uirevision " modeBar) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewSelection.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewSelection.fs index ee91cb5ca..6261b3e8d 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewSelection.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewSelection.fs @@ -44,7 +44,7 @@ type NewSelection() = let line = Line.init (?Color = LineColor, ?Dash = LineDash, ?Width = LineWidth) - line |> DynObj.setValue newSelection "line" - Mode |> DynObj.setValueOptBy newSelection "mode" StyleParam.NewSelectionMode.convert + line |> DynObj.withProperty newSelection "line" + Mode |> DynObj.setOptionalPropertyBy newSelection "mode" StyleParam.NewSelectionMode.convert newSelection) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewShape.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewShape.fs index 9040dc40f..fd5ac1010 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewShape.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewShape.fs @@ -13,7 +13,7 @@ type NewShape() = /// /// The name of the dynamic member to get the value of /// The NewShape to get the dynamic member value from - static member tryGetTypedMember<'T> (propName: string) (newShape:NewShape) = newShape.TryGetTypedValue<'T>(propName) + static member tryGetTypedMember<'T> (propName: string) (newShape:NewShape) = newShape.TryGetTypedPropertyValue<'T>(propName) /// /// Returns the Legend anchor of the given NewShape. @@ -130,19 +130,19 @@ type NewShape() = ) = (fun (newShape: NewShape) -> - DrawDirection |> DynObj.setValueOptBy newShape "drawdirection" StyleParam.DrawDirection.convert - FillColor |> DynObj.setValueOpt newShape "fillcolor" - FillRule |> DynObj.setValueOptBy newShape "fillrule" StyleParam.FillRule.convert - Layer |> DynObj.setValueOptBy newShape "layer" StyleParam.Layer.convert - ShowLegend |> DynObj.setValueOpt newShape "showlegend" - Legend |> DynObj.setValueOptBy newShape "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt newShape "legendrank" - LegendGroup |> DynObj.setValueOpt newShape "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt newShape "legendgrouptitle" - LegendWidth |> DynObj.setValueOpt newShape "legendwidth" - Line |> DynObj.setValueOpt newShape "line" - Name |> DynObj.setValueOpt newShape "name" - Opacity |> DynObj.setValueOpt newShape "opacity" - Visible |> DynObj.setValueOptBy newShape "visible" StyleParam.Visible.convert + DrawDirection |> DynObj.setOptionalPropertyBy newShape "drawdirection" StyleParam.DrawDirection.convert + FillColor |> DynObj.setOptionalProperty newShape "fillcolor" + FillRule |> DynObj.setOptionalPropertyBy newShape "fillrule" StyleParam.FillRule.convert + Layer |> DynObj.setOptionalPropertyBy newShape "layer" StyleParam.Layer.convert + ShowLegend |> DynObj.setOptionalProperty newShape "showlegend" + Legend |> DynObj.setOptionalPropertyBy newShape "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty newShape "legendrank" + LegendGroup |> DynObj.setOptionalProperty newShape "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty newShape "legendgrouptitle" + LegendWidth |> DynObj.setOptionalProperty newShape "legendwidth" + Line |> DynObj.setOptionalProperty newShape "line" + Name |> DynObj.setOptionalProperty newShape "name" + Opacity |> DynObj.setOptionalProperty newShape "opacity" + Visible |> DynObj.setOptionalPropertyBy newShape "visible" StyleParam.Visible.convert newShape) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSelector.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSelector.fs index 537f97dd5..2d4bf16a0 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSelector.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSelector.fs @@ -55,16 +55,16 @@ type RangeSelector() = ) = (fun (rangeSelector: RangeSelector) -> - Visible |> DynObj.setValueOpt rangeSelector "visible" - Buttons |> DynObj.setValueOpt rangeSelector "buttons" - X |> DynObj.setValueOpt rangeSelector "x" - XAnchor |> DynObj.setValueOptBy rangeSelector "xanchor" StyleParam.XAnchorPosition.convert - Y |> DynObj.setValueOpt rangeSelector "y" - YAnchor |> DynObj.setValueOptBy rangeSelector "yanchor" StyleParam.YAnchorPosition.convert - Font |> DynObj.setValueOpt rangeSelector "font" - BGColor |> DynObj.setValueOpt rangeSelector "bgcolor" - ActiveColor |> DynObj.setValueOpt rangeSelector "activecolor" - BorderColor |> DynObj.setValueOpt rangeSelector "bordercolor" - BorderWidth |> DynObj.setValueOpt rangeSelector "borderwidth" + Visible |> DynObj.setOptionalProperty rangeSelector "visible" + Buttons |> DynObj.setOptionalProperty rangeSelector "buttons" + X |> DynObj.setOptionalProperty rangeSelector "x" + XAnchor |> DynObj.setOptionalPropertyBy rangeSelector "xanchor" StyleParam.XAnchorPosition.convert + Y |> DynObj.setOptionalProperty rangeSelector "y" + YAnchor |> DynObj.setOptionalPropertyBy rangeSelector "yanchor" StyleParam.YAnchorPosition.convert + Font |> DynObj.setOptionalProperty rangeSelector "font" + BGColor |> DynObj.setOptionalProperty rangeSelector "bgcolor" + ActiveColor |> DynObj.setOptionalProperty rangeSelector "activecolor" + BorderColor |> DynObj.setOptionalProperty rangeSelector "bordercolor" + BorderWidth |> DynObj.setOptionalProperty rangeSelector "borderwidth" rangeSelector) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSlider.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSlider.fs index e3e0f07ba..352b75517 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSlider.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSlider.fs @@ -50,21 +50,21 @@ type RangeSlider() = [] ?YAxisRange: StyleParam.Range ) = fun (rangeslider: RangeSlider) -> - BgColor |> DynObj.setValueOpt rangeslider "bgcolor" - BorderColor |> DynObj.setValueOpt rangeslider "bordercolor" - BorderWidth |> DynObj.setValueOpt rangeslider "borderwidth" - AutoRange |> DynObj.setValueOpt rangeslider "autorange" - Range |> DynObj.setValueOptBy rangeslider "range" StyleParam.Range.convert - Thickness |> DynObj.setValueOpt rangeslider "thickness" - Visible |> DynObj.setValueOpt rangeslider "visible" + BgColor |> DynObj.setOptionalProperty rangeslider "bgcolor" + BorderColor |> DynObj.setOptionalProperty rangeslider "bordercolor" + BorderWidth |> DynObj.setOptionalProperty rangeslider "borderwidth" + AutoRange |> DynObj.setOptionalProperty rangeslider "autorange" + Range |> DynObj.setOptionalPropertyBy rangeslider "range" StyleParam.Range.convert + Thickness |> DynObj.setOptionalProperty rangeslider "thickness" + Visible |> DynObj.setOptionalProperty rangeslider "visible" let yAxis = let tmp = DynamicObj() - YAxisRangeMode |> DynObj.setValueOptBy tmp "rangemode" StyleParam.RangesliderRangeMode.convert - YAxisRange |> DynObj.setValueOptBy tmp "range" StyleParam.Range.convert + YAxisRangeMode |> DynObj.setOptionalPropertyBy tmp "rangemode" StyleParam.RangesliderRangeMode.convert + YAxisRange |> DynObj.setOptionalPropertyBy tmp "range" StyleParam.Range.convert tmp - yAxis |> DynObj.setValue rangeslider "yaxis" + yAxis |> DynObj.withProperty rangeslider "yaxis" rangeslider diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Rangebreak.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Rangebreak.fs index d068097ed..8760df610 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Rangebreak.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Rangebreak.fs @@ -60,12 +60,12 @@ type Rangebreak() = [] ?TemplateItemName: string ) = (fun (rangebreak: Rangebreak) -> - Enabled |> DynObj.setValueOpt rangebreak "enabled" - Bounds |> DynObj.setValueOptBy rangebreak "bounds" (fun (a, b) -> [| a; b |]) - Pattern |> DynObj.setValueOptBy rangebreak "pattern" StyleParam.RangebreakPattern.convert - Values |> DynObj.setValueOpt rangebreak "values" - DValue |> DynObj.setValueOpt rangebreak "dvalue" - Name |> DynObj.setValueOpt rangebreak "name" - TemplateItemName |> DynObj.setValueOpt rangebreak "templateitemname" + Enabled |> DynObj.setOptionalProperty rangebreak "enabled" + Bounds |> DynObj.setOptionalPropertyBy rangebreak "bounds" (fun (a, b) -> [| a; b |]) + Pattern |> DynObj.setOptionalPropertyBy rangebreak "pattern" StyleParam.RangebreakPattern.convert + Values |> DynObj.setOptionalProperty rangebreak "values" + DValue |> DynObj.setOptionalProperty rangebreak "dvalue" + Name |> DynObj.setOptionalProperty rangebreak "name" + TemplateItemName |> DynObj.setOptionalProperty rangebreak "templateitemname" rangebreak) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Selection.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Selection.fs index 898b0cce0..99151c5f8 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Selection.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Selection.fs @@ -86,17 +86,17 @@ type Selection() = ) = (fun (selection: Selection) -> - Line |> DynObj.setValueOpt selection "line" - Name |> DynObj.setValueOpt selection "name" - Opacity |> DynObj.setValueOpt selection "opacity" - Path |> DynObj.setValueOpt selection "path" - TemplateItemName |> DynObj.setValueOpt selection "templateitemname" - SelectionType |> DynObj.setValueOptBy selection "type" StyleParam.SelectionType.convert - X0 |> DynObj.setValueOpt selection "x0" - X1 |> DynObj.setValueOpt selection "x1" - Xref |> DynObj.setValueOpt selection "xref" - Y0 |> DynObj.setValueOpt selection "y0" - Y1 |> DynObj.setValueOpt selection "y1" - Yref |> DynObj.setValueOpt selection "yref" + Line |> DynObj.setOptionalProperty selection "line" + Name |> DynObj.setOptionalProperty selection "name" + Opacity |> DynObj.setOptionalProperty selection "opacity" + Path |> DynObj.setOptionalProperty selection "path" + TemplateItemName |> DynObj.setOptionalProperty selection "templateitemname" + SelectionType |> DynObj.setOptionalPropertyBy selection "type" StyleParam.SelectionType.convert + X0 |> DynObj.setOptionalProperty selection "x0" + X1 |> DynObj.setOptionalProperty selection "x1" + Xref |> DynObj.setOptionalProperty selection "xref" + Y0 |> DynObj.setOptionalProperty selection "y0" + Y1 |> DynObj.setOptionalProperty selection "y1" + Yref |> DynObj.setOptionalProperty selection "yref" selection) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Shape.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Shape.fs index a86e20aee..32ea71dfc 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Shape.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Shape.fs @@ -14,7 +14,7 @@ type Shape() = /// /// The name of the dynamic member to get the value of /// The shape to get the dynamic member value from - static member tryGetTypedMember<'T> (propName: string) (shape:Shape) = shape.TryGetTypedValue<'T>(propName) + static member tryGetTypedMember<'T> (propName: string) (shape:Shape) = shape.TryGetTypedPropertyValue<'T>(propName) /// /// Returns the Legend anchor of the given shape. @@ -201,33 +201,33 @@ type Shape() = ) = (fun (shape: Shape) -> - Editable |> DynObj.setValueOpt shape "editable" - FillColor |> DynObj.setValueOpt shape "fillcolor" - FillRule |> DynObj.setValueOptBy shape "fillrule" StyleParam.FillRule.convert - Label |> DynObj.setValueOpt shape "label" - ShowLegend |> DynObj.setValueOpt shape "showlegend" - Legend |> DynObj.setValueOptBy shape "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt shape "legendrank" - LegendGroup |> DynObj.setValueOpt shape "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt shape "legendgrouptitle" - LegendWidth |> DynObj.setValueOpt shape "legendwidth" - Layer |> DynObj.setValueOptBy shape "layer" StyleParam.Layer.convert - Line |> DynObj.setValueOpt shape "line" - Name |> DynObj.setValueOpt shape "name" - Opacity |> DynObj.setValueOpt shape "opacity" - Path |> DynObj.setValueOpt shape "path" - TemplateItemName |> DynObj.setValueOpt shape "templateitemname" - ShapeType |> DynObj.setValueOptBy shape "type" StyleParam.ShapeType.convert - Visible |> DynObj.setValueOpt shape "visible" - X0 |> DynObj.setValueOpt shape "x0" - X1 |> DynObj.setValueOpt shape "x1" - XAnchor |> DynObj.setValueOptBy shape "xanchor" StyleParam.LinearAxisId.convert - Xref |> DynObj.setValueOpt shape "xref" - XSizeMode |> DynObj.setValueOptBy shape "xsizemode" StyleParam.ShapeSizeMode.convert - Y0 |> DynObj.setValueOpt shape "y0" - Y1 |> DynObj.setValueOpt shape "y1" - YAnchor |> DynObj.setValueOptBy shape "yanchor" StyleParam.LinearAxisId.convert - Yref |> DynObj.setValueOpt shape "yref" - YSizeMode |> DynObj.setValueOptBy shape "ysizemode" StyleParam.ShapeSizeMode.convert + Editable |> DynObj.setOptionalProperty shape "editable" + FillColor |> DynObj.setOptionalProperty shape "fillcolor" + FillRule |> DynObj.setOptionalPropertyBy shape "fillrule" StyleParam.FillRule.convert + Label |> DynObj.setOptionalProperty shape "label" + ShowLegend |> DynObj.setOptionalProperty shape "showlegend" + Legend |> DynObj.setOptionalPropertyBy shape "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty shape "legendrank" + LegendGroup |> DynObj.setOptionalProperty shape "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty shape "legendgrouptitle" + LegendWidth |> DynObj.setOptionalProperty shape "legendwidth" + Layer |> DynObj.setOptionalPropertyBy shape "layer" StyleParam.Layer.convert + Line |> DynObj.setOptionalProperty shape "line" + Name |> DynObj.setOptionalProperty shape "name" + Opacity |> DynObj.setOptionalProperty shape "opacity" + Path |> DynObj.setOptionalProperty shape "path" + TemplateItemName |> DynObj.setOptionalProperty shape "templateitemname" + ShapeType |> DynObj.setOptionalPropertyBy shape "type" StyleParam.ShapeType.convert + Visible |> DynObj.setOptionalProperty shape "visible" + X0 |> DynObj.setOptionalProperty shape "x0" + X1 |> DynObj.setOptionalProperty shape "x1" + XAnchor |> DynObj.setOptionalPropertyBy shape "xanchor" StyleParam.LinearAxisId.convert + Xref |> DynObj.setOptionalProperty shape "xref" + XSizeMode |> DynObj.setOptionalPropertyBy shape "xsizemode" StyleParam.ShapeSizeMode.convert + Y0 |> DynObj.setOptionalProperty shape "y0" + Y1 |> DynObj.setOptionalProperty shape "y1" + YAnchor |> DynObj.setOptionalPropertyBy shape "yanchor" StyleParam.LinearAxisId.convert + Yref |> DynObj.setOptionalProperty shape "yref" + YSizeMode |> DynObj.setOptionalPropertyBy shape "ysizemode" StyleParam.ShapeSizeMode.convert shape) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ShapeLabel.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ShapeLabel.fs index 241c86a60..6a391ce1f 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ShapeLabel.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ShapeLabel.fs @@ -72,14 +72,14 @@ type ShapeLabel() = (fun (shapeLabel: ShapeLabel) -> - Font |> DynObj.setValueOpt shapeLabel "font" - Padding |> DynObj.setValueOpt shapeLabel "padding" - Text |> DynObj.setValueOpt shapeLabel "text" - TextAngle |> DynObj.setValueOptBy shapeLabel "textangle" StyleParam.TextAngle.convert - TextPosition |> DynObj.setValueOptBy shapeLabel "textposition" StyleParam.TextPosition.convert - TextTemplate |> DynObj.setValueOpt shapeLabel "texttemplate" - XAnchor |> DynObj.setValueOptBy shapeLabel "xanchor" StyleParam.XAnchorPosition.convert - YAnchor |> DynObj.setValueOptBy shapeLabel "yanchor" StyleParam.YAnchorPosition.convert + Font |> DynObj.setOptionalProperty shapeLabel "font" + Padding |> DynObj.setOptionalProperty shapeLabel "padding" + Text |> DynObj.setOptionalProperty shapeLabel "text" + TextAngle |> DynObj.setOptionalPropertyBy shapeLabel "textangle" StyleParam.TextAngle.convert + TextPosition |> DynObj.setOptionalPropertyBy shapeLabel "textposition" StyleParam.TextPosition.convert + TextTemplate |> DynObj.setOptionalProperty shapeLabel "texttemplate" + XAnchor |> DynObj.setOptionalPropertyBy shapeLabel "xanchor" StyleParam.XAnchorPosition.convert + YAnchor |> DynObj.setOptionalPropertyBy shapeLabel "yanchor" StyleParam.YAnchorPosition.convert shapeLabel ) \ No newline at end of file diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/Slider.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/Slider.fs index 18c12e2db..fbc200e39 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/Slider.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/Slider.fs @@ -141,28 +141,28 @@ type Slider() = ?YAnchor: StyleParam.YAnchorPosition ) = (fun (slider: Slider) -> - Active |> DynObj.setValueOpt slider "active" - ActiveBgColor |> DynObj.setValueOpt slider "activebgcolor" - BgColor |> DynObj.setValueOpt slider "bgcolor" - BorderColor |> DynObj.setValueOpt slider "bordercolor" - BorderWidth |> DynObj.setValueOpt slider "borderwidth" - CurrentValue |> DynObj.setValueOpt slider "currentvalue" - Font |> DynObj.setValueOpt slider "font" - Len |> DynObj.setValueOpt slider "len" - LenMode |> DynObj.setValueOptBy slider "lenmode" StyleParam.UnitMode.convert - MinorTickLen |> DynObj.setValueOpt slider "minorticklen" - Name |> DynObj.setValueOpt slider "name" - Padding |> DynObj.setValueOpt slider "pad" - Steps |> DynObj.setValueOpt slider "steps" - TemplateItemName |> DynObj.setValueOpt slider "templateitemname" - TickColor |> DynObj.setValueOpt slider "tickcolor" - TickLen |> DynObj.setValueOpt slider "ticklen" - TickWidth |> DynObj.setValueOpt slider "tickwidth" - Transition |> DynObj.setValueOpt slider "transition" - Visible |> DynObj.setValueOpt slider "visible" - X |> DynObj.setValueOpt slider "x" - XAnchor |> DynObj.setValueOptBy slider "xanchor" StyleParam.XAnchorPosition.convert - Y |> DynObj.setValueOpt slider "y" - YAnchor |> DynObj.setValueOptBy slider "yanchor" StyleParam.YAnchorPosition.convert + Active |> DynObj.setOptionalProperty slider "active" + ActiveBgColor |> DynObj.setOptionalProperty slider "activebgcolor" + BgColor |> DynObj.setOptionalProperty slider "bgcolor" + BorderColor |> DynObj.setOptionalProperty slider "bordercolor" + BorderWidth |> DynObj.setOptionalProperty slider "borderwidth" + CurrentValue |> DynObj.setOptionalProperty slider "currentvalue" + Font |> DynObj.setOptionalProperty slider "font" + Len |> DynObj.setOptionalProperty slider "len" + LenMode |> DynObj.setOptionalPropertyBy slider "lenmode" StyleParam.UnitMode.convert + MinorTickLen |> DynObj.setOptionalProperty slider "minorticklen" + Name |> DynObj.setOptionalProperty slider "name" + Padding |> DynObj.setOptionalProperty slider "pad" + Steps |> DynObj.setOptionalProperty slider "steps" + TemplateItemName |> DynObj.setOptionalProperty slider "templateitemname" + TickColor |> DynObj.setOptionalProperty slider "tickcolor" + TickLen |> DynObj.setOptionalProperty slider "ticklen" + TickWidth |> DynObj.setOptionalProperty slider "tickwidth" + Transition |> DynObj.setOptionalProperty slider "transition" + Visible |> DynObj.setOptionalProperty slider "visible" + X |> DynObj.setOptionalProperty slider "x" + XAnchor |> DynObj.setOptionalPropertyBy slider "xanchor" StyleParam.XAnchorPosition.convert + Y |> DynObj.setOptionalProperty slider "y" + YAnchor |> DynObj.setOptionalPropertyBy slider "yanchor" StyleParam.YAnchorPosition.convert slider) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/SliderCurrentValue.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/SliderCurrentValue.fs index 68d456a54..292c8eb53 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/SliderCurrentValue.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/SliderCurrentValue.fs @@ -50,10 +50,10 @@ type SliderCurrentValue() = if autoValueIsProvided then printf "The value '%s' is not supported by CurrentValue" (StyleParam.XAnchorPosition.Auto |> string) - Font |> DynObj.setValueOpt currentValue "font" - Offset |> DynObj.setValueOpt currentValue "offset" - Prefix |> DynObj.setValueOpt currentValue "prefix" - Suffix |> DynObj.setValueOpt currentValue "suffix" - Visible |> DynObj.setValueOpt currentValue "visible" - XAnchor |> DynObj.setValueOptBy currentValue "xanchor" StyleParam.XAnchorPosition.convert + Font |> DynObj.setOptionalProperty currentValue "font" + Offset |> DynObj.setOptionalProperty currentValue "offset" + Prefix |> DynObj.setOptionalProperty currentValue "prefix" + Suffix |> DynObj.setOptionalProperty currentValue "suffix" + Visible |> DynObj.setOptionalProperty currentValue "visible" + XAnchor |> DynObj.setOptionalPropertyBy currentValue "xanchor" StyleParam.XAnchorPosition.convert currentValue) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/SliderStep.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/SliderStep.fs index ccea6afb6..b3f55f32b 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/SliderStep.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/SliderStep.fs @@ -80,12 +80,12 @@ type SliderStep() = let argsAsDictionaries = Args |> Option.map (fun args -> args |> Seq.map (fun arg -> [ arg ] |> dict)) - argsAsDictionaries |> DynObj.setValueOpt step "args" - Execute |> DynObj.setValueOpt step "execute" - Label |> DynObj.setValueOpt step "label" - Method |> DynObj.setValueOptBy step "method" StyleParam.Method.convert - Name |> DynObj.setValueOpt step "name" - TemplateItemName |> DynObj.setValueOpt step "templateitemname" - Value |> DynObj.setValueOpt step "value" - Visible |> DynObj.setValueOpt step "visible" + argsAsDictionaries |> DynObj.setOptionalProperty step "args" + Execute |> DynObj.setOptionalProperty step "execute" + Label |> DynObj.setOptionalProperty step "label" + Method |> DynObj.setOptionalPropertyBy step "method" StyleParam.Method.convert + Name |> DynObj.setOptionalProperty step "name" + TemplateItemName |> DynObj.setOptionalProperty step "templateitemname" + Value |> DynObj.setOptionalProperty step "value" + Visible |> DynObj.setOptionalProperty step "visible" step) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Transition.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Transition.fs index 11b2a9485..f11452b98 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Transition.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Transition.fs @@ -24,8 +24,8 @@ type Transition() = ) = (fun (transition: Transition) -> - Duration |> DynObj.setValueOpt transition "duration" - Easing |> DynObj.setValueOptBy transition "easing" StyleParam.TransitionEasing.convert - Ordering |> DynObj.setValueOptBy transition "ordering" StyleParam.TransitionOrdering.convert + Duration |> DynObj.setOptionalProperty transition "duration" + Easing |> DynObj.setOptionalPropertyBy transition "easing" StyleParam.TransitionEasing.convert + Ordering |> DynObj.setOptionalPropertyBy transition "ordering" StyleParam.TransitionOrdering.convert transition) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/UniformText.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/UniformText.fs index f065418c0..b52af7fef 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/UniformText.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/UniformText.fs @@ -22,7 +22,7 @@ type UniformText() = ) = (fun (uniformText: UniformText) -> - MinSize |> DynObj.setValueOpt uniformText "minsize" - Mode |> DynObj.setValueOptBy uniformText "mode" StyleParam.UniformTextMode.convert + MinSize |> DynObj.setOptionalProperty uniformText "minsize" + Mode |> DynObj.setOptionalPropertyBy uniformText "mode" StyleParam.UniformTextMode.convert uniformText) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/UpdateMenu.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/UpdateMenu.fs index f0607cf74..d914147b3 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/UpdateMenu.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/UpdateMenu.fs @@ -45,14 +45,14 @@ type UpdateMenuButton() = ) = (fun (updateMenuButton: UpdateMenuButton) -> - Args |> DynObj.setValueOpt updateMenuButton "args" - Args2 |> DynObj.setValueOpt updateMenuButton "args2" - Execute |> DynObj.setValueOpt updateMenuButton "execute" - Label |> DynObj.setValueOpt updateMenuButton "label" - Method |> DynObj.setValueOptBy updateMenuButton "method" StyleParam.UpdateMethod.convert - Name |> DynObj.setValueOpt updateMenuButton "name" - TemplateItemName |> DynObj.setValueOpt updateMenuButton "templateitemname" - Visible |> DynObj.setValueOpt updateMenuButton "visible" + Args |> DynObj.setOptionalProperty updateMenuButton "args" + Args2 |> DynObj.setOptionalProperty updateMenuButton "args2" + Execute |> DynObj.setOptionalProperty updateMenuButton "execute" + Label |> DynObj.setOptionalProperty updateMenuButton "label" + Method |> DynObj.setOptionalPropertyBy updateMenuButton "method" StyleParam.UpdateMethod.convert + Name |> DynObj.setOptionalProperty updateMenuButton "name" + TemplateItemName |> DynObj.setOptionalProperty updateMenuButton "templateitemname" + Visible |> DynObj.setOptionalProperty updateMenuButton "visible" updateMenuButton) @@ -121,21 +121,21 @@ type UpdateMenu() = ) = (fun (updateMenu: UpdateMenu) -> - Active |> DynObj.setValueOpt updateMenu "active" - BGColor |> DynObj.setValueOpt updateMenu "bgcolor" - BorderColor |> DynObj.setValueOpt updateMenu "bordercolor" - Buttons |> DynObj.setValueOpt updateMenu "buttons" - Direction |> DynObj.setValueOptBy updateMenu "direction" StyleParam.UpdateMenuDirection.convert - Font |> DynObj.setValueOpt updateMenu "font" - Name |> DynObj.setValueOpt updateMenu "name" - Pad |> DynObj.setValueOpt updateMenu "pad" - ShowActive |> DynObj.setValueOpt updateMenu "showactive" - TemplateItemName |> DynObj.setValueOpt updateMenu "templateitemname" - Type |> DynObj.setValueOptBy updateMenu "type" StyleParam.UpdateMenuType.convert - Visible |> DynObj.setValueOpt updateMenu "visible" - X |> DynObj.setValueOpt updateMenu "x" - XAnchor |> DynObj.setValueOptBy updateMenu "xanchor" StyleParam.XAnchorPosition.convert - Y |> DynObj.setValueOpt updateMenu "y" - YAnchor |> DynObj.setValueOptBy updateMenu "yanchor" StyleParam.YAnchorPosition.convert + Active |> DynObj.setOptionalProperty updateMenu "active" + BGColor |> DynObj.setOptionalProperty updateMenu "bgcolor" + BorderColor |> DynObj.setOptionalProperty updateMenu "bordercolor" + Buttons |> DynObj.setOptionalProperty updateMenu "buttons" + Direction |> DynObj.setOptionalPropertyBy updateMenu "direction" StyleParam.UpdateMenuDirection.convert + Font |> DynObj.setOptionalProperty updateMenu "font" + Name |> DynObj.setOptionalProperty updateMenu "name" + Pad |> DynObj.setOptionalProperty updateMenu "pad" + ShowActive |> DynObj.setOptionalProperty updateMenu "showactive" + TemplateItemName |> DynObj.setOptionalProperty updateMenu "templateitemname" + Type |> DynObj.setOptionalPropertyBy updateMenu "type" StyleParam.UpdateMenuType.convert + Visible |> DynObj.setOptionalProperty updateMenu "visible" + X |> DynObj.setOptionalProperty updateMenu "x" + XAnchor |> DynObj.setOptionalPropertyBy updateMenu "xanchor" StyleParam.XAnchorPosition.convert + Y |> DynObj.setOptionalProperty updateMenu "y" + YAnchor |> DynObj.setOptionalPropertyBy updateMenu "yanchor" StyleParam.YAnchorPosition.convert updateMenu) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Map/Geo.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Map/Geo.fs index 61bd3fe87..3f7d0a76d 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Map/Geo.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Map/Geo.fs @@ -179,11 +179,11 @@ type Geo() = ) = (fun (geo: Geo) -> - Domain |> DynObj.setValueOpt geo "domain" - FitBounds |> DynObj.setValueOptBy geo "fitbounds" StyleParam.GeoFitBounds.convert - Resolution |> DynObj.setValueOptBy geo "resolution" StyleParam.GeoResolution.convert - Scope |> DynObj.setValueOptBy geo "scope" StyleParam.GeoScope.convert - Projection |> DynObj.setValueOpt geo "projection" + Domain |> DynObj.setOptionalProperty geo "domain" + FitBounds |> DynObj.setOptionalPropertyBy geo "fitbounds" StyleParam.GeoFitBounds.convert + Resolution |> DynObj.setOptionalPropertyBy geo "resolution" StyleParam.GeoResolution.convert + Scope |> DynObj.setOptionalPropertyBy geo "scope" StyleParam.GeoScope.convert + Projection |> DynObj.setOptionalProperty geo "projection" Center |> Option.map (fun (lon, lat) -> @@ -191,32 +191,32 @@ type Geo() = t?lon <- lon t?lat <- lat t) - |> DynObj.setValueOpt geo "center" + |> DynObj.setOptionalProperty geo "center" - Visible |> DynObj.setValueOpt geo "visible" - ShowCoastLines |> DynObj.setValueOpt geo "showcoastline" - CoastLineColor |> DynObj.setValueOpt geo "coastlinecolor" - CoastLineWidth |> DynObj.setValueOpt geo "coastlinewidth" - ShowLand |> DynObj.setValueOpt geo "showland" - LandColor |> DynObj.setValueOpt geo "landcolor" - ShowOcean |> DynObj.setValueOpt geo "showocean" - OceanColor |> DynObj.setValueOpt geo "oceancolor" - ShowLakes |> DynObj.setValueOpt geo "showlakes" - LakeColor |> DynObj.setValueOpt geo "lakecolor" - ShowRivers |> DynObj.setValueOpt geo "showrivers" - RiverColor |> DynObj.setValueOpt geo "rivercolor" - RiverWidth |> DynObj.setValueOpt geo "riverwidth" - ShowCountries |> DynObj.setValueOpt geo "showcountries" - CountryColor |> DynObj.setValueOpt geo "countrycolor" - CountryWidth |> DynObj.setValueOpt geo "countrywidth" - ShowSubunits |> DynObj.setValueOpt geo "showsubunits" - SubunitColor |> DynObj.setValueOpt geo "subunitcolor" - SubunitWidth |> DynObj.setValueOpt geo "subunitwidth" - ShowFrame |> DynObj.setValueOpt geo "showframe" - FrameColor |> DynObj.setValueOpt geo "framecolor" - FrameWidth |> DynObj.setValueOpt geo "framewidth" - BgColor |> DynObj.setValueOpt geo "bgcolor" - LatAxis |> DynObj.setValueOpt geo "lataxis" - LonAxis |> DynObj.setValueOpt geo "lonaxis" + Visible |> DynObj.setOptionalProperty geo "visible" + ShowCoastLines |> DynObj.setOptionalProperty geo "showcoastline" + CoastLineColor |> DynObj.setOptionalProperty geo "coastlinecolor" + CoastLineWidth |> DynObj.setOptionalProperty geo "coastlinewidth" + ShowLand |> DynObj.setOptionalProperty geo "showland" + LandColor |> DynObj.setOptionalProperty geo "landcolor" + ShowOcean |> DynObj.setOptionalProperty geo "showocean" + OceanColor |> DynObj.setOptionalProperty geo "oceancolor" + ShowLakes |> DynObj.setOptionalProperty geo "showlakes" + LakeColor |> DynObj.setOptionalProperty geo "lakecolor" + ShowRivers |> DynObj.setOptionalProperty geo "showrivers" + RiverColor |> DynObj.setOptionalProperty geo "rivercolor" + RiverWidth |> DynObj.setOptionalProperty geo "riverwidth" + ShowCountries |> DynObj.setOptionalProperty geo "showcountries" + CountryColor |> DynObj.setOptionalProperty geo "countrycolor" + CountryWidth |> DynObj.setOptionalProperty geo "countrywidth" + ShowSubunits |> DynObj.setOptionalProperty geo "showsubunits" + SubunitColor |> DynObj.setOptionalProperty geo "subunitcolor" + SubunitWidth |> DynObj.setOptionalProperty geo "subunitwidth" + ShowFrame |> DynObj.setOptionalProperty geo "showframe" + FrameColor |> DynObj.setOptionalProperty geo "framecolor" + FrameWidth |> DynObj.setOptionalProperty geo "framewidth" + BgColor |> DynObj.setOptionalProperty geo "bgcolor" + LatAxis |> DynObj.setOptionalProperty geo "lataxis" + LonAxis |> DynObj.setOptionalProperty geo "lonaxis" geo) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Map/GeoProjection.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Map/GeoProjection.fs index 1bb3163fd..d7ae4fd63 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Map/GeoProjection.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Map/GeoProjection.fs @@ -33,9 +33,9 @@ type GeoProjectionRotation() = [] ?Roll: int ) = (fun (rotation: GeoProjectionRotation) -> - Longitude |> DynObj.setValueOpt rotation "lon" - Latitude |> DynObj.setValueOpt rotation "lat" - Roll |> DynObj.setValueOpt rotation "roll" + Longitude |> DynObj.setOptionalProperty rotation "lon" + Latitude |> DynObj.setOptionalProperty rotation "lat" + Roll |> DynObj.setOptionalProperty rotation "roll" rotation) @@ -77,11 +77,11 @@ type GeoProjection() = ) = (fun (projection: GeoProjection) -> - projectionType |> StyleParam.GeoProjectionType.convert |> DynObj.setValue projection "type" + projectionType |> StyleParam.GeoProjectionType.convert |> DynObj.withProperty projection "type" - Parallels |> Option.map (fun (a, b) -> sprintf "[%f,%f]" a b) |> DynObj.setValueOpt projection "parallels" + Parallels |> Option.map (fun (a, b) -> sprintf "[%f,%f]" a b) |> DynObj.setOptionalProperty projection "parallels" - Rotation |> DynObj.setValueOpt projection "rotation" - Scale |> DynObj.setValueOpt projection "scale" + Rotation |> DynObj.setOptionalProperty projection "rotation" + Scale |> DynObj.setOptionalProperty projection "scale" projection) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Map/Mapbox.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Map/Mapbox.fs index d65351e0d..6189a6dae 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Map/Mapbox.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Map/Mapbox.fs @@ -71,10 +71,10 @@ type Mapbox() = ) = (fun (mapBox: Mapbox) -> - Domain |> DynObj.setValueOpt mapBox "domain" - AccessToken |> DynObj.setValueOpt mapBox "accesstoken" - Style |> DynObj.setValueOptBy mapBox "style" StyleParam.MapboxStyle.convert - Bounds |> DynObj.setValueOpt mapBox "bounds" + Domain |> DynObj.setOptionalProperty mapBox "domain" + AccessToken |> DynObj.setOptionalProperty mapBox "accesstoken" + Style |> DynObj.setOptionalPropertyBy mapBox "style" StyleParam.MapboxStyle.convert + Bounds |> DynObj.setOptionalProperty mapBox "bounds" Center |> Option.map (fun (lon, lat) -> @@ -82,11 +82,11 @@ type Mapbox() = t?lon <- lon t?lat <- lat t) - |> DynObj.setValueOpt mapBox "center" + |> DynObj.setOptionalProperty mapBox "center" - Zoom |> DynObj.setValueOpt mapBox "zoom" - Bearing |> DynObj.setValueOpt mapBox "bearing" - Pitch |> DynObj.setValueOpt mapBox "pitch" - Layers |> DynObj.setValueOpt mapBox "layers" + Zoom |> DynObj.setOptionalProperty mapBox "zoom" + Bearing |> DynObj.setOptionalProperty mapBox "bearing" + Pitch |> DynObj.setOptionalProperty mapBox "pitch" + Layers |> DynObj.setOptionalProperty mapBox "layers" mapBox) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxBounds.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxBounds.fs index 9de578b7a..2ccb35f67 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxBounds.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxBounds.fs @@ -42,9 +42,9 @@ type MapboxBounds() = ) = (fun (mapboxBounds: MapboxBounds) -> - East |> DynObj.setValueOpt mapboxBounds "east" - North |> DynObj.setValueOpt mapboxBounds "north" - South |> DynObj.setValueOpt mapboxBounds "south" - West |> DynObj.setValueOpt mapboxBounds "west" + East |> DynObj.setOptionalProperty mapboxBounds "east" + North |> DynObj.setOptionalProperty mapboxBounds "north" + South |> DynObj.setOptionalProperty mapboxBounds "south" + West |> DynObj.setOptionalProperty mapboxBounds "west" mapboxBounds) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxCluster.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxCluster.fs index d1ddccb7d..648765902 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxCluster.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxCluster.fs @@ -69,11 +69,11 @@ type MapboxCluster() = ) = (fun (mapboxCluster: MapboxCluster) -> - Color |> DynObj.setValueOpt mapboxCluster "color" - Enabled |> DynObj.setValueOpt mapboxCluster "enabled" - MaxZoom |> DynObj.setValueOpt mapboxCluster "maxzoom" - Opacity |> DynObj.setValueOpt mapboxCluster "opacity" - (Size, MultiSize) |> DynObj.setSingleOrMultiOpt mapboxCluster "size" - (Step, MultiStep) |> DynObj.setSingleOrMultiOpt mapboxCluster "step" + Color |> DynObj.setOptionalProperty mapboxCluster "color" + Enabled |> DynObj.setOptionalProperty mapboxCluster "enabled" + MaxZoom |> DynObj.setOptionalProperty mapboxCluster "maxzoom" + Opacity |> DynObj.setOptionalProperty mapboxCluster "opacity" + (Size, MultiSize) |> DynObj.setOptionalSingleOrMultiProperty mapboxCluster "size" + (Step, MultiStep) |> DynObj.setOptionalSingleOrMultiProperty mapboxCluster "step" mapboxCluster) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxLayer.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxLayer.fs index 548a7172c..3cc4a099e 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxLayer.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxLayer.fs @@ -77,36 +77,36 @@ type MapboxLayer() = ) = (fun (mapBoxLayer: MapboxLayer) -> - Visible |> DynObj.setValueOpt mapBoxLayer "visible" - SourceType |> DynObj.setValueOptBy mapBoxLayer "sourcetype" StyleParam.MapboxLayerSourceType.convert - Source |> DynObj.setValueOpt mapBoxLayer "source" - SourceLayer |> DynObj.setValueOpt mapBoxLayer "sourcelayer" - SourceAttribution |> DynObj.setValueOpt mapBoxLayer "sourceattribution" - Type |> DynObj.setValueOptBy mapBoxLayer "type" StyleParam.MapboxLayerType.convert - Coordinates |> DynObj.setValueOpt mapBoxLayer "coordinates" - Below |> DynObj.setValueOpt mapBoxLayer "below" - Color |> DynObj.setValueOpt mapBoxLayer "color" - Opacity |> DynObj.setValueOpt mapBoxLayer "opacity" - MinZoom |> DynObj.setValueOpt mapBoxLayer "minzoom" - MaxZoom |> DynObj.setValueOpt mapBoxLayer "maxzoom" + Visible |> DynObj.setOptionalProperty mapBoxLayer "visible" + SourceType |> DynObj.setOptionalPropertyBy mapBoxLayer "sourcetype" StyleParam.MapboxLayerSourceType.convert + Source |> DynObj.setOptionalProperty mapBoxLayer "source" + SourceLayer |> DynObj.setOptionalProperty mapBoxLayer "sourcelayer" + SourceAttribution |> DynObj.setOptionalProperty mapBoxLayer "sourceattribution" + Type |> DynObj.setOptionalPropertyBy mapBoxLayer "type" StyleParam.MapboxLayerType.convert + Coordinates |> DynObj.setOptionalProperty mapBoxLayer "coordinates" + Below |> DynObj.setOptionalProperty mapBoxLayer "below" + Color |> DynObj.setOptionalProperty mapBoxLayer "color" + Opacity |> DynObj.setOptionalProperty mapBoxLayer "opacity" + MinZoom |> DynObj.setOptionalProperty mapBoxLayer "minzoom" + MaxZoom |> DynObj.setOptionalProperty mapBoxLayer "maxzoom" CircleRadius |> Option.map (fun r -> let circle = DynamicObj() circle?radius <- r circle) - |> DynObj.setValueOpt mapBoxLayer "circle" + |> DynObj.setOptionalProperty mapBoxLayer "circle" - Line |> DynObj.setValueOpt mapBoxLayer "line" + Line |> DynObj.setOptionalProperty mapBoxLayer "line" FillOutlineColor |> Option.map (fun c -> let fill = DynamicObj() fill?outlinecolor <- c fill) - |> DynObj.setValueOpt mapBoxLayer "fill" + |> DynObj.setOptionalProperty mapBoxLayer "fill" - Symbol |> DynObj.setValueOpt mapBoxLayer "symbol" - Name |> DynObj.setValueOpt mapBoxLayer "name" + Symbol |> DynObj.setOptionalProperty mapBoxLayer "symbol" + Name |> DynObj.setOptionalProperty mapBoxLayer "name" mapBoxLayer) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxLayerSymbol.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxLayerSymbol.fs index 2d2277c5b..0a27e0298 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxLayerSymbol.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxLayerSymbol.fs @@ -44,15 +44,15 @@ type MapboxLayerSymbol() = ) = (fun (mapBoxLayerSymbol: MapboxLayerSymbol) -> - Icon |> DynObj.setValueOpt mapBoxLayerSymbol "icon" - IconSize |> DynObj.setValueOpt mapBoxLayerSymbol "iconsize" - Text |> DynObj.setValueOpt mapBoxLayerSymbol "text" + Icon |> DynObj.setOptionalProperty mapBoxLayerSymbol "icon" + IconSize |> DynObj.setOptionalProperty mapBoxLayerSymbol "iconsize" + Text |> DynObj.setOptionalProperty mapBoxLayerSymbol "text" Placement - |> DynObj.setValueOptBy mapBoxLayerSymbol "placement" StyleParam.MapboxLayerSymbolPlacement.convert + |> DynObj.setOptionalPropertyBy mapBoxLayerSymbol "placement" StyleParam.MapboxLayerSymbolPlacement.convert - TextFont |> DynObj.setValueOpt mapBoxLayerSymbol "textfont" - TextPosition |> DynObj.setValueOptBy mapBoxLayerSymbol "textposition" StyleParam.TextPosition.convert + TextFont |> DynObj.setOptionalProperty mapBoxLayerSymbol "textfont" + TextPosition |> DynObj.setOptionalPropertyBy mapBoxLayerSymbol "textposition" StyleParam.TextPosition.convert mapBoxLayerSymbol) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Polar/AngularAxis.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Polar/AngularAxis.fs index 8d885cf98..41a2f1b0b 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Polar/AngularAxis.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Polar/AngularAxis.fs @@ -253,50 +253,50 @@ type AngularAxis() = ) = fun (angularAxis: AngularAxis) -> - Visible |> DynObj.setValueOpt angularAxis "visible" - AxisType |> DynObj.setValueOptBy angularAxis "type" StyleParam.AxisType.convert - AutoTypeNumbers |> DynObj.setValueOptBy angularAxis "autotypenumbers" StyleParam.AutoTypeNumbers.convert - CategoryOrder |> DynObj.setValueOptBy angularAxis "categoryorder" StyleParam.CategoryOrder.convert - CategoryArray |> DynObj.setValueOpt angularAxis "categoryarray" - ThetaUnit |> DynObj.setValueOpt angularAxis "thetaunit" - Period |> DynObj.setValueOpt angularAxis "period" - Direction |> DynObj.setValueOptBy angularAxis "direction" StyleParam.Direction.convert - Rotation |> DynObj.setValueOpt angularAxis "rotation" - HoverFormat |> DynObj.setValueOpt angularAxis "hoverformat" - UIRevision |> DynObj.setValueOpt angularAxis "uirevision" - Color |> DynObj.setValueOpt angularAxis "color" - ShowLine |> DynObj.setValueOpt angularAxis "showline" - LineColor |> DynObj.setValueOpt angularAxis "linecolor" - LineWidth |> DynObj.setValueOpt angularAxis "linewidth" - ShowGrid |> DynObj.setValueOpt angularAxis "showgrid" - GridColor |> DynObj.setValueOpt angularAxis "gridcolor" - GridDash |> DynObj.setValueOptBy angularAxis "griddash" StyleParam.DrawingStyle.convert - GridWidth |> DynObj.setValueOpt angularAxis "gridwidth" - TickMode |> DynObj.setValueOptBy angularAxis "tickmode" StyleParam.TickMode.convert - NTicks |> DynObj.setValueOpt angularAxis "nticks" - Tick0 |> DynObj.setValueOpt angularAxis "tick0" - DTick |> DynObj.setValueOpt angularAxis "dtick" - TickVals |> DynObj.setValueOpt angularAxis "tickvals" - TickText |> DynObj.setValueOpt angularAxis "ticktext" - Ticks |> DynObj.setValueOptBy angularAxis "ticks" StyleParam.TickOptions.convert - TickLen |> DynObj.setValueOpt angularAxis "ticklen" - TickWidth |> DynObj.setValueOpt angularAxis "tickwidth" - TickColor |> DynObj.setValueOpt angularAxis "tickcolor" - ShowTickLabels |> DynObj.setValueOpt angularAxis "showticklabels" - ShowTickPrefix |> DynObj.setValueOptBy angularAxis "showtickprefix" StyleParam.ShowTickOption.convert - TickPrefix |> DynObj.setValueOpt angularAxis "tickprefix" - ShowTickSuffix |> DynObj.setValueOptBy angularAxis "showticksuffix" StyleParam.ShowTickOption.convert - TickSuffix |> DynObj.setValueOpt angularAxis "ticksuffix" - ShowExponent |> DynObj.setValueOptBy angularAxis "showexponent" StyleParam.ShowExponent.convert - ExponentFormat |> DynObj.setValueOptBy angularAxis "exponentformat" StyleParam.ExponentFormat.convert - MinExponent |> DynObj.setValueOpt angularAxis "minexponent" - SeparateThousands |> DynObj.setValueOpt angularAxis "separatethousands" - TickFont |> DynObj.setValueOpt angularAxis "tickfont" - TickAngle |> DynObj.setValueOpt angularAxis "tickangle" - TickFormat |> DynObj.setValueOpt angularAxis "tickformat" - TickFormatStops |> DynObj.setValueOpt angularAxis "tickformatstops" - TickLabelStep |> DynObj.setValueOpt angularAxis "ticklabelstep" - LabelAlias |> DynObj.setValueOpt angularAxis "labelalias" - Layer |> DynObj.setValueOptBy angularAxis "layer" StyleParam.Layer.convert + Visible |> DynObj.setOptionalProperty angularAxis "visible" + AxisType |> DynObj.setOptionalPropertyBy angularAxis "type" StyleParam.AxisType.convert + AutoTypeNumbers |> DynObj.setOptionalPropertyBy angularAxis "autotypenumbers" StyleParam.AutoTypeNumbers.convert + CategoryOrder |> DynObj.setOptionalPropertyBy angularAxis "categoryorder" StyleParam.CategoryOrder.convert + CategoryArray |> DynObj.setOptionalProperty angularAxis "categoryarray" + ThetaUnit |> DynObj.setOptionalProperty angularAxis "thetaunit" + Period |> DynObj.setOptionalProperty angularAxis "period" + Direction |> DynObj.setOptionalPropertyBy angularAxis "direction" StyleParam.Direction.convert + Rotation |> DynObj.setOptionalProperty angularAxis "rotation" + HoverFormat |> DynObj.setOptionalProperty angularAxis "hoverformat" + UIRevision |> DynObj.setOptionalProperty angularAxis "uirevision" + Color |> DynObj.setOptionalProperty angularAxis "color" + ShowLine |> DynObj.setOptionalProperty angularAxis "showline" + LineColor |> DynObj.setOptionalProperty angularAxis "linecolor" + LineWidth |> DynObj.setOptionalProperty angularAxis "linewidth" + ShowGrid |> DynObj.setOptionalProperty angularAxis "showgrid" + GridColor |> DynObj.setOptionalProperty angularAxis "gridcolor" + GridDash |> DynObj.setOptionalPropertyBy angularAxis "griddash" StyleParam.DrawingStyle.convert + GridWidth |> DynObj.setOptionalProperty angularAxis "gridwidth" + TickMode |> DynObj.setOptionalPropertyBy angularAxis "tickmode" StyleParam.TickMode.convert + NTicks |> DynObj.setOptionalProperty angularAxis "nticks" + Tick0 |> DynObj.setOptionalProperty angularAxis "tick0" + DTick |> DynObj.setOptionalProperty angularAxis "dtick" + TickVals |> DynObj.setOptionalProperty angularAxis "tickvals" + TickText |> DynObj.setOptionalProperty angularAxis "ticktext" + Ticks |> DynObj.setOptionalPropertyBy angularAxis "ticks" StyleParam.TickOptions.convert + TickLen |> DynObj.setOptionalProperty angularAxis "ticklen" + TickWidth |> DynObj.setOptionalProperty angularAxis "tickwidth" + TickColor |> DynObj.setOptionalProperty angularAxis "tickcolor" + ShowTickLabels |> DynObj.setOptionalProperty angularAxis "showticklabels" + ShowTickPrefix |> DynObj.setOptionalPropertyBy angularAxis "showtickprefix" StyleParam.ShowTickOption.convert + TickPrefix |> DynObj.setOptionalProperty angularAxis "tickprefix" + ShowTickSuffix |> DynObj.setOptionalPropertyBy angularAxis "showticksuffix" StyleParam.ShowTickOption.convert + TickSuffix |> DynObj.setOptionalProperty angularAxis "ticksuffix" + ShowExponent |> DynObj.setOptionalPropertyBy angularAxis "showexponent" StyleParam.ShowExponent.convert + ExponentFormat |> DynObj.setOptionalPropertyBy angularAxis "exponentformat" StyleParam.ExponentFormat.convert + MinExponent |> DynObj.setOptionalProperty angularAxis "minexponent" + SeparateThousands |> DynObj.setOptionalProperty angularAxis "separatethousands" + TickFont |> DynObj.setOptionalProperty angularAxis "tickfont" + TickAngle |> DynObj.setOptionalProperty angularAxis "tickangle" + TickFormat |> DynObj.setOptionalProperty angularAxis "tickformat" + TickFormatStops |> DynObj.setOptionalProperty angularAxis "tickformatstops" + TickLabelStep |> DynObj.setOptionalProperty angularAxis "ticklabelstep" + LabelAlias |> DynObj.setOptionalProperty angularAxis "labelalias" + Layer |> DynObj.setOptionalPropertyBy angularAxis "layer" StyleParam.Layer.convert angularAxis diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Polar/Polar.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Polar/Polar.fs index af2793048..82e1e5a08 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Polar/Polar.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Polar/Polar.fs @@ -71,16 +71,16 @@ type Polar() = ) = (fun (polar: Polar) -> - Domain |> DynObj.setValueOpt polar "domain" - Sector |> DynObj.setValueOptBy polar "sector" (fun (a, b) -> [| a; b |]) - Hole |> DynObj.setValueOpt polar "hole" - BGColor |> DynObj.setValueOpt polar "bgcolor" - RadialAxis |> DynObj.setValueOpt polar "radialaxis" - AngularAxis |> DynObj.setValueOpt polar "angularaxis" - GridShape |> DynObj.setValueOptBy polar "gridshape" StyleParam.PolarGridShape.convert - UIRevision |> DynObj.setValueOpt polar "uirevision" - BarMode |> DynObj.setValueOptBy polar "barmode" StyleParam.BarMode.convert - BarGap |> DynObj.setValueOpt polar "bargap" + Domain |> DynObj.setOptionalProperty polar "domain" + Sector |> DynObj.setOptionalPropertyBy polar "sector" (fun (a, b) -> [| a; b |]) + Hole |> DynObj.setOptionalProperty polar "hole" + BGColor |> DynObj.setOptionalProperty polar "bgcolor" + RadialAxis |> DynObj.setOptionalProperty polar "radialaxis" + AngularAxis |> DynObj.setOptionalProperty polar "angularaxis" + GridShape |> DynObj.setOptionalPropertyBy polar "gridshape" StyleParam.PolarGridShape.convert + UIRevision |> DynObj.setOptionalProperty polar "uirevision" + BarMode |> DynObj.setOptionalPropertyBy polar "barmode" StyleParam.BarMode.convert + BarGap |> DynObj.setOptionalProperty polar "bargap" polar) @@ -89,7 +89,7 @@ type Polar() = /// /// The name of the dynamic member to get the value of /// The object to get the dynamic member value from - static member tryGetTypedMember<'T> (propName: string) (polar: Polar) = polar.TryGetTypedValue<'T>(propName) + static member tryGetTypedMember<'T> (propName: string) (polar: Polar) = polar.TryGetTypedPropertyValue<'T>(propName) /// /// Returns the AngularAxis object of the given polar object. diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Polar/RadialAxis.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Polar/RadialAxis.fs index c97b4274c..cce990fdd 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Polar/RadialAxis.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Polar/RadialAxis.fs @@ -282,56 +282,56 @@ type RadialAxis() = ) = fun (radialAxis: RadialAxis) -> - Visible |> DynObj.setValueOpt radialAxis "visible" - AxisType |> DynObj.setValueOptBy radialAxis "type" StyleParam.AxisType.convert - AutoTypeNumbers |> DynObj.setValueOptBy radialAxis "autotypenumbers" StyleParam.AutoTypeNumbers.convert - AutoRange |> DynObj.setValueOptBy radialAxis "autorange" StyleParam.AutoRange.convert - AutoRangeOptions |> DynObj.setValueOpt radialAxis "autorangeoptions" - RangeMode |> DynObj.setValueOptBy radialAxis "rangemode" StyleParam.RangeMode.convert - Range |> DynObj.setValueOptBy radialAxis "range" StyleParam.Range.convert - CategoryOrder |> DynObj.setValueOptBy radialAxis "categoryorder" StyleParam.CategoryOrder.convert - CategoryArray |> DynObj.setValueOpt radialAxis "categoryarray" - Angle |> DynObj.setValueOpt radialAxis "angle" - Side |> DynObj.setValueOptBy radialAxis "side" StyleParam.Direction.convert - Title |> DynObj.setValueOpt radialAxis "title" - HoverFormat |> DynObj.setValueOpt radialAxis "hoverformat" - UIRevision |> DynObj.setValueOpt radialAxis "uirevision" - Color |> DynObj.setValueOpt radialAxis "color" - ShowLine |> DynObj.setValueOpt radialAxis "showline" - LineColor |> DynObj.setValueOpt radialAxis "linecolor" - LineWidth |> DynObj.setValueOpt radialAxis "linewidth" - MaxAllowed |> DynObj.setValueOpt radialAxis "maxallowed" - MinAllowed |> DynObj.setValueOpt radialAxis "minallowed" - ShowGrid |> DynObj.setValueOpt radialAxis "showgrid" - GridColor |> DynObj.setValueOpt radialAxis "gridcolor" - GridDash |> DynObj.setValueOptBy radialAxis "griddash" StyleParam.DrawingStyle.convert - GridWidth |> DynObj.setValueOpt radialAxis "gridwidth" - TickMode |> DynObj.setValueOptBy radialAxis "tickmode" StyleParam.TickMode.convert - NTicks |> DynObj.setValueOpt radialAxis "nticks" - Tick0 |> DynObj.setValueOpt radialAxis "tick0" - DTick |> DynObj.setValueOpt radialAxis "dtick" - TickVals |> DynObj.setValueOpt radialAxis "tickvals" - TickText |> DynObj.setValueOpt radialAxis "ticktext" - Ticks |> DynObj.setValueOptBy radialAxis "ticks" StyleParam.TickOptions.convert - TickLen |> DynObj.setValueOpt radialAxis "ticklen" - TickWidth |> DynObj.setValueOpt radialAxis "tickwidth" - TickColor |> DynObj.setValueOpt radialAxis "tickcolor" - ShowTickLabels |> DynObj.setValueOpt radialAxis "showticklabels" - ShowTickPrefix |> DynObj.setValueOptBy radialAxis "showtickprefix" StyleParam.ShowTickOption.convert - TickPrefix |> DynObj.setValueOpt radialAxis "tickprefix" - ShowTickSuffix |> DynObj.setValueOptBy radialAxis "showticksuffix" StyleParam.ShowTickOption.convert - TickSuffix |> DynObj.setValueOpt radialAxis "ticksuffix" - ShowExponent |> DynObj.setValueOptBy radialAxis "showexponent" StyleParam.ShowExponent.convert - ExponentFormat |> DynObj.setValueOptBy radialAxis "exponentformat" StyleParam.ExponentFormat.convert - MinExponent |> DynObj.setValueOpt radialAxis "minexponent" - SeparateThousands |> DynObj.setValueOpt radialAxis "separatethousands" - TickFont |> DynObj.setValueOpt radialAxis "tickfont" - TickAngle |> DynObj.setValueOpt radialAxis "tickangle" - TickFormat |> DynObj.setValueOpt radialAxis "tickformat" - TickFormatStops |> DynObj.setValueOpt radialAxis "tickformatstops" - LabelAlias |> DynObj.setValueOpt radialAxis "labelalias" - Layer |> DynObj.setValueOptBy radialAxis "layer" StyleParam.Layer.convert - TickLabelStep |> DynObj.setValueOpt radialAxis "ticklabelstep" - Calendar |> DynObj.setValueOptBy radialAxis "calendar" StyleParam.Calendar.convert + Visible |> DynObj.setOptionalProperty radialAxis "visible" + AxisType |> DynObj.setOptionalPropertyBy radialAxis "type" StyleParam.AxisType.convert + AutoTypeNumbers |> DynObj.setOptionalPropertyBy radialAxis "autotypenumbers" StyleParam.AutoTypeNumbers.convert + AutoRange |> DynObj.setOptionalPropertyBy radialAxis "autorange" StyleParam.AutoRange.convert + AutoRangeOptions |> DynObj.setOptionalProperty radialAxis "autorangeoptions" + RangeMode |> DynObj.setOptionalPropertyBy radialAxis "rangemode" StyleParam.RangeMode.convert + Range |> DynObj.setOptionalPropertyBy radialAxis "range" StyleParam.Range.convert + CategoryOrder |> DynObj.setOptionalPropertyBy radialAxis "categoryorder" StyleParam.CategoryOrder.convert + CategoryArray |> DynObj.setOptionalProperty radialAxis "categoryarray" + Angle |> DynObj.setOptionalProperty radialAxis "angle" + Side |> DynObj.setOptionalPropertyBy radialAxis "side" StyleParam.Direction.convert + Title |> DynObj.setOptionalProperty radialAxis "title" + HoverFormat |> DynObj.setOptionalProperty radialAxis "hoverformat" + UIRevision |> DynObj.setOptionalProperty radialAxis "uirevision" + Color |> DynObj.setOptionalProperty radialAxis "color" + ShowLine |> DynObj.setOptionalProperty radialAxis "showline" + LineColor |> DynObj.setOptionalProperty radialAxis "linecolor" + LineWidth |> DynObj.setOptionalProperty radialAxis "linewidth" + MaxAllowed |> DynObj.setOptionalProperty radialAxis "maxallowed" + MinAllowed |> DynObj.setOptionalProperty radialAxis "minallowed" + ShowGrid |> DynObj.setOptionalProperty radialAxis "showgrid" + GridColor |> DynObj.setOptionalProperty radialAxis "gridcolor" + GridDash |> DynObj.setOptionalPropertyBy radialAxis "griddash" StyleParam.DrawingStyle.convert + GridWidth |> DynObj.setOptionalProperty radialAxis "gridwidth" + TickMode |> DynObj.setOptionalPropertyBy radialAxis "tickmode" StyleParam.TickMode.convert + NTicks |> DynObj.setOptionalProperty radialAxis "nticks" + Tick0 |> DynObj.setOptionalProperty radialAxis "tick0" + DTick |> DynObj.setOptionalProperty radialAxis "dtick" + TickVals |> DynObj.setOptionalProperty radialAxis "tickvals" + TickText |> DynObj.setOptionalProperty radialAxis "ticktext" + Ticks |> DynObj.setOptionalPropertyBy radialAxis "ticks" StyleParam.TickOptions.convert + TickLen |> DynObj.setOptionalProperty radialAxis "ticklen" + TickWidth |> DynObj.setOptionalProperty radialAxis "tickwidth" + TickColor |> DynObj.setOptionalProperty radialAxis "tickcolor" + ShowTickLabels |> DynObj.setOptionalProperty radialAxis "showticklabels" + ShowTickPrefix |> DynObj.setOptionalPropertyBy radialAxis "showtickprefix" StyleParam.ShowTickOption.convert + TickPrefix |> DynObj.setOptionalProperty radialAxis "tickprefix" + ShowTickSuffix |> DynObj.setOptionalPropertyBy radialAxis "showticksuffix" StyleParam.ShowTickOption.convert + TickSuffix |> DynObj.setOptionalProperty radialAxis "ticksuffix" + ShowExponent |> DynObj.setOptionalPropertyBy radialAxis "showexponent" StyleParam.ShowExponent.convert + ExponentFormat |> DynObj.setOptionalPropertyBy radialAxis "exponentformat" StyleParam.ExponentFormat.convert + MinExponent |> DynObj.setOptionalProperty radialAxis "minexponent" + SeparateThousands |> DynObj.setOptionalProperty radialAxis "separatethousands" + TickFont |> DynObj.setOptionalProperty radialAxis "tickfont" + TickAngle |> DynObj.setOptionalProperty radialAxis "tickangle" + TickFormat |> DynObj.setOptionalProperty radialAxis "tickformat" + TickFormatStops |> DynObj.setOptionalProperty radialAxis "tickformatstops" + LabelAlias |> DynObj.setOptionalProperty radialAxis "labelalias" + Layer |> DynObj.setOptionalPropertyBy radialAxis "layer" StyleParam.Layer.convert + TickLabelStep |> DynObj.setOptionalProperty radialAxis "ticklabelstep" + Calendar |> DynObj.setOptionalPropertyBy radialAxis "calendar" StyleParam.Calendar.convert radialAxis diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Smith/ImaginaryAxis.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Smith/ImaginaryAxis.fs index 5cd120d72..3f238be12 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Smith/ImaginaryAxis.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Smith/ImaginaryAxis.fs @@ -149,29 +149,29 @@ type ImaginaryAxis() = ) = fun (imaginaryAxis: ImaginaryAxis) -> - Color |> DynObj.setValueOpt imaginaryAxis "color" - GridColor |> DynObj.setValueOpt imaginaryAxis "gridcolor" - GridDash |> DynObj.setValueOptBy imaginaryAxis "griddash" StyleParam.DrawingStyle.convert - GridWidth |> DynObj.setValueOpt imaginaryAxis "gridwidth" - HoverFormat |> DynObj.setValueOpt imaginaryAxis "hoverformat" - LabelAlias |> DynObj.setValueOpt imaginaryAxis "labelalias" - Layer |> DynObj.setValueOptBy imaginaryAxis "layer" StyleParam.Layer.convert - LineColor |> DynObj.setValueOpt imaginaryAxis "linecolor" - LineWidth |> DynObj.setValueOpt imaginaryAxis "linewidth" - ShowGrid |> DynObj.setValueOpt imaginaryAxis "showgrid" - ShowLine |> DynObj.setValueOpt imaginaryAxis "showline" - ShowTickLabels |> DynObj.setValueOpt imaginaryAxis "showticklabels" - ShowTickSuffix |> DynObj.setValueOptBy imaginaryAxis "showticksuffix" StyleParam.ShowTickOption.convert - ShowTickPrefix |> DynObj.setValueOptBy imaginaryAxis "showtickprefix" StyleParam.ShowTickOption.convert - TickColor |> DynObj.setValueOpt imaginaryAxis "tickcolor" - TickFont |> DynObj.setValueOpt imaginaryAxis "tickfont" - TickFormat |> DynObj.setValueOpt imaginaryAxis "tickformat" - TickLen |> DynObj.setValueOpt imaginaryAxis "ticklen" - TickPrefix |> DynObj.setValueOpt imaginaryAxis "tickprefix" - Ticks |> DynObj.setValueOptBy imaginaryAxis "ticks" StyleParam.TickLabelPosition.convert - TickSuffix |> DynObj.setValueOpt imaginaryAxis "ticksuffix" - TickVals |> DynObj.setValueOpt imaginaryAxis "tickvals" - TickWidth |> DynObj.setValueOpt imaginaryAxis "tickwidth" - Visible |> DynObj.setValueOpt imaginaryAxis "visible" + Color |> DynObj.setOptionalProperty imaginaryAxis "color" + GridColor |> DynObj.setOptionalProperty imaginaryAxis "gridcolor" + GridDash |> DynObj.setOptionalPropertyBy imaginaryAxis "griddash" StyleParam.DrawingStyle.convert + GridWidth |> DynObj.setOptionalProperty imaginaryAxis "gridwidth" + HoverFormat |> DynObj.setOptionalProperty imaginaryAxis "hoverformat" + LabelAlias |> DynObj.setOptionalProperty imaginaryAxis "labelalias" + Layer |> DynObj.setOptionalPropertyBy imaginaryAxis "layer" StyleParam.Layer.convert + LineColor |> DynObj.setOptionalProperty imaginaryAxis "linecolor" + LineWidth |> DynObj.setOptionalProperty imaginaryAxis "linewidth" + ShowGrid |> DynObj.setOptionalProperty imaginaryAxis "showgrid" + ShowLine |> DynObj.setOptionalProperty imaginaryAxis "showline" + ShowTickLabels |> DynObj.setOptionalProperty imaginaryAxis "showticklabels" + ShowTickSuffix |> DynObj.setOptionalPropertyBy imaginaryAxis "showticksuffix" StyleParam.ShowTickOption.convert + ShowTickPrefix |> DynObj.setOptionalPropertyBy imaginaryAxis "showtickprefix" StyleParam.ShowTickOption.convert + TickColor |> DynObj.setOptionalProperty imaginaryAxis "tickcolor" + TickFont |> DynObj.setOptionalProperty imaginaryAxis "tickfont" + TickFormat |> DynObj.setOptionalProperty imaginaryAxis "tickformat" + TickLen |> DynObj.setOptionalProperty imaginaryAxis "ticklen" + TickPrefix |> DynObj.setOptionalProperty imaginaryAxis "tickprefix" + Ticks |> DynObj.setOptionalPropertyBy imaginaryAxis "ticks" StyleParam.TickLabelPosition.convert + TickSuffix |> DynObj.setOptionalProperty imaginaryAxis "ticksuffix" + TickVals |> DynObj.setOptionalProperty imaginaryAxis "tickvals" + TickWidth |> DynObj.setOptionalProperty imaginaryAxis "tickwidth" + Visible |> DynObj.setOptionalProperty imaginaryAxis "visible" imaginaryAxis diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Smith/RealAxis.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Smith/RealAxis.fs index c15fca2db..2846284c7 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Smith/RealAxis.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Smith/RealAxis.fs @@ -158,31 +158,31 @@ type RealAxis() = ) = fun (realAxis: RealAxis) -> - Color |> DynObj.setValueOpt realAxis "color" - GridColor |> DynObj.setValueOpt realAxis "gridcolor" - GridDash |> DynObj.setValueOptBy realAxis "griddash" StyleParam.DrawingStyle.convert - GridWidth |> DynObj.setValueOpt realAxis "gridwidth" - HoverFormat |> DynObj.setValueOpt realAxis "hoverformat" - LabelAlias |> DynObj.setValueOpt realAxis "labelalias" - Layer |> DynObj.setValueOptBy realAxis "layer" StyleParam.Layer.convert - LineColor |> DynObj.setValueOpt realAxis "linecolor" - LineWidth |> DynObj.setValueOpt realAxis "linewidth" - ShowGrid |> DynObj.setValueOpt realAxis "showgrid" - ShowLine |> DynObj.setValueOpt realAxis "showline" - ShowTickLabels |> DynObj.setValueOpt realAxis "showticklabels" - ShowTickSuffix |> DynObj.setValueOptBy realAxis "showticksuffix" StyleParam.ShowTickOption.convert - ShowTickPrefix |> DynObj.setValueOptBy realAxis "showtickprefix" StyleParam.ShowTickOption.convert - Side |> DynObj.setValueOptBy realAxis "side" StyleParam.Side.convert - TickAngle |> DynObj.setValueOpt realAxis "tickangle" - TickColor |> DynObj.setValueOpt realAxis "tickcolor" - TickFont |> DynObj.setValueOpt realAxis "tickfont" - TickFormat |> DynObj.setValueOpt realAxis "tickformat" - TickLen |> DynObj.setValueOpt realAxis "ticklen" - TickPrefix |> DynObj.setValueOpt realAxis "tickprefix" - Ticks |> DynObj.setValueOptBy realAxis "ticks" StyleParam.TickLabelPosition.convert - TickSuffix |> DynObj.setValueOpt realAxis "ticksuffix" - TickVals |> DynObj.setValueOpt realAxis "tickvals" - TickWidth |> DynObj.setValueOpt realAxis "tickwidth" - Visible |> DynObj.setValueOpt realAxis "visible" + Color |> DynObj.setOptionalProperty realAxis "color" + GridColor |> DynObj.setOptionalProperty realAxis "gridcolor" + GridDash |> DynObj.setOptionalPropertyBy realAxis "griddash" StyleParam.DrawingStyle.convert + GridWidth |> DynObj.setOptionalProperty realAxis "gridwidth" + HoverFormat |> DynObj.setOptionalProperty realAxis "hoverformat" + LabelAlias |> DynObj.setOptionalProperty realAxis "labelalias" + Layer |> DynObj.setOptionalPropertyBy realAxis "layer" StyleParam.Layer.convert + LineColor |> DynObj.setOptionalProperty realAxis "linecolor" + LineWidth |> DynObj.setOptionalProperty realAxis "linewidth" + ShowGrid |> DynObj.setOptionalProperty realAxis "showgrid" + ShowLine |> DynObj.setOptionalProperty realAxis "showline" + ShowTickLabels |> DynObj.setOptionalProperty realAxis "showticklabels" + ShowTickSuffix |> DynObj.setOptionalPropertyBy realAxis "showticksuffix" StyleParam.ShowTickOption.convert + ShowTickPrefix |> DynObj.setOptionalPropertyBy realAxis "showtickprefix" StyleParam.ShowTickOption.convert + Side |> DynObj.setOptionalPropertyBy realAxis "side" StyleParam.Side.convert + TickAngle |> DynObj.setOptionalProperty realAxis "tickangle" + TickColor |> DynObj.setOptionalProperty realAxis "tickcolor" + TickFont |> DynObj.setOptionalProperty realAxis "tickfont" + TickFormat |> DynObj.setOptionalProperty realAxis "tickformat" + TickLen |> DynObj.setOptionalProperty realAxis "ticklen" + TickPrefix |> DynObj.setOptionalProperty realAxis "tickprefix" + Ticks |> DynObj.setOptionalPropertyBy realAxis "ticks" StyleParam.TickLabelPosition.convert + TickSuffix |> DynObj.setOptionalProperty realAxis "ticksuffix" + TickVals |> DynObj.setOptionalProperty realAxis "tickvals" + TickWidth |> DynObj.setOptionalProperty realAxis "tickwidth" + Visible |> DynObj.setOptionalProperty realAxis "visible" realAxis diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Smith/Smith.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Smith/Smith.fs index 68d1effdf..4b2a005ae 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Smith/Smith.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Smith/Smith.fs @@ -48,10 +48,10 @@ type Smith() = ) = fun (smith: Smith) -> - BGColor |> DynObj.setValueOpt smith "bgcolor" - Domain |> DynObj.setValueOpt smith "domain" - ImaginaryAxis |> DynObj.setValueOpt smith "imaginaryaxis" - RealAxis |> DynObj.setValueOpt smith "realaxis" + BGColor |> DynObj.setOptionalProperty smith "bgcolor" + Domain |> DynObj.setOptionalProperty smith "domain" + ImaginaryAxis |> DynObj.setOptionalProperty smith "imaginaryaxis" + RealAxis |> DynObj.setOptionalProperty smith "realaxis" smith @@ -60,7 +60,7 @@ type Smith() = /// /// The name of the dynamic member to get the value of /// The object to get the dynamic member value from - static member tryGetTypedMember<'T> (propName: string) (smith: Smith) = smith.TryGetTypedValue<'T>(propName) + static member tryGetTypedMember<'T> (propName: string) (smith: Smith) = smith.TryGetTypedPropertyValue<'T>(propName) /// /// Returns the ImaginaryAxis object of the given smith object. diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Ternary/Ternary.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Ternary/Ternary.fs index a682a02ba..0ef16801f 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Ternary/Ternary.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Ternary/Ternary.fs @@ -56,12 +56,12 @@ type Ternary() = ) = (fun (ternary: Ternary) -> - AAxis |> DynObj.setValueOpt ternary "aaxis" - BAxis |> DynObj.setValueOpt ternary "baxis" - CAxis |> DynObj.setValueOpt ternary "caxis" - Domain |> DynObj.setValueOpt ternary "domain" - Sum |> DynObj.setValueOpt ternary "sum" - BGColor |> DynObj.setValueOpt ternary "bgcolor" + AAxis |> DynObj.setOptionalProperty ternary "aaxis" + BAxis |> DynObj.setOptionalProperty ternary "baxis" + CAxis |> DynObj.setOptionalProperty ternary "caxis" + Domain |> DynObj.setOptionalProperty ternary "domain" + Sum |> DynObj.setOptionalProperty ternary "sum" + BGColor |> DynObj.setOptionalProperty ternary "bgcolor" ternary) @@ -71,7 +71,7 @@ type Ternary() = /// /// The name of the dynamic member to get the value of /// The object to get the dynamic member value from - static member tryGetTypedMember<'T> (propName: string) (ternary: Ternary) = ternary.TryGetTypedValue<'T>(propName) + static member tryGetTypedMember<'T> (propName: string) (ternary: Ternary) = ternary.TryGetTypedPropertyValue<'T>(propName) /// /// Returns the a axis of the given ternary object. diff --git a/src/Plotly.NET/Plotly.NET.fsproj b/src/Plotly.NET/Plotly.NET.fsproj index 7214e6b4f..dbe411e92 100644 --- a/src/Plotly.NET/Plotly.NET.fsproj +++ b/src/Plotly.NET/Plotly.NET.fsproj @@ -167,8 +167,8 @@ - - + + diff --git a/src/Plotly.NET/Templates/ChartTemplates.fs b/src/Plotly.NET/Templates/ChartTemplates.fs index f57d29d27..ad9d09776 100644 --- a/src/Plotly.NET/Templates/ChartTemplates.fs +++ b/src/Plotly.NET/Templates/ChartTemplates.fs @@ -97,13 +97,13 @@ module ChartTemplates = let darkMirrored = dark |> Template.mapLayoutTemplate (fun l -> - l.TryGetTypedValue("xaxis") + l.TryGetTypedPropertyValue("xaxis") |> Option.map (LinearAxis.style (Mirror = StyleParam.Mirror.AllTicks)) - |> DynObj.setValueOpt l "xaxis" + |> DynObj.setOptionalProperty l "xaxis" - l.TryGetTypedValue("yaxis") + l.TryGetTypedPropertyValue("yaxis") |> Option.map (LinearAxis.style (Mirror = StyleParam.Mirror.AllTicks)) - |> DynObj.setValueOpt l "yaxis" + |> DynObj.setOptionalProperty l "yaxis" l) diff --git a/src/Plotly.NET/Templates/Template.fs b/src/Plotly.NET/Templates/Template.fs index 311222230..38eca444d 100644 --- a/src/Plotly.NET/Templates/Template.fs +++ b/src/Plotly.NET/Templates/Template.fs @@ -39,26 +39,26 @@ type Template() = let tmp = DynamicObj() traceTemplates - |> Option.iter (Seq.iter (fun (id, traceTemplate) -> traceTemplate |> DynObj.setValue tmp id)) + |> Option.iter (Seq.iter (fun (id, traceTemplate) -> traceTemplate |> DynObj.withProperty tmp id)) tmp - layoutTemplate |> DynObj.setValue template "layout" - traceTemplates |> DynObj.setValue template "data" + layoutTemplate |> DynObj.withProperty template "layout" + traceTemplates |> DynObj.withProperty template "data" template) static member mapLayoutTemplate (styleF: Layout -> Layout) (template: Template) = - template.TryGetTypedValue("layout") |> Option.map (styleF) |> DynObj.setValueOpt template "layout" + template.TryGetTypedPropertyValue("layout") |> Option.map (styleF) |> DynObj.setOptionalProperty template "layout" template static member mapTraceTemplates (styleF: #Trace[] -> #Trace[]) (template: Template) = - template.TryGetTypedValue<#Trace[]>("data") |> Option.map (styleF) |> DynObj.setValueOpt template "data" + template.TryGetTypedPropertyValue<#Trace[]>("data") |> Option.map (styleF) |> DynObj.setOptionalProperty template "data" template static member withColorWay (colorway: Color) (template: Template) = template |> Template.mapLayoutTemplate (fun l -> - colorway |> DynObj.setValue l "colorway" + colorway |> DynObj.withProperty l "colorway" l) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Bins.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Bins.fs index f3cf69f62..0fc981c9c 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Bins.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Bins.fs @@ -29,8 +29,8 @@ type Bins() = ) = (fun (bins: Bins) -> - Start |> DynObj.setValueOpt bins "start" - End |> DynObj.setValueOpt bins "end" - Size |> DynObj.setValueOpt bins "size" + Start |> DynObj.setOptionalProperty bins "start" + End |> DynObj.setOptionalProperty bins "end" + Size |> DynObj.setOptionalProperty bins "size" bins) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Box.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Box.fs index 2abb572e7..1f8727800 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Box.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Box.fs @@ -46,10 +46,10 @@ type Box() = else None - Visible |> DynObj.setValueOpt box "visible" - Width |> DynObj.setValueOpt box "width" - FillColor |> DynObj.setValueOpt box "fillcolor" - line |> DynObj.setValueOpt box "line" + Visible |> DynObj.setOptionalProperty box "visible" + Width |> DynObj.setOptionalProperty box "width" + FillColor |> DynObj.setOptionalProperty box "fillcolor" + line |> DynObj.setOptionalProperty box "line" // out -> box) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Caps.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Caps.fs index e19f41830..cda906f3b 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Caps.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Caps.fs @@ -24,8 +24,8 @@ type CapFill() = fun (capFill: CapFill) -> - Fill |> DynObj.setValueOpt capFill "fill" - Show |> DynObj.setValueOpt capFill "show" + Fill |> DynObj.setOptionalProperty capFill "fill" + Show |> DynObj.setOptionalProperty capFill "show" capFill @@ -50,8 +50,8 @@ type Caps() = ) = fun (caps: Caps) -> - X |> DynObj.setValueOpt caps "x" - Y |> DynObj.setValueOpt caps "y" - Z |> DynObj.setValueOpt caps "z" + X |> DynObj.setOptionalProperty caps "x" + Y |> DynObj.setOptionalProperty caps "y" + Z |> DynObj.setOptionalProperty caps "z" caps diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Contours.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Contours.fs index defeb54c1..7d9dc9b35 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Contours.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Contours.fs @@ -27,9 +27,9 @@ type ContourProject() = fun (contourProject: ContourProject) -> - X |> DynObj.setValueOpt contourProject "x" - Y |> DynObj.setValueOpt contourProject "y" - Z |> DynObj.setValueOpt contourProject "z" + X |> DynObj.setOptionalProperty contourProject "x" + Y |> DynObj.setOptionalProperty contourProject "y" + Z |> DynObj.setOptionalProperty contourProject "z" contourProject @@ -87,17 +87,17 @@ type Contour() = ) = (fun (contour: Contour) -> - Color |> DynObj.setValueOpt contour "color" - End |> DynObj.setValueOpt contour "end" - Highlight |> DynObj.setValueOpt contour "highlight" - HighlightColor |> DynObj.setValueOpt contour "highlightcolor" - HighlightWidth |> DynObj.setValueOpt contour "highlightwidth" - Project |> DynObj.setValueOpt contour "project" - Show |> DynObj.setValueOpt contour "show" - Size |> DynObj.setValueOpt contour "size" - Start |> DynObj.setValueOpt contour "start" - UseColorMap |> DynObj.setValueOpt contour "usecolormap" - Width |> DynObj.setValueOpt contour "width" + Color |> DynObj.setOptionalProperty contour "color" + End |> DynObj.setOptionalProperty contour "end" + Highlight |> DynObj.setOptionalProperty contour "highlight" + HighlightColor |> DynObj.setOptionalProperty contour "highlightcolor" + HighlightWidth |> DynObj.setOptionalProperty contour "highlightwidth" + Project |> DynObj.setOptionalProperty contour "project" + Show |> DynObj.setOptionalProperty contour "show" + Size |> DynObj.setOptionalProperty contour "size" + Start |> DynObj.setOptionalProperty contour "start" + UseColorMap |> DynObj.setOptionalProperty contour "usecolormap" + Width |> DynObj.setOptionalProperty contour "width" contour) @@ -168,20 +168,20 @@ type Contours() = ) = (fun (contours: Contours) -> - X |> DynObj.setValueOpt contours "x" - Y |> DynObj.setValueOpt contours "y" - Z |> DynObj.setValueOpt contours "z" - Coloring |> DynObj.setValueOptBy contours "coloring" StyleParam.ContourColoring.convert - End |> DynObj.setValueOpt contours "end" - LabelFont |> DynObj.setValueOpt contours "labelfont" - LabelFormat |> DynObj.setValueOpt contours "labelformat" - Operation |> DynObj.setValueOptBy contours "operation" StyleParam.ConstraintOperation.convert - ShowLabels |> DynObj.setValueOpt contours "showlabels" - ShowLines |> DynObj.setValueOpt contours "showlines" - Size |> DynObj.setValueOpt contours "size" - Start |> DynObj.setValueOpt contours "start" - Type |> DynObj.setValueOptBy contours "type" StyleParam.ContourType.convert - Value |> DynObj.setValueOpt contours "value" + X |> DynObj.setOptionalProperty contours "x" + Y |> DynObj.setOptionalProperty contours "y" + Z |> DynObj.setOptionalProperty contours "z" + Coloring |> DynObj.setOptionalPropertyBy contours "coloring" StyleParam.ContourColoring.convert + End |> DynObj.setOptionalProperty contours "end" + LabelFont |> DynObj.setOptionalProperty contours "labelfont" + LabelFormat |> DynObj.setOptionalProperty contours "labelformat" + Operation |> DynObj.setOptionalPropertyBy contours "operation" StyleParam.ConstraintOperation.convert + ShowLabels |> DynObj.setOptionalProperty contours "showlabels" + ShowLines |> DynObj.setOptionalProperty contours "showlines" + Size |> DynObj.setOptionalProperty contours "size" + Start |> DynObj.setOptionalProperty contours "start" + Type |> DynObj.setOptionalPropertyBy contours "type" StyleParam.ContourType.convert + Value |> DynObj.setOptionalProperty contours "value" contours) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Cumulative.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Cumulative.fs index ddf762aca..fa961dee8 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Cumulative.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Cumulative.fs @@ -39,8 +39,8 @@ type Cumulative() = ) = (fun (cumulative: Cumulative) -> - Enabled |> DynObj.setValueOpt cumulative "enabled" - Direction |> DynObj.setValueOptBy cumulative "direction" StyleParam.CumulativeDirection.convert - Currentbin |> DynObj.setValueOptBy cumulative "currentbin" StyleParam.Currentbin.convert + Enabled |> DynObj.setOptionalProperty cumulative "enabled" + Direction |> DynObj.setOptionalPropertyBy cumulative "direction" StyleParam.CumulativeDirection.convert + Currentbin |> DynObj.setOptionalPropertyBy cumulative "currentbin" StyleParam.Currentbin.convert cumulative) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Dimensions.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Dimensions.fs index b0ab62229..2f724ec44 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Dimensions.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Dimensions.fs @@ -88,19 +88,19 @@ type Dimension() = let axis = LinearAxis.init (?AxisType = AxisType) - AxisMatches |> DynObj.setValueOpt axis "matches" + AxisMatches |> DynObj.setOptionalProperty axis "matches" - Label |> DynObj.setValueOpt dims "label" - Name |> DynObj.setValueOpt dims "name" - TemplateItemName |> DynObj.setValueOpt dims "templateitemname" - Values |> DynObj.setValueOpt dims "values" - Visible |> DynObj.setValueOpt dims "visible" - ConstraintRange |> DynObj.setValueOptBy dims "constraintrange" StyleParam.Range.convert - MultiSelect |> DynObj.setValueOpt dims "multiselect" - Range |> DynObj.setValueOptBy dims "range" StyleParam.Range.convert - TickFormat |> DynObj.setValueOptBy dims "tickformat" StyleParam.TickMode.convert - TickText |> DynObj.setValueOpt dims "ticktext" - Tickvals |> DynObj.setValueOpt dims "tickvals" - axis |> DynObj.setValue dims "axis" + Label |> DynObj.setOptionalProperty dims "label" + Name |> DynObj.setOptionalProperty dims "name" + TemplateItemName |> DynObj.setOptionalProperty dims "templateitemname" + Values |> DynObj.setOptionalProperty dims "values" + Visible |> DynObj.setOptionalProperty dims "visible" + ConstraintRange |> DynObj.setOptionalPropertyBy dims "constraintrange" StyleParam.Range.convert + MultiSelect |> DynObj.setOptionalProperty dims "multiselect" + Range |> DynObj.setOptionalPropertyBy dims "range" StyleParam.Range.convert + TickFormat |> DynObj.setOptionalPropertyBy dims "tickformat" StyleParam.TickMode.convert + TickText |> DynObj.setOptionalProperty dims "ticktext" + Tickvals |> DynObj.setOptionalProperty dims "tickvals" + axis |> DynObj.withProperty dims "axis" dims) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Error.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Error.fs index faae15472..576037106 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Error.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Error.fs @@ -92,19 +92,19 @@ type Error() = [] ?Width: float ) = (fun (error: Error) -> - Visible |> DynObj.setValueOpt error "visible" - Type |> DynObj.setValueOptBy error "type" StyleParam.ErrorType.convert - Symmetric |> DynObj.setValueOpt error "symmetric" - Array |> DynObj.setValueOpt error "array" - Arrayminus |> DynObj.setValueOpt error "arrayminus" - Value |> DynObj.setValueOpt error "value" - Valueminus |> DynObj.setValueOpt error "valueminus" - Traceref |> DynObj.setValueOpt error "traceref" - Tracerefminus |> DynObj.setValueOpt error "tracerefminus" - Copy_ystyle |> DynObj.setValueOpt error "copy_ystyle" - Color |> DynObj.setValueOpt error "color" - Thickness |> DynObj.setValueOpt error "thickness" - Width |> DynObj.setValueOpt error "width" + Visible |> DynObj.setOptionalProperty error "visible" + Type |> DynObj.setOptionalPropertyBy error "type" StyleParam.ErrorType.convert + Symmetric |> DynObj.setOptionalProperty error "symmetric" + Array |> DynObj.setOptionalProperty error "array" + Arrayminus |> DynObj.setOptionalProperty error "arrayminus" + Value |> DynObj.setOptionalProperty error "value" + Valueminus |> DynObj.setOptionalProperty error "valueminus" + Traceref |> DynObj.setOptionalProperty error "traceref" + Tracerefminus |> DynObj.setOptionalProperty error "tracerefminus" + Copy_ystyle |> DynObj.setOptionalProperty error "copy_ystyle" + Color |> DynObj.setOptionalProperty error "color" + Thickness |> DynObj.setOptionalProperty error "thickness" + Width |> DynObj.setOptionalProperty error "width" // out -> error) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/FinanceMarker.fs b/src/Plotly.NET/Traces/ObjectAbstractions/FinanceMarker.fs index c370fb26d..ac1cba180 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/FinanceMarker.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/FinanceMarker.fs @@ -35,11 +35,11 @@ type FinanceMarker() = (fun (financeMarker: FinanceMarker) -> let line = - financeMarker.TryGetTypedValue("line") + financeMarker.TryGetTypedPropertyValue("line") |> Option.defaultValue(Plotly.NET.Line.init()) |> Line.style (?Color = LineColor, ?Width = LineWidth, ?Dash = LineDash) - FillColor |> DynObj.setValueOpt financeMarker "fillcolor" - line |> DynObj.setValue financeMarker "line" + FillColor |> DynObj.setOptionalProperty financeMarker "fillcolor" + line |> DynObj.withProperty financeMarker "line" financeMarker) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/FunnelConnector.fs b/src/Plotly.NET/Traces/ObjectAbstractions/FunnelConnector.fs index f8201e470..9c3f6f32b 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/FunnelConnector.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/FunnelConnector.fs @@ -35,8 +35,8 @@ type FunnelConnector() = ) = (fun (connector: FunnelConnector) -> - FillColor |> DynObj.setValueOpt connector "fillcolor" - Line |> DynObj.setValueOpt connector "line" - Visible |> DynObj.setValueOpt connector "visible" + FillColor |> DynObj.setOptionalProperty connector "fillcolor" + Line |> DynObj.setOptionalProperty connector "line" + Visible |> DynObj.setOptionalProperty connector "visible" connector) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Gradient.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Gradient.fs index e6f4d4f93..363665a19 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Gradient.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Gradient.fs @@ -26,8 +26,8 @@ type Gradient() = fun (gradient: Gradient) -> - (Type, MultiTypes) |> DynObj.setSingleOrMultiOpt gradient "type" + (Type, MultiTypes) |> DynObj.setOptionalSingleOrMultiProperty gradient "type" - Color |> DynObj.setValueOpt gradient "color" + Color |> DynObj.setOptionalProperty gradient "color" gradient diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Icicle.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Icicle.fs index 872a53940..fc51c53a2 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Icicle.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Icicle.fs @@ -15,7 +15,7 @@ type IcicleRoot() = static member style([] ?Color: Color) = (fun (icicleRoot: IcicleRoot) -> - Color |> DynObj.setValueOpt icicleRoot "color" + Color |> DynObj.setOptionalProperty icicleRoot "color" icicleRoot) @@ -28,7 +28,7 @@ type IcicleLeaf() = static member style([] ?Opacity: float) = (fun (icicleLeaf: IcicleLeaf) -> - Opacity |> DynObj.setValueOpt icicleLeaf "opacity" + Opacity |> DynObj.setOptionalProperty icicleLeaf "opacity" icicleLeaf) @@ -51,8 +51,8 @@ type IcicleTiling() = ) = (fun (icicleTiling: IcicleTiling) -> - Flip |> DynObj.setValueOptBy icicleTiling "flip" StyleParam.TilingFlip.convert - Orientation |> DynObj.setValueOptBy icicleTiling "orientation" StyleParam.Orientation.convert - Pad |> DynObj.setValueOpt icicleTiling "pad" + Flip |> DynObj.setOptionalPropertyBy icicleTiling "flip" StyleParam.TilingFlip.convert + Orientation |> DynObj.setOptionalPropertyBy icicleTiling "orientation" StyleParam.Orientation.convert + Pad |> DynObj.setOptionalProperty icicleTiling "pad" icicleTiling) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Indicator.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Indicator.fs index c91fb5ef7..0ab78ca90 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Indicator.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Indicator.fs @@ -24,8 +24,8 @@ type IndicatorSymbol() = ) = (fun (indicatorDirection: IndicatorSymbol) -> - Color |> DynObj.setValueOpt indicatorDirection "color" - Symbol |> DynObj.setValueOpt indicatorDirection "symbol" + Color |> DynObj.setOptionalProperty indicatorDirection "color" + Symbol |> DynObj.setOptionalProperty indicatorDirection "symbol" indicatorDirection) @@ -95,15 +95,15 @@ type IndicatorDelta() = ) = (fun (indicatorDelta: IndicatorDelta) -> - Decreasing |> DynObj.setValueOpt indicatorDelta "decreasing" - Font |> DynObj.setValueOpt indicatorDelta "font" - Increasing |> DynObj.setValueOpt indicatorDelta "increasing" - Position |> DynObj.setValueOptBy indicatorDelta "position" StyleParam.IndicatorDeltaPosition.convert - Prefix |> DynObj.setValueOpt indicatorDelta "prefix" - Reference |> DynObj.setValueOpt indicatorDelta "reference" - Relative |> DynObj.setValueOpt indicatorDelta "relative" - Suffix |> DynObj.setValueOpt indicatorDelta "suffix" - ValueFormat |> DynObj.setValueOpt indicatorDelta "valueformat" + Decreasing |> DynObj.setOptionalProperty indicatorDelta "decreasing" + Font |> DynObj.setOptionalProperty indicatorDelta "font" + Increasing |> DynObj.setOptionalProperty indicatorDelta "increasing" + Position |> DynObj.setOptionalPropertyBy indicatorDelta "position" StyleParam.IndicatorDeltaPosition.convert + Prefix |> DynObj.setOptionalProperty indicatorDelta "prefix" + Reference |> DynObj.setOptionalProperty indicatorDelta "reference" + Relative |> DynObj.setOptionalProperty indicatorDelta "relative" + Suffix |> DynObj.setOptionalProperty indicatorDelta "suffix" + ValueFormat |> DynObj.setOptionalProperty indicatorDelta "valueformat" indicatorDelta) @@ -129,10 +129,10 @@ type IndicatorNumber() = ) = (fun (indicatorNumber: IndicatorNumber) -> - Font |> DynObj.setValueOpt indicatorNumber "font" - Prefix |> DynObj.setValueOpt indicatorNumber "prefix" - Suffix |> DynObj.setValueOpt indicatorNumber "suffix" - ValueFormat |> DynObj.setValueOpt indicatorNumber "valueformat" + Font |> DynObj.setOptionalProperty indicatorNumber "font" + Prefix |> DynObj.setOptionalProperty indicatorNumber "prefix" + Suffix |> DynObj.setOptionalProperty indicatorNumber "suffix" + ValueFormat |> DynObj.setOptionalProperty indicatorNumber "valueformat" indicatorNumber) @@ -156,9 +156,9 @@ type IndicatorBar() = ) = (fun (indicatorBar: IndicatorBar) -> - Color |> DynObj.setValueOpt indicatorBar "color" - Line |> DynObj.setValueOpt indicatorBar "line" - Thickness |> DynObj.setValueOpt indicatorBar "thickness" + Color |> DynObj.setOptionalProperty indicatorBar "color" + Line |> DynObj.setOptionalProperty indicatorBar "line" + Thickness |> DynObj.setOptionalProperty indicatorBar "thickness" indicatorBar) @@ -195,12 +195,12 @@ type IndicatorStep() = ) = (fun (indicatorSteps: IndicatorStep) -> - Color |> DynObj.setValueOpt indicatorSteps "color" - Line |> DynObj.setValueOpt indicatorSteps "line" - Name |> DynObj.setValueOpt indicatorSteps "name" - Range |> DynObj.setValueOptBy indicatorSteps "range" StyleParam.Range.convert - TemplateItemName |> DynObj.setValueOpt indicatorSteps "templateitemname" - Thickness |> DynObj.setValueOpt indicatorSteps "thickness" + Color |> DynObj.setOptionalProperty indicatorSteps "color" + Line |> DynObj.setOptionalProperty indicatorSteps "line" + Name |> DynObj.setOptionalProperty indicatorSteps "name" + Range |> DynObj.setOptionalPropertyBy indicatorSteps "range" StyleParam.Range.convert + TemplateItemName |> DynObj.setOptionalProperty indicatorSteps "templateitemname" + Thickness |> DynObj.setOptionalProperty indicatorSteps "thickness" indicatorSteps) @@ -224,9 +224,9 @@ type IndicatorThreshold() = ) = (fun (indicatorThreshold: IndicatorThreshold) -> - Line |> DynObj.setValueOpt indicatorThreshold "line" - Thickness |> DynObj.setValueOpt indicatorThreshold "thickness" - Value |> DynObj.setValueOpt indicatorThreshold "value" + Line |> DynObj.setOptionalProperty indicatorThreshold "line" + Thickness |> DynObj.setOptionalProperty indicatorThreshold "thickness" + Value |> DynObj.setOptionalProperty indicatorThreshold "value" indicatorThreshold) @@ -270,13 +270,13 @@ type IndicatorGauge() = ) = (fun (indicatorGauge: IndicatorGauge) -> - Axis |> DynObj.setValueOpt indicatorGauge "axis" - Bar |> DynObj.setValueOpt indicatorGauge "bar" - BGColor |> DynObj.setValueOpt indicatorGauge "bgcolor" - BorderColor |> DynObj.setValueOpt indicatorGauge "bordercolor" - BorderWidth |> DynObj.setValueOpt indicatorGauge "borderwidth" - Shape |> DynObj.setValueOptBy indicatorGauge "shape" StyleParam.IndicatorGaugeShape.convert - Steps |> DynObj.setValueOpt indicatorGauge "steps" - Threshold |> DynObj.setValueOpt indicatorGauge "threshold" + Axis |> DynObj.setOptionalProperty indicatorGauge "axis" + Bar |> DynObj.setOptionalProperty indicatorGauge "bar" + BGColor |> DynObj.setOptionalProperty indicatorGauge "bgcolor" + BorderColor |> DynObj.setOptionalProperty indicatorGauge "bordercolor" + BorderWidth |> DynObj.setOptionalProperty indicatorGauge "borderwidth" + Shape |> DynObj.setOptionalPropertyBy indicatorGauge "shape" StyleParam.IndicatorGaugeShape.convert + Steps |> DynObj.setOptionalProperty indicatorGauge "steps" + Threshold |> DynObj.setOptionalProperty indicatorGauge "threshold" indicatorGauge) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Lighting.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Lighting.fs index 6461431a4..69cf48767 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Lighting.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Lighting.fs @@ -63,13 +63,13 @@ type Lighting() = ) = fun (l: Lighting) -> - Ambient |> DynObj.setValueOpt l "ambient" - Diffuse |> DynObj.setValueOpt l "diffuse" - FaceNormalEpsilon |> DynObj.setValueOpt l "facenormalepsilon" - Fresnel |> DynObj.setValueOpt l "fresnel" - Roughness |> DynObj.setValueOpt l "roughness" - Specular |> DynObj.setValueOpt l "specular" - VertexNormalEpsilon |> DynObj.setValueOpt l "vertexnormalepsilon" + Ambient |> DynObj.setOptionalProperty l "ambient" + Diffuse |> DynObj.setOptionalProperty l "diffuse" + FaceNormalEpsilon |> DynObj.setOptionalProperty l "facenormalepsilon" + Fresnel |> DynObj.setOptionalProperty l "fresnel" + Roughness |> DynObj.setOptionalProperty l "roughness" + Specular |> DynObj.setOptionalProperty l "specular" + VertexNormalEpsilon |> DynObj.setOptionalProperty l "vertexnormalepsilon" l @@ -104,8 +104,8 @@ type LightPosition() = ) = fun (lp: LightPosition) -> - X |> DynObj.setValueOpt lp "x" - Y |> DynObj.setValueOpt lp "y" - Z |> DynObj.setValueOpt lp "z" + X |> DynObj.setOptionalProperty lp "x" + Y |> DynObj.setOptionalProperty lp "y" + Z |> DynObj.setOptionalProperty lp "z" lp diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Marker.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Marker.fs index 83c57d8b6..d36a87796 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Marker.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Marker.fs @@ -198,34 +198,34 @@ type Marker() = ) = (fun (marker: Marker) -> - Angle |> DynObj.setValueOpt marker "angle" - AngleRef |> DynObj.setValueOptBy marker "angleref" StyleParam.AngleRef.convert - AutoColorScale |> DynObj.setValueOpt marker "autocolorscale" - CAuto |> DynObj.setValueOpt marker "cauto" - CMax |> DynObj.setValueOpt marker "cmax" - CMid |> DynObj.setValueOpt marker "cmid" - CMin |> DynObj.setValueOpt marker "cmin" - Color |> DynObj.setValueOpt marker "color" - Colors |> DynObj.setValueOpt marker "colors" - ColorAxis |> DynObj.setValueOptBy marker "coloraxis" StyleParam.SubPlotId.convert - ColorBar |> DynObj.setValueOpt marker "colorbar" - Colorscale |> DynObj.setValueOptBy marker "colorscale" StyleParam.Colorscale.convert - CornerRadius |> DynObj.setValueOpt marker "cornerradius" - Gradient |> DynObj.setValueOpt marker "gradient" - Outline |> DynObj.setValueOpt marker "line" - (Size, MultiSize) |> DynObj.setSingleOrMultiOpt marker "size" - (Opacity, MultiOpacity) |> DynObj.setSingleOrMultiOpt marker "opacity" - Pattern |> DynObj.setValueOpt marker "pattern" + Angle |> DynObj.setOptionalProperty marker "angle" + AngleRef |> DynObj.setOptionalPropertyBy marker "angleref" StyleParam.AngleRef.convert + AutoColorScale |> DynObj.setOptionalProperty marker "autocolorscale" + CAuto |> DynObj.setOptionalProperty marker "cauto" + CMax |> DynObj.setOptionalProperty marker "cmax" + CMid |> DynObj.setOptionalProperty marker "cmid" + CMin |> DynObj.setOptionalProperty marker "cmin" + Color |> DynObj.setOptionalProperty marker "color" + Colors |> DynObj.setOptionalProperty marker "colors" + ColorAxis |> DynObj.setOptionalPropertyBy marker "coloraxis" StyleParam.SubPlotId.convert + ColorBar |> DynObj.setOptionalProperty marker "colorbar" + Colorscale |> DynObj.setOptionalPropertyBy marker "colorscale" StyleParam.Colorscale.convert + CornerRadius |> DynObj.setOptionalProperty marker "cornerradius" + Gradient |> DynObj.setOptionalProperty marker "gradient" + Outline |> DynObj.setOptionalProperty marker "line" + (Size, MultiSize) |> DynObj.setOptionalSingleOrMultiProperty marker "size" + (Opacity, MultiOpacity) |> DynObj.setOptionalSingleOrMultiProperty marker "opacity" + Pattern |> DynObj.setOptionalProperty marker "pattern" (Symbol, MultiSymbol) |> DynObj.setSingleOrMultiOptBy marker "symbol" StyleParam.MarkerSymbol.convert (Symbol3D, MultiSymbol3D) |> DynObj.setSingleOrMultiOptBy marker "symbol" StyleParam.MarkerSymbol3D.convert - OutlierColor |> DynObj.setValueOpt marker "outliercolor" - OutlierWidth |> DynObj.setValueOpt marker "outlierwidth" - MaxDisplayed |> DynObj.setValueOpt marker "maxdisplayed" - ReverseScale |> DynObj.setValueOpt marker "reversescale" - ShowScale |> DynObj.setValueOpt marker "showscale" - SizeMin |> DynObj.setValueOpt marker "sizemin" - SizeMode |> DynObj.setValueOpt marker "sizemode" - SizeRef |> DynObj.setValueOpt marker "sizeref" - (StandOff, MultiStandOff) |> DynObj.setSingleOrMultiOpt marker "standoff" + OutlierColor |> DynObj.setOptionalProperty marker "outliercolor" + OutlierWidth |> DynObj.setOptionalProperty marker "outlierwidth" + MaxDisplayed |> DynObj.setOptionalProperty marker "maxdisplayed" + ReverseScale |> DynObj.setOptionalProperty marker "reversescale" + ShowScale |> DynObj.setOptionalProperty marker "showscale" + SizeMin |> DynObj.setOptionalProperty marker "sizemin" + SizeMode |> DynObj.setOptionalProperty marker "sizemode" + SizeRef |> DynObj.setOptionalProperty marker "sizeref" + (StandOff, MultiStandOff) |> DynObj.setOptionalSingleOrMultiProperty marker "standoff" marker) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/MeanLine.fs b/src/Plotly.NET/Traces/ObjectAbstractions/MeanLine.fs index 9e8e54534..d68e88e32 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/MeanLine.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/MeanLine.fs @@ -28,9 +28,9 @@ type MeanLine() = [] ?Width: float ) = (fun (line: MeanLine) -> - Visible |> DynObj.setValueOpt line "visible" - Color |> DynObj.setValueOpt line "color" - Width |> DynObj.setValueOpt line "width" + Visible |> DynObj.setOptionalProperty line "visible" + Color |> DynObj.setOptionalProperty line "color" + Width |> DynObj.setOptionalProperty line "width" // out -> line) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Pathbar.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Pathbar.fs index 548cddc4b..532c6f4fa 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Pathbar.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Pathbar.fs @@ -62,10 +62,10 @@ type Pathbar() = [] ?Textfont: Font ) = (fun (pathbar: Pathbar) -> - Visible |> DynObj.setValueOpt pathbar "visible" - Side |> DynObj.setValueOptBy pathbar "side" StyleParam.Side.convert - EdgeShape |> DynObj.setValueOptBy pathbar "edgeshape" StyleParam.PathbarEdgeShape.convert - Thickness |> DynObj.setValueOpt pathbar "thickness" - Textfont |> DynObj.setValueOpt pathbar "textfont " + Visible |> DynObj.setOptionalProperty pathbar "visible" + Side |> DynObj.setOptionalPropertyBy pathbar "side" StyleParam.Side.convert + EdgeShape |> DynObj.setOptionalPropertyBy pathbar "edgeshape" StyleParam.PathbarEdgeShape.convert + Thickness |> DynObj.setOptionalProperty pathbar "thickness" + Textfont |> DynObj.setOptionalProperty pathbar "textfont " pathbar) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Pattern.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Pattern.fs index 05701751d..c9829f8bd 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Pattern.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Pattern.fs @@ -73,12 +73,12 @@ type Pattern() = fun (pattern: Pattern) -> - BGColor |> DynObj.setValueOpt pattern "bgcolor" - FGColor |> DynObj.setValueOpt pattern "fgcolor" - FGOpacity |> DynObj.setValueOpt pattern "fgopacity" - FillMode |> DynObj.setValueOptBy pattern "fillmode" StyleParam.PatternFillMode.convert + BGColor |> DynObj.setOptionalProperty pattern "bgcolor" + FGColor |> DynObj.setOptionalProperty pattern "fgcolor" + FGOpacity |> DynObj.setOptionalProperty pattern "fgopacity" + FillMode |> DynObj.setOptionalPropertyBy pattern "fillmode" StyleParam.PatternFillMode.convert (Shape, MultiShape) |> DynObj.setSingleOrMultiOptBy pattern "shape" StyleParam.PatternShape.convert - (Size, MultiSize) |> DynObj.setSingleOrMultiOpt pattern "size" - Solidity |> DynObj.setValueOpt pattern "solidity" + (Size, MultiSize) |> DynObj.setOptionalSingleOrMultiProperty pattern "size" + Solidity |> DynObj.setOptionalProperty pattern "solidity" pattern diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Projection.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Projection.fs index d6261cd7b..6cc85fd71 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Projection.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Projection.fs @@ -27,9 +27,9 @@ type ProjectionDimension() = fun (projectionDimension: ProjectionDimension) -> - Opacity |> DynObj.setValueOpt projectionDimension "opacity" - Scale |> DynObj.setValueOpt projectionDimension "scale" - Show |> DynObj.setValueOpt projectionDimension "show" + Opacity |> DynObj.setOptionalProperty projectionDimension "opacity" + Scale |> DynObj.setOptionalProperty projectionDimension "scale" + Show |> DynObj.setOptionalProperty projectionDimension "show" projectionDimension @@ -53,8 +53,8 @@ type Projection() = fun (projection: Projection) -> - X |> DynObj.setValueOpt projection "x" - Y |> DynObj.setValueOpt projection "y" - Z |> DynObj.setValueOpt projection "z" + X |> DynObj.setOptionalProperty projection "x" + Y |> DynObj.setOptionalProperty projection "y" + Z |> DynObj.setOptionalProperty projection "z" projection diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Sankey.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Sankey.fs index 17d13fa9c..8ed2d6918 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Sankey.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Sankey.fs @@ -62,18 +62,18 @@ type SankeyNodes() = ) = (fun (sankeyNodes: SankeyNodes) -> - Color |> DynObj.setValueOpt sankeyNodes "color" - CustomData |> DynObj.setValueOpt sankeyNodes "customdata" - Groups |> DynObj.setValueOpt sankeyNodes "hoverinfo" - HoverInfo |> DynObj.setValueOptBy sankeyNodes "color" StyleParam.HoverInfo.convert - HoverLabel |> DynObj.setValueOpt sankeyNodes "hoverlabel" - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt sankeyNodes "hovertemplate" - Label |> DynObj.setValueOpt sankeyNodes "label" - Line |> DynObj.setValueOpt sankeyNodes "line" - Pad |> DynObj.setValueOpt sankeyNodes "pad" - Thickness |> DynObj.setValueOpt sankeyNodes "thickness" - X |> DynObj.setValueOpt sankeyNodes "x" - Y |> DynObj.setValueOpt sankeyNodes "y" + Color |> DynObj.setOptionalProperty sankeyNodes "color" + CustomData |> DynObj.setOptionalProperty sankeyNodes "customdata" + Groups |> DynObj.setOptionalProperty sankeyNodes "hoverinfo" + HoverInfo |> DynObj.setOptionalPropertyBy sankeyNodes "color" StyleParam.HoverInfo.convert + HoverLabel |> DynObj.setOptionalProperty sankeyNodes "hoverlabel" + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty sankeyNodes "hovertemplate" + Label |> DynObj.setOptionalProperty sankeyNodes "label" + Line |> DynObj.setOptionalProperty sankeyNodes "line" + Pad |> DynObj.setOptionalProperty sankeyNodes "pad" + Thickness |> DynObj.setOptionalProperty sankeyNodes "thickness" + X |> DynObj.setOptionalProperty sankeyNodes "x" + Y |> DynObj.setOptionalProperty sankeyNodes "y" sankeyNodes) @@ -112,12 +112,12 @@ type SankeyLinkColorscale() = ) = (fun (sankeyLinkColorscale: SankeyLinkColorscale) -> - CMax |> DynObj.setValueOpt sankeyLinkColorscale "cmax" - CMin |> DynObj.setValueOpt sankeyLinkColorscale "cmin" - ColorScale |> DynObj.setValueOptBy sankeyLinkColorscale "colorscale" StyleParam.Colorscale.convert - Label |> DynObj.setValueOpt sankeyLinkColorscale "label" - Name |> DynObj.setValueOpt sankeyLinkColorscale "name" - TemplateItemName |> DynObj.setValueOpt sankeyLinkColorscale "templateitemname" + CMax |> DynObj.setOptionalProperty sankeyLinkColorscale "cmax" + CMin |> DynObj.setOptionalProperty sankeyLinkColorscale "cmin" + ColorScale |> DynObj.setOptionalPropertyBy sankeyLinkColorscale "colorscale" StyleParam.Colorscale.convert + Label |> DynObj.setOptionalProperty sankeyLinkColorscale "label" + Name |> DynObj.setOptionalProperty sankeyLinkColorscale "name" + TemplateItemName |> DynObj.setOptionalProperty sankeyLinkColorscale "templateitemname" sankeyLinkColorscale) @@ -178,19 +178,19 @@ type SankeyLinks() = ) = (fun (sankeyLinks: SankeyLinks) -> - ArrowLen |> DynObj.setValueOpt sankeyLinks "arrowlen" - Color |> DynObj.setValueOpt sankeyLinks "color" - ColorScales |> DynObj.setValueOpt sankeyLinks "colorscales" - CustomData |> DynObj.setValueOpt sankeyLinks "customdata" - HoverInfo |> DynObj.setValueOptBy sankeyLinks "hoverinfo" StyleParam.HoverInfo.convert - HoverLabel |> DynObj.setValueOpt sankeyLinks "hoverlabel" - HoverTemplate |> DynObj.setValueOpt sankeyLinks "hovertemplate" - MultiHoverTemplate |> DynObj.setValueOpt sankeyLinks "multihovertemplate" - Label |> DynObj.setValueOpt sankeyLinks "label" - Line |> DynObj.setValueOpt sankeyLinks "line" - Source |> DynObj.setValueOpt sankeyLinks "source" - Target |> DynObj.setValueOpt sankeyLinks "target" - Value |> DynObj.setValueOpt sankeyLinks "value" + ArrowLen |> DynObj.setOptionalProperty sankeyLinks "arrowlen" + Color |> DynObj.setOptionalProperty sankeyLinks "color" + ColorScales |> DynObj.setOptionalProperty sankeyLinks "colorscales" + CustomData |> DynObj.setOptionalProperty sankeyLinks "customdata" + HoverInfo |> DynObj.setOptionalPropertyBy sankeyLinks "hoverinfo" StyleParam.HoverInfo.convert + HoverLabel |> DynObj.setOptionalProperty sankeyLinks "hoverlabel" + HoverTemplate |> DynObj.setOptionalProperty sankeyLinks "hovertemplate" + MultiHoverTemplate |> DynObj.setOptionalProperty sankeyLinks "multihovertemplate" + Label |> DynObj.setOptionalProperty sankeyLinks "label" + Line |> DynObj.setOptionalProperty sankeyLinks "line" + Source |> DynObj.setOptionalProperty sankeyLinks "source" + Target |> DynObj.setOptionalProperty sankeyLinks "target" + Value |> DynObj.setOptionalProperty sankeyLinks "value" sankeyLinks) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Slices.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Slices.fs index 60ec2a430..b2d3ec21f 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Slices.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Slices.fs @@ -26,9 +26,9 @@ type SlicesFill() = fun (slicesFill: SlicesFill) -> - Fill |> DynObj.setValueOpt slicesFill "fill" - Locations |> DynObj.setValueOpt slicesFill "locations" - Show |> DynObj.setValueOpt slicesFill "show" + Fill |> DynObj.setOptionalProperty slicesFill "fill" + Locations |> DynObj.setOptionalProperty slicesFill "locations" + Show |> DynObj.setOptionalProperty slicesFill "show" slicesFill @@ -53,8 +53,8 @@ type Slices() = ) = fun (slices: Slices) -> - X |> DynObj.setValueOpt slices "x" - Y |> DynObj.setValueOpt slices "y" - Z |> DynObj.setValueOpt slices "z" + X |> DynObj.setOptionalProperty slices "x" + Y |> DynObj.setOptionalProperty slices "y" + Z |> DynObj.setOptionalProperty slices "z" slices diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/SpaceFrame.fs b/src/Plotly.NET/Traces/ObjectAbstractions/SpaceFrame.fs index 98a726ff9..27199a84e 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/SpaceFrame.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/SpaceFrame.fs @@ -24,7 +24,7 @@ type Spaceframe() = fun (spaceframe: Spaceframe) -> - Fill |> DynObj.setValueOpt spaceframe "fill" - Show |> DynObj.setValueOpt spaceframe "show" + Fill |> DynObj.setOptionalProperty spaceframe "fill" + Show |> DynObj.setOptionalProperty spaceframe "show" spaceframe diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/SplomDiagonal.fs b/src/Plotly.NET/Traces/ObjectAbstractions/SplomDiagonal.fs index 266305f00..a1f67023a 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/SplomDiagonal.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/SplomDiagonal.fs @@ -16,6 +16,6 @@ type SplomDiagonal() = fun (splomDiagonal: SplomDiagonal) -> - Visible |> DynObj.setValueOpt splomDiagonal "visible" + Visible |> DynObj.setOptionalProperty splomDiagonal "visible" splomDiagonal diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/StreamTubeStarts.fs b/src/Plotly.NET/Traces/ObjectAbstractions/StreamTubeStarts.fs index 716a9f8e9..5fe18ac14 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/StreamTubeStarts.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/StreamTubeStarts.fs @@ -39,8 +39,8 @@ type StreamTubeStarts() = ) = fun (streamTubeStarts: StreamTubeStarts) -> - X |> DynObj.setValueOpt streamTubeStarts "x" - Y |> DynObj.setValueOpt streamTubeStarts "y" - Z |> DynObj.setValueOpt streamTubeStarts "z" + X |> DynObj.setOptionalProperty streamTubeStarts "x" + Y |> DynObj.setOptionalProperty streamTubeStarts "y" + Z |> DynObj.setOptionalProperty streamTubeStarts "z" streamTubeStarts diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Sunburst.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Sunburst.fs index bac124273..8fae92404 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Sunburst.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Sunburst.fs @@ -17,7 +17,7 @@ type SunburstRoot() = static member style([] ?Color: Color) = (fun (root: SunburstRoot) -> - Color |> DynObj.setValueOpt root "color" + Color |> DynObj.setOptionalProperty root "color" root) @@ -31,6 +31,6 @@ type SunburstLeaf() = static member style([] ?Opacity: float) = (fun (leaf: SunburstLeaf) -> - Opacity |> DynObj.setValueOpt leaf "opacity" + Opacity |> DynObj.setOptionalProperty leaf "opacity" leaf) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Surface.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Surface.fs index 840adeee4..b717958f0 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Surface.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Surface.fs @@ -28,9 +28,9 @@ type Surface() = fun (surface: Surface) -> - Count |> DynObj.setValueOpt surface "count" - Fill |> DynObj.setValueOpt surface "fill" - Pattern |> DynObj.setValueOptBy surface "pattern" StyleParam.SurfacePattern.convert - Show |> DynObj.setValueOpt surface "show" + Count |> DynObj.setOptionalProperty surface "count" + Fill |> DynObj.setOptionalProperty surface "fill" + Pattern |> DynObj.setOptionalPropertyBy surface "pattern" StyleParam.SurfacePattern.convert + Show |> DynObj.setOptionalProperty surface "show" surface diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Table.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Table.fs index aa1e8605a..44e941e94 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Table.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Table.fs @@ -15,7 +15,7 @@ type TableFill() = static member style([] ?Color: Color) = (fun (fill: TableFill) -> - Color |> DynObj.setValueOpt fill "color" + Color |> DynObj.setOptionalProperty fill "color" fill) @@ -74,14 +74,14 @@ type TableCells() = (fun (cells: TableCells) -> (Align, MultiAlign) |> DynObj.setSingleOrMultiOptBy cells "align" StyleParam.HorizontalAlign.convert - Fill |> DynObj.setValueOpt cells "fill" - Font |> DynObj.setValueOpt cells "font" - Format |> DynObj.setValueOpt cells "format" - Height |> DynObj.setValueOpt cells "height" - Line |> DynObj.setValueOpt cells "line" - (Prefix, MultiPrefix) |> DynObj.setSingleOrMultiOpt cells "prefix" - (Suffix, MultiSuffix) |> DynObj.setSingleOrMultiOpt cells "suffix" - Values |> DynObj.setValueOpt cells "values" + Fill |> DynObj.setOptionalProperty cells "fill" + Font |> DynObj.setOptionalProperty cells "font" + Format |> DynObj.setOptionalProperty cells "format" + Height |> DynObj.setOptionalProperty cells "height" + Line |> DynObj.setOptionalProperty cells "line" + (Prefix, MultiPrefix) |> DynObj.setOptionalSingleOrMultiProperty cells "prefix" + (Suffix, MultiSuffix) |> DynObj.setOptionalSingleOrMultiProperty cells "suffix" + Values |> DynObj.setOptionalProperty cells "values" cells) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/TraceSelection.fs b/src/Plotly.NET/Traces/ObjectAbstractions/TraceSelection.fs index fa92b8aba..d19c58570 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/TraceSelection.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/TraceSelection.fs @@ -38,9 +38,9 @@ type MarkerSelectionStyle() = ) = (fun (markerSelectionStyle: MarkerSelectionStyle) -> - Opacity |> DynObj.setValueOpt markerSelectionStyle "opacity" - Color |> DynObj.setValueOpt markerSelectionStyle "color" - Size |> DynObj.setValueOpt markerSelectionStyle "size" + Opacity |> DynObj.setOptionalProperty markerSelectionStyle "opacity" + Color |> DynObj.setOptionalProperty markerSelectionStyle "color" + Size |> DynObj.setOptionalProperty markerSelectionStyle "size" markerSelectionStyle) @@ -72,8 +72,8 @@ type LineSelectionStyle() = ) = (fun (lineSelectionStyle: LineSelectionStyle) -> - Opacity |> DynObj.setValueOpt lineSelectionStyle "opacity" - Color |> DynObj.setValueOpt lineSelectionStyle "color" + Opacity |> DynObj.setOptionalProperty lineSelectionStyle "opacity" + Color |> DynObj.setOptionalProperty lineSelectionStyle "color" lineSelectionStyle) @@ -95,7 +95,7 @@ type FontSelectionStyle() = static member style([] ?Color: Color) = (fun (fontSelectionStyle: FontSelectionStyle) -> - Color |> DynObj.setValueOpt fontSelectionStyle "color" + Color |> DynObj.setOptionalProperty fontSelectionStyle "color" fontSelectionStyle) @@ -138,8 +138,8 @@ type TraceSelection() = ) = (fun (traceSelection: TraceSelection) -> - MarkerSelectionStyle |> DynObj.setValueOpt traceSelection "marker" - LineSelectionStyle |> DynObj.setValueOpt traceSelection "line" - FontSelectionStyle |> DynObj.setValueOpt traceSelection "font" + MarkerSelectionStyle |> DynObj.setOptionalProperty traceSelection "marker" + LineSelectionStyle |> DynObj.setOptionalProperty traceSelection "line" + FontSelectionStyle |> DynObj.setOptionalProperty traceSelection "font" traceSelection) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Treemap.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Treemap.fs index d9de061bb..fdd467107 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Treemap.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Treemap.fs @@ -17,7 +17,7 @@ type TreemapRoot() = static member style([] ?Color: Color) = (fun (root: TreemapRoot) -> - Color |> DynObj.setValueOpt root "color" + Color |> DynObj.setOptionalProperty root "color" root) @@ -31,7 +31,7 @@ type TreemapLeaf() = static member style([] ?Opacity: float) = (fun (leaf: TreemapLeaf) -> - Opacity |> DynObj.setValueOpt leaf "opacity" + Opacity |> DynObj.setOptionalProperty leaf "opacity" leaf) @@ -58,9 +58,9 @@ type TreemapTiling() = [] ?Pad: float ) = (fun (tiling: TreemapTiling) -> - Packing |> DynObj.setValueOptBy tiling "packing" StyleParam.TreemapTilingPacking.convert - SquarifyRatio |> DynObj.setValueOpt tiling "squarifyRatio" - Flip |> DynObj.setValueOptBy tiling "flip" StyleParam.TilingFlip.convert - Pad |> DynObj.setValueOpt tiling "pad" + Packing |> DynObj.setOptionalPropertyBy tiling "packing" StyleParam.TreemapTilingPacking.convert + SquarifyRatio |> DynObj.setOptionalProperty tiling "squarifyRatio" + Flip |> DynObj.setOptionalPropertyBy tiling "flip" StyleParam.TilingFlip.convert + Pad |> DynObj.setOptionalProperty tiling "pad" tiling) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/WaterfallConnector.fs b/src/Plotly.NET/Traces/ObjectAbstractions/WaterfallConnector.fs index 20c4be680..52a53b29c 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/WaterfallConnector.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/WaterfallConnector.fs @@ -36,8 +36,8 @@ type WaterfallConnector() = ) = (fun (connector: WaterfallConnector) -> - Line |> DynObj.setValueOpt connector "line" - Visible |> DynObj.setValueOpt connector "visible" - ConnectorMode |> DynObj.setValueOptBy connector "mode" StyleParam.ConnectorMode.convert + Line |> DynObj.setOptionalProperty connector "line" + Visible |> DynObj.setOptionalProperty connector "visible" + ConnectorMode |> DynObj.setOptionalPropertyBy connector "mode" StyleParam.ConnectorMode.convert connector) diff --git a/src/Plotly.NET/Traces/Trace.fs b/src/Plotly.NET/Traces/Trace.fs index 4910c8f35..8a6b5c531 100644 --- a/src/Plotly.NET/Traces/Trace.fs +++ b/src/Plotly.NET/Traces/Trace.fs @@ -22,7 +22,7 @@ type Trace(traceTypeName: string) = /// /// The name of the dynamic member to get the value of /// The trace to get the dynamic member value from - static member tryGetTypedMember<'T> (propName: string) (trace: Trace) = trace.TryGetTypedValue<'T>(propName) + static member tryGetTypedMember<'T> (propName: string) (trace: Trace) = trace.TryGetTypedPropertyValue<'T>(propName) /// /// Returns the Marker object of the given trace. @@ -329,12 +329,12 @@ type TraceStyle() = ) = (fun (trace: ('T :> Trace)) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" + Name |> DynObj.setOptionalProperty trace "name" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty trace "showlegend" + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" trace) @@ -706,9 +706,9 @@ type TraceStyle() = ) = (fun (trace: ('T :> Trace)) -> - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Selected |> DynObj.setValueOpt trace "selected" - Unselected |> DynObj.setValueOpt trace "unselected" + SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" + Selected |> DynObj.setOptionalProperty trace "selected" + Unselected |> DynObj.setOptionalProperty trace "unselected" trace) @@ -743,17 +743,17 @@ type TraceStyle() = [] ?TextFont: Font ) = (fun (trace: ('T :> Trace)) -> - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" (TextPosition, MultiTextPosition) |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" + (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" - TextFont |> DynObj.setValueOpt trace "textfont" + TextFont |> DynObj.setOptionalProperty trace "textfont" trace) diff --git a/src/Plotly.NET/Traces/Trace2D.fs b/src/Plotly.NET/Traces/Trace2D.fs index a6f57446d..27db7075a 100644 --- a/src/Plotly.NET/Traces/Trace2D.fs +++ b/src/Plotly.NET/Traces/Trace2D.fs @@ -105,8 +105,8 @@ type Trace2DStyle() = ) = (fun (trace: Trace2D) -> - X |> DynObj.setValueOptBy trace "xaxis" StyleParam.LinearAxisId.toString - Y |> DynObj.setValueOptBy trace "yaxis" StyleParam.LinearAxisId.toString + X |> DynObj.setOptionalPropertyBy trace "xaxis" StyleParam.LinearAxisId.toString + Y |> DynObj.setOptionalPropertyBy trace "yaxis" StyleParam.LinearAxisId.toString trace) @@ -248,67 +248,67 @@ type Trace2DStyle() = ) = (fun (trace: ('T :> Trace)) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Mode |> DynObj.setValueOptBy trace "mode" StyleParam.Mode.convert - Ids |> DynObj.setValueOpt trace "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt trace "x" - X0 |> DynObj.setValueOpt trace "x0" - DX |> DynObj.setValueOpt trace "dx" - (Y, MultiY) |> DynObj.setSingleOrMultiOpt trace "y" - Y0 |> DynObj.setValueOpt trace "y0" - DY |> DynObj.setValueOpt trace "dy" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" + Name |> DynObj.setOptionalProperty trace "name" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty trace "showlegend" + Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty trace "opacity" + Mode |> DynObj.setOptionalPropertyBy trace "mode" StyleParam.Mode.convert + Ids |> DynObj.setOptionalProperty trace "ids" + (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty trace "x" + X0 |> DynObj.setOptionalProperty trace "x0" + DX |> DynObj.setOptionalProperty trace "dx" + (Y, MultiY) |> DynObj.setOptionalSingleOrMultiProperty trace "y" + Y0 |> DynObj.setOptionalProperty trace "y0" + DY |> DynObj.setOptionalProperty trace "dy" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" (TextPosition, MultiTextPosition) |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - XHoverFormat |> DynObj.setValueOpt trace "xhoverformat" - YHoverFormat |> DynObj.setValueOpt trace "yhoverformat" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - XAxis |> DynObj.setValueOptBy trace "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy trace "yaxis" StyleParam.LinearAxisId.convert - Orientation |> DynObj.setValueOptBy trace "orientation" StyleParam.Orientation.convert - GroupNorm |> DynObj.setValueOptBy trace "groupnorm" StyleParam.GroupNorm.convert - AlignmentGroup |> DynObj.setValueOpt trace "alignmentgroup" - OffsetGroup |> DynObj.setValueOpt trace "offsetgroup" - StackGroup |> DynObj.setValueOpt trace "stackgroup" - XPeriod |> DynObj.setValueOpt trace "xperiod" - XPeriodAlignment |> DynObj.setValueOptBy trace "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setValueOpt trace "xperiod0" - YPeriod |> DynObj.setValueOpt trace "yperiod" - YPeriodAlignment |> DynObj.setValueOptBy trace "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setValueOpt trace "yperiod0" - Marker |> DynObj.setValueOpt trace "marker" - Line |> DynObj.setValueOpt trace "line" - TextFont |> DynObj.setValueOpt trace "textfont" - XError |> DynObj.setValueOpt trace "error_x" - YError |> DynObj.setValueOpt trace "error_y" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Selected |> DynObj.setValueOpt trace "selected" - Unselected |> DynObj.setValueOpt trace "unselected" - ClipOnAxis |> DynObj.setValueOpt trace "cliponaxis" - ConnectGaps |> DynObj.setValueOpt trace "connectgaps" - Fill |> DynObj.setValueOptBy trace "fill" StyleParam.Fill.convert - FillColor |> DynObj.setValueOpt trace "fillcolor" - FillPattern |> DynObj.setValueOpt trace "fillpattern" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - HoverOn |> DynObj.setValueOptBy trace "hoveron" StyleParam.HoverOn.convert - StackGaps |> DynObj.setValueOptBy trace "stackgaps" StyleParam.StackGaps.convert - XCalendar |> DynObj.setValueOptBy trace "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setValueOptBy trace "ycalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt trace "uirevision" + (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" + XHoverFormat |> DynObj.setOptionalProperty trace "xhoverformat" + YHoverFormat |> DynObj.setOptionalProperty trace "yhoverformat" + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + XAxis |> DynObj.setOptionalPropertyBy trace "xaxis" StyleParam.LinearAxisId.convert + YAxis |> DynObj.setOptionalPropertyBy trace "yaxis" StyleParam.LinearAxisId.convert + Orientation |> DynObj.setOptionalPropertyBy trace "orientation" StyleParam.Orientation.convert + GroupNorm |> DynObj.setOptionalPropertyBy trace "groupnorm" StyleParam.GroupNorm.convert + AlignmentGroup |> DynObj.setOptionalProperty trace "alignmentgroup" + OffsetGroup |> DynObj.setOptionalProperty trace "offsetgroup" + StackGroup |> DynObj.setOptionalProperty trace "stackgroup" + XPeriod |> DynObj.setOptionalProperty trace "xperiod" + XPeriodAlignment |> DynObj.setOptionalPropertyBy trace "xperiodalignment" StyleParam.PeriodAlignment.convert + XPeriod0 |> DynObj.setOptionalProperty trace "xperiod0" + YPeriod |> DynObj.setOptionalProperty trace "yperiod" + YPeriodAlignment |> DynObj.setOptionalPropertyBy trace "yperiodalignment" StyleParam.PeriodAlignment.convert + YPeriod0 |> DynObj.setOptionalProperty trace "yperiod0" + Marker |> DynObj.setOptionalProperty trace "marker" + Line |> DynObj.setOptionalProperty trace "line" + TextFont |> DynObj.setOptionalProperty trace "textfont" + XError |> DynObj.setOptionalProperty trace "error_x" + YError |> DynObj.setOptionalProperty trace "error_y" + SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" + Selected |> DynObj.setOptionalProperty trace "selected" + Unselected |> DynObj.setOptionalProperty trace "unselected" + ClipOnAxis |> DynObj.setOptionalProperty trace "cliponaxis" + ConnectGaps |> DynObj.setOptionalProperty trace "connectgaps" + Fill |> DynObj.setOptionalPropertyBy trace "fill" StyleParam.Fill.convert + FillColor |> DynObj.setOptionalProperty trace "fillcolor" + FillPattern |> DynObj.setOptionalProperty trace "fillpattern" + HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" + HoverOn |> DynObj.setOptionalPropertyBy trace "hoveron" StyleParam.HoverOn.convert + StackGaps |> DynObj.setOptionalPropertyBy trace "stackgaps" StyleParam.StackGaps.convert + XCalendar |> DynObj.setOptionalPropertyBy trace "xcalendar" StyleParam.Calendar.convert + YCalendar |> DynObj.setOptionalPropertyBy trace "ycalendar" StyleParam.Calendar.convert + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace) @@ -450,65 +450,65 @@ type Trace2DStyle() = ) = (fun (bar: ('T :> Trace)) -> - Name |> DynObj.setValueOpt bar "name" - Visible |> DynObj.setValueOptBy bar "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt bar "showlegend" - Legend |> DynObj.setValueOptBy bar "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt bar "legendrank" - LegendGroup |> DynObj.setValueOpt bar "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt bar "legendgrouptitle" - Opacity |> DynObj.setValueOpt bar "opacity" - Ids |> DynObj.setValueOpt bar "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt bar "x" - X0 |> DynObj.setValueOpt bar "x0" - DX |> DynObj.setValueOpt bar "dx" - (Y, MultiY) |> DynObj.setSingleOrMultiOpt bar "y" - Y0 |> DynObj.setValueOpt bar "y0" - DY |> DynObj.setValueOpt bar "dy" - Base |> DynObj.setValueOpt bar "base" - (Width, MultiWidth) |> DynObj.setSingleOrMultiOpt bar "width" - (Offset, MultiOffset) |> DynObj.setSingleOrMultiOpt bar "offset" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt bar "text" + Name |> DynObj.setOptionalProperty bar "name" + Visible |> DynObj.setOptionalPropertyBy bar "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty bar "showlegend" + Legend |> DynObj.setOptionalPropertyBy bar "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty bar "legendrank" + LegendGroup |> DynObj.setOptionalProperty bar "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty bar "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty bar "opacity" + Ids |> DynObj.setOptionalProperty bar "ids" + (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty bar "x" + X0 |> DynObj.setOptionalProperty bar "x0" + DX |> DynObj.setOptionalProperty bar "dx" + (Y, MultiY) |> DynObj.setOptionalSingleOrMultiProperty bar "y" + Y0 |> DynObj.setOptionalProperty bar "y0" + DY |> DynObj.setOptionalProperty bar "dy" + Base |> DynObj.setOptionalProperty bar "base" + (Width, MultiWidth) |> DynObj.setOptionalSingleOrMultiProperty bar "width" + (Offset, MultiOffset) |> DynObj.setOptionalSingleOrMultiProperty bar "offset" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty bar "text" (TextPosition, MultiTextPosition) |> DynObj.setSingleOrMultiOptBy bar "textposition" StyleParam.TextPosition.convert - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt bar "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt bar "hovertext" - HoverInfo |> DynObj.setValueOptBy bar "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt bar "hovertemplate" - XHoverFormat |> DynObj.setValueOpt bar "xhoverformat" - YHoverFormat |> DynObj.setValueOpt bar "yhoverformat" - Meta |> DynObj.setValueOpt bar "meta" - CustomData |> DynObj.setValueOpt bar "customdata" - XAxis |> DynObj.setValueOptBy bar "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy bar "yaxis" StyleParam.LinearAxisId.convert - Orientation |> DynObj.setValueOptBy bar "orientation" StyleParam.Orientation.convert - AlignmentGroup |> DynObj.setValueOpt bar "alignmentgroup" - OffsetGroup |> DynObj.setValueOpt bar "offsetgroup" - XPeriod |> DynObj.setValueOpt bar "xperiod" - XPeriodAlignment |> DynObj.setValueOptBy bar "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setValueOpt bar "xperiod0" - YPeriod |> DynObj.setValueOpt bar "yperiod" - YPeriodAlignment |> DynObj.setValueOptBy bar "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setValueOpt bar "yperiod0" - Marker |> DynObj.setValueOpt bar "marker" - TextAngle |> DynObj.setValueOpt bar "textangle" - TextFont |> DynObj.setValueOpt bar "textfont" - XError |> DynObj.setValueOpt bar "error_x" - YError |> DynObj.setValueOpt bar "error_y" - SelectedPoints |> DynObj.setValueOpt bar "selectedpoints" - Selected |> DynObj.setValueOpt bar "selected" - Unselected |> DynObj.setValueOpt bar "unselected" - ClipOnAxis |> DynObj.setValueOpt bar "cliponaxis" - Constraintext |> DynObj.setValueOptBy bar "constraintext" StyleParam.ConstrainText.convert - HoverLabel |> DynObj.setValueOpt bar "hoverlabel" - InsideTextAnchor |> DynObj.setValueOptBy bar "insidetextanchor" StyleParam.InsideTextAnchor.convert - InsideTextFont |> DynObj.setValueOpt bar "insidetextfont" - OutsideTextFont |> DynObj.setValueOpt bar "outsidetextfont" - XCalendar |> DynObj.setValueOptBy bar "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setValueOptBy bar "ycalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt bar "uirevision" + (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty bar "texttemplate" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty bar "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy bar "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty bar "hovertemplate" + XHoverFormat |> DynObj.setOptionalProperty bar "xhoverformat" + YHoverFormat |> DynObj.setOptionalProperty bar "yhoverformat" + Meta |> DynObj.setOptionalProperty bar "meta" + CustomData |> DynObj.setOptionalProperty bar "customdata" + XAxis |> DynObj.setOptionalPropertyBy bar "xaxis" StyleParam.LinearAxisId.convert + YAxis |> DynObj.setOptionalPropertyBy bar "yaxis" StyleParam.LinearAxisId.convert + Orientation |> DynObj.setOptionalPropertyBy bar "orientation" StyleParam.Orientation.convert + AlignmentGroup |> DynObj.setOptionalProperty bar "alignmentgroup" + OffsetGroup |> DynObj.setOptionalProperty bar "offsetgroup" + XPeriod |> DynObj.setOptionalProperty bar "xperiod" + XPeriodAlignment |> DynObj.setOptionalPropertyBy bar "xperiodalignment" StyleParam.PeriodAlignment.convert + XPeriod0 |> DynObj.setOptionalProperty bar "xperiod0" + YPeriod |> DynObj.setOptionalProperty bar "yperiod" + YPeriodAlignment |> DynObj.setOptionalPropertyBy bar "yperiodalignment" StyleParam.PeriodAlignment.convert + YPeriod0 |> DynObj.setOptionalProperty bar "yperiod0" + Marker |> DynObj.setOptionalProperty bar "marker" + TextAngle |> DynObj.setOptionalProperty bar "textangle" + TextFont |> DynObj.setOptionalProperty bar "textfont" + XError |> DynObj.setOptionalProperty bar "error_x" + YError |> DynObj.setOptionalProperty bar "error_y" + SelectedPoints |> DynObj.setOptionalProperty bar "selectedpoints" + Selected |> DynObj.setOptionalProperty bar "selected" + Unselected |> DynObj.setOptionalProperty bar "unselected" + ClipOnAxis |> DynObj.setOptionalProperty bar "cliponaxis" + Constraintext |> DynObj.setOptionalPropertyBy bar "constraintext" StyleParam.ConstrainText.convert + HoverLabel |> DynObj.setOptionalProperty bar "hoverlabel" + InsideTextAnchor |> DynObj.setOptionalPropertyBy bar "insidetextanchor" StyleParam.InsideTextAnchor.convert + InsideTextFont |> DynObj.setOptionalProperty bar "insidetextfont" + OutsideTextFont |> DynObj.setOptionalProperty bar "outsidetextfont" + XCalendar |> DynObj.setOptionalPropertyBy bar "xcalendar" StyleParam.Calendar.convert + YCalendar |> DynObj.setOptionalPropertyBy bar "ycalendar" StyleParam.Calendar.convert + UIRevision |> DynObj.setOptionalProperty bar "uirevision" bar @@ -638,60 +638,60 @@ type Trace2DStyle() = ) = (fun (funnel: #Trace) -> - Name |> DynObj.setValueOpt funnel "name" - Visible |> DynObj.setValueOptBy funnel "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt funnel "showlegend" - Legend |> DynObj.setValueOptBy funnel "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt funnel "legendrank" - LegendGroup |> DynObj.setValueOpt funnel "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt funnel "legendgrouptitle" - Opacity |> DynObj.setValueOpt funnel "opacity" - Ids |> DynObj.setValueOpt funnel "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt funnel "x" - X0 |> DynObj.setValueOpt funnel "x0" - DX |> DynObj.setValueOpt funnel "dx" - (Y, MultiY) |> DynObj.setSingleOrMultiOpt funnel "y" - Y0 |> DynObj.setValueOpt funnel "y0" - DY |> DynObj.setValueOpt funnel "dy" - Width |> DynObj.setValueOpt funnel "width" - Offset |> DynObj.setValueOpt funnel "offset" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt funnel "text" + Name |> DynObj.setOptionalProperty funnel "name" + Visible |> DynObj.setOptionalPropertyBy funnel "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty funnel "showlegend" + Legend |> DynObj.setOptionalPropertyBy funnel "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty funnel "legendrank" + LegendGroup |> DynObj.setOptionalProperty funnel "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty funnel "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty funnel "opacity" + Ids |> DynObj.setOptionalProperty funnel "ids" + (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty funnel "x" + X0 |> DynObj.setOptionalProperty funnel "x0" + DX |> DynObj.setOptionalProperty funnel "dx" + (Y, MultiY) |> DynObj.setOptionalSingleOrMultiProperty funnel "y" + Y0 |> DynObj.setOptionalProperty funnel "y0" + DY |> DynObj.setOptionalProperty funnel "dy" + Width |> DynObj.setOptionalProperty funnel "width" + Offset |> DynObj.setOptionalProperty funnel "offset" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty funnel "text" (TextPosition, MultiTextPosition) |> DynObj.setSingleOrMultiOptBy funnel "textposition" StyleParam.TextPosition.convert - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt funnel "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt funnel "hovertext" - HoverInfo |> DynObj.setValueOptBy funnel "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt funnel "hovertemplate" - XHoverFormat |> DynObj.setValueOpt funnel "xhoverformat" - YHoverFormat |> DynObj.setValueOpt funnel "yhoverformat" - Meta |> DynObj.setValueOpt funnel "meta" - CustomData |> DynObj.setValueOpt funnel "customdata" - XAxis |> DynObj.setValueOptBy funnel "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy funnel "yaxis" StyleParam.LinearAxisId.convert - Orientation |> DynObj.setValueOptBy funnel "orientation" StyleParam.Orientation.convert - AlignmentGroup |> DynObj.setValueOpt funnel "alignmentgroup" - OffsetGroup |> DynObj.setValueOpt funnel "offsetgroup" - XPeriod |> DynObj.setValueOpt funnel "xperiod" - XPeriodAlignment |> DynObj.setValueOptBy funnel "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setValueOpt funnel "xperiod0" - YPeriod |> DynObj.setValueOpt funnel "yperiod" - YPeriodAlignment |> DynObj.setValueOptBy funnel "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setValueOpt funnel "yperiod0" - Marker |> DynObj.setValueOpt funnel "marker" - TextAngle |> DynObj.setValueOpt funnel "textangle" - TextFont |> DynObj.setValueOpt funnel "textfont" - TextInfo |> DynObj.setValueOptBy funnel "textinfo" StyleParam.TextInfo.convert - SelectedPoints |> DynObj.setValueOpt funnel "selectedpoints" - ClipOnAxis |> DynObj.setValueOpt funnel "cliponaxis" - Connector |> DynObj.setValueOpt funnel "connector" - Constraintext |> DynObj.setValueOptBy funnel "constraintext" StyleParam.ConstrainText.convert - HoverLabel |> DynObj.setValueOpt funnel "hoverlabel" - InsideTextAnchor |> DynObj.setValueOptBy funnel "insidetextanchor" StyleParam.InsideTextAnchor.convert - InsideTextFont |> DynObj.setValueOpt funnel "insidetextfont" - OutsideTextFont |> DynObj.setValueOpt funnel "outsidetextfont" - UIRevision |> DynObj.setValueOpt funnel "uirevision" + (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty funnel "texttemplate" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty funnel "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy funnel "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty funnel "hovertemplate" + XHoverFormat |> DynObj.setOptionalProperty funnel "xhoverformat" + YHoverFormat |> DynObj.setOptionalProperty funnel "yhoverformat" + Meta |> DynObj.setOptionalProperty funnel "meta" + CustomData |> DynObj.setOptionalProperty funnel "customdata" + XAxis |> DynObj.setOptionalPropertyBy funnel "xaxis" StyleParam.LinearAxisId.convert + YAxis |> DynObj.setOptionalPropertyBy funnel "yaxis" StyleParam.LinearAxisId.convert + Orientation |> DynObj.setOptionalPropertyBy funnel "orientation" StyleParam.Orientation.convert + AlignmentGroup |> DynObj.setOptionalProperty funnel "alignmentgroup" + OffsetGroup |> DynObj.setOptionalProperty funnel "offsetgroup" + XPeriod |> DynObj.setOptionalProperty funnel "xperiod" + XPeriodAlignment |> DynObj.setOptionalPropertyBy funnel "xperiodalignment" StyleParam.PeriodAlignment.convert + XPeriod0 |> DynObj.setOptionalProperty funnel "xperiod0" + YPeriod |> DynObj.setOptionalProperty funnel "yperiod" + YPeriodAlignment |> DynObj.setOptionalPropertyBy funnel "yperiodalignment" StyleParam.PeriodAlignment.convert + YPeriod0 |> DynObj.setOptionalProperty funnel "yperiod0" + Marker |> DynObj.setOptionalProperty funnel "marker" + TextAngle |> DynObj.setOptionalProperty funnel "textangle" + TextFont |> DynObj.setOptionalProperty funnel "textfont" + TextInfo |> DynObj.setOptionalPropertyBy funnel "textinfo" StyleParam.TextInfo.convert + SelectedPoints |> DynObj.setOptionalProperty funnel "selectedpoints" + ClipOnAxis |> DynObj.setOptionalProperty funnel "cliponaxis" + Connector |> DynObj.setOptionalProperty funnel "connector" + Constraintext |> DynObj.setOptionalPropertyBy funnel "constraintext" StyleParam.ConstrainText.convert + HoverLabel |> DynObj.setOptionalProperty funnel "hoverlabel" + InsideTextAnchor |> DynObj.setOptionalPropertyBy funnel "insidetextanchor" StyleParam.InsideTextAnchor.convert + InsideTextFont |> DynObj.setOptionalProperty funnel "insidetextfont" + OutsideTextFont |> DynObj.setOptionalProperty funnel "outsidetextfont" + UIRevision |> DynObj.setOptionalProperty funnel "uirevision" funnel @@ -833,64 +833,64 @@ type Trace2DStyle() = ) = (fun (trace: ('T :> Trace)) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Ids |> DynObj.setValueOpt trace "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt trace "x" - X0 |> DynObj.setValueOpt trace "x0" - DX |> DynObj.setValueOpt trace "dx" - (Y, MultiY) |> DynObj.setSingleOrMultiOpt trace "y" - Y0 |> DynObj.setValueOpt trace "y0" - DY |> DynObj.setValueOpt trace "dy" - Base |> DynObj.setValueOpt trace "base" - (Width, MultiWidth) |> DynObj.setSingleOrMultiOpt trace "width" - Measure |> DynObj.setValueOptBy trace "measure" (Seq.map StyleParam.WaterfallMeasure.convert) - (Offset, MultiOffset) |> DynObj.setSingleOrMultiOpt trace "offset" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" + Name |> DynObj.setOptionalProperty trace "name" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty trace "showlegend" + Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty trace "opacity" + Ids |> DynObj.setOptionalProperty trace "ids" + (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty trace "x" + X0 |> DynObj.setOptionalProperty trace "x0" + DX |> DynObj.setOptionalProperty trace "dx" + (Y, MultiY) |> DynObj.setOptionalSingleOrMultiProperty trace "y" + Y0 |> DynObj.setOptionalProperty trace "y0" + DY |> DynObj.setOptionalProperty trace "dy" + Base |> DynObj.setOptionalProperty trace "base" + (Width, MultiWidth) |> DynObj.setOptionalSingleOrMultiProperty trace "width" + Measure |> DynObj.setOptionalPropertyBy trace "measure" (Seq.map StyleParam.WaterfallMeasure.convert) + (Offset, MultiOffset) |> DynObj.setOptionalSingleOrMultiProperty trace "offset" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" (TextPosition, MultiTextPosition) |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemTotalsplate" - XHoverFormat |> DynObj.setValueOpt trace "xhoverformat" - YHoverFormat |> DynObj.setValueOpt trace "yhoverformat" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - XAxis |> DynObj.setValueOptBy trace "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy trace "yaxis" StyleParam.LinearAxisId.convert - Orientation |> DynObj.setValueOptBy trace "orientation" StyleParam.Orientation.convert - AlignmentGroup |> DynObj.setValueOpt trace "alignmentgroup" - OffsetGroup |> DynObj.setValueOpt trace "offsetgroup" - XPeriod |> DynObj.setValueOpt trace "xperiod" - XPeriodAlignment |> DynObj.setValueOptBy trace "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setValueOpt trace "xperiod0" - YPeriod |> DynObj.setValueOpt trace "yperiod" - YPeriodAlignment |> DynObj.setValueOptBy trace "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setValueOpt trace "yperiod0" - TextAngle |> DynObj.setValueOpt trace "textangle" - TextFont |> DynObj.setValueOpt trace "textfont" - TextInfo |> DynObj.setValueOpt trace "textinfo" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - ClipOnAxis |> DynObj.setValueOpt trace "cliponaxis" - Connector |> DynObj.setValueOpt trace "connector" - Constraintext |> DynObj.setValueOptBy trace "constraintext" StyleParam.ConstrainText.convert - Increasing |> DynObj.setValueOpt trace "increasing" - Decreasing |> DynObj.setValueOpt trace "decreasing" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - InsideTextAnchor |> DynObj.setValueOptBy trace "insidetextanchor" StyleParam.InsideTextAnchor.convert - InsideTextFont |> DynObj.setValueOpt trace "insidetextfont" - OutsideTextFont |> DynObj.setValueOpt trace "outsidetextfont" - Totals |> DynObj.setValueOpt trace "totals" - UIRevision |> DynObj.setValueOpt trace "uirevision" + (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemTotalsplate" + XHoverFormat |> DynObj.setOptionalProperty trace "xhoverformat" + YHoverFormat |> DynObj.setOptionalProperty trace "yhoverformat" + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + XAxis |> DynObj.setOptionalPropertyBy trace "xaxis" StyleParam.LinearAxisId.convert + YAxis |> DynObj.setOptionalPropertyBy trace "yaxis" StyleParam.LinearAxisId.convert + Orientation |> DynObj.setOptionalPropertyBy trace "orientation" StyleParam.Orientation.convert + AlignmentGroup |> DynObj.setOptionalProperty trace "alignmentgroup" + OffsetGroup |> DynObj.setOptionalProperty trace "offsetgroup" + XPeriod |> DynObj.setOptionalProperty trace "xperiod" + XPeriodAlignment |> DynObj.setOptionalPropertyBy trace "xperiodalignment" StyleParam.PeriodAlignment.convert + XPeriod0 |> DynObj.setOptionalProperty trace "xperiod0" + YPeriod |> DynObj.setOptionalProperty trace "yperiod" + YPeriodAlignment |> DynObj.setOptionalPropertyBy trace "yperiodalignment" StyleParam.PeriodAlignment.convert + YPeriod0 |> DynObj.setOptionalProperty trace "yperiod0" + TextAngle |> DynObj.setOptionalProperty trace "textangle" + TextFont |> DynObj.setOptionalProperty trace "textfont" + TextInfo |> DynObj.setOptionalProperty trace "textinfo" + SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" + ClipOnAxis |> DynObj.setOptionalProperty trace "cliponaxis" + Connector |> DynObj.setOptionalProperty trace "connector" + Constraintext |> DynObj.setOptionalPropertyBy trace "constraintext" StyleParam.ConstrainText.convert + Increasing |> DynObj.setOptionalProperty trace "increasing" + Decreasing |> DynObj.setOptionalProperty trace "decreasing" + HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" + InsideTextAnchor |> DynObj.setOptionalPropertyBy trace "insidetextanchor" StyleParam.InsideTextAnchor.convert + InsideTextFont |> DynObj.setOptionalProperty trace "insidetextfont" + OutsideTextFont |> DynObj.setOptionalProperty trace "outsidetextfont" + Totals |> DynObj.setOptionalProperty trace "totals" + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace) @@ -1023,60 +1023,60 @@ type Trace2DStyle() = ) = (fun (histogram: ('T :> Trace)) -> - Name |> DynObj.setValueOpt histogram "name" - Visible |> DynObj.setValueOptBy histogram "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt histogram "showlegend" - Legend |> DynObj.setValueOptBy histogram "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt histogram "legendrank" - LegendGroup |> DynObj.setValueOpt histogram "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt histogram "legendgrouptitle" - Opacity |> DynObj.setValueOpt histogram "opacity" - Ids |> DynObj.setValueOpt histogram "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt histogram "x" - (Y, MultiY) |> DynObj.setSingleOrMultiOpt histogram "y" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt histogram "text" - TextPosition |> DynObj.setValueOptBy histogram "textposition" StyleParam.TextPosition.convert - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt histogram "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt histogram "hovertext" - HoverInfo |> DynObj.setValueOptBy histogram "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt histogram "hovertemplate" - XHoverFormat |> DynObj.setValueOpt histogram "xhoverformat" - YHoverFormat |> DynObj.setValueOpt histogram "yhoverformat" - Meta |> DynObj.setValueOpt histogram "meta" - CustomData |> DynObj.setValueOpt histogram "customdata" - XAxis |> DynObj.setValueOptBy histogram "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy histogram "yaxis" StyleParam.LinearAxisId.convert - Orientation |> DynObj.setValueOptBy histogram "orientation" StyleParam.Orientation.convert - HistFunc |> DynObj.setValueOptBy histogram "histfunc" StyleParam.HistFunc.convert - HistNorm |> DynObj.setValueOptBy histogram "histnorm" StyleParam.HistNorm.convert - AlignmentGroup |> DynObj.setValueOpt histogram "alignmentgroup" - OffsetGroup |> DynObj.setValueOpt histogram "offsetgroup" - NBinsX |> DynObj.setValueOpt histogram "nbinsx" - NBinsY |> DynObj.setValueOpt histogram "nbinsy" - AutoBinX |> DynObj.setValueOpt histogram "autobinx" - AutoBinY |> DynObj.setValueOpt histogram "autobiny" - BinGroup |> DynObj.setValueOpt histogram "bingroup" - XBins |> DynObj.setValueOpt histogram "xbins" - YBins |> DynObj.setValueOpt histogram "ybins" - Marker |> DynObj.setValueOpt histogram "marker" - TextAngle |> DynObj.setValueOpt histogram "textangle" - TextFont |> DynObj.setValueOpt histogram "textfont" - Line |> DynObj.setValueOpt histogram "line" - XError |> DynObj.setValueOpt histogram "error_x" - YError |> DynObj.setValueOpt histogram "error_y" - SelectedPoints |> DynObj.setValueOpt histogram "selectedpoints" - Selected |> DynObj.setValueOpt histogram "selected" - Unselected |> DynObj.setValueOpt histogram "unselected" - ClipOnAxis |> DynObj.setValueOpt histogram "cliponaxis" - Constraintext |> DynObj.setValueOptBy histogram "constraintext" StyleParam.ConstrainText.convert - Cumulative |> DynObj.setValueOpt histogram "cumulative" - HoverLabel |> DynObj.setValueOpt histogram "hoverlabel" - InsideTextAnchor |> DynObj.setValueOptBy histogram "insidetextanchor" StyleParam.InsideTextAnchor.convert - InsideTextFont |> DynObj.setValueOpt histogram "insidetextfont" - OutsideTextFont |> DynObj.setValueOpt histogram "outsidetextfont" - XCalendar |> DynObj.setValueOptBy histogram "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setValueOptBy histogram "ycalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt histogram "uirevision" + Name |> DynObj.setOptionalProperty histogram "name" + Visible |> DynObj.setOptionalPropertyBy histogram "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty histogram "showlegend" + Legend |> DynObj.setOptionalPropertyBy histogram "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty histogram "legendrank" + LegendGroup |> DynObj.setOptionalProperty histogram "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty histogram "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty histogram "opacity" + Ids |> DynObj.setOptionalProperty histogram "ids" + (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty histogram "x" + (Y, MultiY) |> DynObj.setOptionalSingleOrMultiProperty histogram "y" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty histogram "text" + TextPosition |> DynObj.setOptionalPropertyBy histogram "textposition" StyleParam.TextPosition.convert + (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty histogram "texttemplate" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty histogram "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy histogram "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty histogram "hovertemplate" + XHoverFormat |> DynObj.setOptionalProperty histogram "xhoverformat" + YHoverFormat |> DynObj.setOptionalProperty histogram "yhoverformat" + Meta |> DynObj.setOptionalProperty histogram "meta" + CustomData |> DynObj.setOptionalProperty histogram "customdata" + XAxis |> DynObj.setOptionalPropertyBy histogram "xaxis" StyleParam.LinearAxisId.convert + YAxis |> DynObj.setOptionalPropertyBy histogram "yaxis" StyleParam.LinearAxisId.convert + Orientation |> DynObj.setOptionalPropertyBy histogram "orientation" StyleParam.Orientation.convert + HistFunc |> DynObj.setOptionalPropertyBy histogram "histfunc" StyleParam.HistFunc.convert + HistNorm |> DynObj.setOptionalPropertyBy histogram "histnorm" StyleParam.HistNorm.convert + AlignmentGroup |> DynObj.setOptionalProperty histogram "alignmentgroup" + OffsetGroup |> DynObj.setOptionalProperty histogram "offsetgroup" + NBinsX |> DynObj.setOptionalProperty histogram "nbinsx" + NBinsY |> DynObj.setOptionalProperty histogram "nbinsy" + AutoBinX |> DynObj.setOptionalProperty histogram "autobinx" + AutoBinY |> DynObj.setOptionalProperty histogram "autobiny" + BinGroup |> DynObj.setOptionalProperty histogram "bingroup" + XBins |> DynObj.setOptionalProperty histogram "xbins" + YBins |> DynObj.setOptionalProperty histogram "ybins" + Marker |> DynObj.setOptionalProperty histogram "marker" + TextAngle |> DynObj.setOptionalProperty histogram "textangle" + TextFont |> DynObj.setOptionalProperty histogram "textfont" + Line |> DynObj.setOptionalProperty histogram "line" + XError |> DynObj.setOptionalProperty histogram "error_x" + YError |> DynObj.setOptionalProperty histogram "error_y" + SelectedPoints |> DynObj.setOptionalProperty histogram "selectedpoints" + Selected |> DynObj.setOptionalProperty histogram "selected" + Unselected |> DynObj.setOptionalProperty histogram "unselected" + ClipOnAxis |> DynObj.setOptionalProperty histogram "cliponaxis" + Constraintext |> DynObj.setOptionalPropertyBy histogram "constraintext" StyleParam.ConstrainText.convert + Cumulative |> DynObj.setOptionalProperty histogram "cumulative" + HoverLabel |> DynObj.setOptionalProperty histogram "hoverlabel" + InsideTextAnchor |> DynObj.setOptionalPropertyBy histogram "insidetextanchor" StyleParam.InsideTextAnchor.convert + InsideTextFont |> DynObj.setOptionalProperty histogram "insidetextfont" + OutsideTextFont |> DynObj.setOptionalProperty histogram "outsidetextfont" + XCalendar |> DynObj.setOptionalPropertyBy histogram "xcalendar" StyleParam.Calendar.convert + YCalendar |> DynObj.setOptionalPropertyBy histogram "ycalendar" StyleParam.Calendar.convert + UIRevision |> DynObj.setOptionalProperty histogram "uirevision" histogram) @@ -1230,72 +1230,72 @@ type Trace2DStyle() = ) = (fun (boxPlot: ('T :> Trace)) -> - Name |> DynObj.setValueOpt boxPlot "name" - Visible |> DynObj.setValueOptBy boxPlot "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt boxPlot "showlegend" - Legend |> DynObj.setValueOptBy boxPlot "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt boxPlot "legendrank" - LegendGroup |> DynObj.setValueOpt boxPlot "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt boxPlot "legendgrouptitle" - LegendWidth |> DynObj.setValueOpt boxPlot "legendwidth" - Opacity |> DynObj.setValueOpt boxPlot "opacity" - Ids |> DynObj.setValueOpt boxPlot "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt boxPlot "x" - X0 |> DynObj.setValueOpt boxPlot "x0" - DX |> DynObj.setValueOpt boxPlot "dx" - (Y, MultiY) |> DynObj.setSingleOrMultiOpt boxPlot "y" - Y0 |> DynObj.setValueOpt boxPlot "y0" - DY |> DynObj.setValueOpt boxPlot "dy" - Width |> DynObj.setValueOpt boxPlot "width" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt boxPlot "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt boxPlot "hovertext" - HoverInfo |> DynObj.setValueOptBy boxPlot "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt boxPlot "hovertemplate" - XHoverFormat |> DynObj.setValueOpt boxPlot "xhoverformat" - YHoverFormat |> DynObj.setValueOpt boxPlot "yhoverformat" - Meta |> DynObj.setValueOpt boxPlot "meta" - CustomData |> DynObj.setValueOpt boxPlot "customdata" - XAxis |> DynObj.setValueOptBy boxPlot "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy boxPlot "yaxis" StyleParam.LinearAxisId.convert - Orientation |> DynObj.setValueOptBy boxPlot "orientation" StyleParam.Orientation.convert - AlignmentGroup |> DynObj.setValueOpt boxPlot "alignmentgroup" - OffsetGroup |> DynObj.setValueOpt boxPlot "offsetgroup" - XPeriod |> DynObj.setValueOpt boxPlot "xperiod" - XPeriodAlignment |> DynObj.setValueOptBy boxPlot "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setValueOpt boxPlot "xperiod0" - YPeriod |> DynObj.setValueOpt boxPlot "yperiod" - YPeriodAlignment |> DynObj.setValueOptBy boxPlot "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setValueOpt boxPlot "yperiod0" - Marker |> DynObj.setValueOpt boxPlot "marker" - Line |> DynObj.setValueOpt boxPlot "line" - BoxMean |> DynObj.setValueOptBy boxPlot "boxmean" StyleParam.BoxMean.convert - BoxPoints |> DynObj.setValueOptBy boxPlot "boxpoints" StyleParam.BoxPoints.convert - Notched |> DynObj.setValueOpt boxPlot "notched" - NotchWidth |> DynObj.setValueOpt boxPlot "notchwidth" - WhiskerWidth |> DynObj.setValueOpt boxPlot "whiskerwidth" - ShowWhiskers |> DynObj.setValueOpt boxPlot "showwhiskers" - Q1 |> DynObj.setValueOpt boxPlot "q1" - Median |> DynObj.setValueOpt boxPlot "median" - Q3 |> DynObj.setValueOpt boxPlot "q3" - LowerFence |> DynObj.setValueOpt boxPlot "lowerfence" - UpperFence |> DynObj.setValueOpt boxPlot "upperfence" - NotchSpan |> DynObj.setValueOpt boxPlot "notchspan" - Mean |> DynObj.setValueOpt boxPlot "mean" - SD |> DynObj.setValueOpt boxPlot "sd" - SDMultiple |> DynObj.setValueOpt boxPlot "sdmultiple" - QuartileMethod |> DynObj.setValueOptBy boxPlot "quartilemethod" StyleParam.QuartileMethod.convert - SelectedPoints |> DynObj.setValueOpt boxPlot "selectedpoints" - Selected |> DynObj.setValueOpt boxPlot "selected" - Unselected |> DynObj.setValueOpt boxPlot "unselected" - FillColor |> DynObj.setValueOpt boxPlot "fillcolor" - HoverLabel |> DynObj.setValueOpt boxPlot "hoverlabel" - HoverOn |> DynObj.setValueOptBy boxPlot "hoveron" StyleParam.HoverOn.convert - PointPos |> DynObj.setValueOpt boxPlot "pointpos" - Jitter |> DynObj.setValueOpt boxPlot "jitter" - SizeMode |> DynObj.setValueOptBy boxPlot "sizemode" StyleParam.BoxSizeMode.convert - XCalendar |> DynObj.setValueOptBy boxPlot "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setValueOptBy boxPlot "ycalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt boxPlot "uirevision" + Name |> DynObj.setOptionalProperty boxPlot "name" + Visible |> DynObj.setOptionalPropertyBy boxPlot "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty boxPlot "showlegend" + Legend |> DynObj.setOptionalPropertyBy boxPlot "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty boxPlot "legendrank" + LegendGroup |> DynObj.setOptionalProperty boxPlot "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty boxPlot "legendgrouptitle" + LegendWidth |> DynObj.setOptionalProperty boxPlot "legendwidth" + Opacity |> DynObj.setOptionalProperty boxPlot "opacity" + Ids |> DynObj.setOptionalProperty boxPlot "ids" + (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty boxPlot "x" + X0 |> DynObj.setOptionalProperty boxPlot "x0" + DX |> DynObj.setOptionalProperty boxPlot "dx" + (Y, MultiY) |> DynObj.setOptionalSingleOrMultiProperty boxPlot "y" + Y0 |> DynObj.setOptionalProperty boxPlot "y0" + DY |> DynObj.setOptionalProperty boxPlot "dy" + Width |> DynObj.setOptionalProperty boxPlot "width" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty boxPlot "text" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty boxPlot "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy boxPlot "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty boxPlot "hovertemplate" + XHoverFormat |> DynObj.setOptionalProperty boxPlot "xhoverformat" + YHoverFormat |> DynObj.setOptionalProperty boxPlot "yhoverformat" + Meta |> DynObj.setOptionalProperty boxPlot "meta" + CustomData |> DynObj.setOptionalProperty boxPlot "customdata" + XAxis |> DynObj.setOptionalPropertyBy boxPlot "xaxis" StyleParam.LinearAxisId.convert + YAxis |> DynObj.setOptionalPropertyBy boxPlot "yaxis" StyleParam.LinearAxisId.convert + Orientation |> DynObj.setOptionalPropertyBy boxPlot "orientation" StyleParam.Orientation.convert + AlignmentGroup |> DynObj.setOptionalProperty boxPlot "alignmentgroup" + OffsetGroup |> DynObj.setOptionalProperty boxPlot "offsetgroup" + XPeriod |> DynObj.setOptionalProperty boxPlot "xperiod" + XPeriodAlignment |> DynObj.setOptionalPropertyBy boxPlot "xperiodalignment" StyleParam.PeriodAlignment.convert + XPeriod0 |> DynObj.setOptionalProperty boxPlot "xperiod0" + YPeriod |> DynObj.setOptionalProperty boxPlot "yperiod" + YPeriodAlignment |> DynObj.setOptionalPropertyBy boxPlot "yperiodalignment" StyleParam.PeriodAlignment.convert + YPeriod0 |> DynObj.setOptionalProperty boxPlot "yperiod0" + Marker |> DynObj.setOptionalProperty boxPlot "marker" + Line |> DynObj.setOptionalProperty boxPlot "line" + BoxMean |> DynObj.setOptionalPropertyBy boxPlot "boxmean" StyleParam.BoxMean.convert + BoxPoints |> DynObj.setOptionalPropertyBy boxPlot "boxpoints" StyleParam.BoxPoints.convert + Notched |> DynObj.setOptionalProperty boxPlot "notched" + NotchWidth |> DynObj.setOptionalProperty boxPlot "notchwidth" + WhiskerWidth |> DynObj.setOptionalProperty boxPlot "whiskerwidth" + ShowWhiskers |> DynObj.setOptionalProperty boxPlot "showwhiskers" + Q1 |> DynObj.setOptionalProperty boxPlot "q1" + Median |> DynObj.setOptionalProperty boxPlot "median" + Q3 |> DynObj.setOptionalProperty boxPlot "q3" + LowerFence |> DynObj.setOptionalProperty boxPlot "lowerfence" + UpperFence |> DynObj.setOptionalProperty boxPlot "upperfence" + NotchSpan |> DynObj.setOptionalProperty boxPlot "notchspan" + Mean |> DynObj.setOptionalProperty boxPlot "mean" + SD |> DynObj.setOptionalProperty boxPlot "sd" + SDMultiple |> DynObj.setOptionalProperty boxPlot "sdmultiple" + QuartileMethod |> DynObj.setOptionalPropertyBy boxPlot "quartilemethod" StyleParam.QuartileMethod.convert + SelectedPoints |> DynObj.setOptionalProperty boxPlot "selectedpoints" + Selected |> DynObj.setOptionalProperty boxPlot "selected" + Unselected |> DynObj.setOptionalProperty boxPlot "unselected" + FillColor |> DynObj.setOptionalProperty boxPlot "fillcolor" + HoverLabel |> DynObj.setOptionalProperty boxPlot "hoverlabel" + HoverOn |> DynObj.setOptionalPropertyBy boxPlot "hoveron" StyleParam.HoverOn.convert + PointPos |> DynObj.setOptionalProperty boxPlot "pointpos" + Jitter |> DynObj.setOptionalProperty boxPlot "jitter" + SizeMode |> DynObj.setOptionalPropertyBy boxPlot "sizemode" StyleParam.BoxSizeMode.convert + XCalendar |> DynObj.setOptionalPropertyBy boxPlot "xcalendar" StyleParam.Calendar.convert + YCalendar |> DynObj.setOptionalPropertyBy boxPlot "ycalendar" StyleParam.Calendar.convert + UIRevision |> DynObj.setOptionalProperty boxPlot "uirevision" // out -> boxPlot) @@ -1417,55 +1417,55 @@ type Trace2DStyle() = ) = (fun (violin: ('T :> Trace)) -> - Name |> DynObj.setValueOpt violin "name" - Visible |> DynObj.setValueOptBy violin "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt violin "showlegend" - Legend |> DynObj.setValueOptBy violin "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt violin "legendrank" - LegendGroup |> DynObj.setValueOpt violin "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt violin "legendgrouptitle" - Opacity |> DynObj.setValueOpt violin "opacity" - Ids |> DynObj.setValueOpt violin "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt violin "x" - X0 |> DynObj.setValueOpt violin "x0" - DX |> DynObj.setValueOpt violin "dx" - (Y, MultiY) |> DynObj.setSingleOrMultiOpt violin "y" - Y0 |> DynObj.setValueOpt violin "y0" - DY |> DynObj.setValueOpt violin "dy" - Width |> DynObj.setValueOpt violin "width" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt violin "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt violin "hovertext" - HoverInfo |> DynObj.setValueOptBy violin "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt violin "hovertemplate" - XHoverFormat |> DynObj.setValueOpt violin "xhoverformat" - YHoverFormat |> DynObj.setValueOpt violin "yhoverformat" - Meta |> DynObj.setValueOpt violin "meta" - CustomData |> DynObj.setValueOpt violin "customdata" - XAxis |> DynObj.setValueOptBy violin "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy violin "yaxis" StyleParam.LinearAxisId.convert - Orientation |> DynObj.setValueOptBy violin "orientation" StyleParam.Orientation.convert - AlignmentGroup |> DynObj.setValueOpt violin "alignmentgroup" - OffsetGroup |> DynObj.setValueOpt violin "offsetgroup" - Marker |> DynObj.setValueOpt violin "marker" - Line |> DynObj.setValueOpt violin "line" - Box |> DynObj.setValueOpt violin "box" - SelectedPoints |> DynObj.setValueOpt violin "selectedpoints" - Selected |> DynObj.setValueOpt violin "selected" - Unselected |> DynObj.setValueOpt violin "unselected" - BandWidth |> DynObj.setValueOpt violin "bandwidth" - FillColor |> DynObj.setValueOpt violin "fillcolor" - HoverLabel |> DynObj.setValueOpt violin "hoverlabel" - HoverOn |> DynObj.setValueOptBy violin "hoveron" StyleParam.HoverOn.convert - PointPos |> DynObj.setValueOpt violin "pointpos" - Jitter |> DynObj.setValueOpt violin "jitter" - MeanLine |> DynObj.setValueOpt violin "meanline" - Points |> DynObj.setValueOptBy violin "points" StyleParam.JitterPoints.convert - ScaleGroup |> DynObj.setValueOpt violin "scalegroup" - ScaleMode |> DynObj.setValueOptBy violin "scalemode" StyleParam.ScaleMode.convert - Side |> DynObj.setValueOptBy violin "side" StyleParam.ViolinSide.convert - Span |> DynObj.setValueOptBy violin "span" StyleParam.Range.convert - SpanMode |> DynObj.setValueOptBy violin "spanmode" StyleParam.SpanMode.convert - UIRevision |> DynObj.setValueOpt violin "uirevision" + Name |> DynObj.setOptionalProperty violin "name" + Visible |> DynObj.setOptionalPropertyBy violin "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty violin "showlegend" + Legend |> DynObj.setOptionalPropertyBy violin "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty violin "legendrank" + LegendGroup |> DynObj.setOptionalProperty violin "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty violin "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty violin "opacity" + Ids |> DynObj.setOptionalProperty violin "ids" + (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty violin "x" + X0 |> DynObj.setOptionalProperty violin "x0" + DX |> DynObj.setOptionalProperty violin "dx" + (Y, MultiY) |> DynObj.setOptionalSingleOrMultiProperty violin "y" + Y0 |> DynObj.setOptionalProperty violin "y0" + DY |> DynObj.setOptionalProperty violin "dy" + Width |> DynObj.setOptionalProperty violin "width" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty violin "text" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty violin "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy violin "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty violin "hovertemplate" + XHoverFormat |> DynObj.setOptionalProperty violin "xhoverformat" + YHoverFormat |> DynObj.setOptionalProperty violin "yhoverformat" + Meta |> DynObj.setOptionalProperty violin "meta" + CustomData |> DynObj.setOptionalProperty violin "customdata" + XAxis |> DynObj.setOptionalPropertyBy violin "xaxis" StyleParam.LinearAxisId.convert + YAxis |> DynObj.setOptionalPropertyBy violin "yaxis" StyleParam.LinearAxisId.convert + Orientation |> DynObj.setOptionalPropertyBy violin "orientation" StyleParam.Orientation.convert + AlignmentGroup |> DynObj.setOptionalProperty violin "alignmentgroup" + OffsetGroup |> DynObj.setOptionalProperty violin "offsetgroup" + Marker |> DynObj.setOptionalProperty violin "marker" + Line |> DynObj.setOptionalProperty violin "line" + Box |> DynObj.setOptionalProperty violin "box" + SelectedPoints |> DynObj.setOptionalProperty violin "selectedpoints" + Selected |> DynObj.setOptionalProperty violin "selected" + Unselected |> DynObj.setOptionalProperty violin "unselected" + BandWidth |> DynObj.setOptionalProperty violin "bandwidth" + FillColor |> DynObj.setOptionalProperty violin "fillcolor" + HoverLabel |> DynObj.setOptionalProperty violin "hoverlabel" + HoverOn |> DynObj.setOptionalPropertyBy violin "hoveron" StyleParam.HoverOn.convert + PointPos |> DynObj.setOptionalProperty violin "pointpos" + Jitter |> DynObj.setOptionalProperty violin "jitter" + MeanLine |> DynObj.setOptionalProperty violin "meanline" + Points |> DynObj.setOptionalPropertyBy violin "points" StyleParam.JitterPoints.convert + ScaleGroup |> DynObj.setOptionalProperty violin "scalegroup" + ScaleMode |> DynObj.setOptionalPropertyBy violin "scalemode" StyleParam.ScaleMode.convert + Side |> DynObj.setOptionalPropertyBy violin "side" StyleParam.ViolinSide.convert + Span |> DynObj.setOptionalPropertyBy violin "span" StyleParam.Range.convert + SpanMode |> DynObj.setOptionalPropertyBy violin "spanmode" StyleParam.SpanMode.convert + UIRevision |> DynObj.setOptionalProperty violin "uirevision" violin) @@ -1587,58 +1587,58 @@ type Trace2DStyle() = ) = (fun (histogram2D: ('T :> Trace)) -> - Name |> DynObj.setValueOpt histogram2D "name" - Visible |> DynObj.setValueOptBy histogram2D "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt histogram2D "showlegend" - Legend |> DynObj.setValueOptBy histogram2D "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt histogram2D "legendrank" - LegendGroup |> DynObj.setValueOpt histogram2D "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt histogram2D "legendgrouptitle" - Opacity |> DynObj.setValueOpt histogram2D "opacity" - Ids |> DynObj.setValueOpt histogram2D "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt histogram2D "x" - XGap |> DynObj.setValueOpt histogram2D "xgap" - (Y, MultiY) |> DynObj.setSingleOrMultiOpt histogram2D "y" - YGap |> DynObj.setValueOpt histogram2D "ygap" - Z |> DynObj.setValueOpt histogram2D "z" - TextTemplate |> DynObj.setValueOpt histogram2D "texttemplate" - HoverInfo |> DynObj.setValueOptBy histogram2D "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt histogram2D "hovertemplate" - XHoverFormat |> DynObj.setValueOpt histogram2D "xhoverformat" - YHoverFormat |> DynObj.setValueOpt histogram2D "yhoverformat" - Meta |> DynObj.setValueOpt histogram2D "meta" - CustomData |> DynObj.setValueOpt histogram2D "customdata" - XAxis |> DynObj.setValueOptBy histogram2D "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy histogram2D "yaxis" StyleParam.LinearAxisId.convert - ColorAxis |> DynObj.setValueOpt histogram2D "coloraxis" - HistFunc |> DynObj.setValueOptBy histogram2D "histfunc" StyleParam.HistFunc.convert - HistNorm |> DynObj.setValueOptBy histogram2D "histnorm" StyleParam.HistNorm.convert - NBinsX |> DynObj.setValueOpt histogram2D "nbinsx" - NBinsY |> DynObj.setValueOpt histogram2D "nbinsy" - AutoBinX |> DynObj.setValueOpt histogram2D "autobinx" - AutoBinY |> DynObj.setValueOpt histogram2D "autobiny" - BinGroup |> DynObj.setValueOpt histogram2D "bingroup" - XBinGroup |> DynObj.setValueOpt histogram2D "xbingroup" - XBins |> DynObj.setValueOpt histogram2D "xbins" - YBinGroup |> DynObj.setValueOpt histogram2D "ybingroup" - YBins |> DynObj.setValueOpt histogram2D "ybins" - Marker |> DynObj.setValueOpt histogram2D "marker" - TextFont |> DynObj.setValueOpt histogram2D "textfont" - ColorBar |> DynObj.setValueOpt histogram2D "colorbar" - AutoColorScale |> DynObj.setValueOpt histogram2D "autocolorscale" - ColorScale |> DynObj.setValueOptBy histogram2D "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt histogram2D "showscale" - ReverseScale |> DynObj.setValueOpt histogram2D "reversescale" - ZAuto |> DynObj.setValueOpt histogram2D "zauto" - ZHoverFormat |> DynObj.setValueOpt histogram2D "zhoverformat" - ZMin |> DynObj.setValueOpt histogram2D "zmin" - ZMid |> DynObj.setValueOpt histogram2D "zmid" - ZMax |> DynObj.setValueOpt histogram2D "zmax" - ZSmooth |> DynObj.setValueOptBy histogram2D "zsmooth" StyleParam.SmoothAlg.convert - HoverLabel |> DynObj.setValueOpt histogram2D "hoverlabel" - XCalendar |> DynObj.setValueOptBy histogram2D "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setValueOptBy histogram2D "ycalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt histogram2D "uirevision" + Name |> DynObj.setOptionalProperty histogram2D "name" + Visible |> DynObj.setOptionalPropertyBy histogram2D "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty histogram2D "showlegend" + Legend |> DynObj.setOptionalPropertyBy histogram2D "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty histogram2D "legendrank" + LegendGroup |> DynObj.setOptionalProperty histogram2D "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty histogram2D "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty histogram2D "opacity" + Ids |> DynObj.setOptionalProperty histogram2D "ids" + (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty histogram2D "x" + XGap |> DynObj.setOptionalProperty histogram2D "xgap" + (Y, MultiY) |> DynObj.setOptionalSingleOrMultiProperty histogram2D "y" + YGap |> DynObj.setOptionalProperty histogram2D "ygap" + Z |> DynObj.setOptionalProperty histogram2D "z" + TextTemplate |> DynObj.setOptionalProperty histogram2D "texttemplate" + HoverInfo |> DynObj.setOptionalPropertyBy histogram2D "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty histogram2D "hovertemplate" + XHoverFormat |> DynObj.setOptionalProperty histogram2D "xhoverformat" + YHoverFormat |> DynObj.setOptionalProperty histogram2D "yhoverformat" + Meta |> DynObj.setOptionalProperty histogram2D "meta" + CustomData |> DynObj.setOptionalProperty histogram2D "customdata" + XAxis |> DynObj.setOptionalPropertyBy histogram2D "xaxis" StyleParam.LinearAxisId.convert + YAxis |> DynObj.setOptionalPropertyBy histogram2D "yaxis" StyleParam.LinearAxisId.convert + ColorAxis |> DynObj.setOptionalProperty histogram2D "coloraxis" + HistFunc |> DynObj.setOptionalPropertyBy histogram2D "histfunc" StyleParam.HistFunc.convert + HistNorm |> DynObj.setOptionalPropertyBy histogram2D "histnorm" StyleParam.HistNorm.convert + NBinsX |> DynObj.setOptionalProperty histogram2D "nbinsx" + NBinsY |> DynObj.setOptionalProperty histogram2D "nbinsy" + AutoBinX |> DynObj.setOptionalProperty histogram2D "autobinx" + AutoBinY |> DynObj.setOptionalProperty histogram2D "autobiny" + BinGroup |> DynObj.setOptionalProperty histogram2D "bingroup" + XBinGroup |> DynObj.setOptionalProperty histogram2D "xbingroup" + XBins |> DynObj.setOptionalProperty histogram2D "xbins" + YBinGroup |> DynObj.setOptionalProperty histogram2D "ybingroup" + YBins |> DynObj.setOptionalProperty histogram2D "ybins" + Marker |> DynObj.setOptionalProperty histogram2D "marker" + TextFont |> DynObj.setOptionalProperty histogram2D "textfont" + ColorBar |> DynObj.setOptionalProperty histogram2D "colorbar" + AutoColorScale |> DynObj.setOptionalProperty histogram2D "autocolorscale" + ColorScale |> DynObj.setOptionalPropertyBy histogram2D "colorscale" StyleParam.Colorscale.convert + ShowScale |> DynObj.setOptionalProperty histogram2D "showscale" + ReverseScale |> DynObj.setOptionalProperty histogram2D "reversescale" + ZAuto |> DynObj.setOptionalProperty histogram2D "zauto" + ZHoverFormat |> DynObj.setOptionalProperty histogram2D "zhoverformat" + ZMin |> DynObj.setOptionalProperty histogram2D "zmin" + ZMid |> DynObj.setOptionalProperty histogram2D "zmid" + ZMax |> DynObj.setOptionalProperty histogram2D "zmax" + ZSmooth |> DynObj.setOptionalPropertyBy histogram2D "zsmooth" StyleParam.SmoothAlg.convert + HoverLabel |> DynObj.setOptionalProperty histogram2D "hoverlabel" + XCalendar |> DynObj.setOptionalPropertyBy histogram2D "xcalendar" StyleParam.Calendar.convert + YCalendar |> DynObj.setOptionalPropertyBy histogram2D "ycalendar" StyleParam.Calendar.convert + UIRevision |> DynObj.setOptionalProperty histogram2D "uirevision" histogram2D) @@ -1762,59 +1762,59 @@ type Trace2DStyle() = ) = (fun (histogram2DContour: ('T :> Trace)) -> - Name |> DynObj.setValueOpt histogram2DContour "name" - Visible |> DynObj.setValueOptBy histogram2DContour "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt histogram2DContour "showlegend" - Legend |> DynObj.setValueOptBy histogram2DContour "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt histogram2DContour "legendrank" - LegendGroup |> DynObj.setValueOpt histogram2DContour "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt histogram2DContour "legendgrouptitle" - Opacity |> DynObj.setValueOpt histogram2DContour "opacity" - Ids |> DynObj.setValueOpt histogram2DContour "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt histogram2DContour "x" - (Y, MultiY) |> DynObj.setSingleOrMultiOpt histogram2DContour "y" - Z |> DynObj.setValueOpt histogram2DContour "z" - TextTemplate |> DynObj.setValueOpt histogram2DContour "texttemplate" - HoverInfo |> DynObj.setValueOptBy histogram2DContour "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt histogram2DContour "hovertemplate" - XHoverFormat |> DynObj.setValueOpt histogram2DContour "xhoverformat" - YHoverFormat |> DynObj.setValueOpt histogram2DContour "yhoverformat" - Meta |> DynObj.setValueOpt histogram2DContour "meta" - CustomData |> DynObj.setValueOpt histogram2DContour "customdata" - XAxis |> DynObj.setValueOptBy histogram2DContour "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy histogram2DContour "yaxis" StyleParam.LinearAxisId.convert - ColorAxis |> DynObj.setValueOpt histogram2DContour "coloraxis" - HistFunc |> DynObj.setValueOptBy histogram2DContour "histfunc" StyleParam.HistFunc.convert - HistNorm |> DynObj.setValueOptBy histogram2DContour "histnorm" StyleParam.HistNorm.convert - NBinsX |> DynObj.setValueOpt histogram2DContour "nbinsx" - NBinsY |> DynObj.setValueOpt histogram2DContour "nbinsy" - AutoBinX |> DynObj.setValueOpt histogram2DContour "autobinx" - AutoBinY |> DynObj.setValueOpt histogram2DContour "autobiny" - BinGroup |> DynObj.setValueOpt histogram2DContour "bingroup" - XBinGroup |> DynObj.setValueOpt histogram2DContour "xbingroup" - XBins |> DynObj.setValueOpt histogram2DContour "xbins" - YBinGroup |> DynObj.setValueOpt histogram2DContour "ybingroup" - YBins |> DynObj.setValueOpt histogram2DContour "ybins" - Marker |> DynObj.setValueOpt histogram2DContour "marker" - Line |> DynObj.setValueOpt histogram2DContour "line" - TextFont |> DynObj.setValueOpt histogram2DContour "textfont" - ColorBar |> DynObj.setValueOpt histogram2DContour "colorbar" - AutoColorScale |> DynObj.setValueOpt histogram2DContour "autocolorscale" - ColorScale |> DynObj.setValueOptBy histogram2DContour "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt histogram2DContour "showscale" - ReverseScale |> DynObj.setValueOpt histogram2DContour "reversescale" - ZAuto |> DynObj.setValueOpt histogram2DContour "zauto" - ZHoverFormat |> DynObj.setValueOpt histogram2DContour "zhoverformat" - Zmin |> DynObj.setValueOpt histogram2DContour "zmin" - Zmid |> DynObj.setValueOpt histogram2DContour "zmid" - Zmax |> DynObj.setValueOpt histogram2DContour "zmax" - AutoContour |> DynObj.setValueOpt histogram2DContour "autocontour" - Contours |> DynObj.setValueOpt histogram2DContour "contours" - HoverLabel |> DynObj.setValueOpt histogram2DContour "hoverlabel" - NContours |> DynObj.setValueOpt histogram2DContour "ncontours" - XCalendar |> DynObj.setValueOptBy histogram2DContour "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setValueOptBy histogram2DContour "ycalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt histogram2DContour "uirevision" + Name |> DynObj.setOptionalProperty histogram2DContour "name" + Visible |> DynObj.setOptionalPropertyBy histogram2DContour "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty histogram2DContour "showlegend" + Legend |> DynObj.setOptionalPropertyBy histogram2DContour "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty histogram2DContour "legendrank" + LegendGroup |> DynObj.setOptionalProperty histogram2DContour "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty histogram2DContour "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty histogram2DContour "opacity" + Ids |> DynObj.setOptionalProperty histogram2DContour "ids" + (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty histogram2DContour "x" + (Y, MultiY) |> DynObj.setOptionalSingleOrMultiProperty histogram2DContour "y" + Z |> DynObj.setOptionalProperty histogram2DContour "z" + TextTemplate |> DynObj.setOptionalProperty histogram2DContour "texttemplate" + HoverInfo |> DynObj.setOptionalPropertyBy histogram2DContour "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty histogram2DContour "hovertemplate" + XHoverFormat |> DynObj.setOptionalProperty histogram2DContour "xhoverformat" + YHoverFormat |> DynObj.setOptionalProperty histogram2DContour "yhoverformat" + Meta |> DynObj.setOptionalProperty histogram2DContour "meta" + CustomData |> DynObj.setOptionalProperty histogram2DContour "customdata" + XAxis |> DynObj.setOptionalPropertyBy histogram2DContour "xaxis" StyleParam.LinearAxisId.convert + YAxis |> DynObj.setOptionalPropertyBy histogram2DContour "yaxis" StyleParam.LinearAxisId.convert + ColorAxis |> DynObj.setOptionalProperty histogram2DContour "coloraxis" + HistFunc |> DynObj.setOptionalPropertyBy histogram2DContour "histfunc" StyleParam.HistFunc.convert + HistNorm |> DynObj.setOptionalPropertyBy histogram2DContour "histnorm" StyleParam.HistNorm.convert + NBinsX |> DynObj.setOptionalProperty histogram2DContour "nbinsx" + NBinsY |> DynObj.setOptionalProperty histogram2DContour "nbinsy" + AutoBinX |> DynObj.setOptionalProperty histogram2DContour "autobinx" + AutoBinY |> DynObj.setOptionalProperty histogram2DContour "autobiny" + BinGroup |> DynObj.setOptionalProperty histogram2DContour "bingroup" + XBinGroup |> DynObj.setOptionalProperty histogram2DContour "xbingroup" + XBins |> DynObj.setOptionalProperty histogram2DContour "xbins" + YBinGroup |> DynObj.setOptionalProperty histogram2DContour "ybingroup" + YBins |> DynObj.setOptionalProperty histogram2DContour "ybins" + Marker |> DynObj.setOptionalProperty histogram2DContour "marker" + Line |> DynObj.setOptionalProperty histogram2DContour "line" + TextFont |> DynObj.setOptionalProperty histogram2DContour "textfont" + ColorBar |> DynObj.setOptionalProperty histogram2DContour "colorbar" + AutoColorScale |> DynObj.setOptionalProperty histogram2DContour "autocolorscale" + ColorScale |> DynObj.setOptionalPropertyBy histogram2DContour "colorscale" StyleParam.Colorscale.convert + ShowScale |> DynObj.setOptionalProperty histogram2DContour "showscale" + ReverseScale |> DynObj.setOptionalProperty histogram2DContour "reversescale" + ZAuto |> DynObj.setOptionalProperty histogram2DContour "zauto" + ZHoverFormat |> DynObj.setOptionalProperty histogram2DContour "zhoverformat" + Zmin |> DynObj.setOptionalProperty histogram2DContour "zmin" + Zmid |> DynObj.setOptionalProperty histogram2DContour "zmid" + Zmax |> DynObj.setOptionalProperty histogram2DContour "zmax" + AutoContour |> DynObj.setOptionalProperty histogram2DContour "autocontour" + Contours |> DynObj.setOptionalProperty histogram2DContour "contours" + HoverLabel |> DynObj.setOptionalProperty histogram2DContour "hoverlabel" + NContours |> DynObj.setOptionalProperty histogram2DContour "ncontours" + XCalendar |> DynObj.setOptionalPropertyBy histogram2DContour "xcalendar" StyleParam.Calendar.convert + YCalendar |> DynObj.setOptionalPropertyBy histogram2DContour "ycalendar" StyleParam.Calendar.convert + UIRevision |> DynObj.setOptionalProperty histogram2DContour "uirevision" histogram2DContour) @@ -1951,63 +1951,63 @@ type Trace2DStyle() = ) = (fun (heatmap: ('T :> Trace)) -> - Name |> DynObj.setValueOpt heatmap "name" - Visible |> DynObj.setValueOptBy heatmap "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt heatmap "showlegend" - Legend |> DynObj.setValueOptBy heatmap "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt heatmap "legendrank" - LegendGroup |> DynObj.setValueOpt heatmap "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt heatmap "legendgrouptitle" - Opacity |> DynObj.setValueOpt heatmap "opacity" - Ids |> DynObj.setValueOpt heatmap "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt heatmap "x" - X0 |> DynObj.setValueOpt heatmap "x0" - DX |> DynObj.setValueOpt heatmap "dx" - XType |> DynObj.setValueOptBy heatmap "xtype" StyleParam.CoordinateType.convert - XGap |> DynObj.setValueOpt heatmap "xgap" - (Y, MultiY) |> DynObj.setSingleOrMultiOpt heatmap "y" - Y0 |> DynObj.setValueOpt heatmap "y0" - DY |> DynObj.setValueOpt heatmap "dy" - YType |> DynObj.setValueOptBy heatmap "ytype" StyleParam.CoordinateType.convert - YGap |> DynObj.setValueOpt heatmap "ygap" - Z |> DynObj.setValueOpt heatmap "z" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt heatmap "text" - TextTemplate |> DynObj.setValueOpt heatmap "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt heatmap "hovertext" - HoverInfo |> DynObj.setValueOptBy heatmap "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt heatmap "hovertemplate" - XHoverFormat |> DynObj.setValueOpt heatmap "xhoverformat" - YHoverFormat |> DynObj.setValueOpt heatmap "yhoverformat" - Meta |> DynObj.setValueOpt heatmap "meta" - CustomData |> DynObj.setValueOpt heatmap "customdata" - XAxis |> DynObj.setValueOptBy heatmap "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy heatmap "yaxis" StyleParam.LinearAxisId.convert - ColorAxis |> DynObj.setValueOptBy heatmap "coloraxis" StyleParam.SubPlotId.convert - XPeriod |> DynObj.setValueOpt heatmap "xperiod" - XPeriodAlignment |> DynObj.setValueOptBy heatmap "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setValueOpt heatmap "xperiod0" - YPeriod |> DynObj.setValueOpt heatmap "yperiod" - YPeriodAlignment |> DynObj.setValueOptBy heatmap "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setValueOpt heatmap "yperiod0" - TextFont |> DynObj.setValueOpt heatmap "textfont" - ColorBar |> DynObj.setValueOpt heatmap "colorbar" - AutoColorScale |> DynObj.setValueOpt heatmap "autocolorscale" - ColorScale |> DynObj.setValueOptBy heatmap "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt heatmap "showscale" - ReverseScale |> DynObj.setValueOpt heatmap "reversescale" - ZAuto |> DynObj.setValueOpt heatmap "zauto" - ZHoverFormat |> DynObj.setValueOpt heatmap "zhoverformat" - ZMax |> DynObj.setValueOpt heatmap "zmax" - ZMid |> DynObj.setValueOpt heatmap "zmid" - ZMin |> DynObj.setValueOpt heatmap "zmin" - ZSmooth |> DynObj.setValueOptBy heatmap "zsmooth" StyleParam.SmoothAlg.convert - ConnectGaps |> DynObj.setValueOpt heatmap "connectgaps" - HoverLabel |> DynObj.setValueOpt heatmap "hoverlabel" - HoverOnGaps |> DynObj.setValueOpt heatmap "hoverongaps" - Transpose |> DynObj.setValueOpt heatmap "transpose" - XCalendar |> DynObj.setValueOptBy heatmap "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setValueOptBy heatmap "ycalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt heatmap "uirevision" + Name |> DynObj.setOptionalProperty heatmap "name" + Visible |> DynObj.setOptionalPropertyBy heatmap "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty heatmap "showlegend" + Legend |> DynObj.setOptionalPropertyBy heatmap "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty heatmap "legendrank" + LegendGroup |> DynObj.setOptionalProperty heatmap "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty heatmap "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty heatmap "opacity" + Ids |> DynObj.setOptionalProperty heatmap "ids" + (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty heatmap "x" + X0 |> DynObj.setOptionalProperty heatmap "x0" + DX |> DynObj.setOptionalProperty heatmap "dx" + XType |> DynObj.setOptionalPropertyBy heatmap "xtype" StyleParam.CoordinateType.convert + XGap |> DynObj.setOptionalProperty heatmap "xgap" + (Y, MultiY) |> DynObj.setOptionalSingleOrMultiProperty heatmap "y" + Y0 |> DynObj.setOptionalProperty heatmap "y0" + DY |> DynObj.setOptionalProperty heatmap "dy" + YType |> DynObj.setOptionalPropertyBy heatmap "ytype" StyleParam.CoordinateType.convert + YGap |> DynObj.setOptionalProperty heatmap "ygap" + Z |> DynObj.setOptionalProperty heatmap "z" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty heatmap "text" + TextTemplate |> DynObj.setOptionalProperty heatmap "texttemplate" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty heatmap "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy heatmap "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty heatmap "hovertemplate" + XHoverFormat |> DynObj.setOptionalProperty heatmap "xhoverformat" + YHoverFormat |> DynObj.setOptionalProperty heatmap "yhoverformat" + Meta |> DynObj.setOptionalProperty heatmap "meta" + CustomData |> DynObj.setOptionalProperty heatmap "customdata" + XAxis |> DynObj.setOptionalPropertyBy heatmap "xaxis" StyleParam.LinearAxisId.convert + YAxis |> DynObj.setOptionalPropertyBy heatmap "yaxis" StyleParam.LinearAxisId.convert + ColorAxis |> DynObj.setOptionalPropertyBy heatmap "coloraxis" StyleParam.SubPlotId.convert + XPeriod |> DynObj.setOptionalProperty heatmap "xperiod" + XPeriodAlignment |> DynObj.setOptionalPropertyBy heatmap "xperiodalignment" StyleParam.PeriodAlignment.convert + XPeriod0 |> DynObj.setOptionalProperty heatmap "xperiod0" + YPeriod |> DynObj.setOptionalProperty heatmap "yperiod" + YPeriodAlignment |> DynObj.setOptionalPropertyBy heatmap "yperiodalignment" StyleParam.PeriodAlignment.convert + YPeriod0 |> DynObj.setOptionalProperty heatmap "yperiod0" + TextFont |> DynObj.setOptionalProperty heatmap "textfont" + ColorBar |> DynObj.setOptionalProperty heatmap "colorbar" + AutoColorScale |> DynObj.setOptionalProperty heatmap "autocolorscale" + ColorScale |> DynObj.setOptionalPropertyBy heatmap "colorscale" StyleParam.Colorscale.convert + ShowScale |> DynObj.setOptionalProperty heatmap "showscale" + ReverseScale |> DynObj.setOptionalProperty heatmap "reversescale" + ZAuto |> DynObj.setOptionalProperty heatmap "zauto" + ZHoverFormat |> DynObj.setOptionalProperty heatmap "zhoverformat" + ZMax |> DynObj.setOptionalProperty heatmap "zmax" + ZMid |> DynObj.setOptionalProperty heatmap "zmid" + ZMin |> DynObj.setOptionalProperty heatmap "zmin" + ZSmooth |> DynObj.setOptionalPropertyBy heatmap "zsmooth" StyleParam.SmoothAlg.convert + ConnectGaps |> DynObj.setOptionalProperty heatmap "connectgaps" + HoverLabel |> DynObj.setOptionalProperty heatmap "hoverlabel" + HoverOnGaps |> DynObj.setOptionalProperty heatmap "hoverongaps" + Transpose |> DynObj.setOptionalProperty heatmap "transpose" + XCalendar |> DynObj.setOptionalPropertyBy heatmap "xcalendar" StyleParam.Calendar.convert + YCalendar |> DynObj.setOptionalPropertyBy heatmap "ycalendar" StyleParam.Calendar.convert + UIRevision |> DynObj.setOptionalProperty heatmap "uirevision" // out -> @@ -2085,35 +2085,35 @@ type Trace2DStyle() = ) = (fun (image: ('T :> Trace)) -> - Name |> DynObj.setValueOpt image "name" - Visible |> DynObj.setValueOptBy image "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt image "showlegend" - Legend |> DynObj.setValueOptBy image "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt image "legendrank" - LegendGroup |> DynObj.setValueOpt image "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt image "legendgrouptitle" - Opacity |> DynObj.setValueOpt image "opacity" - Ids |> DynObj.setValueOpt image "ids" - X0 |> DynObj.setValueOpt image "x0" - DX |> DynObj.setValueOpt image "dx" - Y0 |> DynObj.setValueOpt image "y0" - DY |> DynObj.setValueOpt image "dy" - Z |> DynObj.setValueOpt image "z" - Source |> DynObj.setValueOpt image "source" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt image "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt image "hovertext" - HoverInfo |> DynObj.setValueOptBy image "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt image "hovertemplate" - Meta |> DynObj.setValueOpt image "meta" - CustomData |> DynObj.setValueOpt image "customdata" - XAxis |> DynObj.setValueOptBy image "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy image "yaxis" StyleParam.LinearAxisId.convert - ColorModel |> DynObj.setValueOptBy image "colormodel" StyleParam.ColorModel.convert - ZMax |> DynObj.setValueOptBy image "zmax" StyleParam.ColorComponentBound.convert - ZMin |> DynObj.setValueOptBy image "zmin" StyleParam.ColorComponentBound.convert - ZSmooth |> DynObj.setValueOptBy image "zsmooth" StyleParam.SmoothAlg.convert - HoverLabel |> DynObj.setValueOpt image "hoverlabel" - UIRevision |> DynObj.setValueOpt image "uirevision" + Name |> DynObj.setOptionalProperty image "name" + Visible |> DynObj.setOptionalPropertyBy image "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty image "showlegend" + Legend |> DynObj.setOptionalPropertyBy image "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty image "legendrank" + LegendGroup |> DynObj.setOptionalProperty image "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty image "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty image "opacity" + Ids |> DynObj.setOptionalProperty image "ids" + X0 |> DynObj.setOptionalProperty image "x0" + DX |> DynObj.setOptionalProperty image "dx" + Y0 |> DynObj.setOptionalProperty image "y0" + DY |> DynObj.setOptionalProperty image "dy" + Z |> DynObj.setOptionalProperty image "z" + Source |> DynObj.setOptionalProperty image "source" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty image "text" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty image "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy image "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty image "hovertemplate" + Meta |> DynObj.setOptionalProperty image "meta" + CustomData |> DynObj.setOptionalProperty image "customdata" + XAxis |> DynObj.setOptionalPropertyBy image "xaxis" StyleParam.LinearAxisId.convert + YAxis |> DynObj.setOptionalPropertyBy image "yaxis" StyleParam.LinearAxisId.convert + ColorModel |> DynObj.setOptionalPropertyBy image "colormodel" StyleParam.ColorModel.convert + ZMax |> DynObj.setOptionalPropertyBy image "zmax" StyleParam.ColorComponentBound.convert + ZMin |> DynObj.setOptionalPropertyBy image "zmin" StyleParam.ColorComponentBound.convert + ZSmooth |> DynObj.setOptionalPropertyBy image "zsmooth" StyleParam.SmoothAlg.convert + HoverLabel |> DynObj.setOptionalProperty image "hoverlabel" + UIRevision |> DynObj.setOptionalProperty image "uirevision" // out -> image) @@ -2254,64 +2254,64 @@ type Trace2DStyle() = ) = (fun (contour: ('T :> Trace)) -> - Name |> DynObj.setValueOpt contour "name" - Visible |> DynObj.setValueOptBy contour "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt contour "showlegend" - Legend |> DynObj.setValueOptBy contour "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt contour "legendrank" - LegendGroup |> DynObj.setValueOpt contour "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt contour "legendgrouptitle" - Opacity |> DynObj.setValueOpt contour "opacity" - Ids |> DynObj.setValueOpt contour "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt contour "x" - X0 |> DynObj.setValueOpt contour "x0" - DX |> DynObj.setValueOpt contour "dx" - XType |> DynObj.setValueOptBy contour "xtype" StyleParam.CoordinateType.convert - (Y, MultiY) |> DynObj.setSingleOrMultiOpt contour "y" - Y0 |> DynObj.setValueOpt contour "y0" - DY |> DynObj.setValueOpt contour "dy" - YType |> DynObj.setValueOptBy contour "ytype" StyleParam.CoordinateType.convert - Z |> DynObj.setValueOpt contour "z" - TextTemplate |> DynObj.setValueOpt contour "texttemplate" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt contour "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt contour "hovertext" - HoverInfo |> DynObj.setValueOptBy contour "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt contour "hovertemplate" - XHoverFormat |> DynObj.setValueOpt contour "xhoverformat" - YHoverFormat |> DynObj.setValueOpt contour "yhoverformat" - Meta |> DynObj.setValueOpt contour "meta" - CustomData |> DynObj.setValueOpt contour "customdata" - XAxis |> DynObj.setValueOptBy contour "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy contour "yaxis" StyleParam.LinearAxisId.convert - ColorAxis |> DynObj.setValueOptBy contour "coloraxis" StyleParam.SubPlotId.convert - XPeriod |> DynObj.setValueOpt contour "xperiod" - XPeriodAlignment |> DynObj.setValueOptBy contour "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setValueOpt contour "xperiod0" - YPeriod |> DynObj.setValueOpt contour "yperiod" - YPeriodAlignment |> DynObj.setValueOptBy contour "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setValueOpt contour "yperiod0" - Line |> DynObj.setValueOpt contour "line" - TextFont |> DynObj.setValueOpt contour "textfont" - ColorBar |> DynObj.setValueOpt contour "colorbar" - AutoColorScale |> DynObj.setValueOpt contour "autocolorscale" - ColorScale |> DynObj.setValueOptBy contour "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt contour "showscale" - ReverseScale |> DynObj.setValueOpt contour "reversescale" - ZAuto |> DynObj.setValueOpt contour "zauto" - ZHoverFormat |> DynObj.setValueOpt contour "zhoverformat" - ZMax |> DynObj.setValueOpt contour "zmax" - ZMid |> DynObj.setValueOpt contour "zmid" - ZMin |> DynObj.setValueOpt contour "zmin" - AutoContour |> DynObj.setValueOpt contour "autocontour" - ConnectGaps |> DynObj.setValueOpt contour "connectgaps" - Contours |> DynObj.setValueOpt contour "contours" - FillColor |> DynObj.setValueOpt contour "fillcolor" - HoverLabel |> DynObj.setValueOpt contour "hoverlabel" - HoverOnGaps |> DynObj.setValueOpt contour "hoverongaps" - NContours |> DynObj.setValueOpt contour "ncontours" - Transpose |> DynObj.setValueOpt contour "transpose" - XCalendar |> DynObj.setValueOptBy contour "xcalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt contour "uirevision" + Name |> DynObj.setOptionalProperty contour "name" + Visible |> DynObj.setOptionalPropertyBy contour "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty contour "showlegend" + Legend |> DynObj.setOptionalPropertyBy contour "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty contour "legendrank" + LegendGroup |> DynObj.setOptionalProperty contour "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty contour "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty contour "opacity" + Ids |> DynObj.setOptionalProperty contour "ids" + (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty contour "x" + X0 |> DynObj.setOptionalProperty contour "x0" + DX |> DynObj.setOptionalProperty contour "dx" + XType |> DynObj.setOptionalPropertyBy contour "xtype" StyleParam.CoordinateType.convert + (Y, MultiY) |> DynObj.setOptionalSingleOrMultiProperty contour "y" + Y0 |> DynObj.setOptionalProperty contour "y0" + DY |> DynObj.setOptionalProperty contour "dy" + YType |> DynObj.setOptionalPropertyBy contour "ytype" StyleParam.CoordinateType.convert + Z |> DynObj.setOptionalProperty contour "z" + TextTemplate |> DynObj.setOptionalProperty contour "texttemplate" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty contour "text" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty contour "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy contour "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty contour "hovertemplate" + XHoverFormat |> DynObj.setOptionalProperty contour "xhoverformat" + YHoverFormat |> DynObj.setOptionalProperty contour "yhoverformat" + Meta |> DynObj.setOptionalProperty contour "meta" + CustomData |> DynObj.setOptionalProperty contour "customdata" + XAxis |> DynObj.setOptionalPropertyBy contour "xaxis" StyleParam.LinearAxisId.convert + YAxis |> DynObj.setOptionalPropertyBy contour "yaxis" StyleParam.LinearAxisId.convert + ColorAxis |> DynObj.setOptionalPropertyBy contour "coloraxis" StyleParam.SubPlotId.convert + XPeriod |> DynObj.setOptionalProperty contour "xperiod" + XPeriodAlignment |> DynObj.setOptionalPropertyBy contour "xperiodalignment" StyleParam.PeriodAlignment.convert + XPeriod0 |> DynObj.setOptionalProperty contour "xperiod0" + YPeriod |> DynObj.setOptionalProperty contour "yperiod" + YPeriodAlignment |> DynObj.setOptionalPropertyBy contour "yperiodalignment" StyleParam.PeriodAlignment.convert + YPeriod0 |> DynObj.setOptionalProperty contour "yperiod0" + Line |> DynObj.setOptionalProperty contour "line" + TextFont |> DynObj.setOptionalProperty contour "textfont" + ColorBar |> DynObj.setOptionalProperty contour "colorbar" + AutoColorScale |> DynObj.setOptionalProperty contour "autocolorscale" + ColorScale |> DynObj.setOptionalPropertyBy contour "colorscale" StyleParam.Colorscale.convert + ShowScale |> DynObj.setOptionalProperty contour "showscale" + ReverseScale |> DynObj.setOptionalProperty contour "reversescale" + ZAuto |> DynObj.setOptionalProperty contour "zauto" + ZHoverFormat |> DynObj.setOptionalProperty contour "zhoverformat" + ZMax |> DynObj.setOptionalProperty contour "zmax" + ZMid |> DynObj.setOptionalProperty contour "zmid" + ZMin |> DynObj.setOptionalProperty contour "zmin" + AutoContour |> DynObj.setOptionalProperty contour "autocontour" + ConnectGaps |> DynObj.setOptionalProperty contour "connectgaps" + Contours |> DynObj.setOptionalProperty contour "contours" + FillColor |> DynObj.setOptionalProperty contour "fillcolor" + HoverLabel |> DynObj.setOptionalProperty contour "hoverlabel" + HoverOnGaps |> DynObj.setOptionalProperty contour "hoverongaps" + NContours |> DynObj.setOptionalProperty contour "ncontours" + Transpose |> DynObj.setOptionalProperty contour "transpose" + XCalendar |> DynObj.setOptionalPropertyBy contour "xcalendar" StyleParam.Calendar.convert + UIRevision |> DynObj.setOptionalProperty contour "uirevision" // out -> @@ -2406,42 +2406,42 @@ type Trace2DStyle() = ) = (fun (ohlc: ('T :> Trace)) -> - Name |> DynObj.setValueOpt ohlc "name" - Visible |> DynObj.setValueOptBy ohlc "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt ohlc "showlegend" - Legend |> DynObj.setValueOptBy ohlc "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt ohlc "legendrank" - LegendGroup |> DynObj.setValueOpt ohlc "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt ohlc "legendgrouptitle" - Opacity |> DynObj.setValueOpt ohlc "opacity" - Ids |> DynObj.setValueOpt ohlc "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt ohlc "x" - Close |> DynObj.setValueOpt ohlc "close" - Open |> DynObj.setValueOpt ohlc "open" - High |> DynObj.setValueOpt ohlc "high" - Low |> DynObj.setValueOpt ohlc "low" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt ohlc "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt ohlc "hovertext" - HoverInfo |> DynObj.setValueOptBy ohlc "hoverinfo" StyleParam.HoverInfo.convert - XHoverFormat |> DynObj.setValueOpt ohlc "xhoverformat" - YHoverFormat |> DynObj.setValueOpt ohlc "yhoverformat" - Meta |> DynObj.setValueOpt ohlc "meta" - CustomData |> DynObj.setValueOpt ohlc "customdata" - XAxis |> DynObj.setValueOptBy ohlc "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy ohlc "yaxis" StyleParam.LinearAxisId.convert - XPeriod |> DynObj.setValueOpt ohlc "xperiod" - XPeriodAlignment |> DynObj.setValueOptBy ohlc "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setValueOpt ohlc "xperiod0" - YPeriod |> DynObj.setValueOpt ohlc "yperiod" - YPeriodAlignment |> DynObj.setValueOptBy ohlc "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setValueOpt ohlc "yperiod0" - Line |> DynObj.setValueOpt ohlc "line" - Increasing |> DynObj.setValueOpt ohlc "increasing" - Decreasing |> DynObj.setValueOpt ohlc "decreasing" - HoverLabel |> DynObj.setValueOpt ohlc "hoverlabel" - TickWidth |> DynObj.setValueOpt ohlc "tickwidth" - XCalendar |> DynObj.setValueOptBy ohlc "xcalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt ohlc "uirevision" + Name |> DynObj.setOptionalProperty ohlc "name" + Visible |> DynObj.setOptionalPropertyBy ohlc "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty ohlc "showlegend" + Legend |> DynObj.setOptionalPropertyBy ohlc "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty ohlc "legendrank" + LegendGroup |> DynObj.setOptionalProperty ohlc "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty ohlc "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty ohlc "opacity" + Ids |> DynObj.setOptionalProperty ohlc "ids" + (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty ohlc "x" + Close |> DynObj.setOptionalProperty ohlc "close" + Open |> DynObj.setOptionalProperty ohlc "open" + High |> DynObj.setOptionalProperty ohlc "high" + Low |> DynObj.setOptionalProperty ohlc "low" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty ohlc "text" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty ohlc "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy ohlc "hoverinfo" StyleParam.HoverInfo.convert + XHoverFormat |> DynObj.setOptionalProperty ohlc "xhoverformat" + YHoverFormat |> DynObj.setOptionalProperty ohlc "yhoverformat" + Meta |> DynObj.setOptionalProperty ohlc "meta" + CustomData |> DynObj.setOptionalProperty ohlc "customdata" + XAxis |> DynObj.setOptionalPropertyBy ohlc "xaxis" StyleParam.LinearAxisId.convert + YAxis |> DynObj.setOptionalPropertyBy ohlc "yaxis" StyleParam.LinearAxisId.convert + XPeriod |> DynObj.setOptionalProperty ohlc "xperiod" + XPeriodAlignment |> DynObj.setOptionalPropertyBy ohlc "xperiodalignment" StyleParam.PeriodAlignment.convert + XPeriod0 |> DynObj.setOptionalProperty ohlc "xperiod0" + YPeriod |> DynObj.setOptionalProperty ohlc "yperiod" + YPeriodAlignment |> DynObj.setOptionalPropertyBy ohlc "yperiodalignment" StyleParam.PeriodAlignment.convert + YPeriod0 |> DynObj.setOptionalProperty ohlc "yperiod0" + Line |> DynObj.setOptionalProperty ohlc "line" + Increasing |> DynObj.setOptionalProperty ohlc "increasing" + Decreasing |> DynObj.setOptionalProperty ohlc "decreasing" + HoverLabel |> DynObj.setOptionalProperty ohlc "hoverlabel" + TickWidth |> DynObj.setOptionalProperty ohlc "tickwidth" + XCalendar |> DynObj.setOptionalPropertyBy ohlc "xcalendar" StyleParam.Calendar.convert + UIRevision |> DynObj.setOptionalProperty ohlc "uirevision" ohlc) @@ -2534,42 +2534,42 @@ type Trace2DStyle() = ) = (fun (trace: ('T :> Trace)) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Ids |> DynObj.setValueOpt trace "ids" - (X, MultiX) |> DynObj.setSingleOrMultiOpt trace "x" - Close |> DynObj.setValueOpt trace "close" - Open |> DynObj.setValueOpt trace "open" - High |> DynObj.setValueOpt trace "high" - Low |> DynObj.setValueOpt trace "low" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - XHoverFormat |> DynObj.setValueOpt trace "xhoverformat" - YHoverFormat |> DynObj.setValueOpt trace "yhoverformat" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - XAxis |> DynObj.setValueOptBy trace "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy trace "yaxis" StyleParam.LinearAxisId.convert - XPeriod |> DynObj.setValueOpt trace "xperiod" - XPeriodAlignment |> DynObj.setValueOptBy trace "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setValueOpt trace "xperiod0" - YPeriod |> DynObj.setValueOpt trace "yperiod" - YPeriodAlignment |> DynObj.setValueOptBy trace "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setValueOpt trace "yperiod0" - Line |> DynObj.setValueOpt trace "line" - WhiskerWidth |> DynObj.setValueOpt trace "whiskerwidth" - Increasing |> DynObj.setValueOpt trace "increasing" - Decreasing |> DynObj.setValueOpt trace "decreasing" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - XCalendar |> DynObj.setValueOptBy trace "xcalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt trace "uirevision" + Name |> DynObj.setOptionalProperty trace "name" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty trace "showlegend" + Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty trace "opacity" + Ids |> DynObj.setOptionalProperty trace "ids" + (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty trace "x" + Close |> DynObj.setOptionalProperty trace "close" + Open |> DynObj.setOptionalProperty trace "open" + High |> DynObj.setOptionalProperty trace "high" + Low |> DynObj.setOptionalProperty trace "low" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert + XHoverFormat |> DynObj.setOptionalProperty trace "xhoverformat" + YHoverFormat |> DynObj.setOptionalProperty trace "yhoverformat" + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + XAxis |> DynObj.setOptionalPropertyBy trace "xaxis" StyleParam.LinearAxisId.convert + YAxis |> DynObj.setOptionalPropertyBy trace "yaxis" StyleParam.LinearAxisId.convert + XPeriod |> DynObj.setOptionalProperty trace "xperiod" + XPeriodAlignment |> DynObj.setOptionalPropertyBy trace "xperiodalignment" StyleParam.PeriodAlignment.convert + XPeriod0 |> DynObj.setOptionalProperty trace "xperiod0" + YPeriod |> DynObj.setOptionalProperty trace "yperiod" + YPeriodAlignment |> DynObj.setOptionalPropertyBy trace "yperiodalignment" StyleParam.PeriodAlignment.convert + YPeriod0 |> DynObj.setOptionalProperty trace "yperiod0" + Line |> DynObj.setOptionalProperty trace "line" + WhiskerWidth |> DynObj.setOptionalProperty trace "whiskerwidth" + Increasing |> DynObj.setOptionalProperty trace "increasing" + Decreasing |> DynObj.setOptionalProperty trace "decreasing" + HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" + XCalendar |> DynObj.setOptionalPropertyBy trace "xcalendar" StyleParam.Calendar.convert + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace) @@ -2645,34 +2645,34 @@ type Trace2DStyle() = ) = (fun (trace: ('T :> Trace)) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Ids |> DynObj.setValueOpt trace "ids" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - Dimensions |> DynObj.setValueOpt trace "dimensions" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - XHoverFormat |> DynObj.setValueOpt trace "xhoverformat" - YHoverFormat |> DynObj.setValueOpt trace "yhoverformat" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Marker |> DynObj.setValueOpt trace "marker" - Diagonal |> DynObj.setValueOpt trace "diagonal" - XAxes |> DynObj.setValueOptBy trace "xaxis" (Seq.map StyleParam.LinearAxisId.convert) - YAxes |> DynObj.setValueOptBy trace "yaxis" (Seq.map StyleParam.LinearAxisId.convert) - ShowLowerHalf |> DynObj.setValueOpt trace "showlowerhalf" - ShowUpperHalf |> DynObj.setValueOpt trace "showupperhalf" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Selected |> DynObj.setValueOpt trace "selected" - Unselected |> DynObj.setValueOpt trace "unselected" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - UIRevision |> DynObj.setValueOpt trace "uirevision" + Name |> DynObj.setOptionalProperty trace "name" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty trace "showlegend" + Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty trace "opacity" + Ids |> DynObj.setOptionalProperty trace "ids" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" + Dimensions |> DynObj.setOptionalProperty trace "dimensions" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" + XHoverFormat |> DynObj.setOptionalProperty trace "xhoverformat" + YHoverFormat |> DynObj.setOptionalProperty trace "yhoverformat" + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + Marker |> DynObj.setOptionalProperty trace "marker" + Diagonal |> DynObj.setOptionalProperty trace "diagonal" + XAxes |> DynObj.setOptionalPropertyBy trace "xaxis" (Seq.map StyleParam.LinearAxisId.convert) + YAxes |> DynObj.setOptionalPropertyBy trace "yaxis" (Seq.map StyleParam.LinearAxisId.convert) + ShowLowerHalf |> DynObj.setOptionalProperty trace "showlowerhalf" + ShowUpperHalf |> DynObj.setOptionalProperty trace "showupperhalf" + SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" + Selected |> DynObj.setOptionalProperty trace "selected" + Unselected |> DynObj.setOptionalProperty trace "unselected" + HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace) diff --git a/src/Plotly.NET/Traces/Trace3D.fs b/src/Plotly.NET/Traces/Trace3D.fs index 9baa6ae52..dd618fae5 100644 --- a/src/Plotly.NET/Traces/Trace3D.fs +++ b/src/Plotly.NET/Traces/Trace3D.fs @@ -51,7 +51,7 @@ type Trace3DStyle() = static member SetScene([] ?SceneId: StyleParam.SubPlotId) = (fun (trace: Trace3D) -> - SceneId |> DynObj.setValueOptBy trace "scene" StyleParam.SubPlotId.toString + SceneId |> DynObj.setOptionalPropertyBy trace "scene" StyleParam.SubPlotId.toString trace) @@ -154,49 +154,49 @@ type Trace3DStyle() = (fun (scatter: #Trace) -> - Name |> DynObj.setValueOpt scatter "name" - Visible |> DynObj.setValueOptBy scatter "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt scatter "showlegend" - Legend |> DynObj.setValueOptBy scatter "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt scatter "legendrank" - LegendGroup |> DynObj.setValueOpt scatter "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt scatter "legendgrouptitle" - Mode |> DynObj.setValueOptBy scatter "mode" StyleParam.Mode.convert - Opacity |> DynObj.setValueOpt scatter "opacity" - Ids |> DynObj.setValueOpt scatter "ids" - X |> DynObj.setValueOpt scatter "x" - Y |> DynObj.setValueOpt scatter "y" - Z |> DynObj.setValueOpt scatter "z" - SurfaceColor |> DynObj.setValueOpt scatter "surfacecolor" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt scatter "text" + Name |> DynObj.setOptionalProperty scatter "name" + Visible |> DynObj.setOptionalPropertyBy scatter "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty scatter "showlegend" + Legend |> DynObj.setOptionalPropertyBy scatter "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty scatter "legendrank" + LegendGroup |> DynObj.setOptionalProperty scatter "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty scatter "legendgrouptitle" + Mode |> DynObj.setOptionalPropertyBy scatter "mode" StyleParam.Mode.convert + Opacity |> DynObj.setOptionalProperty scatter "opacity" + Ids |> DynObj.setOptionalProperty scatter "ids" + X |> DynObj.setOptionalProperty scatter "x" + Y |> DynObj.setOptionalProperty scatter "y" + Z |> DynObj.setOptionalProperty scatter "z" + SurfaceColor |> DynObj.setOptionalProperty scatter "surfacecolor" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty scatter "text" (TextPosition, MultiTextPosition) |> DynObj.setSingleOrMultiOptBy scatter "textposition" StyleParam.TextPosition.convert - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt scatter "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt scatter "hovertext" - HoverInfo |> DynObj.setValueOptBy scatter "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt scatter "hovertemplate" - XHoverFormat |> DynObj.setValueOpt scatter "xhoverformat" - YHoverFormat |> DynObj.setValueOpt scatter "yhoverformat" - ZHoverFormat |> DynObj.setValueOpt scatter "zhoverformat" - Meta |> DynObj.setValueOpt scatter "meta" - CustomData |> DynObj.setValueOpt scatter "customdata" - Scene |> DynObj.setValueOptBy scatter "scene" StyleParam.SubPlotId.convert - Marker |> DynObj.setValueOpt scatter "marker" - Line |> DynObj.setValueOpt scatter "line" - TextFont |> DynObj.setValueOpt scatter "textfont" - XError |> DynObj.setValueOpt scatter "error_x" - YError |> DynObj.setValueOpt scatter "error_y" - ZError |> DynObj.setValueOpt scatter "error_z" - ConnectGaps |> DynObj.setValueOpt scatter "connectgaps" - Hoverlabel |> DynObj.setValueOpt scatter "hoverlabel" - Projection |> DynObj.setValueOpt scatter "projection" - Surfaceaxis |> DynObj.setValueOptBy scatter "surfaceaxis" StyleParam.SurfaceAxis.convert - XCalendar |> DynObj.setValueOptBy scatter "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setValueOptBy scatter "ycalendar" StyleParam.Calendar.convert - ZCalendar |> DynObj.setValueOptBy scatter "zcalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt scatter "uirevision" + (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty scatter "texttemplate" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty scatter "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy scatter "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty scatter "hovertemplate" + XHoverFormat |> DynObj.setOptionalProperty scatter "xhoverformat" + YHoverFormat |> DynObj.setOptionalProperty scatter "yhoverformat" + ZHoverFormat |> DynObj.setOptionalProperty scatter "zhoverformat" + Meta |> DynObj.setOptionalProperty scatter "meta" + CustomData |> DynObj.setOptionalProperty scatter "customdata" + Scene |> DynObj.setOptionalPropertyBy scatter "scene" StyleParam.SubPlotId.convert + Marker |> DynObj.setOptionalProperty scatter "marker" + Line |> DynObj.setOptionalProperty scatter "line" + TextFont |> DynObj.setOptionalProperty scatter "textfont" + XError |> DynObj.setOptionalProperty scatter "error_x" + YError |> DynObj.setOptionalProperty scatter "error_y" + ZError |> DynObj.setOptionalProperty scatter "error_z" + ConnectGaps |> DynObj.setOptionalProperty scatter "connectgaps" + Hoverlabel |> DynObj.setOptionalProperty scatter "hoverlabel" + Projection |> DynObj.setOptionalProperty scatter "projection" + Surfaceaxis |> DynObj.setOptionalPropertyBy scatter "surfaceaxis" StyleParam.SurfaceAxis.convert + XCalendar |> DynObj.setOptionalPropertyBy scatter "xcalendar" StyleParam.Calendar.convert + YCalendar |> DynObj.setOptionalPropertyBy scatter "ycalendar" StyleParam.Calendar.convert + ZCalendar |> DynObj.setOptionalPropertyBy scatter "zcalendar" StyleParam.Calendar.convert + UIRevision |> DynObj.setOptionalProperty scatter "uirevision" scatter) @@ -304,50 +304,50 @@ type Trace3DStyle() = ) = (fun (surface: #Trace) -> - Name |> DynObj.setValueOpt surface "name" - Visible |> DynObj.setValueOptBy surface "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt surface "showlegend" - Legend |> DynObj.setValueOptBy surface "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt surface "legendrank" - LegendGroup |> DynObj.setValueOpt surface "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt surface "legendgrouptitle" - Opacity |> DynObj.setValueOpt surface "opacity" - Ids |> DynObj.setValueOpt surface "ids" - X |> DynObj.setValueOpt surface "x" - Y |> DynObj.setValueOpt surface "y" - Z |> DynObj.setValueOpt surface "z" - SurfaceColor |> DynObj.setValueOpt surface "surfacecolor" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt surface "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt surface "hovertext" - HoverInfo |> DynObj.setValueOptBy surface "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt surface "hovertemplate" - XHoverFormat |> DynObj.setValueOpt surface "xhoverformat" - YHoverFormat |> DynObj.setValueOpt surface "yhoverformat" - ZHoverFormat |> DynObj.setValueOpt surface "zhoverformat" - Meta |> DynObj.setValueOpt surface "meta" - CustomData |> DynObj.setValueOpt surface "customdata" - Scene |> DynObj.setValueOptBy surface "scene" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setValueOptBy surface "coloraxis" StyleParam.SubPlotId.convert - ColorBar |> DynObj.setValueOpt surface "colorbar" - AutoColorScale |> DynObj.setValueOpt surface "autocolorscale" - ColorScale |> DynObj.setValueOptBy surface "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt surface "showscale" - ReverseScale |> DynObj.setValueOpt surface "reversescale" - CAuto |> DynObj.setValueOpt surface "cauto" - CMin |> DynObj.setValueOpt surface "cmin" - CMid |> DynObj.setValueOpt surface "cmid" - CMax |> DynObj.setValueOpt surface "cmax" - ConnectGaps |> DynObj.setValueOpt surface "connectgaps" - Contours |> DynObj.setValueOpt surface "contours" - HideSurface |> DynObj.setValueOpt surface "hidesurface" - Hoverlabel |> DynObj.setValueOpt surface "hoverlabel" - Lighting |> DynObj.setValueOpt surface "lighting" - LightPosition |> DynObj.setValueOpt surface "lightposition" - OpacityScale |> DynObj.setValueOpt surface "opacityscale" - XCalendar |> DynObj.setValueOptBy surface "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setValueOptBy surface "ycalendar" StyleParam.Calendar.convert - ZCalendar |> DynObj.setValueOptBy surface "zcalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt surface "uirevision" + Name |> DynObj.setOptionalProperty surface "name" + Visible |> DynObj.setOptionalPropertyBy surface "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty surface "showlegend" + Legend |> DynObj.setOptionalPropertyBy surface "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty surface "legendrank" + LegendGroup |> DynObj.setOptionalProperty surface "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty surface "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty surface "opacity" + Ids |> DynObj.setOptionalProperty surface "ids" + X |> DynObj.setOptionalProperty surface "x" + Y |> DynObj.setOptionalProperty surface "y" + Z |> DynObj.setOptionalProperty surface "z" + SurfaceColor |> DynObj.setOptionalProperty surface "surfacecolor" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty surface "text" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty surface "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy surface "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty surface "hovertemplate" + XHoverFormat |> DynObj.setOptionalProperty surface "xhoverformat" + YHoverFormat |> DynObj.setOptionalProperty surface "yhoverformat" + ZHoverFormat |> DynObj.setOptionalProperty surface "zhoverformat" + Meta |> DynObj.setOptionalProperty surface "meta" + CustomData |> DynObj.setOptionalProperty surface "customdata" + Scene |> DynObj.setOptionalPropertyBy surface "scene" StyleParam.SubPlotId.convert + ColorAxis |> DynObj.setOptionalPropertyBy surface "coloraxis" StyleParam.SubPlotId.convert + ColorBar |> DynObj.setOptionalProperty surface "colorbar" + AutoColorScale |> DynObj.setOptionalProperty surface "autocolorscale" + ColorScale |> DynObj.setOptionalPropertyBy surface "colorscale" StyleParam.Colorscale.convert + ShowScale |> DynObj.setOptionalProperty surface "showscale" + ReverseScale |> DynObj.setOptionalProperty surface "reversescale" + CAuto |> DynObj.setOptionalProperty surface "cauto" + CMin |> DynObj.setOptionalProperty surface "cmin" + CMid |> DynObj.setOptionalProperty surface "cmid" + CMax |> DynObj.setOptionalProperty surface "cmax" + ConnectGaps |> DynObj.setOptionalProperty surface "connectgaps" + Contours |> DynObj.setOptionalProperty surface "contours" + HideSurface |> DynObj.setOptionalProperty surface "hidesurface" + Hoverlabel |> DynObj.setOptionalProperty surface "hoverlabel" + Lighting |> DynObj.setOptionalProperty surface "lighting" + LightPosition |> DynObj.setOptionalProperty surface "lightposition" + OpacityScale |> DynObj.setOptionalProperty surface "opacityscale" + XCalendar |> DynObj.setOptionalPropertyBy surface "xcalendar" StyleParam.Calendar.convert + YCalendar |> DynObj.setOptionalPropertyBy surface "ycalendar" StyleParam.Calendar.convert + ZCalendar |> DynObj.setOptionalPropertyBy surface "zcalendar" StyleParam.Calendar.convert + UIRevision |> DynObj.setOptionalProperty surface "uirevision" surface) @@ -469,57 +469,57 @@ type Trace3DStyle() = fun (mesh3d: #Trace) -> - Name |> DynObj.setValueOpt mesh3d "name" - Visible |> DynObj.setValueOptBy mesh3d "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt mesh3d "showlegend" - Legend |> DynObj.setValueOptBy mesh3d "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt mesh3d "legendrank" - LegendGroup |> DynObj.setValueOpt mesh3d "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt mesh3d "legendgrouptitle" - Opacity |> DynObj.setValueOpt mesh3d "opacity" - Ids |> DynObj.setValueOpt mesh3d "ids" - X |> DynObj.setValueOpt mesh3d "x" - Y |> DynObj.setValueOpt mesh3d "y" - Z |> DynObj.setValueOpt mesh3d "z" - I |> DynObj.setValueOpt mesh3d "i" - J |> DynObj.setValueOpt mesh3d "j" - K |> DynObj.setValueOpt mesh3d "k" - FaceColor |> DynObj.setValueOpt mesh3d "facecolor" - Intensity |> DynObj.setValueOpt mesh3d "intensity" - IntensityMode |> DynObj.setValueOptBy mesh3d "intensitymode" StyleParam.IntensityMode.convert - VertexColor |> DynObj.setValueOpt mesh3d "vertexcolor" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt mesh3d "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt mesh3d "hovertext" - HoverInfo |> DynObj.setValueOptBy mesh3d "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt mesh3d "hovertemplate" - XHoverFormat |> DynObj.setValueOpt mesh3d "xhoverformat" - YHoverFormat |> DynObj.setValueOpt mesh3d "yhoverformat" - ZHoverFormat |> DynObj.setValueOpt mesh3d "zhoverformat" - Meta |> DynObj.setValueOpt mesh3d "meta" - CustomData |> DynObj.setValueOpt mesh3d "customdata" - Scene |> DynObj.setValueOptBy mesh3d "scene" StyleParam.SubPlotId.convert - Color |> DynObj.setValueOpt mesh3d "color" - ColorAxis |> DynObj.setValueOptBy mesh3d "coloraxis" StyleParam.SubPlotId.convert - ColorBar |> DynObj.setValueOpt mesh3d "colorbar" - AutoColorScale |> DynObj.setValueOpt mesh3d "autocolorscale" - ColorScale |> DynObj.setValueOptBy mesh3d "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt mesh3d "showscale" - ReverseScale |> DynObj.setValueOpt mesh3d "reversescale" - CAuto |> DynObj.setValueOpt mesh3d "cauto" - CMin |> DynObj.setValueOpt mesh3d "cmin" - CMid |> DynObj.setValueOpt mesh3d "cmid" - CMax |> DynObj.setValueOpt mesh3d "cmax" - AlphaHull |> DynObj.setValueOptBy mesh3d "alphahull" StyleParam.TriangulationAlgorithm.convert - Delaunayaxis |> DynObj.setValueOptBy mesh3d "delaunayaxis" StyleParam.Delaunayaxis.convert - Contour |> DynObj.setValueOpt mesh3d "contour" - FlatShading |> DynObj.setValueOpt mesh3d "flatshading" - Hoverlabel |> DynObj.setValueOpt mesh3d "hoverlabel" - Lighting |> DynObj.setValueOpt mesh3d "lighting" - LightPosition |> DynObj.setValueOpt mesh3d "lightposition" - XCalendar |> DynObj.setValueOptBy mesh3d "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setValueOptBy mesh3d "ycalendar" StyleParam.Calendar.convert - ZCalendar |> DynObj.setValueOptBy mesh3d "zcalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setValueOpt mesh3d "uirevision" + Name |> DynObj.setOptionalProperty mesh3d "name" + Visible |> DynObj.setOptionalPropertyBy mesh3d "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty mesh3d "showlegend" + Legend |> DynObj.setOptionalPropertyBy mesh3d "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty mesh3d "legendrank" + LegendGroup |> DynObj.setOptionalProperty mesh3d "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty mesh3d "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty mesh3d "opacity" + Ids |> DynObj.setOptionalProperty mesh3d "ids" + X |> DynObj.setOptionalProperty mesh3d "x" + Y |> DynObj.setOptionalProperty mesh3d "y" + Z |> DynObj.setOptionalProperty mesh3d "z" + I |> DynObj.setOptionalProperty mesh3d "i" + J |> DynObj.setOptionalProperty mesh3d "j" + K |> DynObj.setOptionalProperty mesh3d "k" + FaceColor |> DynObj.setOptionalProperty mesh3d "facecolor" + Intensity |> DynObj.setOptionalProperty mesh3d "intensity" + IntensityMode |> DynObj.setOptionalPropertyBy mesh3d "intensitymode" StyleParam.IntensityMode.convert + VertexColor |> DynObj.setOptionalProperty mesh3d "vertexcolor" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty mesh3d "text" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty mesh3d "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy mesh3d "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty mesh3d "hovertemplate" + XHoverFormat |> DynObj.setOptionalProperty mesh3d "xhoverformat" + YHoverFormat |> DynObj.setOptionalProperty mesh3d "yhoverformat" + ZHoverFormat |> DynObj.setOptionalProperty mesh3d "zhoverformat" + Meta |> DynObj.setOptionalProperty mesh3d "meta" + CustomData |> DynObj.setOptionalProperty mesh3d "customdata" + Scene |> DynObj.setOptionalPropertyBy mesh3d "scene" StyleParam.SubPlotId.convert + Color |> DynObj.setOptionalProperty mesh3d "color" + ColorAxis |> DynObj.setOptionalPropertyBy mesh3d "coloraxis" StyleParam.SubPlotId.convert + ColorBar |> DynObj.setOptionalProperty mesh3d "colorbar" + AutoColorScale |> DynObj.setOptionalProperty mesh3d "autocolorscale" + ColorScale |> DynObj.setOptionalPropertyBy mesh3d "colorscale" StyleParam.Colorscale.convert + ShowScale |> DynObj.setOptionalProperty mesh3d "showscale" + ReverseScale |> DynObj.setOptionalProperty mesh3d "reversescale" + CAuto |> DynObj.setOptionalProperty mesh3d "cauto" + CMin |> DynObj.setOptionalProperty mesh3d "cmin" + CMid |> DynObj.setOptionalProperty mesh3d "cmid" + CMax |> DynObj.setOptionalProperty mesh3d "cmax" + AlphaHull |> DynObj.setOptionalPropertyBy mesh3d "alphahull" StyleParam.TriangulationAlgorithm.convert + Delaunayaxis |> DynObj.setOptionalPropertyBy mesh3d "delaunayaxis" StyleParam.Delaunayaxis.convert + Contour |> DynObj.setOptionalProperty mesh3d "contour" + FlatShading |> DynObj.setOptionalProperty mesh3d "flatshading" + Hoverlabel |> DynObj.setOptionalProperty mesh3d "hoverlabel" + Lighting |> DynObj.setOptionalProperty mesh3d "lighting" + LightPosition |> DynObj.setOptionalProperty mesh3d "lightposition" + XCalendar |> DynObj.setOptionalPropertyBy mesh3d "xcalendar" StyleParam.Calendar.convert + YCalendar |> DynObj.setOptionalPropertyBy mesh3d "ycalendar" StyleParam.Calendar.convert + ZCalendar |> DynObj.setOptionalPropertyBy mesh3d "zcalendar" StyleParam.Calendar.convert + UIRevision |> DynObj.setOptionalProperty mesh3d "uirevision" mesh3d @@ -627,51 +627,51 @@ type Trace3DStyle() = [] ?UIRevision: seq<#IConvertible> ) = (fun (cone: #Trace) -> - Name |> DynObj.setValueOpt cone "name" - Visible |> DynObj.setValueOptBy cone "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt cone "showlegend" - Legend |> DynObj.setValueOptBy cone "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt cone "legendrank" - LegendGroup |> DynObj.setValueOpt cone "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt cone "legendgrouptitle" - Opacity |> DynObj.setValueOpt cone "opacity" - Ids |> DynObj.setValueOpt cone "ids" - X |> DynObj.setValueOpt cone "x" - Y |> DynObj.setValueOpt cone "y" - Z |> DynObj.setValueOpt cone "z" - U |> DynObj.setValueOpt cone "u" - V |> DynObj.setValueOpt cone "v" - W |> DynObj.setValueOpt cone "w" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt cone "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt cone "hovertext" - HoverInfo |> DynObj.setValueOptBy cone "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt cone "hovertemplate" - XHoverFormat |> DynObj.setValueOpt cone "xhoverformat" - YHoverFormat |> DynObj.setValueOpt cone "yhoverformat" - ZHoverFormat |> DynObj.setValueOpt cone "zhoverformat" - UHoverFormat |> DynObj.setValueOpt cone "uhoverformat" - VHoverFormat |> DynObj.setValueOpt cone "vhoverformat" - WHoverFormat |> DynObj.setValueOpt cone "whoverformat" - Meta |> DynObj.setValueOpt cone "meta" - CustomData |> DynObj.setValueOpt cone "customdata" - Scene |> DynObj.setValueOptBy cone "scene" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setValueOptBy cone "coloraxis" StyleParam.SubPlotId.convert - ColorBar |> DynObj.setValueOpt cone "colorbar" - AutoColorScale |> DynObj.setValueOpt cone "autocolorscale" - ColorScale |> DynObj.setValueOptBy cone "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt cone "showscale" - ReverseScale |> DynObj.setValueOpt cone "reversescale" - CAuto |> DynObj.setValueOpt cone "cauto" - CMin |> DynObj.setValueOpt cone "cmin" - CMid |> DynObj.setValueOpt cone "cmid" - CMax |> DynObj.setValueOpt cone "cmax" - Anchor |> DynObj.setValueOptBy cone "anchor" StyleParam.ConeAnchor.convert - HoverLabel |> DynObj.setValueOpt cone "hoverlabel" - Lighting |> DynObj.setValueOpt cone "lighting" - LightPosition |> DynObj.setValueOpt cone "lightposition" - SizeMode |> DynObj.setValueOptBy cone "sizemode" StyleParam.ConeSizeMode.convert - SizeRef |> DynObj.setValueOpt cone "sizeref" - UIRevision |> DynObj.setValueOpt cone "uirevision" + Name |> DynObj.setOptionalProperty cone "name" + Visible |> DynObj.setOptionalPropertyBy cone "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty cone "showlegend" + Legend |> DynObj.setOptionalPropertyBy cone "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty cone "legendrank" + LegendGroup |> DynObj.setOptionalProperty cone "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty cone "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty cone "opacity" + Ids |> DynObj.setOptionalProperty cone "ids" + X |> DynObj.setOptionalProperty cone "x" + Y |> DynObj.setOptionalProperty cone "y" + Z |> DynObj.setOptionalProperty cone "z" + U |> DynObj.setOptionalProperty cone "u" + V |> DynObj.setOptionalProperty cone "v" + W |> DynObj.setOptionalProperty cone "w" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty cone "text" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty cone "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy cone "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty cone "hovertemplate" + XHoverFormat |> DynObj.setOptionalProperty cone "xhoverformat" + YHoverFormat |> DynObj.setOptionalProperty cone "yhoverformat" + ZHoverFormat |> DynObj.setOptionalProperty cone "zhoverformat" + UHoverFormat |> DynObj.setOptionalProperty cone "uhoverformat" + VHoverFormat |> DynObj.setOptionalProperty cone "vhoverformat" + WHoverFormat |> DynObj.setOptionalProperty cone "whoverformat" + Meta |> DynObj.setOptionalProperty cone "meta" + CustomData |> DynObj.setOptionalProperty cone "customdata" + Scene |> DynObj.setOptionalPropertyBy cone "scene" StyleParam.SubPlotId.convert + ColorAxis |> DynObj.setOptionalPropertyBy cone "coloraxis" StyleParam.SubPlotId.convert + ColorBar |> DynObj.setOptionalProperty cone "colorbar" + AutoColorScale |> DynObj.setOptionalProperty cone "autocolorscale" + ColorScale |> DynObj.setOptionalPropertyBy cone "colorscale" StyleParam.Colorscale.convert + ShowScale |> DynObj.setOptionalProperty cone "showscale" + ReverseScale |> DynObj.setOptionalProperty cone "reversescale" + CAuto |> DynObj.setOptionalProperty cone "cauto" + CMin |> DynObj.setOptionalProperty cone "cmin" + CMid |> DynObj.setOptionalProperty cone "cmid" + CMax |> DynObj.setOptionalProperty cone "cmax" + Anchor |> DynObj.setOptionalPropertyBy cone "anchor" StyleParam.ConeAnchor.convert + HoverLabel |> DynObj.setOptionalProperty cone "hoverlabel" + Lighting |> DynObj.setOptionalProperty cone "lighting" + LightPosition |> DynObj.setOptionalProperty cone "lightposition" + SizeMode |> DynObj.setOptionalPropertyBy cone "sizemode" StyleParam.ConeSizeMode.convert + SizeRef |> DynObj.setOptionalProperty cone "sizeref" + UIRevision |> DynObj.setOptionalProperty cone "uirevision" cone) @@ -778,51 +778,51 @@ type Trace3DStyle() = [] ?UIRevision: seq<#IConvertible> ) = (fun (streamTube: #Trace) -> - Name |> DynObj.setValueOpt streamTube "name" - Visible |> DynObj.setValueOptBy streamTube "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt streamTube "showlegend" - Legend |> DynObj.setValueOptBy streamTube "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt streamTube "legendrank" - LegendGroup |> DynObj.setValueOpt streamTube "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt streamTube "legendgrouptitle" - Opacity |> DynObj.setValueOpt streamTube "opacity" - Ids |> DynObj.setValueOpt streamTube "ids" - X |> DynObj.setValueOpt streamTube "x" - Y |> DynObj.setValueOpt streamTube "y" - Z |> DynObj.setValueOpt streamTube "z" - U |> DynObj.setValueOpt streamTube "u" - V |> DynObj.setValueOpt streamTube "v" - W |> DynObj.setValueOpt streamTube "w" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt streamTube "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt streamTube "hovertext" - HoverInfo |> DynObj.setValueOptBy streamTube "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt streamTube "hovertemplate" - XHoverFormat |> DynObj.setValueOpt streamTube "xhoverformat" - YHoverFormat |> DynObj.setValueOpt streamTube "yhoverformat" - ZHoverFormat |> DynObj.setValueOpt streamTube "zhoverformat" - UHoverFormat |> DynObj.setValueOpt streamTube "uhoverformat" - VHoverFormat |> DynObj.setValueOpt streamTube "vhoverformat" - WHoverFormat |> DynObj.setValueOpt streamTube "whoverformat" - Meta |> DynObj.setValueOpt streamTube "meta" - CustomData |> DynObj.setValueOpt streamTube "customdata" - Scene |> DynObj.setValueOptBy streamTube "scene" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setValueOptBy streamTube "coloraxis" StyleParam.SubPlotId.convert - ColorBar |> DynObj.setValueOpt streamTube "colorbar" - AutoColorScale |> DynObj.setValueOpt streamTube "autocolorscale" - ColorScale |> DynObj.setValueOptBy streamTube "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt streamTube "showscale" - ReverseScale |> DynObj.setValueOpt streamTube "reversescale" - CAuto |> DynObj.setValueOpt streamTube "cauto" - CMin |> DynObj.setValueOpt streamTube "cmin" - CMid |> DynObj.setValueOpt streamTube "cmid" - CMax |> DynObj.setValueOpt streamTube "cmax" - HoverLabel |> DynObj.setValueOpt streamTube "hoverlabel" - Lighting |> DynObj.setValueOpt streamTube "lighting" - LightPosition |> DynObj.setValueOpt streamTube "lightposition" - MaxDisplayed |> DynObj.setValueOpt streamTube "maxdisplayed" - SizeRef |> DynObj.setValueOpt streamTube "sizeref" - Starts |> DynObj.setValueOpt streamTube "starts" - UIRevision |> DynObj.setValueOpt streamTube "uirevision" + Name |> DynObj.setOptionalProperty streamTube "name" + Visible |> DynObj.setOptionalPropertyBy streamTube "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty streamTube "showlegend" + Legend |> DynObj.setOptionalPropertyBy streamTube "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty streamTube "legendrank" + LegendGroup |> DynObj.setOptionalProperty streamTube "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty streamTube "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty streamTube "opacity" + Ids |> DynObj.setOptionalProperty streamTube "ids" + X |> DynObj.setOptionalProperty streamTube "x" + Y |> DynObj.setOptionalProperty streamTube "y" + Z |> DynObj.setOptionalProperty streamTube "z" + U |> DynObj.setOptionalProperty streamTube "u" + V |> DynObj.setOptionalProperty streamTube "v" + W |> DynObj.setOptionalProperty streamTube "w" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty streamTube "text" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty streamTube "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy streamTube "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty streamTube "hovertemplate" + XHoverFormat |> DynObj.setOptionalProperty streamTube "xhoverformat" + YHoverFormat |> DynObj.setOptionalProperty streamTube "yhoverformat" + ZHoverFormat |> DynObj.setOptionalProperty streamTube "zhoverformat" + UHoverFormat |> DynObj.setOptionalProperty streamTube "uhoverformat" + VHoverFormat |> DynObj.setOptionalProperty streamTube "vhoverformat" + WHoverFormat |> DynObj.setOptionalProperty streamTube "whoverformat" + Meta |> DynObj.setOptionalProperty streamTube "meta" + CustomData |> DynObj.setOptionalProperty streamTube "customdata" + Scene |> DynObj.setOptionalPropertyBy streamTube "scene" StyleParam.SubPlotId.convert + ColorAxis |> DynObj.setOptionalPropertyBy streamTube "coloraxis" StyleParam.SubPlotId.convert + ColorBar |> DynObj.setOptionalProperty streamTube "colorbar" + AutoColorScale |> DynObj.setOptionalProperty streamTube "autocolorscale" + ColorScale |> DynObj.setOptionalPropertyBy streamTube "colorscale" StyleParam.Colorscale.convert + ShowScale |> DynObj.setOptionalProperty streamTube "showscale" + ReverseScale |> DynObj.setOptionalProperty streamTube "reversescale" + CAuto |> DynObj.setOptionalProperty streamTube "cauto" + CMin |> DynObj.setOptionalProperty streamTube "cmin" + CMid |> DynObj.setOptionalProperty streamTube "cmid" + CMax |> DynObj.setOptionalProperty streamTube "cmax" + HoverLabel |> DynObj.setOptionalProperty streamTube "hoverlabel" + Lighting |> DynObj.setOptionalProperty streamTube "lighting" + LightPosition |> DynObj.setOptionalProperty streamTube "lightposition" + MaxDisplayed |> DynObj.setOptionalProperty streamTube "maxdisplayed" + SizeRef |> DynObj.setOptionalProperty streamTube "sizeref" + Starts |> DynObj.setOptionalProperty streamTube "starts" + UIRevision |> DynObj.setOptionalProperty streamTube "uirevision" streamTube) @@ -934,53 +934,53 @@ type Trace3DStyle() = ) = fun (volume: #Trace) -> - Name |> DynObj.setValueOpt volume "name" - Visible |> DynObj.setValueOptBy volume "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt volume "showlegend" - Legend |> DynObj.setValueOptBy volume "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt volume "legendrank" - LegendGroup |> DynObj.setValueOpt volume "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt volume "legendgrouptitle" - Opacity |> DynObj.setValueOpt volume "opacity" - Ids |> DynObj.setValueOpt volume "ids" - X |> DynObj.setValueOpt volume "x" - Y |> DynObj.setValueOpt volume "y" - Z |> DynObj.setValueOpt volume "z" - Value |> DynObj.setValueOpt volume "value" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt volume "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt volume "hovertext" - HoverInfo |> DynObj.setValueOptBy volume "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt volume "hovertemplate" - XHoverFormat |> DynObj.setValueOpt volume "xhoverformat" - YHoverFormat |> DynObj.setValueOpt volume "yhoverformat" - ZHoverFormat |> DynObj.setValueOpt volume "zhoverformat" - ValueHoverFormat |> DynObj.setValueOpt volume "valuehoverformat" - Meta |> DynObj.setValueOpt volume "meta" - CustomData |> DynObj.setValueOpt volume "customdata" - Scene |> DynObj.setValueOptBy volume "scene" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setValueOptBy volume "coloraxis" StyleParam.SubPlotId.convert - ColorBar |> DynObj.setValueOpt volume "colorbar" - AutoColorScale |> DynObj.setValueOpt volume "autocolorscale" - ColorScale |> DynObj.setValueOptBy volume "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt volume "showscale" - ReverseScale |> DynObj.setValueOpt volume "reversescale" - CAuto |> DynObj.setValueOpt volume "cauto" - CMin |> DynObj.setValueOpt volume "cmin" - CMid |> DynObj.setValueOpt volume "cmid" - CMax |> DynObj.setValueOpt volume "cmax" - Caps |> DynObj.setValueOpt volume "caps" - Contour |> DynObj.setValueOpt volume "contour" - FlatShading |> DynObj.setValueOpt volume "flatshading" - HoverLabel |> DynObj.setValueOpt volume "hoverlabel" - IsoMax |> DynObj.setValueOpt volume "isomax" - IsoMin |> DynObj.setValueOpt volume "isomin" - Lighting |> DynObj.setValueOpt volume "lighting" - LightPosition |> DynObj.setValueOpt volume "lightposition" - OpacityScale |> DynObj.setValueOpt volume "opacityscale" - Slices |> DynObj.setValueOpt volume "slices" - SpaceFrame |> DynObj.setValueOpt volume "spaceframe" - Surface |> DynObj.setValueOpt volume "surface" - UIRevision |> DynObj.setValueOpt volume "uirevision" + Name |> DynObj.setOptionalProperty volume "name" + Visible |> DynObj.setOptionalPropertyBy volume "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty volume "showlegend" + Legend |> DynObj.setOptionalPropertyBy volume "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty volume "legendrank" + LegendGroup |> DynObj.setOptionalProperty volume "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty volume "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty volume "opacity" + Ids |> DynObj.setOptionalProperty volume "ids" + X |> DynObj.setOptionalProperty volume "x" + Y |> DynObj.setOptionalProperty volume "y" + Z |> DynObj.setOptionalProperty volume "z" + Value |> DynObj.setOptionalProperty volume "value" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty volume "text" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty volume "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy volume "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty volume "hovertemplate" + XHoverFormat |> DynObj.setOptionalProperty volume "xhoverformat" + YHoverFormat |> DynObj.setOptionalProperty volume "yhoverformat" + ZHoverFormat |> DynObj.setOptionalProperty volume "zhoverformat" + ValueHoverFormat |> DynObj.setOptionalProperty volume "valuehoverformat" + Meta |> DynObj.setOptionalProperty volume "meta" + CustomData |> DynObj.setOptionalProperty volume "customdata" + Scene |> DynObj.setOptionalPropertyBy volume "scene" StyleParam.SubPlotId.convert + ColorAxis |> DynObj.setOptionalPropertyBy volume "coloraxis" StyleParam.SubPlotId.convert + ColorBar |> DynObj.setOptionalProperty volume "colorbar" + AutoColorScale |> DynObj.setOptionalProperty volume "autocolorscale" + ColorScale |> DynObj.setOptionalPropertyBy volume "colorscale" StyleParam.Colorscale.convert + ShowScale |> DynObj.setOptionalProperty volume "showscale" + ReverseScale |> DynObj.setOptionalProperty volume "reversescale" + CAuto |> DynObj.setOptionalProperty volume "cauto" + CMin |> DynObj.setOptionalProperty volume "cmin" + CMid |> DynObj.setOptionalProperty volume "cmid" + CMax |> DynObj.setOptionalProperty volume "cmax" + Caps |> DynObj.setOptionalProperty volume "caps" + Contour |> DynObj.setOptionalProperty volume "contour" + FlatShading |> DynObj.setOptionalProperty volume "flatshading" + HoverLabel |> DynObj.setOptionalProperty volume "hoverlabel" + IsoMax |> DynObj.setOptionalProperty volume "isomax" + IsoMin |> DynObj.setOptionalProperty volume "isomin" + Lighting |> DynObj.setOptionalProperty volume "lighting" + LightPosition |> DynObj.setOptionalProperty volume "lightposition" + OpacityScale |> DynObj.setOptionalProperty volume "opacityscale" + Slices |> DynObj.setOptionalProperty volume "slices" + SpaceFrame |> DynObj.setOptionalProperty volume "spaceframe" + Surface |> DynObj.setOptionalProperty volume "surface" + UIRevision |> DynObj.setOptionalProperty volume "uirevision" volume @@ -1092,52 +1092,52 @@ type Trace3DStyle() = ) = fun (isoSurface: #Trace) -> - Name |> DynObj.setValueOpt isoSurface "name" - Visible |> DynObj.setValueOptBy isoSurface "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt isoSurface "showlegend" - Legend |> DynObj.setValueOptBy isoSurface "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt isoSurface "legendrank" - LegendGroup |> DynObj.setValueOpt isoSurface "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt isoSurface "legendgrouptitle" - Opacity |> DynObj.setValueOpt isoSurface "opacity" - Ids |> DynObj.setValueOpt isoSurface "ids" - X |> DynObj.setValueOpt isoSurface "x" - Y |> DynObj.setValueOpt isoSurface "y" - Z |> DynObj.setValueOpt isoSurface "z" - Value |> DynObj.setValueOpt isoSurface "value" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt isoSurface "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt isoSurface "hovertext" - HoverInfo |> DynObj.setValueOptBy isoSurface "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt isoSurface "hovertemplate" - XHoverFormat |> DynObj.setValueOpt isoSurface "xhoverformat" - YHoverFormat |> DynObj.setValueOpt isoSurface "yhoverformat" - ZHoverFormat |> DynObj.setValueOpt isoSurface "zhoverformat" - ValueHoverFormat |> DynObj.setValueOpt isoSurface "valuehoverformat" - Meta |> DynObj.setValueOpt isoSurface "meta" - CustomData |> DynObj.setValueOpt isoSurface "customdata" - Scene |> DynObj.setValueOptBy isoSurface "scene" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setValueOptBy isoSurface "coloraxis" StyleParam.SubPlotId.convert - ColorBar |> DynObj.setValueOpt isoSurface "colorbar" - AutoColorScale |> DynObj.setValueOpt isoSurface "autocolorscale" - ColorScale |> DynObj.setValueOptBy isoSurface "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt isoSurface "showscale" - ReverseScale |> DynObj.setValueOpt isoSurface "reversescale" - CAuto |> DynObj.setValueOpt isoSurface "cauto" - CMin |> DynObj.setValueOpt isoSurface "cmin" - CMid |> DynObj.setValueOpt isoSurface "cmid" - CMax |> DynObj.setValueOpt isoSurface "cmax" - Caps |> DynObj.setValueOpt isoSurface "caps" - Contour |> DynObj.setValueOpt isoSurface "contour" - FlatShading |> DynObj.setValueOpt isoSurface "flatshading" - HoverLabel |> DynObj.setValueOpt isoSurface "hoverlabel" - IsoMax |> DynObj.setValueOpt isoSurface "isomax" - IsoMin |> DynObj.setValueOpt isoSurface "isomin" - Lighting |> DynObj.setValueOpt isoSurface "lighting" - LightPosition |> DynObj.setValueOpt isoSurface "lightposition" - OpacityScale |> DynObj.setValueOpt isoSurface "opacityscale" - Slices |> DynObj.setValueOpt isoSurface "slices" - SpaceFrame |> DynObj.setValueOpt isoSurface "spaceframe" - Surface |> DynObj.setValueOpt isoSurface "surface" - UIRevision |> DynObj.setValueOpt isoSurface "uirevision" + Name |> DynObj.setOptionalProperty isoSurface "name" + Visible |> DynObj.setOptionalPropertyBy isoSurface "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty isoSurface "showlegend" + Legend |> DynObj.setOptionalPropertyBy isoSurface "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty isoSurface "legendrank" + LegendGroup |> DynObj.setOptionalProperty isoSurface "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty isoSurface "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty isoSurface "opacity" + Ids |> DynObj.setOptionalProperty isoSurface "ids" + X |> DynObj.setOptionalProperty isoSurface "x" + Y |> DynObj.setOptionalProperty isoSurface "y" + Z |> DynObj.setOptionalProperty isoSurface "z" + Value |> DynObj.setOptionalProperty isoSurface "value" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty isoSurface "text" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty isoSurface "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy isoSurface "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty isoSurface "hovertemplate" + XHoverFormat |> DynObj.setOptionalProperty isoSurface "xhoverformat" + YHoverFormat |> DynObj.setOptionalProperty isoSurface "yhoverformat" + ZHoverFormat |> DynObj.setOptionalProperty isoSurface "zhoverformat" + ValueHoverFormat |> DynObj.setOptionalProperty isoSurface "valuehoverformat" + Meta |> DynObj.setOptionalProperty isoSurface "meta" + CustomData |> DynObj.setOptionalProperty isoSurface "customdata" + Scene |> DynObj.setOptionalPropertyBy isoSurface "scene" StyleParam.SubPlotId.convert + ColorAxis |> DynObj.setOptionalPropertyBy isoSurface "coloraxis" StyleParam.SubPlotId.convert + ColorBar |> DynObj.setOptionalProperty isoSurface "colorbar" + AutoColorScale |> DynObj.setOptionalProperty isoSurface "autocolorscale" + ColorScale |> DynObj.setOptionalPropertyBy isoSurface "colorscale" StyleParam.Colorscale.convert + ShowScale |> DynObj.setOptionalProperty isoSurface "showscale" + ReverseScale |> DynObj.setOptionalProperty isoSurface "reversescale" + CAuto |> DynObj.setOptionalProperty isoSurface "cauto" + CMin |> DynObj.setOptionalProperty isoSurface "cmin" + CMid |> DynObj.setOptionalProperty isoSurface "cmid" + CMax |> DynObj.setOptionalProperty isoSurface "cmax" + Caps |> DynObj.setOptionalProperty isoSurface "caps" + Contour |> DynObj.setOptionalProperty isoSurface "contour" + FlatShading |> DynObj.setOptionalProperty isoSurface "flatshading" + HoverLabel |> DynObj.setOptionalProperty isoSurface "hoverlabel" + IsoMax |> DynObj.setOptionalProperty isoSurface "isomax" + IsoMin |> DynObj.setOptionalProperty isoSurface "isomin" + Lighting |> DynObj.setOptionalProperty isoSurface "lighting" + LightPosition |> DynObj.setOptionalProperty isoSurface "lightposition" + OpacityScale |> DynObj.setOptionalProperty isoSurface "opacityscale" + Slices |> DynObj.setOptionalProperty isoSurface "slices" + SpaceFrame |> DynObj.setOptionalProperty isoSurface "spaceframe" + Surface |> DynObj.setOptionalProperty isoSurface "surface" + UIRevision |> DynObj.setOptionalProperty isoSurface "uirevision" isoSurface diff --git a/src/Plotly.NET/Traces/TraceCarpet.fs b/src/Plotly.NET/Traces/TraceCarpet.fs index ff12dc962..495fec105 100644 --- a/src/Plotly.NET/Traces/TraceCarpet.fs +++ b/src/Plotly.NET/Traces/TraceCarpet.fs @@ -31,15 +31,15 @@ type TraceCarpetStyle() = ) = (fun (trace: TraceCarpet) -> - X |> DynObj.setValueOptBy trace "xaxis" StyleParam.LinearAxisId.toString - Y |> DynObj.setValueOptBy trace "yaxis" StyleParam.LinearAxisId.toString + X |> DynObj.setOptionalPropertyBy trace "xaxis" StyleParam.LinearAxisId.toString + Y |> DynObj.setOptionalPropertyBy trace "yaxis" StyleParam.LinearAxisId.toString trace) static member SetCarpet([] ?CarpetId: StyleParam.SubPlotId) = (fun (trace: TraceCarpet) -> - CarpetId |> DynObj.setValueOptBy trace "carpet" StyleParam.SubPlotId.toString + CarpetId |> DynObj.setOptionalPropertyBy trace "carpet" StyleParam.SubPlotId.toString trace) @@ -112,34 +112,34 @@ type TraceCarpetStyle() = ) = fun (trace: #Trace) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "opacity" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Ids |> DynObj.setValueOpt trace "ids" + Name |> DynObj.setOptionalProperty trace "name" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty trace "showlegend" + Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroup |> DynObj.setOptionalProperty trace "opacity" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty trace "opacity" + Ids |> DynObj.setOptionalProperty trace "ids" (X, MultiX) |> DynObj.setSingleOrAnyOpt trace "x" (Y, MultiY) |> DynObj.setSingleOrAnyOpt trace "y" - A |> DynObj.setValueOpt trace "a" - A0 |> DynObj.setValueOpt trace "a0" - DA |> DynObj.setValueOpt trace "da" - B |> DynObj.setValueOpt trace "b" - B0 |> DynObj.setValueOpt trace "b0" - DB |> DynObj.setValueOpt trace "db" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - AAxis |> DynObj.setValueOpt trace "aaxis" - BAxis |> DynObj.setValueOpt trace "baxis" - XAxis |> DynObj.setValueOptBy trace "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy trace "yaxis" StyleParam.LinearAxisId.convert - Color |> DynObj.setValueOpt trace "color" - Carpet |> DynObj.setValueOptBy trace "carpet" StyleParam.SubPlotId.convert - CheaterSlope |> DynObj.setValueOpt trace "cheaterslope" - Font |> DynObj.setValueOpt trace "font" - UIRevision |> DynObj.setValueOpt trace "uirevision" + A |> DynObj.setOptionalProperty trace "a" + A0 |> DynObj.setOptionalProperty trace "a0" + DA |> DynObj.setOptionalProperty trace "da" + B |> DynObj.setOptionalProperty trace "b" + B0 |> DynObj.setOptionalProperty trace "b0" + DB |> DynObj.setOptionalProperty trace "db" + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + AAxis |> DynObj.setOptionalProperty trace "aaxis" + BAxis |> DynObj.setOptionalProperty trace "baxis" + XAxis |> DynObj.setOptionalPropertyBy trace "xaxis" StyleParam.LinearAxisId.convert + YAxis |> DynObj.setOptionalPropertyBy trace "yaxis" StyleParam.LinearAxisId.convert + Color |> DynObj.setOptionalProperty trace "color" + Carpet |> DynObj.setOptionalPropertyBy trace "carpet" StyleParam.SubPlotId.convert + CheaterSlope |> DynObj.setOptionalProperty trace "cheaterslope" + Font |> DynObj.setOptionalProperty trace "font" + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace @@ -231,44 +231,44 @@ type TraceCarpetStyle() = ) = fun (trace: #Trace) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Mode |> DynObj.setValueOptBy trace "mode" StyleParam.Mode.convert - Ids |> DynObj.setValueOpt trace "ids" - A |> DynObj.setValueOpt trace "a" - B |> DynObj.setValueOpt trace "b" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" + Name |> DynObj.setOptionalProperty trace "name" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty trace "showlegend" + Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty trace "opacity" + Mode |> DynObj.setOptionalPropertyBy trace "mode" StyleParam.Mode.convert + Ids |> DynObj.setOptionalProperty trace "ids" + A |> DynObj.setOptionalProperty trace "a" + B |> DynObj.setOptionalProperty trace "b" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" (TextPosition, MultiTextPosition) |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - XAxis |> DynObj.setValueOptBy trace "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy trace "yaxis" StyleParam.LinearAxisId.convert - Marker |> DynObj.setValueOpt trace "marker" - Line |> DynObj.setValueOpt trace "line" - TextFont |> DynObj.setValueOpt trace "textfont" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Selected |> DynObj.setValueOpt trace "selected" - Unselected |> DynObj.setValueOpt trace "unselected" - Carpet |> DynObj.setValueOptBy trace "carpet" StyleParam.SubPlotId.convert - ConnectGaps |> DynObj.setValueOpt trace "connectgaps" - Fill |> DynObj.setValueOptBy trace "fill" StyleParam.Fill.convert - FillColor |> DynObj.setValueOpt trace "fillcolor" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - HoverOn |> DynObj.setValueOptBy trace "hoveron" StyleParam.HoverOn.convert - UIRevision |> DynObj.setValueOpt trace "uirevision" + (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + XAxis |> DynObj.setOptionalPropertyBy trace "xaxis" StyleParam.LinearAxisId.convert + YAxis |> DynObj.setOptionalPropertyBy trace "yaxis" StyleParam.LinearAxisId.convert + Marker |> DynObj.setOptionalProperty trace "marker" + Line |> DynObj.setOptionalProperty trace "line" + TextFont |> DynObj.setOptionalProperty trace "textfont" + SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" + Selected |> DynObj.setOptionalProperty trace "selected" + Unselected |> DynObj.setOptionalProperty trace "unselected" + Carpet |> DynObj.setOptionalPropertyBy trace "carpet" StyleParam.SubPlotId.convert + ConnectGaps |> DynObj.setOptionalProperty trace "connectgaps" + Fill |> DynObj.setOptionalPropertyBy trace "fill" StyleParam.Fill.convert + FillColor |> DynObj.setOptionalProperty trace "fillcolor" + HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" + HoverOn |> DynObj.setOptionalPropertyBy trace "hoveron" StyleParam.HoverOn.convert + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace @@ -368,47 +368,47 @@ type TraceCarpetStyle() = ) = fun (trace: #Trace) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Ids |> DynObj.setValueOpt trace "ids" - Z |> DynObj.setValueOpt trace "z" - A |> DynObj.setValueOpt trace "a" - AType |> DynObj.setValueOptBy trace "atype" StyleParam.CoordinateType.convert - A0 |> DynObj.setValueOpt trace "a0" - DA |> DynObj.setValueOpt trace "da" - B |> DynObj.setValueOpt trace "b" - BType |> DynObj.setValueOptBy trace "btype" StyleParam.CoordinateType.convert - B0 |> DynObj.setValueOpt trace "b0" - DB |> DynObj.setValueOpt trace "db" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - XAxis |> DynObj.setValueOptBy trace "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setValueOptBy trace "yaxis" StyleParam.LinearAxisId.convert - ColorAxis |> DynObj.setValueOptBy trace "coloraxis" StyleParam.SubPlotId.convert - Line |> DynObj.setValueOpt trace "line" - ColorBar |> DynObj.setValueOpt trace "colorbar" - AutoColorScale |> DynObj.setValueOpt trace "autocolorscale" - ColorScale |> DynObj.setValueOptBy trace "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt trace "showscale" - ReverseScale |> DynObj.setValueOpt trace "reversescale" - ZAuto |> DynObj.setValueOpt trace "zauto" - ZMax |> DynObj.setValueOpt trace "zmax" - ZMid |> DynObj.setValueOpt trace "zmid" - ZMin |> DynObj.setValueOpt trace "zmin" - AutoContour |> DynObj.setValueOpt trace "autocontour" - Carpet |> DynObj.setValueOptBy trace "carpet" StyleParam.SubPlotId.convert - Contours |> DynObj.setValueOpt trace "contours" - FillColor |> DynObj.setValueOpt trace "fillcolor" - NContours |> DynObj.setValueOpt trace "ncontours" - Transpose |> DynObj.setValueOpt trace "transpose" - UIRevision |> DynObj.setValueOpt trace "uirevision" + Name |> DynObj.setOptionalProperty trace "name" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty trace "showlegend" + Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty trace "opacity" + Ids |> DynObj.setOptionalProperty trace "ids" + Z |> DynObj.setOptionalProperty trace "z" + A |> DynObj.setOptionalProperty trace "a" + AType |> DynObj.setOptionalPropertyBy trace "atype" StyleParam.CoordinateType.convert + A0 |> DynObj.setOptionalProperty trace "a0" + DA |> DynObj.setOptionalProperty trace "da" + B |> DynObj.setOptionalProperty trace "b" + BType |> DynObj.setOptionalPropertyBy trace "btype" StyleParam.CoordinateType.convert + B0 |> DynObj.setOptionalProperty trace "b0" + DB |> DynObj.setOptionalProperty trace "db" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + XAxis |> DynObj.setOptionalPropertyBy trace "xaxis" StyleParam.LinearAxisId.convert + YAxis |> DynObj.setOptionalPropertyBy trace "yaxis" StyleParam.LinearAxisId.convert + ColorAxis |> DynObj.setOptionalPropertyBy trace "coloraxis" StyleParam.SubPlotId.convert + Line |> DynObj.setOptionalProperty trace "line" + ColorBar |> DynObj.setOptionalProperty trace "colorbar" + AutoColorScale |> DynObj.setOptionalProperty trace "autocolorscale" + ColorScale |> DynObj.setOptionalPropertyBy trace "colorscale" StyleParam.Colorscale.convert + ShowScale |> DynObj.setOptionalProperty trace "showscale" + ReverseScale |> DynObj.setOptionalProperty trace "reversescale" + ZAuto |> DynObj.setOptionalProperty trace "zauto" + ZMax |> DynObj.setOptionalProperty trace "zmax" + ZMid |> DynObj.setOptionalProperty trace "zmid" + ZMin |> DynObj.setOptionalProperty trace "zmin" + AutoContour |> DynObj.setOptionalProperty trace "autocontour" + Carpet |> DynObj.setOptionalPropertyBy trace "carpet" StyleParam.SubPlotId.convert + Contours |> DynObj.setOptionalProperty trace "contours" + FillColor |> DynObj.setOptionalProperty trace "fillcolor" + NContours |> DynObj.setOptionalProperty trace "ncontours" + Transpose |> DynObj.setOptionalProperty trace "transpose" + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace diff --git a/src/Plotly.NET/Traces/TraceDomain.fs b/src/Plotly.NET/Traces/TraceDomain.fs index 2c69cb46f..b8516342c 100644 --- a/src/Plotly.NET/Traces/TraceDomain.fs +++ b/src/Plotly.NET/Traces/TraceDomain.fs @@ -45,7 +45,7 @@ type TraceDomainStyle() = static member SetDomain([] ?Domain: Domain) = (fun (trace: TraceDomain) -> - Domain |> DynObj.setValueOpt trace "domain" + Domain |> DynObj.setOptionalProperty trace "domain" trace) @@ -145,50 +145,50 @@ type TraceDomainStyle() = ) = (fun (trace: ('T :> Trace)) -> - Name |> DynObj.setValueOpt trace "name" - Title |> DynObj.setValueOpt trace "title" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Ids |> DynObj.setValueOpt trace "ids" - Values |> DynObj.setValueOpt trace "values" - Labels |> DynObj.setValueOpt trace "labels" - DLabel |> DynObj.setValueOpt trace "dlabel" - Label0 |> DynObj.setValueOpt trace "label0" - (Pull, MultiPull) |> DynObj.setSingleOrMultiOpt trace "pull" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" + Name |> DynObj.setOptionalProperty trace "name" + Title |> DynObj.setOptionalProperty trace "title" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty trace "showlegend" + Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty trace "opacity" + Ids |> DynObj.setOptionalProperty trace "ids" + Values |> DynObj.setOptionalProperty trace "values" + Labels |> DynObj.setOptionalProperty trace "labels" + DLabel |> DynObj.setOptionalProperty trace "dlabel" + Label0 |> DynObj.setOptionalProperty trace "label0" + (Pull, MultiPull) |> DynObj.setOptionalSingleOrMultiProperty trace "pull" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" (TextPosition, MultiTextPosition) |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Domain |> DynObj.setValueOpt trace "domain" - AutoMargin |> DynObj.setValueOpt trace "automargin" - Marker |> DynObj.setValueOpt trace "marker" - TextFont |> DynObj.setValueOpt trace "textfont" - TextInfo |> DynObj.setValueOptBy trace "textinfo" StyleParam.TextInfo.convert - Direction |> DynObj.setValueOptBy trace "direction" StyleParam.Direction.convert - Hole |> DynObj.setValueOpt trace "hole" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - InsideTextFont |> DynObj.setValueOpt trace "insidetextfont" + (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + Domain |> DynObj.setOptionalProperty trace "domain" + AutoMargin |> DynObj.setOptionalProperty trace "automargin" + Marker |> DynObj.setOptionalProperty trace "marker" + TextFont |> DynObj.setOptionalProperty trace "textfont" + TextInfo |> DynObj.setOptionalPropertyBy trace "textinfo" StyleParam.TextInfo.convert + Direction |> DynObj.setOptionalPropertyBy trace "direction" StyleParam.Direction.convert + Hole |> DynObj.setOptionalProperty trace "hole" + HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" + InsideTextFont |> DynObj.setOptionalProperty trace "insidetextfont" InsideTextOrientation - |> DynObj.setValueOptBy trace "insidetextorientation" StyleParam.InsideTextOrientation.convert + |> DynObj.setOptionalPropertyBy trace "insidetextorientation" StyleParam.InsideTextOrientation.convert - OutsideTextFont |> DynObj.setValueOpt trace "outsidetextfont" - Rotation |> DynObj.setValueOpt trace "rotation" - ScaleGroup |> DynObj.setValueOpt trace "scalegroup" - Sort |> DynObj.setValueOpt trace "sort" - UIRevision |> DynObj.setValueOpt trace "uirevision" + OutsideTextFont |> DynObj.setOptionalProperty trace "outsidetextfont" + Rotation |> DynObj.setOptionalProperty trace "rotation" + ScaleGroup |> DynObj.setOptionalProperty trace "scalegroup" + Sort |> DynObj.setOptionalProperty trace "sort" + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace) @@ -274,41 +274,41 @@ type TraceDomainStyle() = ) = (fun (trace: ('T :> Trace)) -> - Name |> DynObj.setValueOpt trace "name" - Title |> DynObj.setValueOpt trace "title" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Ids |> DynObj.setValueOpt trace "ids" - Values |> DynObj.setValueOpt trace "values" - Labels |> DynObj.setValueOpt trace "labels" - DLabel |> DynObj.setValueOpt trace "dlabel" - Label0 |> DynObj.setValueOpt trace "label0" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" + Name |> DynObj.setOptionalProperty trace "name" + Title |> DynObj.setOptionalProperty trace "title" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty trace "showlegend" + Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty trace "opacity" + Ids |> DynObj.setOptionalProperty trace "ids" + Values |> DynObj.setOptionalProperty trace "values" + Labels |> DynObj.setOptionalProperty trace "labels" + DLabel |> DynObj.setOptionalProperty trace "dlabel" + Label0 |> DynObj.setOptionalProperty trace "label0" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" (TextPosition, MultiTextPosition) |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Domain |> DynObj.setValueOpt trace "domain" - Marker |> DynObj.setValueOpt trace "marker" - TextFont |> DynObj.setValueOpt trace "textfont" - TextInfo |> DynObj.setValueOptBy trace "textinfo" StyleParam.TextInfo.convert - AspectRatio |> DynObj.setValueOpt trace "aspectratio" - BaseRatio |> DynObj.setValueOpt trace "baseratio" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - InsideTextFont |> DynObj.setValueOpt trace "insidetextfont" - ScaleGroup |> DynObj.setValueOpt trace "scalegroup" - UIRevision |> DynObj.setValueOpt trace "uirevision" + (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + Domain |> DynObj.setOptionalProperty trace "domain" + Marker |> DynObj.setOptionalProperty trace "marker" + TextFont |> DynObj.setOptionalProperty trace "textfont" + TextInfo |> DynObj.setOptionalPropertyBy trace "textinfo" StyleParam.TextInfo.convert + AspectRatio |> DynObj.setOptionalProperty trace "aspectratio" + BaseRatio |> DynObj.setOptionalProperty trace "baseratio" + HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" + InsideTextFont |> DynObj.setOptionalProperty trace "insidetextfont" + ScaleGroup |> DynObj.setOptionalProperty trace "scalegroup" + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace) @@ -402,46 +402,46 @@ type TraceDomainStyle() = ) = (fun (trace: ('T :> Trace)) -> - Name |> DynObj.setValueOpt trace "name" - Title |> DynObj.setValueOpt trace "title" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Ids |> DynObj.setValueOpt trace "ids" - Parents |> DynObj.setValueOpt trace "parents" - Values |> DynObj.setValueOpt trace "values" - Labels |> DynObj.setValueOpt trace "labels" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Domain |> DynObj.setValueOpt trace "domain" - Marker |> DynObj.setValueOpt trace "marker" - TextFont |> DynObj.setValueOpt trace "textfont" - TextInfo |> DynObj.setValueOptBy trace "textinfo" StyleParam.TextInfo.convert - BranchValues |> DynObj.setValueOptBy trace "branchvalues" StyleParam.BranchValues.convert - Count |> DynObj.setValueOpt trace "count" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - InsideTextFont |> DynObj.setValueOpt trace "insidetextfont" + Name |> DynObj.setOptionalProperty trace "name" + Title |> DynObj.setOptionalProperty trace "title" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty trace "showlegend" + Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty trace "opacity" + Ids |> DynObj.setOptionalProperty trace "ids" + Parents |> DynObj.setOptionalProperty trace "parents" + Values |> DynObj.setOptionalProperty trace "values" + Labels |> DynObj.setOptionalProperty trace "labels" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" + (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + Domain |> DynObj.setOptionalProperty trace "domain" + Marker |> DynObj.setOptionalProperty trace "marker" + TextFont |> DynObj.setOptionalProperty trace "textfont" + TextInfo |> DynObj.setOptionalPropertyBy trace "textinfo" StyleParam.TextInfo.convert + BranchValues |> DynObj.setOptionalPropertyBy trace "branchvalues" StyleParam.BranchValues.convert + Count |> DynObj.setOptionalProperty trace "count" + HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" + InsideTextFont |> DynObj.setOptionalProperty trace "insidetextfont" InsideTextOrientation - |> DynObj.setValueOptBy trace "insidetextorientation" StyleParam.InsideTextOrientation.convert + |> DynObj.setOptionalPropertyBy trace "insidetextorientation" StyleParam.InsideTextOrientation.convert - OutsideTextFont |> DynObj.setValueOpt trace "outsidetextfont" - Root |> DynObj.setValueOpt trace "root" - Leaf |> DynObj.setValueOpt trace "leaf" - Level |> DynObj.setValueOpt trace "level" - MaxDepth |> DynObj.setValueOpt trace "maxdepth" - Rotation |> DynObj.setValueOpt trace "rotation" - Sort |> DynObj.setValueOpt trace "sort" - UIRevision |> DynObj.setValueOpt trace "uirevision" + OutsideTextFont |> DynObj.setOptionalProperty trace "outsidetextfont" + Root |> DynObj.setOptionalProperty trace "root" + Leaf |> DynObj.setOptionalProperty trace "leaf" + Level |> DynObj.setOptionalProperty trace "level" + MaxDepth |> DynObj.setOptionalProperty trace "maxdepth" + Rotation |> DynObj.setOptionalProperty trace "rotation" + Sort |> DynObj.setOptionalProperty trace "sort" + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace) @@ -535,45 +535,45 @@ type TraceDomainStyle() = ) = (fun (trace: ('T :> Trace)) -> - Name |> DynObj.setValueOpt trace "name" - Title |> DynObj.setValueOpt trace "title" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Ids |> DynObj.setValueOpt trace "ids" - Parents |> DynObj.setValueOpt trace "parents" - Values |> DynObj.setValueOpt trace "values" - Labels |> DynObj.setValueOpt trace "labels" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" + Name |> DynObj.setOptionalProperty trace "name" + Title |> DynObj.setOptionalProperty trace "title" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty trace "showlegend" + Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty trace "opacity" + Ids |> DynObj.setOptionalProperty trace "ids" + Parents |> DynObj.setOptionalProperty trace "parents" + Values |> DynObj.setOptionalProperty trace "values" + Labels |> DynObj.setOptionalProperty trace "labels" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" (TextPosition, MultiTextPosition) |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Domain |> DynObj.setValueOpt trace "domain" - Marker |> DynObj.setValueOpt trace "marker" - TextFont |> DynObj.setValueOpt trace "textfont" - TextInfo |> DynObj.setValueOptBy trace "textinfo" StyleParam.TextInfo.convert - BranchValues |> DynObj.setValueOptBy trace "branchvalues" StyleParam.BranchValues.convert - Count |> DynObj.setValueOpt trace "count" - Tiling |> DynObj.setValueOpt trace "tiling" - PathBar |> DynObj.setValueOpt trace "pathbar" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - InsideTextFont |> DynObj.setValueOpt trace "insidetextfont" - OutsideTextFont |> DynObj.setValueOpt trace "outsidetextfont" - Root |> DynObj.setValueOpt trace "root" - Level |> DynObj.setValueOpt trace "level" - MaxDepth |> DynObj.setValueOpt trace "maxdepth" - UIRevision |> DynObj.setValueOpt trace "uirevision" + (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + Domain |> DynObj.setOptionalProperty trace "domain" + Marker |> DynObj.setOptionalProperty trace "marker" + TextFont |> DynObj.setOptionalProperty trace "textfont" + TextInfo |> DynObj.setOptionalPropertyBy trace "textinfo" StyleParam.TextInfo.convert + BranchValues |> DynObj.setOptionalPropertyBy trace "branchvalues" StyleParam.BranchValues.convert + Count |> DynObj.setOptionalProperty trace "count" + Tiling |> DynObj.setOptionalProperty trace "tiling" + PathBar |> DynObj.setOptionalProperty trace "pathbar" + HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" + InsideTextFont |> DynObj.setOptionalProperty trace "insidetextfont" + OutsideTextFont |> DynObj.setOptionalProperty trace "outsidetextfont" + Root |> DynObj.setOptionalProperty trace "root" + Level |> DynObj.setOptionalProperty trace "level" + MaxDepth |> DynObj.setOptionalProperty trace "maxdepth" + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace) @@ -623,25 +623,25 @@ type TraceDomainStyle() = ) = (fun (trace: ('T :> Trace)) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Ids |> DynObj.setValueOpt trace "ids" - Dimensions |> DynObj.setValueOpt trace "dimensions" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Domain |> DynObj.setValueOpt trace "domain" - Line |> DynObj.setValueOpt trace "line" - Unselected |> DynObj.setValueOpt trace "unselected" - LabelAngle |> DynObj.setValueOpt trace "labelangle" - LabelFont |> DynObj.setValueOpt trace "labelfont" - LabelSide |> DynObj.setValueOpt trace "labelside" - RangeFont |> DynObj.setValueOpt trace "rangefont" - TickFont |> DynObj.setValueOpt trace "tickfont " - UIRevision |> DynObj.setValueOpt trace "uirevision" + Name |> DynObj.setOptionalProperty trace "name" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Ids |> DynObj.setOptionalProperty trace "ids" + Dimensions |> DynObj.setOptionalProperty trace "dimensions" + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + Domain |> DynObj.setOptionalProperty trace "domain" + Line |> DynObj.setOptionalProperty trace "line" + Unselected |> DynObj.setOptionalProperty trace "unselected" + LabelAngle |> DynObj.setOptionalProperty trace "labelangle" + LabelFont |> DynObj.setOptionalProperty trace "labelfont" + LabelSide |> DynObj.setOptionalProperty trace "labelside" + RangeFont |> DynObj.setOptionalProperty trace "rangefont" + TickFont |> DynObj.setOptionalProperty trace "tickfont " + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace) @@ -693,25 +693,25 @@ type TraceDomainStyle() = ) = (fun (trace: ('T :> Trace)) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Counts |> DynObj.setValueOpt trace "counts" - Dimensions |> DynObj.setValueOpt trace "dimensions" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - Domain |> DynObj.setValueOpt trace "domain" - Line |> DynObj.setValueOpt trace "line" - Arrangement |> DynObj.setValueOptBy trace "arrangement" StyleParam.CategoryArrangement.convert - BundleColors |> DynObj.setValueOpt trace "bundlecolors" - SortPaths |> DynObj.setValueOptBy trace "sortpaths" StyleParam.SortAlgorithm.convert - Hoveron |> DynObj.setValueOptBy trace "hoveron" StyleParam.HoverOn.convert - LabelFont |> DynObj.setValueOpt trace "labelfont" - TickFont |> DynObj.setValueOpt trace "tickfont " - UIRevision |> DynObj.setValueOpt trace "uirevision" + Name |> DynObj.setOptionalProperty trace "name" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert + LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Counts |> DynObj.setOptionalProperty trace "counts" + Dimensions |> DynObj.setOptionalProperty trace "dimensions" + HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" + Meta |> DynObj.setOptionalProperty trace "meta" + Domain |> DynObj.setOptionalProperty trace "domain" + Line |> DynObj.setOptionalProperty trace "line" + Arrangement |> DynObj.setOptionalPropertyBy trace "arrangement" StyleParam.CategoryArrangement.convert + BundleColors |> DynObj.setOptionalProperty trace "bundlecolors" + SortPaths |> DynObj.setOptionalPropertyBy trace "sortpaths" StyleParam.SortAlgorithm.convert + Hoveron |> DynObj.setOptionalPropertyBy trace "hoveron" StyleParam.HoverOn.convert + LabelFont |> DynObj.setOptionalProperty trace "labelfont" + TickFont |> DynObj.setOptionalProperty trace "tickfont " + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace) @@ -765,27 +765,27 @@ type TraceDomainStyle() = ) = (fun (trace: ('T :> Trace)) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Ids |> DynObj.setValueOpt trace "ids" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Domain |> DynObj.setValueOpt trace "domain" - Orientation |> DynObj.setValueOptBy trace "orientation" StyleParam.Orientation.convert - Node |> DynObj.setValueOpt trace "node" - Link |> DynObj.setValueOpt trace "link" - TextFont |> DynObj.setValueOpt trace "textfont" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Arrangement |> DynObj.setValueOptBy trace "arrangement" StyleParam.CategoryArrangement.convert - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - ValueFormat |> DynObj.setValueOpt trace "valueformat" - ValueSuffix |> DynObj.setValueOpt trace "valuesuffix" - UIRevision |> DynObj.setValueOpt trace "uirevision" + Name |> DynObj.setOptionalProperty trace "name" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Ids |> DynObj.setOptionalProperty trace "ids" + HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + Domain |> DynObj.setOptionalProperty trace "domain" + Orientation |> DynObj.setOptionalPropertyBy trace "orientation" StyleParam.Orientation.convert + Node |> DynObj.setOptionalProperty trace "node" + Link |> DynObj.setOptionalProperty trace "link" + TextFont |> DynObj.setOptionalProperty trace "textfont" + SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" + Arrangement |> DynObj.setOptionalPropertyBy trace "arrangement" StyleParam.CategoryArrangement.convert + HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" + ValueFormat |> DynObj.setOptionalProperty trace "valueformat" + ValueSuffix |> DynObj.setOptionalProperty trace "valuesuffix" + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace) @@ -831,22 +831,22 @@ type TraceDomainStyle() = ) = (fun (trace: ('T :> Trace)) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Ids |> DynObj.setValueOpt trace "ids" - ColumnOrder |> DynObj.setValueOpt trace "columnorder" - (ColumnWidth, MultiColumnWidth) |> DynObj.setSingleOrMultiOpt trace "columnwidth" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Domain |> DynObj.setValueOpt trace "domain" - Cells |> DynObj.setValueOpt trace "cells" - Header |> DynObj.setValueOpt trace "header" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - UIRevision |> DynObj.setValueOpt trace "uirevision" + Name |> DynObj.setOptionalProperty trace "name" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Ids |> DynObj.setOptionalProperty trace "ids" + ColumnOrder |> DynObj.setOptionalProperty trace "columnorder" + (ColumnWidth, MultiColumnWidth) |> DynObj.setOptionalSingleOrMultiProperty trace "columnwidth" + HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + Domain |> DynObj.setOptionalProperty trace "domain" + Cells |> DynObj.setOptionalProperty trace "cells" + Header |> DynObj.setOptionalProperty trace "header" + HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace) @@ -892,23 +892,23 @@ type TraceDomainStyle() = ) = fun (trace: #Trace) -> - Name |> DynObj.setValueOpt trace "name" - Title |> DynObj.setValueOpt trace "title" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Mode |> DynObj.setValueOptBy trace "mode" StyleParam.IndicatorMode.convert - Ids |> DynObj.setValueOpt trace "ids" - Value |> DynObj.setValueOpt trace "value" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Domain |> DynObj.setValueOpt trace "domain" - Align |> DynObj.setValueOptBy trace "align" StyleParam.IndicatorAlignment.convert - Delta |> DynObj.setValueOpt trace "delta" - Number |> DynObj.setValueOpt trace "number" - Gauge |> DynObj.setValueOpt trace "gauge" - UIRevision |> DynObj.setValueOpt trace "uirevision" + Name |> DynObj.setOptionalProperty trace "name" + Title |> DynObj.setOptionalProperty trace "title" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Mode |> DynObj.setOptionalPropertyBy trace "mode" StyleParam.IndicatorMode.convert + Ids |> DynObj.setOptionalProperty trace "ids" + Value |> DynObj.setOptionalProperty trace "value" + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + Domain |> DynObj.setOptionalProperty trace "domain" + Align |> DynObj.setOptionalPropertyBy trace "align" StyleParam.IndicatorAlignment.convert + Delta |> DynObj.setOptionalProperty trace "delta" + Number |> DynObj.setOptionalProperty trace "number" + Gauge |> DynObj.setOptionalProperty trace "gauge" + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace @@ -1000,43 +1000,43 @@ type TraceDomainStyle() = ) = fun (trace: #Trace) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Ids |> DynObj.setValueOpt trace "ids" - Parents |> DynObj.setValueOpt trace "parents" - Values |> DynObj.setValueOpt trace "values" - Labels |> DynObj.setValueOpt trace "labels" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" + Name |> DynObj.setOptionalProperty trace "name" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty trace "opacity" + Ids |> DynObj.setOptionalProperty trace "ids" + Parents |> DynObj.setOptionalProperty trace "parents" + Values |> DynObj.setOptionalProperty trace "values" + Labels |> DynObj.setOptionalProperty trace "labels" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" (TextPosition, MultiTextPosition) |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Domain |> DynObj.setValueOpt trace "domain" - Marker |> DynObj.setValueOpt trace "marker" - TextFont |> DynObj.setValueOpt trace "textfont" - TextInfo |> DynObj.setValueOptBy trace "textinfo" StyleParam.TextInfo.convert - BranchValues |> DynObj.setValueOptBy trace "branchvalues" StyleParam.BranchValues.convert - Count |> DynObj.setValueOptBy trace "count" StyleParam.IcicleCount.convert - Tiling |> DynObj.setValueOpt trace "tiling" - PathBar |> DynObj.setValueOpt trace "pathbar" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - InsideTextFont |> DynObj.setValueOpt trace "insidetextfont" - OutsideTextFont |> DynObj.setValueOpt trace "outsidetextfont" - Root |> DynObj.setValueOpt trace "root" - Leaf |> DynObj.setValueOpt trace "leaf" - Level |> DynObj.setValueOpt trace "level" - MaxDepth |> DynObj.setValueOpt trace "maxdepth" - Sort |> DynObj.setValueOpt trace "sort" - UIRevision |> DynObj.setValueOpt trace "uirevision" + (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + Domain |> DynObj.setOptionalProperty trace "domain" + Marker |> DynObj.setOptionalProperty trace "marker" + TextFont |> DynObj.setOptionalProperty trace "textfont" + TextInfo |> DynObj.setOptionalPropertyBy trace "textinfo" StyleParam.TextInfo.convert + BranchValues |> DynObj.setOptionalPropertyBy trace "branchvalues" StyleParam.BranchValues.convert + Count |> DynObj.setOptionalPropertyBy trace "count" StyleParam.IcicleCount.convert + Tiling |> DynObj.setOptionalProperty trace "tiling" + PathBar |> DynObj.setOptionalProperty trace "pathbar" + HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" + InsideTextFont |> DynObj.setOptionalProperty trace "insidetextfont" + OutsideTextFont |> DynObj.setOptionalProperty trace "outsidetextfont" + Root |> DynObj.setOptionalProperty trace "root" + Leaf |> DynObj.setOptionalProperty trace "leaf" + Level |> DynObj.setOptionalProperty trace "level" + MaxDepth |> DynObj.setOptionalProperty trace "maxdepth" + Sort |> DynObj.setOptionalProperty trace "sort" + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace diff --git a/src/Plotly.NET/Traces/TraceGeo.fs b/src/Plotly.NET/Traces/TraceGeo.fs index b25d308d0..3eee83f33 100644 --- a/src/Plotly.NET/Traces/TraceGeo.fs +++ b/src/Plotly.NET/Traces/TraceGeo.fs @@ -41,7 +41,7 @@ type TraceGeoStyle() = static member SetGeo([] ?GeoId: StyleParam.SubPlotId) = (fun (trace: TraceGeo) -> - GeoId |> DynObj.setValueOptBy trace "geo" StyleParam.SubPlotId.toString + GeoId |> DynObj.setOptionalPropertyBy trace "geo" StyleParam.SubPlotId.toString trace) @@ -131,42 +131,42 @@ type TraceGeoStyle() = ) = (fun (trace: #Trace) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Ids |> DynObj.setValueOpt trace "ids" - Z |> DynObj.setValueOpt trace "z" - GeoJson |> DynObj.setValueOpt trace "geojson" - FeatureIdKey |> DynObj.setValueOpt trace "featureidkey" - Locations |> DynObj.setValueOpt trace "locations" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Geo |> DynObj.setValueOptBy trace "geo" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setValueOptBy trace "coloraxis" StyleParam.SubPlotId.convert - Marker |> DynObj.setValueOpt trace "marker" - ColorBar |> DynObj.setValueOpt trace "colorbar" - AutoColorScale |> DynObj.setValueOpt trace "autocolorscale" - ColorScale |> DynObj.setValueOptBy trace "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt trace "showscale" - ReverseScale |> DynObj.setValueOpt trace "reversescale" - ZAuto |> DynObj.setValueOpt trace "zauto" - Zmin |> DynObj.setValueOpt trace "zmin" - Zmid |> DynObj.setValueOpt trace "zmid" - Zmax |> DynObj.setValueOpt trace "zmax" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Selected |> DynObj.setValueOpt trace "selected" - Unselected |> DynObj.setValueOpt trace "unselected" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - LocationMode |> DynObj.setValueOptBy trace "locationmode" StyleParam.LocationFormat.convert - UIRevision |> DynObj.setValueOpt trace "uirevision" + Name |> DynObj.setOptionalProperty trace "name" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty trace "showlegend" + Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Ids |> DynObj.setOptionalProperty trace "ids" + Z |> DynObj.setOptionalProperty trace "z" + GeoJson |> DynObj.setOptionalProperty trace "geojson" + FeatureIdKey |> DynObj.setOptionalProperty trace "featureidkey" + Locations |> DynObj.setOptionalProperty trace "locations" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + Geo |> DynObj.setOptionalPropertyBy trace "geo" StyleParam.SubPlotId.convert + ColorAxis |> DynObj.setOptionalPropertyBy trace "coloraxis" StyleParam.SubPlotId.convert + Marker |> DynObj.setOptionalProperty trace "marker" + ColorBar |> DynObj.setOptionalProperty trace "colorbar" + AutoColorScale |> DynObj.setOptionalProperty trace "autocolorscale" + ColorScale |> DynObj.setOptionalPropertyBy trace "colorscale" StyleParam.Colorscale.convert + ShowScale |> DynObj.setOptionalProperty trace "showscale" + ReverseScale |> DynObj.setOptionalProperty trace "reversescale" + ZAuto |> DynObj.setOptionalProperty trace "zauto" + Zmin |> DynObj.setOptionalProperty trace "zmin" + Zmid |> DynObj.setOptionalProperty trace "zmid" + Zmax |> DynObj.setOptionalProperty trace "zmax" + SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" + Selected |> DynObj.setOptionalProperty trace "selected" + Unselected |> DynObj.setOptionalProperty trace "unselected" + HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" + LocationMode |> DynObj.setOptionalPropertyBy trace "locationmode" StyleParam.LocationFormat.convert + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace) @@ -260,45 +260,45 @@ type TraceGeoStyle() = ) = (fun (trace: #Trace) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Mode |> DynObj.setValueOptBy trace "mode" StyleParam.Mode.convert - Ids |> DynObj.setValueOpt trace "ids" - Lat |> DynObj.setValueOpt trace "lat" - GeoJson |> DynObj.setValueOpt trace "geojson" - FeatureIdKey |> DynObj.setValueOpt trace "featureidkey" - Locations |> DynObj.setValueOpt trace "locations" - Lon |> DynObj.setValueOpt trace "lon" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" + Name |> DynObj.setOptionalProperty trace "name" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty trace "showlegend" + Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty trace "opacity" + Mode |> DynObj.setOptionalPropertyBy trace "mode" StyleParam.Mode.convert + Ids |> DynObj.setOptionalProperty trace "ids" + Lat |> DynObj.setOptionalProperty trace "lat" + GeoJson |> DynObj.setOptionalProperty trace "geojson" + FeatureIdKey |> DynObj.setOptionalProperty trace "featureidkey" + Locations |> DynObj.setOptionalProperty trace "locations" + Lon |> DynObj.setOptionalProperty trace "lon" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" (TextPosition, MultiTextPosition) |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Geo |> DynObj.setValueOptBy trace "geo" StyleParam.SubPlotId.convert - Marker |> DynObj.setValueOpt trace "marker" - Line |> DynObj.setValueOpt trace "line" - TextFont |> DynObj.setValueOpt trace "textfont" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Selected |> DynObj.setValueOpt trace "selected" - Unselected |> DynObj.setValueOpt trace "unselected" - ConnectGaps |> DynObj.setValueOpt trace "connectgaps" - Fill |> DynObj.setValueOptBy trace "fill" StyleParam.Fill.convert - FillColor |> DynObj.setValueOpt trace "fillcolor" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - LocationMode |> DynObj.setValueOptBy trace "locationmode" StyleParam.LocationFormat.convert - UIRevision |> DynObj.setValueOpt trace "uirevision" + (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + Geo |> DynObj.setOptionalPropertyBy trace "geo" StyleParam.SubPlotId.convert + Marker |> DynObj.setOptionalProperty trace "marker" + Line |> DynObj.setOptionalProperty trace "line" + TextFont |> DynObj.setOptionalProperty trace "textfont" + SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" + Selected |> DynObj.setOptionalProperty trace "selected" + Unselected |> DynObj.setOptionalProperty trace "unselected" + ConnectGaps |> DynObj.setOptionalProperty trace "connectgaps" + Fill |> DynObj.setOptionalPropertyBy trace "fill" StyleParam.Fill.convert + FillColor |> DynObj.setOptionalProperty trace "fillcolor" + HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" + LocationMode |> DynObj.setOptionalPropertyBy trace "locationmode" StyleParam.LocationFormat.convert + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace diff --git a/src/Plotly.NET/Traces/TraceMapbox.fs b/src/Plotly.NET/Traces/TraceMapbox.fs index 2ac9dcf50..5ace95140 100644 --- a/src/Plotly.NET/Traces/TraceMapbox.fs +++ b/src/Plotly.NET/Traces/TraceMapbox.fs @@ -47,7 +47,7 @@ type TraceMapboxStyle() = static member SetMapbox([] ?MapboxId: StyleParam.SubPlotId) = (fun (trace: TraceMapbox) -> - MapboxId |> DynObj.setValueOptBy trace "subplot" StyleParam.SubPlotId.toString + MapboxId |> DynObj.setOptionalPropertyBy trace "subplot" StyleParam.SubPlotId.toString trace) @@ -137,42 +137,42 @@ type TraceMapboxStyle() = ) = (fun (trace: #Trace) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Mode |> DynObj.setValueOptBy trace "mode" StyleParam.Mode.convert - Ids |> DynObj.setValueOpt trace "ids" - Lat |> DynObj.setValueOpt trace "lat" - Lon |> DynObj.setValueOpt trace "lon" - Cluster |> DynObj.setValueOpt trace "cluster" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" + Name |> DynObj.setOptionalProperty trace "name" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty trace "showlegend" + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty trace "opacity" + Mode |> DynObj.setOptionalPropertyBy trace "mode" StyleParam.Mode.convert + Ids |> DynObj.setOptionalProperty trace "ids" + Lat |> DynObj.setOptionalProperty trace "lat" + Lon |> DynObj.setOptionalProperty trace "lon" + Cluster |> DynObj.setOptionalProperty trace "cluster" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" (TextPosition, MultiTextPosition) |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - SubPlot |> DynObj.setValueOptBy trace "subplot" StyleParam.SubPlotId.convert - Marker |> DynObj.setValueOpt trace "marker" - Line |> DynObj.setValueOpt trace "line" - TextFont |> DynObj.setValueOpt trace "textfont" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Selected |> DynObj.setValueOpt trace "selected" - Unselected |> DynObj.setValueOpt trace "unselected" - Below |> DynObj.setValueOpt trace "below" - ConnectGaps |> DynObj.setValueOpt trace "connectgaps" - Fill |> DynObj.setValueOptBy trace "fill" StyleParam.Fill.convert - FillColor |> DynObj.setValueOpt trace "fillcolor" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - UIRevision |> DynObj.setValueOpt trace "uirevision" + (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + SubPlot |> DynObj.setOptionalPropertyBy trace "subplot" StyleParam.SubPlotId.convert + Marker |> DynObj.setOptionalProperty trace "marker" + Line |> DynObj.setOptionalProperty trace "line" + TextFont |> DynObj.setOptionalProperty trace "textfont" + SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" + Selected |> DynObj.setOptionalProperty trace "selected" + Unselected |> DynObj.setOptionalProperty trace "unselected" + Below |> DynObj.setOptionalProperty trace "below" + ConnectGaps |> DynObj.setOptionalProperty trace "connectgaps" + Fill |> DynObj.setOptionalPropertyBy trace "fill" StyleParam.Fill.convert + FillColor |> DynObj.setOptionalProperty trace "fillcolor" + HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace) @@ -262,41 +262,41 @@ type TraceMapboxStyle() = ) = (fun (trace: #Trace) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Ids |> DynObj.setValueOpt trace "ids" - Z |> DynObj.setValueOpt trace "z" - GeoJson |> DynObj.setValueOpt trace "geojson" - FeatureIdKey |> DynObj.setValueOpt trace "featureidkey" - Locations |> DynObj.setValueOpt trace "locations" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - SubPlot |> DynObj.setValueOptBy trace "subplot" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setValueOptBy trace "coloraxis" StyleParam.SubPlotId.convert - Marker |> DynObj.setValueOpt trace "marker" - ColorBar |> DynObj.setValueOpt trace "colorbar" - AutoColorScale |> DynObj.setValueOpt trace "autocolorscale" - ColorScale |> DynObj.setValueOptBy trace "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt trace "showscale" - ReverseScale |> DynObj.setValueOpt trace "reversescale" - ZAuto |> DynObj.setValueOpt trace "zauto" - Zmin |> DynObj.setValueOpt trace "zmin" - Zmid |> DynObj.setValueOpt trace "zmid" - Zmax |> DynObj.setValueOpt trace "zmax" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Selected |> DynObj.setValueOpt trace "selected" - Unselected |> DynObj.setValueOpt trace "unselected" - Below |> DynObj.setValueOpt trace "below" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - UIRevision |> DynObj.setValueOpt trace "uirevision" + Name |> DynObj.setOptionalProperty trace "name" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty trace "showlegend" + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Ids |> DynObj.setOptionalProperty trace "ids" + Z |> DynObj.setOptionalProperty trace "z" + GeoJson |> DynObj.setOptionalProperty trace "geojson" + FeatureIdKey |> DynObj.setOptionalProperty trace "featureidkey" + Locations |> DynObj.setOptionalProperty trace "locations" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + SubPlot |> DynObj.setOptionalPropertyBy trace "subplot" StyleParam.SubPlotId.convert + ColorAxis |> DynObj.setOptionalPropertyBy trace "coloraxis" StyleParam.SubPlotId.convert + Marker |> DynObj.setOptionalProperty trace "marker" + ColorBar |> DynObj.setOptionalProperty trace "colorbar" + AutoColorScale |> DynObj.setOptionalProperty trace "autocolorscale" + ColorScale |> DynObj.setOptionalPropertyBy trace "colorscale" StyleParam.Colorscale.convert + ShowScale |> DynObj.setOptionalProperty trace "showscale" + ReverseScale |> DynObj.setOptionalProperty trace "reversescale" + ZAuto |> DynObj.setOptionalProperty trace "zauto" + Zmin |> DynObj.setOptionalProperty trace "zmin" + Zmid |> DynObj.setOptionalProperty trace "zmid" + Zmax |> DynObj.setOptionalProperty trace "zmax" + SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" + Selected |> DynObj.setOptionalProperty trace "selected" + Unselected |> DynObj.setOptionalProperty trace "unselected" + Below |> DynObj.setOptionalProperty trace "below" + HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace) @@ -383,40 +383,40 @@ type TraceMapboxStyle() = ) = (fun (trace: #Trace) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Ids |> DynObj.setValueOpt trace "ids" - Z |> DynObj.setValueOpt trace "z" - Radius |> DynObj.setValueOpt trace "radius" - Lat |> DynObj.setValueOpt trace "lat" - Lon |> DynObj.setValueOpt trace "lon" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - SubPlot |> DynObj.setValueOptBy trace "subplot" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setValueOptBy trace "coloraxis" StyleParam.SubPlotId.convert - Marker |> DynObj.setValueOpt trace "marker" - ColorBar |> DynObj.setValueOpt trace "colorbar" - AutoColorScale |> DynObj.setValueOpt trace "autocolorscale" - ColorScale |> DynObj.setValueOptBy trace "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setValueOpt trace "showscale" - ReverseScale |> DynObj.setValueOpt trace "reversescale" - ZAuto |> DynObj.setValueOpt trace "zauto" - Zmin |> DynObj.setValueOpt trace "zmin" - Zmid |> DynObj.setValueOpt trace "zmid" - Zmax |> DynObj.setValueOpt trace "zmax" - Below |> DynObj.setValueOpt trace "below" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - UIRevision |> DynObj.setValueOpt trace "uirevision" + Name |> DynObj.setOptionalProperty trace "name" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty trace "showlegend" + Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty trace "opacity" + Ids |> DynObj.setOptionalProperty trace "ids" + Z |> DynObj.setOptionalProperty trace "z" + Radius |> DynObj.setOptionalProperty trace "radius" + Lat |> DynObj.setOptionalProperty trace "lat" + Lon |> DynObj.setOptionalProperty trace "lon" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + SubPlot |> DynObj.setOptionalPropertyBy trace "subplot" StyleParam.SubPlotId.convert + ColorAxis |> DynObj.setOptionalPropertyBy trace "coloraxis" StyleParam.SubPlotId.convert + Marker |> DynObj.setOptionalProperty trace "marker" + ColorBar |> DynObj.setOptionalProperty trace "colorbar" + AutoColorScale |> DynObj.setOptionalProperty trace "autocolorscale" + ColorScale |> DynObj.setOptionalPropertyBy trace "colorscale" StyleParam.Colorscale.convert + ShowScale |> DynObj.setOptionalProperty trace "showscale" + ReverseScale |> DynObj.setOptionalProperty trace "reversescale" + ZAuto |> DynObj.setOptionalProperty trace "zauto" + Zmin |> DynObj.setOptionalProperty trace "zmin" + Zmid |> DynObj.setOptionalProperty trace "zmid" + Zmax |> DynObj.setOptionalProperty trace "zmax" + Below |> DynObj.setOptionalProperty trace "below" + HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace) diff --git a/src/Plotly.NET/Traces/TracePolar.fs b/src/Plotly.NET/Traces/TracePolar.fs index 1a78f1e2a..4d27bcae9 100644 --- a/src/Plotly.NET/Traces/TracePolar.fs +++ b/src/Plotly.NET/Traces/TracePolar.fs @@ -36,7 +36,7 @@ type TracePolarStyle() = static member SetPolar([] ?PolarId: StyleParam.SubPlotId) = (fun (trace: TracePolar) -> - PolarId |> DynObj.setValueOptBy trace "subplot" StyleParam.SubPlotId.toString + PolarId |> DynObj.setOptionalPropertyBy trace "subplot" StyleParam.SubPlotId.toString trace) @@ -136,48 +136,48 @@ type TracePolarStyle() = ) = (fun (trace: ('T :> Trace)) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Mode |> DynObj.setValueOptBy trace "mode" StyleParam.Mode.convert - Ids |> DynObj.setValueOpt trace "ids" - R |> DynObj.setValueOpt trace "r" - R0 |> DynObj.setValueOpt trace "r0" - DR |> DynObj.setValueOpt trace "dr" - Theta |> DynObj.setValueOpt trace "theta" - Theta0 |> DynObj.setValueOpt trace "theta0" - DTheta |> DynObj.setValueOpt trace "dtheta" - ThetaUnit |> DynObj.setValueOptBy trace "thetaunit" StyleParam.AngularUnit.convert - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" + Name |> DynObj.setOptionalProperty trace "name" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty trace "showlegend" + Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty trace "opacity" + Mode |> DynObj.setOptionalPropertyBy trace "mode" StyleParam.Mode.convert + Ids |> DynObj.setOptionalProperty trace "ids" + R |> DynObj.setOptionalProperty trace "r" + R0 |> DynObj.setOptionalProperty trace "r0" + DR |> DynObj.setOptionalProperty trace "dr" + Theta |> DynObj.setOptionalProperty trace "theta" + Theta0 |> DynObj.setOptionalProperty trace "theta0" + DTheta |> DynObj.setOptionalProperty trace "dtheta" + ThetaUnit |> DynObj.setOptionalPropertyBy trace "thetaunit" StyleParam.AngularUnit.convert + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" (TextPosition, MultiTextPosition) |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Subplot |> DynObj.setValueOptBy trace "subplot" StyleParam.SubPlotId.convert - Marker |> DynObj.setValueOpt trace "marker" - Line |> DynObj.setValueOpt trace "line" - TextFont |> DynObj.setValueOpt trace "textfont" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Selected |> DynObj.setValueOpt trace "selected" - Unselected |> DynObj.setValueOpt trace "unselected" - ClipOnAxis |> DynObj.setValueOpt trace "cliponaxis" - ConnectGaps |> DynObj.setValueOpt trace "connectgaps" - Fill |> DynObj.setValueOptBy trace "fill" StyleParam.Fill.convert - FillColor |> DynObj.setValueOpt trace "fillcolor" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - HoverOn |> DynObj.setValueOpt trace "hoveron" - UIRevision |> DynObj.setValueOpt trace "uirevision" + (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + Subplot |> DynObj.setOptionalPropertyBy trace "subplot" StyleParam.SubPlotId.convert + Marker |> DynObj.setOptionalProperty trace "marker" + Line |> DynObj.setOptionalProperty trace "line" + TextFont |> DynObj.setOptionalProperty trace "textfont" + SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" + Selected |> DynObj.setOptionalProperty trace "selected" + Unselected |> DynObj.setOptionalProperty trace "unselected" + ClipOnAxis |> DynObj.setOptionalProperty trace "cliponaxis" + ConnectGaps |> DynObj.setOptionalProperty trace "connectgaps" + Fill |> DynObj.setOptionalPropertyBy trace "fill" StyleParam.Fill.convert + FillColor |> DynObj.setOptionalProperty trace "fillcolor" + HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" + HoverOn |> DynObj.setOptionalProperty trace "hoveron" + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace) @@ -263,37 +263,37 @@ type TracePolarStyle() = ) = (fun (trace: ('T :> Trace)) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Ids |> DynObj.setValueOpt trace "ids" - Base |> DynObj.setValueOpt trace "base" - R |> DynObj.setValueOpt trace "r" - R0 |> DynObj.setValueOpt trace "r0" - DR |> DynObj.setValueOpt trace "dr" - Theta |> DynObj.setValueOpt trace "theta" - Theta0 |> DynObj.setValueOpt trace "theta0" - DTheta |> DynObj.setValueOpt trace "dtheta" - ThetaUnit |> DynObj.setValueOptBy trace "thetaunit" StyleParam.AngularUnit.convert - (Width, MultiWidth) |> DynObj.setSingleOrMultiOpt trace "width" - (Offset, MultiOffset) |> DynObj.setSingleOrMultiOpt trace "offset" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Subplot |> DynObj.setValueOptBy trace "subplot" StyleParam.SubPlotId.convert - Marker |> DynObj.setValueOpt trace "marker" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Selected |> DynObj.setValueOpt trace "selected" - Unselected |> DynObj.setValueOpt trace "unselected" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - UIRevision |> DynObj.setValueOpt trace "uirevision" + Name |> DynObj.setOptionalProperty trace "name" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty trace "showlegend" + Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty trace "opacity" + Ids |> DynObj.setOptionalProperty trace "ids" + Base |> DynObj.setOptionalProperty trace "base" + R |> DynObj.setOptionalProperty trace "r" + R0 |> DynObj.setOptionalProperty trace "r0" + DR |> DynObj.setOptionalProperty trace "dr" + Theta |> DynObj.setOptionalProperty trace "theta" + Theta0 |> DynObj.setOptionalProperty trace "theta0" + DTheta |> DynObj.setOptionalProperty trace "dtheta" + ThetaUnit |> DynObj.setOptionalPropertyBy trace "thetaunit" StyleParam.AngularUnit.convert + (Width, MultiWidth) |> DynObj.setOptionalSingleOrMultiProperty trace "width" + (Offset, MultiOffset) |> DynObj.setOptionalSingleOrMultiProperty trace "offset" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + Subplot |> DynObj.setOptionalPropertyBy trace "subplot" StyleParam.SubPlotId.convert + Marker |> DynObj.setOptionalProperty trace "marker" + SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" + Selected |> DynObj.setOptionalProperty trace "selected" + Unselected |> DynObj.setOptionalProperty trace "unselected" + HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace) diff --git a/src/Plotly.NET/Traces/TraceSmith.fs b/src/Plotly.NET/Traces/TraceSmith.fs index 5a1e452d9..916b0d577 100644 --- a/src/Plotly.NET/Traces/TraceSmith.fs +++ b/src/Plotly.NET/Traces/TraceSmith.fs @@ -19,7 +19,7 @@ type TraceSmithStyle() = static member SetSmith([] ?SmithId: StyleParam.SubPlotId) = (fun (trace: TraceSmith) -> - SmithId |> DynObj.setValueOptBy trace "subplot" StyleParam.SubPlotId.toString + SmithId |> DynObj.setOptionalPropertyBy trace "subplot" StyleParam.SubPlotId.toString trace) @@ -109,42 +109,42 @@ type TraceSmithStyle() = ) = fun (trace: ('T :> Trace)) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Mode |> DynObj.setValueOptBy trace "mode" StyleParam.Mode.convert - Ids |> DynObj.setValueOpt trace "ids" - Imag |> DynObj.setValueOpt trace "imag" - Real |> DynObj.setValueOpt trace "real" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" + Name |> DynObj.setOptionalProperty trace "name" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty trace "showlegend" + Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty trace "opacity" + Mode |> DynObj.setOptionalPropertyBy trace "mode" StyleParam.Mode.convert + Ids |> DynObj.setOptionalProperty trace "ids" + Imag |> DynObj.setOptionalProperty trace "imag" + Real |> DynObj.setOptionalProperty trace "real" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" (TextPosition, MultiTextPosition) |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - Subplot |> DynObj.setValueOpt trace "subplot" - Marker |> DynObj.setValueOpt trace "marker" - Line |> DynObj.setValueOpt trace "line" - TextFont |> DynObj.setValueOpt trace "textfont" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Selected |> DynObj.setValueOpt trace "selected" - Unselected |> DynObj.setValueOpt trace "unselected" - ClipOnAxis |> DynObj.setValueOpt trace "cliponaxis" - ConnectGaps |> DynObj.setValueOpt trace "connectgaps" - Fill |> DynObj.setValueOptBy trace "fill" StyleParam.Fill.convert - FillColor |> DynObj.setValueOpt trace "fillcolor" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - HoverOn |> DynObj.setValueOptBy trace "hoveron" StyleParam.HoverOn.convert - UIRevision |> DynObj.setValueOpt trace "uirevision" + (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + Subplot |> DynObj.setOptionalProperty trace "subplot" + Marker |> DynObj.setOptionalProperty trace "marker" + Line |> DynObj.setOptionalProperty trace "line" + TextFont |> DynObj.setOptionalProperty trace "textfont" + SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" + Selected |> DynObj.setOptionalProperty trace "selected" + Unselected |> DynObj.setOptionalProperty trace "unselected" + ClipOnAxis |> DynObj.setOptionalProperty trace "cliponaxis" + ConnectGaps |> DynObj.setOptionalProperty trace "connectgaps" + Fill |> DynObj.setOptionalPropertyBy trace "fill" StyleParam.Fill.convert + FillColor |> DynObj.setOptionalProperty trace "fillcolor" + HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" + HoverOn |> DynObj.setOptionalPropertyBy trace "hoveron" StyleParam.HoverOn.convert + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace diff --git a/src/Plotly.NET/Traces/TraceTernary.fs b/src/Plotly.NET/Traces/TraceTernary.fs index 793df9ea6..e78fa13d4 100644 --- a/src/Plotly.NET/Traces/TraceTernary.fs +++ b/src/Plotly.NET/Traces/TraceTernary.fs @@ -19,7 +19,7 @@ type TraceTernaryStyle() = static member SetTernary([] ?TernaryId: StyleParam.SubPlotId) = (fun (trace: TraceTernary) -> - TernaryId |> DynObj.setValueOptBy trace "subplot" StyleParam.SubPlotId.toString + TernaryId |> DynObj.setOptionalPropertyBy trace "subplot" StyleParam.SubPlotId.toString trace) @@ -113,44 +113,44 @@ type TraceTernaryStyle() = ) = fun (trace: #Trace) -> - Name |> DynObj.setValueOpt trace "name" - Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setValueOpt trace "showlegend" - Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setValueOpt trace "legendrank" - LegendGroup |> DynObj.setValueOpt trace "legendgroup" - LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" - Opacity |> DynObj.setValueOpt trace "opacity" - Mode |> DynObj.setValueOptBy trace "mode" StyleParam.Mode.convert - Ids |> DynObj.setValueOpt trace "ids" - A |> DynObj.setValueOpt trace "a" - B |> DynObj.setValueOpt trace "b" - C |> DynObj.setValueOpt trace "c" - (Text, MultiText) |> DynObj.setSingleOrMultiOpt trace "text" + Name |> DynObj.setOptionalProperty trace "name" + Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert + ShowLegend |> DynObj.setOptionalProperty trace "showlegend" + Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert + LegendRank |> DynObj.setOptionalProperty trace "legendrank" + LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" + LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" + Opacity |> DynObj.setOptionalProperty trace "opacity" + Mode |> DynObj.setOptionalPropertyBy trace "mode" StyleParam.Mode.convert + Ids |> DynObj.setOptionalProperty trace "ids" + A |> DynObj.setOptionalProperty trace "a" + B |> DynObj.setOptionalProperty trace "b" + C |> DynObj.setOptionalProperty trace "c" + (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" (TextPosition, MultiTextPosition) |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - (TextTemplate, MultiTextTemplate) |> DynObj.setSingleOrMultiOpt trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setSingleOrMultiOpt trace "hovertext" - HoverInfo |> DynObj.setValueOptBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setSingleOrMultiOpt trace "hovertemplate" - Meta |> DynObj.setValueOpt trace "meta" - CustomData |> DynObj.setValueOpt trace "customdata" - SubPlot |> DynObj.setValueOptBy trace "subplot" StyleParam.SubPlotId.convert - Marker |> DynObj.setValueOpt trace "marker" - Line |> DynObj.setValueOpt trace "line" - TextFont |> DynObj.setValueOpt trace "textfont" - SelectedPoints |> DynObj.setValueOpt trace "selectedpoints" - Selected |> DynObj.setValueOpt trace "selected" - Unselected |> DynObj.setValueOpt trace "unselected" - ClipOnAxis |> DynObj.setValueOpt trace "cliponaxis" - ConnectGaps |> DynObj.setValueOpt trace "connectgaps" - Fill |> DynObj.setValueOptBy trace "fill" StyleParam.Fill.convert - FillColor |> DynObj.setValueOpt trace "fillcolor" - HoverLabel |> DynObj.setValueOpt trace "hoverlabel" - HoverOn |> DynObj.setValueOptBy trace "hoveron" StyleParam.HoverOn.convert - Sum |> DynObj.setValueOpt trace "sum" - UIRevision |> DynObj.setValueOpt trace "uirevision" + (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" + (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" + HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert + (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" + Meta |> DynObj.setOptionalProperty trace "meta" + CustomData |> DynObj.setOptionalProperty trace "customdata" + SubPlot |> DynObj.setOptionalPropertyBy trace "subplot" StyleParam.SubPlotId.convert + Marker |> DynObj.setOptionalProperty trace "marker" + Line |> DynObj.setOptionalProperty trace "line" + TextFont |> DynObj.setOptionalProperty trace "textfont" + SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" + Selected |> DynObj.setOptionalProperty trace "selected" + Unselected |> DynObj.setOptionalProperty trace "unselected" + ClipOnAxis |> DynObj.setOptionalProperty trace "cliponaxis" + ConnectGaps |> DynObj.setOptionalProperty trace "connectgaps" + Fill |> DynObj.setOptionalPropertyBy trace "fill" StyleParam.Fill.convert + FillColor |> DynObj.setOptionalProperty trace "fillcolor" + HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" + HoverOn |> DynObj.setOptionalPropertyBy trace "hoveron" StyleParam.HoverOn.convert + Sum |> DynObj.setOptionalProperty trace "sum" + UIRevision |> DynObj.setOptionalProperty trace "uirevision" trace From 9a0713effad2c9840c56faf69b5fb010b369da90 Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Mon, 14 Oct 2024 11:19:58 +0200 Subject: [PATCH 03/36] port layoutobjects to DynamicObj v4 --- .../Common/ActiveSelection.fs | 8 +- .../ObjectAbstractions/Common/ActiveShape.fs | 8 +- .../ObjectAbstractions/Common/Annotation.fs | 88 ++++---- .../ObjectAbstractions/Common/Button.fs | 18 +- .../ObjectAbstractions/Common/ColorAxis.fs | 20 +- .../Common/DefaultColorScales.fs | 10 +- .../ObjectAbstractions/Common/Domain.fs | 12 +- .../ObjectAbstractions/Common/Hoverlabel.fs | 15 +- .../ObjectAbstractions/Common/LayoutGrid.fs | 37 ++- .../ObjectAbstractions/Common/LayoutImage.fs | 35 ++- .../ObjectAbstractions/Common/Legend.fs | 57 +++-- .../ObjectAbstractions/Common/LinearAxis.fs | 213 +++++++++--------- .../ObjectAbstractions/Common/Margin.fs | 16 +- .../Layout/ObjectAbstractions/Common/Minor.fs | 30 +-- .../ObjectAbstractions/Common/ModeBar.fs | 18 +- .../ObjectAbstractions/Common/NewSelection.fs | 8 +- .../ObjectAbstractions/Common/NewShape.fs | 36 ++- .../Common/RangeSelector.fs | 26 +-- .../ObjectAbstractions/Common/RangeSlider.fs | 26 +-- .../ObjectAbstractions/Common/Rangebreak.fs | 17 +- .../ObjectAbstractions/Common/Selection.fs | 28 +-- .../Layout/ObjectAbstractions/Common/Shape.fs | 64 +++--- .../ObjectAbstractions/Common/ShapeLabel.fs | 17 +- .../Common/Slider/Slider.fs | 50 ++-- .../Common/Slider/SliderCurrentValue.fs | 16 +- .../Common/Slider/SliderStep.fs | 19 +- .../ObjectAbstractions/Common/Transition.fs | 9 +- .../ObjectAbstractions/Common/UniformText.fs | 8 +- .../ObjectAbstractions/Common/UpdateMenu.fs | 57 +++-- 29 files changed, 479 insertions(+), 487 deletions(-) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveSelection.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveSelection.fs index e2615d373..e07f9093a 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveSelection.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveSelection.fs @@ -22,7 +22,7 @@ type ActiveSelection() = ) = (fun (activeSelection: ActiveSelection) -> - FillColor |> DynObj.setOptionalProperty activeSelection "fillcolor" - Opacity |> DynObj.setOptionalProperty activeSelection "opacity" - - activeSelection) + activeSelection + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "opacity" Opacity + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveShape.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveShape.fs index 35c20a2c2..4cfea8893 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveShape.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveShape.fs @@ -22,7 +22,7 @@ type ActiveShape() = ) = (fun (activeShape: ActiveShape) -> - FillColor |> DynObj.setOptionalProperty activeShape "fillcolor" - Opacity |> DynObj.setOptionalProperty activeShape "opacity" - - activeShape) + activeShape + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "opacity" Opacity + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Annotation.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Annotation.fs index a3bc4300b..3f70d102e 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Annotation.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Annotation.fs @@ -148,47 +148,47 @@ type Annotation() = ) = (fun (ann: Annotation) -> - X |> DynObj.setOptionalProperty ann "x" - Y |> DynObj.setOptionalProperty ann "y" - Align |> DynObj.setOptionalPropertyBy ann "align" StyleParam.AnnotationAlignment.convert - ArrowColor |> DynObj.setOptionalProperty ann "arrowcolor" - ArrowHead |> DynObj.setOptionalPropertyBy ann "arrowhead" StyleParam.ArrowHead.convert - ArrowSide |> DynObj.setOptionalPropertyBy ann "arrowside" StyleParam.ArrowSide.convert - ArrowSize |> DynObj.setOptionalProperty ann "arrowsize" - AX |> DynObj.setOptionalProperty ann "ax" - AXRef |> DynObj.setOptionalProperty ann "axref" - AY |> DynObj.setOptionalProperty ann "ay" - AYRef |> DynObj.setOptionalProperty ann "ayref" - BGColor |> DynObj.setOptionalProperty ann "bgcolor" - BorderColor |> DynObj.setOptionalProperty ann "bordercolor" - BorderPad |> DynObj.setOptionalProperty ann "borderpad" - BorderWidth |> DynObj.setOptionalProperty ann "borderwidth" - CaptureEvents |> DynObj.setOptionalProperty ann "captureevents" - ClickToShow |> DynObj.setOptionalPropertyBy ann "clicktoshow" StyleParam.ClickToShow.convert - Font |> DynObj.setOptionalProperty ann "font" - Height |> DynObj.setOptionalProperty ann "height" - HoverLabel |> DynObj.setOptionalProperty ann "hoverlabel" - HoverText |> DynObj.setOptionalProperty ann "hovertext" - Name |> DynObj.setOptionalProperty ann "name" - Opacity |> DynObj.setOptionalProperty ann "opacity" - ShowArrow |> DynObj.setOptionalProperty ann "showarrow" - StandOff |> DynObj.setOptionalProperty ann "standoff" - StartArrowHead |> DynObj.setOptionalProperty ann "startarrowhead" - StartArrowSize |> DynObj.setOptionalProperty ann "startarrowsize" - StartStandOff |> DynObj.setOptionalProperty ann "startstandoff" - TemplateItemName |> DynObj.setOptionalProperty ann "templateitemname" - Text |> DynObj.setOptionalProperty ann "text" - TextAngle |> DynObj.setOptionalProperty ann "textangle" - VAlign |> DynObj.setOptionalPropertyBy ann "valign" StyleParam.VerticalAlign.convert - Visible |> DynObj.setOptionalProperty ann "visible" - Width |> DynObj.setOptionalProperty ann "width" - XAnchor |> DynObj.setOptionalPropertyBy ann "xanchor" StyleParam.XAnchorPosition.convert - XClick |> DynObj.setOptionalProperty ann "xclick" - XRef |> DynObj.setOptionalProperty ann "xref" - XShift |> DynObj.setOptionalProperty ann "xshift" - YAnchor |> DynObj.setOptionalPropertyBy ann "yanchor" StyleParam.YAnchorPosition.convert - YClick |> DynObj.setOptionalProperty ann "yclick" - YRef |> DynObj.setOptionalProperty ann "yref" - YShift |> DynObj.setOptionalProperty ann "yshift" - - ann) + ann + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalPropertyBy "align" Align StyleParam.AnnotationAlignment.convert + |> DynObj.withOptionalProperty "arrowcolor" ArrowColor + |> DynObj.withOptionalPropertyBy "arrowhead" ArrowHead StyleParam.ArrowHead.convert + |> DynObj.withOptionalPropertyBy "arrowside" ArrowSide StyleParam.ArrowSide.convert + |> DynObj.withOptionalProperty "arrowsize" ArrowSize + |> DynObj.withOptionalProperty "ax" AX + |> DynObj.withOptionalProperty "axref" AXRef + |> DynObj.withOptionalProperty "ay" AY + |> DynObj.withOptionalProperty "ayref" AYRef + |> DynObj.withOptionalProperty "bgcolor" BGColor + |> DynObj.withOptionalProperty "bordercolor" BorderColor + |> DynObj.withOptionalProperty "borderpad" BorderPad + |> DynObj.withOptionalProperty "borderwidth" BorderWidth + |> DynObj.withOptionalProperty "captureevents" CaptureEvents + |> DynObj.withOptionalPropertyBy "clicktoshow" ClickToShow StyleParam.ClickToShow.convert + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "height" Height + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "hovertext" HoverText + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "showarrow" ShowArrow + |> DynObj.withOptionalProperty "standoff" StandOff + |> DynObj.withOptionalProperty "startarrowhead" StartArrowHead + |> DynObj.withOptionalProperty "startarrowsize" StartArrowSize + |> DynObj.withOptionalProperty "startstandoff" StartStandOff + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName + |> DynObj.withOptionalProperty "text" Text + |> DynObj.withOptionalProperty "textangle" TextAngle + |> DynObj.withOptionalPropertyBy "valign" VAlign StyleParam.VerticalAlign.convert + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalProperty "width" Width + |> DynObj.withOptionalPropertyBy "xanchor" XAnchor StyleParam.XAnchorPosition.convert + |> DynObj.withOptionalProperty "xclick" XClick + |> DynObj.withOptionalProperty "xref" XRef + |> DynObj.withOptionalProperty "xshift" XShift + |> DynObj.withOptionalPropertyBy "yanchor" YAnchor StyleParam.YAnchorPosition.convert + |> DynObj.withOptionalProperty "yclick" YClick + |> DynObj.withOptionalProperty "yref" YRef + |> DynObj.withOptionalProperty "yshift" YShift + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Button.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Button.fs index 7952ef157..2d2e03492 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Button.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Button.fs @@ -42,12 +42,12 @@ type Button() = ) = (fun (button: Button) -> - Visible |> DynObj.setOptionalProperty button "visible" - Step |> DynObj.setOptionalPropertyBy button "step" StyleParam.TimeStep.convert - StepMode |> DynObj.setOptionalPropertyBy button "stepmode" StyleParam.TimeStepMode.convert - Count |> DynObj.setOptionalProperty button "count" - Label |> DynObj.setOptionalProperty button "label" - Name |> DynObj.setOptionalProperty button "name" - TemplateItemName |> DynObj.setOptionalProperty button "templateitemname" - - button) + button + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalPropertyBy "step" Step StyleParam.TimeStep.convert + |> DynObj.withOptionalPropertyBy "stepmode" StepMode StyleParam.TimeStepMode.convert + |> DynObj.withOptionalProperty "count" Count + |> DynObj.withOptionalProperty "label" Label + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ColorAxis.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ColorAxis.fs index 459ad2185..807a82641 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ColorAxis.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ColorAxis.fs @@ -72,14 +72,14 @@ type ColorAxis() = ) = fun (ca: ColorAxis) -> - AutoColorScale |> DynObj.setOptionalProperty ca "autocolorscale" - CAuto |> DynObj.setOptionalProperty ca "cauto" - CMin |> DynObj.setOptionalProperty ca "cmin" - CMid |> DynObj.setOptionalProperty ca "cmid" - CMax |> DynObj.setOptionalProperty ca "cmax" - ColorBar |> DynObj.setOptionalProperty ca "colorbar" - ColorScale |> DynObj.setOptionalPropertyBy ca "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setOptionalProperty ca "showscale" - ReverseScale |> DynObj.setOptionalProperty ca "reversescale" - ca + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalProperty "cauto" CAuto + |> DynObj.withOptionalProperty "cmin" CMin + |> DynObj.withOptionalProperty "cmid" CMid + |> DynObj.withOptionalProperty "cmax" CMax + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/DefaultColorScales.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/DefaultColorScales.fs index 36801c8b8..b1fee0e6a 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/DefaultColorScales.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/DefaultColorScales.fs @@ -29,8 +29,8 @@ type DefaultColorScales() = ) = (fun (defaultColorScales: DefaultColorScales) -> - Diverging |> DynObj.setOptionalPropertyBy defaultColorScales "diverging" StyleParam.Colorscale.convert - Sequential |> DynObj.setOptionalPropertyBy defaultColorScales "sequential" StyleParam.Colorscale.convert - SequentialMinus |> DynObj.setOptionalPropertyBy defaultColorScales "sequentialminus" StyleParam.Colorscale.convert - - defaultColorScales) + defaultColorScales + |> DynObj.withOptionalPropertyBy "diverging" Diverging StyleParam.Colorscale.convert + |> DynObj.withOptionalPropertyBy "sequential" Sequential StyleParam.Colorscale.convert + |> DynObj.withOptionalPropertyBy "sequentialminus" SequentialMinus StyleParam.Colorscale.convert + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Domain.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Domain.fs index d5f43f974..442604933 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Domain.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Domain.fs @@ -29,10 +29,10 @@ type Domain() = [] ?Column: int ) = (fun (dom: Domain) -> - X |> DynObj.setOptionalPropertyBy dom "x" StyleParam.Range.convert - Y |> DynObj.setOptionalPropertyBy dom "y" StyleParam.Range.convert - Row |> DynObj.setOptionalProperty dom "row" - Column |> DynObj.setOptionalProperty dom "column" - // out -> - dom) + dom + |> DynObj.withOptionalPropertyBy "x" X StyleParam.Range.convert + |> DynObj.withOptionalPropertyBy "y" Y StyleParam.Range.convert + |> DynObj.withOptionalProperty "row" Row + |> DynObj.withOptionalProperty "column" Column + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Hoverlabel.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Hoverlabel.fs index b8b37350d..65b7e52ef 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Hoverlabel.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Hoverlabel.fs @@ -57,11 +57,12 @@ type Hoverlabel() = [] ?Namelength: int ) = (fun (label: Hoverlabel) -> - BgColor |> DynObj.setOptionalProperty label "bgcolor" - BorderColor |> DynObj.setOptionalProperty label "bordercolor" - Font |> DynObj.setOptionalProperty label "font" - GroupTitleFont |> DynObj.setOptionalProperty label "grouptitlefont" - Align |> DynObj.setOptionalPropertyBy label "align" StyleParam.Align.convert - Namelength |> DynObj.setOptionalProperty label "namelength" - label) + label + |> DynObj.withOptionalProperty "bgcolor" BgColor + |> DynObj.withOptionalProperty "bordercolor" BorderColor + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "grouptitlefont" GroupTitleFont + |> DynObj.withOptionalPropertyBy "align" Align StyleParam.Align.convert + |> DynObj.withOptionalProperty "namelength" Namelength + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutGrid.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutGrid.fs index bd2869fe4..7105c6411 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutGrid.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutGrid.fs @@ -85,25 +85,22 @@ type LayoutGrid() = [] ?YSide: StyleParam.LayoutGridYSide ) = (fun (layoutGrid: LayoutGrid) -> - SubPlots - |> DynObj.setOptionalPropertyBy - layoutGrid - "subplots" - (Array.map ( + layoutGrid + |> DynObj.withOptionalPropertyBy "subplots" SubPlots ( + Array.map ( Array.map (fun (x, y) -> $"{StyleParam.LinearAxisId.toString x}{StyleParam.LinearAxisId.toString y}") - )) - - XAxes |> DynObj.setOptionalPropertyBy layoutGrid "xaxes" (Array.map StyleParam.LinearAxisId.toString) - YAxes |> DynObj.setOptionalPropertyBy layoutGrid "yaxes" (Array.map StyleParam.LinearAxisId.toString) - Rows |> DynObj.setOptionalProperty layoutGrid "rows" - Columns |> DynObj.setOptionalProperty layoutGrid "columns" - RowOrder |> DynObj.setOptionalPropertyBy layoutGrid "roworder" StyleParam.LayoutGridRowOrder.toString - Pattern |> DynObj.setOptionalPropertyBy layoutGrid "pattern" StyleParam.LayoutGridPattern.toString - XGap |> DynObj.setOptionalProperty layoutGrid "xgap" - YGap |> DynObj.setOptionalProperty layoutGrid "ygap" - Domain |> DynObj.setOptionalProperty layoutGrid "domain" - XSide |> DynObj.setOptionalPropertyBy layoutGrid "xside" StyleParam.LayoutGridXSide.toString - YSide |> DynObj.setOptionalPropertyBy layoutGrid "yside" StyleParam.LayoutGridYSide.toString - - layoutGrid) + ) + ) + |> DynObj.withOptionalPropertyBy "xaxes" XAxes (Array.map StyleParam.LinearAxisId.toString) + |> DynObj.withOptionalPropertyBy "yaxes" YAxes (Array.map StyleParam.LinearAxisId.toString) + |> DynObj.withOptionalProperty "rows" Rows + |> DynObj.withOptionalProperty "columns" Columns + |> DynObj.withOptionalPropertyBy "roworder" RowOrder StyleParam.LayoutGridRowOrder.toString + |> DynObj.withOptionalPropertyBy "pattern" Pattern StyleParam.LayoutGridPattern.toString + |> DynObj.withOptionalProperty "xgap" XGap + |> DynObj.withOptionalProperty "ygap" YGap + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalPropertyBy "xside" XSide StyleParam.LayoutGridXSide.toString + |> DynObj.withOptionalPropertyBy "yside" YSide StyleParam.LayoutGridYSide.toString + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutImage.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutImage.fs index de4e0d87d..1e3d70e88 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutImage.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutImage.fs @@ -65,21 +65,20 @@ type LayoutImage() = [] ?YRef: string ) = (fun (layoutImage: LayoutImage) -> - - Layer |> DynObj.setOptionalPropertyBy layoutImage "layer" StyleParam.Layer.convert - Name |> DynObj.setOptionalProperty layoutImage "name" - Opacity |> DynObj.setOptionalProperty layoutImage "opacity" - SizeX |> DynObj.setOptionalProperty layoutImage "sizex" - SizeY |> DynObj.setOptionalProperty layoutImage "sizey" - Sizing |> DynObj.setOptionalPropertyBy layoutImage "sizing" StyleParam.LayoutImageSizing.convert - Source |> DynObj.setOptionalProperty layoutImage "source" - TemplateItemname |> DynObj.setOptionalProperty layoutImage "templateitemname" - Visible |> DynObj.setOptionalProperty layoutImage "visible" - X |> DynObj.setOptionalProperty layoutImage "x" - XAnchor |> DynObj.setOptionalPropertyBy layoutImage "xanchor" StyleParam.XAnchorPosition.convert - XRef |> DynObj.setOptionalProperty layoutImage "xref" - Y |> DynObj.setOptionalProperty layoutImage "y" - YAnchor |> DynObj.setOptionalPropertyBy layoutImage "yanchor" StyleParam.YAnchorPosition.convert - YRef |> DynObj.setOptionalProperty layoutImage "yref" - - layoutImage) + layoutImage + |> DynObj.withOptionalPropertyBy "layer" Layer StyleParam.Layer.convert + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "sizex" SizeX + |> DynObj.withOptionalProperty "sizey" SizeY + |> DynObj.withOptionalPropertyBy "sizing" Sizing StyleParam.LayoutImageSizing.convert + |> DynObj.withOptionalProperty "source" Source + |> DynObj.withOptionalProperty "templateitemname" TemplateItemname + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalPropertyBy "xanchor" XAnchor StyleParam.XAnchorPosition.convert + |> DynObj.withOptionalProperty "xref" XRef + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalPropertyBy "yanchor" YAnchor StyleParam.YAnchorPosition.convert + |> DynObj.withOptionalProperty "yref" YRef + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Legend.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Legend.fs index f1df9ec01..4d833806d 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Legend.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Legend.fs @@ -151,32 +151,31 @@ type Legend() = [] ?YRef: string ) = (fun (legend: Legend) -> - BGColor |> DynObj.setOptionalProperty legend "bgcolor" - BorderColor |> DynObj.setOptionalProperty legend "bordercolor" - BorderWidth |> DynObj.setOptionalProperty legend "borderwidth" - EntryWidth |> DynObj.setOptionalProperty legend "entrywidth" - EntryWidthMode |> DynObj.setOptionalPropertyBy legend "entrywidthmode" StyleParam.EntryWidthMode.convert - Font |> DynObj.setOptionalProperty legend "font" - GroupClick |> DynObj.setOptionalPropertyBy legend "groupclick" StyleParam.TraceGroupClickOptions.convert - GroupTitleFont |> DynObj.setOptionalProperty legend "grouptitlefont" - ItemClick |> DynObj.setOptionalPropertyBy legend "itemclick" StyleParam.TraceItemClickOptions.convert - ItemDoubleClick |> DynObj.setOptionalPropertyBy legend "itemdoubleclick" StyleParam.TraceItemClickOptions.convert - ItemSizing |> DynObj.setOptionalPropertyBy legend "itemsizing" StyleParam.TraceItemSizing.convert - ItemWidth |> DynObj.setOptionalProperty legend "itemwidth" - Orientation |> DynObj.setOptionalPropertyBy legend "orientation" StyleParam.Orientation.convert - Title |> DynObj.setOptionalProperty legend "title" - TraceGroupGap |> DynObj.setOptionalProperty legend "tracegroupgap" - TraceOrder |> DynObj.setOptionalPropertyBy legend "traceorder" StyleParam.TraceOrder.convert - UIRevision |> DynObj.setOptionalProperty legend "uirevision" - VerticalAlign |> DynObj.setOptionalPropertyBy legend "valign" StyleParam.VerticalAlign.convert - Visible |> DynObj.setOptionalProperty legend "visible" - X |> DynObj.setOptionalProperty legend "x" - XAnchor |> DynObj.setOptionalPropertyBy legend "xanchor" StyleParam.XAnchorPosition.convert - XRef |> DynObj.setOptionalProperty legend "xref" - Y |> DynObj.setOptionalProperty legend "y" - YAnchor |> DynObj.setOptionalPropertyBy legend "yanchor" StyleParam.YAnchorPosition.convert - YRef |> DynObj.setOptionalProperty legend "yref" - - - - legend) + + legend + |> DynObj.withOptionalProperty "bgcolor" BGColor + |> DynObj.withOptionalProperty "bordercolor" BorderColor + |> DynObj.withOptionalProperty "borderwidth" BorderWidth + |> DynObj.withOptionalProperty "entrywidth" EntryWidth + |> DynObj.withOptionalPropertyBy "entrywidthmode" EntryWidthMode StyleParam.EntryWidthMode.convert + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalPropertyBy "groupclick" GroupClick StyleParam.TraceGroupClickOptions.convert + |> DynObj.withOptionalProperty "grouptitlefont" GroupTitleFont + |> DynObj.withOptionalPropertyBy "itemclick" ItemClick StyleParam.TraceItemClickOptions.convert + |> DynObj.withOptionalPropertyBy "itemdoubleclick" ItemDoubleClick StyleParam.TraceItemClickOptions.convert + |> DynObj.withOptionalPropertyBy "itemsizing" ItemSizing StyleParam.TraceItemSizing.convert + |> DynObj.withOptionalProperty "itemwidth" ItemWidth + |> DynObj.withOptionalPropertyBy "orientation" Orientation StyleParam.Orientation.convert + |> DynObj.withOptionalProperty "title" Title + |> DynObj.withOptionalProperty "tracegroupgap" TraceGroupGap + |> DynObj.withOptionalPropertyBy "traceorder" TraceOrder StyleParam.TraceOrder.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision + |> DynObj.withOptionalPropertyBy "valign" VerticalAlign StyleParam.VerticalAlign.convert + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalPropertyBy "xanchor" XAnchor StyleParam.XAnchorPosition.convert + |> DynObj.withOptionalProperty "xref" XRef + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalPropertyBy "yanchor" YAnchor StyleParam.YAnchorPosition.convert + |> DynObj.withOptionalProperty "yref" YRef + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/LinearAxis.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/LinearAxis.fs index db4de8225..22cc39332 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/LinearAxis.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/LinearAxis.fs @@ -1007,110 +1007,109 @@ type LinearAxis() = ) = (fun (axis: LinearAxis) -> - Visible |> DynObj.setOptionalProperty axis "visible" - Color |> DynObj.setOptionalProperty axis "color" - Title |> DynObj.setOptionalProperty axis "title" - AxisType |> DynObj.setOptionalPropertyBy axis "type" StyleParam.AxisType.convert - AutoTypeNumbers |> DynObj.setOptionalPropertyBy axis "autotypenumbers" StyleParam.AutoTypeNumbers.convert - AutoRange |> DynObj.setOptionalPropertyBy axis "autorange" StyleParam.AutoRange.convert - AutoRangeOptions |> DynObj.setOptionalProperty axis "autorangeoptions" - AutoShift |> DynObj.setOptionalProperty axis "autoshift" - RangeMode |> DynObj.setOptionalPropertyBy axis "rangemode" StyleParam.RangeMode.convert - Range |> DynObj.setOptionalPropertyBy axis "range" StyleParam.Range.convert - FixedRange |> DynObj.setOptionalProperty axis "fixedrange" - ScaleAnchor |> DynObj.setOptionalPropertyBy axis "scaleanchor" StyleParam.ScaleAnchor.convert - ScaleRatio |> DynObj.setOptionalProperty axis "scaleratio" - Constrain |> DynObj.setOptionalPropertyBy axis "constrain" StyleParam.AxisConstraint.convert - ConstrainToward |> DynObj.setOptionalPropertyBy axis "constraintoward" StyleParam.AxisConstraintDirection.convert - Matches |> DynObj.setOptionalPropertyBy axis "matches" StyleParam.LinearAxisId.convert - MaxAllowed |> DynObj.setOptionalProperty axis "maxallowed" - MinAllowed |> DynObj.setOptionalProperty axis "minallowed" - Rangebreaks |> DynObj.setOptionalProperty axis "rangebreaks" - TickMode |> DynObj.setOptionalPropertyBy axis "tickmode" StyleParam.TickMode.convert - NTicks |> DynObj.setOptionalProperty axis "nticks" - Tick0 |> DynObj.setOptionalProperty axis "tick0" - DTick |> DynObj.setOptionalProperty axis "dtick" - TickVals |> DynObj.setOptionalProperty axis "tickvals" - TickText |> DynObj.setOptionalProperty axis "ticktext" - Ticks |> DynObj.setOptionalPropertyBy axis "ticks" StyleParam.TickOptions.convert - TicksOn |> DynObj.setOptionalPropertyBy axis "tickson" StyleParam.CategoryTickAnchor.convert - TickLabelMode |> DynObj.setOptionalPropertyBy axis "ticklabelmode" StyleParam.TickLabelMode.convert - TickLabelPosition |> DynObj.setOptionalPropertyBy axis "ticklabelposition" StyleParam.TickLabelPosition.convert - TickLabelStep |> DynObj.setOptionalProperty axis "ticklabelstep" - TickLabelOverflow |> DynObj.setOptionalPropertyBy axis "ticklabeloverflow" StyleParam.TickLabelOverflow.convert - Mirror |> DynObj.setOptionalPropertyBy axis "mirror" StyleParam.Mirror.convert - TickLen |> DynObj.setOptionalProperty axis "ticklen" - TickWidth |> DynObj.setOptionalProperty axis "tickwidth" - TickColor |> DynObj.setOptionalProperty axis "tickcolor" - ShowTickLabels |> DynObj.setOptionalProperty axis "showticklabels" - AutoMargin |> DynObj.setOptionalPropertyBy axis "automargin" StyleParam.TickAutoMargin.convert - ShowSpikes |> DynObj.setOptionalProperty axis "showspikes" - SpikeColor |> DynObj.setOptionalProperty axis "spikecolor" - SpikeThickness |> DynObj.setOptionalProperty axis "spikethickness" - SpikeDash |> DynObj.setOptionalPropertyBy axis "spikedash" StyleParam.DrawingStyle.convert - SpikeMode |> DynObj.setOptionalPropertyBy axis "spikemode" StyleParam.SpikeMode.convert - SpikeSnap |> DynObj.setOptionalPropertyBy axis "spikesnap" StyleParam.SpikeSnap.convert - TickFont |> DynObj.setOptionalProperty axis "tickfont" - TickAngle |> DynObj.setOptionalProperty axis "tickangle" - ShowTickPrefix |> DynObj.setOptionalPropertyBy axis "showtickprefix" StyleParam.ShowTickOption.convert - TickPrefix |> DynObj.setOptionalProperty axis "tickprefix" - ShowTickSuffix |> DynObj.setOptionalPropertyBy axis "showticksuffix" StyleParam.ShowTickOption.convert - TickSuffix |> DynObj.setOptionalProperty axis "ticksuffix" - ShowExponent |> DynObj.setOptionalPropertyBy axis "showexponent" StyleParam.ShowExponent.convert - ExponentFormat |> DynObj.setOptionalPropertyBy axis "exponentformat" StyleParam.ExponentFormat.convert - MinExponent |> DynObj.setOptionalProperty axis "minexponent" - Minor |> DynObj.setOptionalProperty axis "minor" - SeparateThousands |> DynObj.setOptionalProperty axis "separatethousands" - TickFormat |> DynObj.setOptionalProperty axis "tickformat" - TickFormatStops |> DynObj.setOptionalProperty axis "tickformatstops" - HoverFormat |> DynObj.setOptionalProperty axis "hoverformat" - InsideRange |> DynObj.setOptionalPropertyBy axis "insiderange" StyleParam.Range.convert - ShowLine |> DynObj.setOptionalProperty axis "showline" - LineColor |> DynObj.setOptionalProperty axis "linecolor" - LineWidth |> DynObj.setOptionalProperty axis "linewidth" - ShowGrid |> DynObj.setOptionalProperty axis "showgrid" - GridColor |> DynObj.setOptionalProperty axis "gridcolor" - GridDash |> DynObj.setOptionalPropertyBy axis "griddash" StyleParam.DrawingStyle.convert - GridWidth |> DynObj.setOptionalProperty axis "gridwidth" - ZeroLine |> DynObj.setOptionalProperty axis "zeroline" - ZeroLineColor |> DynObj.setOptionalProperty axis "zerolinecolor" - ZeroLineWidth |> DynObj.setOptionalProperty axis "zerolinewidth" - Shift |> DynObj.setOptionalProperty axis "shift" - ShowDividers |> DynObj.setOptionalProperty axis "showdividers" - DividerColor |> DynObj.setOptionalProperty axis "dividercolor" - DividerWidth |> DynObj.setOptionalProperty axis "dividerwidth" - Anchor |> DynObj.setOptionalPropertyBy axis "anchor" StyleParam.LinearAxisId.convert - Side |> DynObj.setOptionalPropertyBy axis "side" StyleParam.Side.convert - Overlaying |> DynObj.setOptionalPropertyBy axis "overlaying" StyleParam.LinearAxisId.convert - LabelAlias |> DynObj.setOptionalProperty axis "labelalias" - Layer |> DynObj.setOptionalPropertyBy axis "layer" StyleParam.Layer.convert - Domain |> DynObj.setOptionalPropertyBy axis "domain" StyleParam.Range.convert - Position |> DynObj.setOptionalProperty axis "position" - CategoryOrder |> DynObj.setOptionalPropertyBy axis "categoryorder" StyleParam.CategoryOrder.convert - CategoryArray |> DynObj.setOptionalProperty axis "categoryarray" - UIRevision |> DynObj.setOptionalProperty axis "uirevision" - RangeSlider |> DynObj.setOptionalProperty axis "rangeslider" - RangeSelector |> DynObj.setOptionalProperty axis "rangeselector" - Calendar |> DynObj.setOptionalPropertyBy axis "calendar" StyleParam.Calendar.convert - ArrayDTick |> DynObj.setOptionalProperty axis "arraydtick" - ArrayTick0 |> DynObj.setOptionalProperty axis "arraytick0" - CheaterType |> DynObj.setOptionalPropertyBy axis "cheatertype" StyleParam.CheaterType.convert - EndLine |> DynObj.setOptionalProperty axis "endline" - EndLineColor |> DynObj.setOptionalProperty axis "endlinecolor" - EndLineWidth |> DynObj.setOptionalProperty axis "endlinewidth" - LabelPadding |> DynObj.setOptionalProperty axis "labelpadding" - LabelPrefix |> DynObj.setOptionalProperty axis "labelprefix" - LabelSuffix |> DynObj.setOptionalProperty axis "labelsuffix" - MinorGridColor |> DynObj.setOptionalProperty axis "minorgridcolor" - MinorGridDash |> DynObj.setOptionalPropertyBy axis "minorgriddash" StyleParam.DrawingStyle.convert - MinorGridCount |> DynObj.setOptionalProperty axis "minorgridcount" - MinorGridWidth |> DynObj.setOptionalProperty axis "minorgridwidth" - Smoothing |> DynObj.setOptionalProperty axis "smoothing" - StartLine |> DynObj.setOptionalProperty axis "startline" - StartLineColor |> DynObj.setOptionalProperty axis "startlinecolor" - StartLineWidth |> DynObj.setOptionalProperty axis "startlinewidth" - BackgroundColor |> DynObj.setOptionalProperty axis "backgroundcolor" - ShowBackground |> DynObj.setOptionalProperty axis "showbackground" - - - axis) + axis + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "title" Title + |> DynObj.withOptionalPropertyBy "type" AxisType StyleParam.AxisType.convert + |> DynObj.withOptionalPropertyBy "autotypenumbers" AutoTypeNumbers StyleParam.AutoTypeNumbers.convert + |> DynObj.withOptionalPropertyBy "autorange" AutoRange StyleParam.AutoRange.convert + |> DynObj.withOptionalProperty "autorangeoptions" AutoRangeOptions + |> DynObj.withOptionalProperty "autoshift" AutoShift + |> DynObj.withOptionalPropertyBy "rangemode" RangeMode StyleParam.RangeMode.convert + |> DynObj.withOptionalPropertyBy "range" Range StyleParam.Range.convert + |> DynObj.withOptionalProperty "fixedrange" FixedRange + |> DynObj.withOptionalPropertyBy "scaleanchor" ScaleAnchor StyleParam.ScaleAnchor.convert + |> DynObj.withOptionalProperty "scaleratio" ScaleRatio + |> DynObj.withOptionalPropertyBy "constrain" Constrain StyleParam.AxisConstraint.convert + |> DynObj.withOptionalPropertyBy "constraintoward" ConstrainToward StyleParam.AxisConstraintDirection.convert + |> DynObj.withOptionalPropertyBy "matches" Matches StyleParam.LinearAxisId.convert + |> DynObj.withOptionalProperty "maxallowed" MaxAllowed + |> DynObj.withOptionalProperty "minallowed" MinAllowed + |> DynObj.withOptionalProperty "rangebreaks" Rangebreaks + |> DynObj.withOptionalPropertyBy "tickmode" TickMode StyleParam.TickMode.convert + |> DynObj.withOptionalProperty "nticks" NTicks + |> DynObj.withOptionalProperty "tick0" Tick0 + |> DynObj.withOptionalProperty "dtick" DTick + |> DynObj.withOptionalProperty "tickvals" TickVals + |> DynObj.withOptionalProperty "ticktext" TickText + |> DynObj.withOptionalPropertyBy "ticks" Ticks StyleParam.TickOptions.convert + |> DynObj.withOptionalPropertyBy "tickson" TicksOn StyleParam.CategoryTickAnchor.convert + |> DynObj.withOptionalPropertyBy "ticklabelmode" TickLabelMode StyleParam.TickLabelMode.convert + |> DynObj.withOptionalPropertyBy "ticklabelposition" TickLabelPosition StyleParam.TickLabelPosition.convert + |> DynObj.withOptionalProperty "ticklabelstep" TickLabelStep + |> DynObj.withOptionalPropertyBy "ticklabeloverflow" TickLabelOverflow StyleParam.TickLabelOverflow.convert + |> DynObj.withOptionalPropertyBy "mirror" Mirror StyleParam.Mirror.convert + |> DynObj.withOptionalProperty "ticklen" TickLen + |> DynObj.withOptionalProperty "tickwidth" TickWidth + |> DynObj.withOptionalProperty "tickcolor" TickColor + |> DynObj.withOptionalProperty "showticklabels" ShowTickLabels + |> DynObj.withOptionalPropertyBy "automargin" AutoMargin StyleParam.TickAutoMargin.convert + |> DynObj.withOptionalProperty "showspikes" ShowSpikes + |> DynObj.withOptionalProperty "spikecolor" SpikeColor + |> DynObj.withOptionalProperty "spikethickness" SpikeThickness + |> DynObj.withOptionalPropertyBy "spikedash" SpikeDash StyleParam.DrawingStyle.convert + |> DynObj.withOptionalPropertyBy "spikemode" SpikeMode StyleParam.SpikeMode.convert + |> DynObj.withOptionalPropertyBy "spikesnap" SpikeSnap StyleParam.SpikeSnap.convert + |> DynObj.withOptionalProperty "tickfont" TickFont + |> DynObj.withOptionalProperty "tickangle" TickAngle + |> DynObj.withOptionalPropertyBy "showtickprefix" ShowTickPrefix StyleParam.ShowTickOption.convert + |> DynObj.withOptionalProperty "tickprefix" TickPrefix + |> DynObj.withOptionalPropertyBy "showticksuffix" ShowTickSuffix StyleParam.ShowTickOption.convert + |> DynObj.withOptionalProperty "ticksuffix" TickSuffix + |> DynObj.withOptionalPropertyBy "showexponent" ShowExponent StyleParam.ShowExponent.convert + |> DynObj.withOptionalPropertyBy "exponentformat" ExponentFormat StyleParam.ExponentFormat.convert + |> DynObj.withOptionalProperty "minexponent" MinExponent + |> DynObj.withOptionalProperty "minor" Minor + |> DynObj.withOptionalProperty "separatethousands" SeparateThousands + |> DynObj.withOptionalProperty "tickformat" TickFormat + |> DynObj.withOptionalProperty "tickformatstops" TickFormatStops + |> DynObj.withOptionalProperty "hoverformat" HoverFormat + |> DynObj.withOptionalPropertyBy "insiderange" InsideRange StyleParam.Range.convert + |> DynObj.withOptionalProperty "showline" ShowLine + |> DynObj.withOptionalProperty "linecolor" LineColor + |> DynObj.withOptionalProperty "linewidth" LineWidth + |> DynObj.withOptionalProperty "showgrid" ShowGrid + |> DynObj.withOptionalProperty "gridcolor" GridColor + |> DynObj.withOptionalPropertyBy "griddash" GridDash StyleParam.DrawingStyle.convert + |> DynObj.withOptionalProperty "gridwidth" GridWidth + |> DynObj.withOptionalProperty "zeroline" ZeroLine + |> DynObj.withOptionalProperty "zerolinecolor" ZeroLineColor + |> DynObj.withOptionalProperty "zerolinewidth" ZeroLineWidth + |> DynObj.withOptionalProperty "shift" Shift + |> DynObj.withOptionalProperty "showdividers" ShowDividers + |> DynObj.withOptionalProperty "dividercolor" DividerColor + |> DynObj.withOptionalProperty "dividerwidth" DividerWidth + |> DynObj.withOptionalPropertyBy "anchor" Anchor StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "side" Side StyleParam.Side.convert + |> DynObj.withOptionalPropertyBy "overlaying" Overlaying StyleParam.LinearAxisId.convert + |> DynObj.withOptionalProperty "labelalias" LabelAlias + |> DynObj.withOptionalPropertyBy "layer" Layer StyleParam.Layer.convert + |> DynObj.withOptionalPropertyBy "domain" Domain StyleParam.Range.convert + |> DynObj.withOptionalProperty "position" Position + |> DynObj.withOptionalPropertyBy "categoryorder" CategoryOrder StyleParam.CategoryOrder.convert + |> DynObj.withOptionalProperty "categoryarray" CategoryArray + |> DynObj.withOptionalProperty "uirevision" UIRevision + |> DynObj.withOptionalProperty "rangeslider" RangeSlider + |> DynObj.withOptionalProperty "rangeselector" RangeSelector + |> DynObj.withOptionalPropertyBy "calendar" Calendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "arraydtick" ArrayDTick + |> DynObj.withOptionalProperty "arraytick0" ArrayTick0 + |> DynObj.withOptionalPropertyBy "cheatertype" CheaterType StyleParam.CheaterType.convert + |> DynObj.withOptionalProperty "endline" EndLine + |> DynObj.withOptionalProperty "endlinecolor" EndLineColor + |> DynObj.withOptionalProperty "endlinewidth" EndLineWidth + |> DynObj.withOptionalProperty "labelpadding" LabelPadding + |> DynObj.withOptionalProperty "labelprefix" LabelPrefix + |> DynObj.withOptionalProperty "labelsuffix" LabelSuffix + |> DynObj.withOptionalProperty "minorgridcolor" MinorGridColor + |> DynObj.withOptionalPropertyBy "minorgriddash" MinorGridDash StyleParam.DrawingStyle.convert + |> DynObj.withOptionalProperty "minorgridcount" MinorGridCount + |> DynObj.withOptionalProperty "minorgridwidth" MinorGridWidth + |> DynObj.withOptionalProperty "smoothing" Smoothing + |> DynObj.withOptionalProperty "startline" StartLine + |> DynObj.withOptionalProperty "startlinecolor" StartLineColor + |> DynObj.withOptionalProperty "startlinewidth" StartLineWidth + |> DynObj.withOptionalProperty "backgroundcolor" BackgroundColor + |> DynObj.withOptionalProperty "showbackground" ShowBackground + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Margin.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Margin.fs index c2e48f9b4..602c62ac2 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Margin.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Margin.fs @@ -39,12 +39,12 @@ type Margin() = [] ?Autoexpand ) = (fun (margin: Margin) -> - Left |> DynObj.setOptionalProperty margin "l" - Right |> DynObj.setOptionalProperty margin "r" - Top |> DynObj.setOptionalProperty margin "t" - Bottom |> DynObj.setOptionalProperty margin "b" - Pad |> DynObj.setOptionalProperty margin "pad" - Autoexpand |> DynObj.setOptionalProperty margin "autoexpand" - - margin) + margin + |> DynObj.withOptionalProperty "l" Left + |> DynObj.withOptionalProperty "r" Right + |> DynObj.withOptionalProperty "t" Top + |> DynObj.withOptionalProperty "b" Bottom + |> DynObj.withOptionalProperty "pad" Pad + |> DynObj.withOptionalProperty "autoexpand" Autoexpand + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Minor.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Minor.fs index 0629a990f..c3300345a 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Minor.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Minor.fs @@ -92,18 +92,18 @@ type Minor() = ) = (fun (minor: Minor) -> - DTick |> DynObj.setOptionalProperty minor "dtick" - GridColor |> DynObj.setOptionalProperty minor "gridcolor" - GridDash |> DynObj.setOptionalPropertyBy minor "griddash" StyleParam.DrawingStyle.convert - GridWidth |> DynObj.setOptionalProperty minor "gridwidth" - NTicks |> DynObj.setOptionalProperty minor "nticks" - ShowGrid |> DynObj.setOptionalProperty minor "showgrid" - Tick0 |> DynObj.setOptionalProperty minor "tick0" - TickColor |> DynObj.setOptionalProperty minor "tickcolor" - TickLen |> DynObj.setOptionalProperty minor "ticklen" - TickMode |> DynObj.setOptionalPropertyBy minor "tickmode" StyleParam.TickMode.convert - Ticks |> DynObj.setOptionalPropertyBy minor "ticks" StyleParam.TickOptions.convert - TickVals |> DynObj.setOptionalProperty minor "tickvals" - TickWidth |> DynObj.setOptionalProperty minor "tickwidth" - - minor) + minor + |> DynObj.withOptionalProperty "dtick" DTick + |> DynObj.withOptionalProperty "gridcolor" GridColor + |> DynObj.withOptionalPropertyBy "griddash" GridDash StyleParam.DrawingStyle.convert + |> DynObj.withOptionalProperty "gridwidth" GridWidth + |> DynObj.withOptionalProperty "nticks" NTicks + |> DynObj.withOptionalProperty "showgrid" ShowGrid + |> DynObj.withOptionalProperty "tick0" Tick0 + |> DynObj.withOptionalProperty "tickcolor" TickColor + |> DynObj.withOptionalProperty "ticklen" TickLen + |> DynObj.withOptionalPropertyBy "tickmode" TickMode StyleParam.TickMode.convert + |> DynObj.withOptionalPropertyBy "ticks" Ticks StyleParam.TickOptions.convert + |> DynObj.withOptionalProperty "tickvals" TickVals + |> DynObj.withOptionalProperty "tickwidth" TickWidth + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ModeBar.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ModeBar.fs index 513ef5701..9a92096a7 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ModeBar.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ModeBar.fs @@ -41,12 +41,12 @@ type ModeBar() = ) = (fun (modeBar: ModeBar) -> - ActiveColor |> DynObj.setOptionalProperty modeBar "activecolor" - Add |> DynObj.setOptionalProperty modeBar "add" - BGColor |> DynObj.setOptionalProperty modeBar "bgcolor" - Color |> DynObj.setOptionalProperty modeBar "color" - Orientation |> DynObj.setOptionalPropertyBy modeBar "orientation" StyleParam.Orientation.convert - Remove |> DynObj.setOptionalProperty modeBar "remove" - UIRevision |> DynObj.setOptionalProperty modeBar "uirevision " - - modeBar) + modeBar + |> DynObj.withOptionalProperty "activecolor" ActiveColor + |> DynObj.withOptionalProperty "add" Add + |> DynObj.withOptionalProperty "bgcolor" BGColor + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalPropertyBy "orientation" Orientation StyleParam.Orientation.convert + |> DynObj.withOptionalProperty "remove" Remove + |> DynObj.withOptionalProperty "uirevision " UIRevision + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewSelection.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewSelection.fs index 6261b3e8d..8ddb48c33 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewSelection.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewSelection.fs @@ -44,7 +44,7 @@ type NewSelection() = let line = Line.init (?Color = LineColor, ?Dash = LineDash, ?Width = LineWidth) - line |> DynObj.withProperty newSelection "line" - Mode |> DynObj.setOptionalPropertyBy newSelection "mode" StyleParam.NewSelectionMode.convert - - newSelection) + newSelection + |> DynObj.withProperty "line" line + |> DynObj.setOptionalPropertyBy "mode" Mode StyleParam.NewSelectionMode.convert + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewShape.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewShape.fs index fd5ac1010..a3e955b6f 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewShape.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewShape.fs @@ -38,9 +38,7 @@ type NewShape() = let id = StyleParam.SubPlotId.Legend legendId - (fun (newShape: NewShape) -> - newShape.SetValue("legend", StyleParam.SubPlotId.convert id) - newShape) + (fun (newShape: NewShape) -> newShape |> DynObj.withProperty "legend" (StyleParam.SubPlotId.convert id)) /// /// Returns a new NewShape object with the given styling. @@ -130,19 +128,19 @@ type NewShape() = ) = (fun (newShape: NewShape) -> - DrawDirection |> DynObj.setOptionalPropertyBy newShape "drawdirection" StyleParam.DrawDirection.convert - FillColor |> DynObj.setOptionalProperty newShape "fillcolor" - FillRule |> DynObj.setOptionalPropertyBy newShape "fillrule" StyleParam.FillRule.convert - Layer |> DynObj.setOptionalPropertyBy newShape "layer" StyleParam.Layer.convert - ShowLegend |> DynObj.setOptionalProperty newShape "showlegend" - Legend |> DynObj.setOptionalPropertyBy newShape "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty newShape "legendrank" - LegendGroup |> DynObj.setOptionalProperty newShape "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty newShape "legendgrouptitle" - LegendWidth |> DynObj.setOptionalProperty newShape "legendwidth" - Line |> DynObj.setOptionalProperty newShape "line" - Name |> DynObj.setOptionalProperty newShape "name" - Opacity |> DynObj.setOptionalProperty newShape "opacity" - Visible |> DynObj.setOptionalPropertyBy newShape "visible" StyleParam.Visible.convert - - newShape) + newShape + |> DynObj.withOptionalPropertyBy "drawdirection" DrawDirection StyleParam.DrawDirection.convert + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalPropertyBy "fillrule" FillRule StyleParam.FillRule.convert + |> DynObj.withOptionalPropertyBy "layer" Layer StyleParam.Layer.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "legendwidth" LegendWidth + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSelector.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSelector.fs index 2d4bf16a0..1248609b8 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSelector.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSelector.fs @@ -55,16 +55,16 @@ type RangeSelector() = ) = (fun (rangeSelector: RangeSelector) -> - Visible |> DynObj.setOptionalProperty rangeSelector "visible" - Buttons |> DynObj.setOptionalProperty rangeSelector "buttons" - X |> DynObj.setOptionalProperty rangeSelector "x" - XAnchor |> DynObj.setOptionalPropertyBy rangeSelector "xanchor" StyleParam.XAnchorPosition.convert - Y |> DynObj.setOptionalProperty rangeSelector "y" - YAnchor |> DynObj.setOptionalPropertyBy rangeSelector "yanchor" StyleParam.YAnchorPosition.convert - Font |> DynObj.setOptionalProperty rangeSelector "font" - BGColor |> DynObj.setOptionalProperty rangeSelector "bgcolor" - ActiveColor |> DynObj.setOptionalProperty rangeSelector "activecolor" - BorderColor |> DynObj.setOptionalProperty rangeSelector "bordercolor" - BorderWidth |> DynObj.setOptionalProperty rangeSelector "borderwidth" - - rangeSelector) + rangeSelector + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalProperty "buttons" Buttons + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalPropertyBy "xanchor" XAnchor StyleParam.XAnchorPosition.convert + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalPropertyBy "yanchor" YAnchor StyleParam.YAnchorPosition.convert + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "bgcolor" BGColor + |> DynObj.withOptionalProperty "activecolor" ActiveColor + |> DynObj.withOptionalProperty "bordercolor" BorderColor + |> DynObj.withOptionalProperty "borderwidth" BorderWidth + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSlider.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSlider.fs index 352b75517..c4ac8f5d0 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSlider.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSlider.fs @@ -50,21 +50,19 @@ type RangeSlider() = [] ?YAxisRange: StyleParam.Range ) = fun (rangeslider: RangeSlider) -> - BgColor |> DynObj.setOptionalProperty rangeslider "bgcolor" - BorderColor |> DynObj.setOptionalProperty rangeslider "bordercolor" - BorderWidth |> DynObj.setOptionalProperty rangeslider "borderwidth" - AutoRange |> DynObj.setOptionalProperty rangeslider "autorange" - Range |> DynObj.setOptionalPropertyBy rangeslider "range" StyleParam.Range.convert - Thickness |> DynObj.setOptionalProperty rangeslider "thickness" - Visible |> DynObj.setOptionalProperty rangeslider "visible" let yAxis = - let tmp = DynamicObj() - YAxisRangeMode |> DynObj.setOptionalPropertyBy tmp "rangemode" StyleParam.RangesliderRangeMode.convert - YAxisRange |> DynObj.setOptionalPropertyBy tmp "range" StyleParam.Range.convert - tmp - - yAxis |> DynObj.withProperty rangeslider "yaxis" - + DynamicObj() + |> DynObj.withOptionalPropertyBy "rangemode" YAxisRangeMode StyleParam.RangesliderRangeMode.convert + |> DynObj.withOptionalPropertyBy "range" YAxisRange StyleParam.Range.convert rangeslider + |> DynObj.withOptionalProperty "bgcolor" BgColor + |> DynObj.withOptionalProperty "bordercolor" BorderColor + |> DynObj.withOptionalProperty "borderwidth" BorderWidth + |> DynObj.withOptionalProperty "autorange" AutoRange + |> DynObj.withOptionalPropertyBy "range" Range StyleParam.Range.convert + |> DynObj.withOptionalProperty "thickness" Thickness + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withProperty "yaxis" yAxis + diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Rangebreak.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Rangebreak.fs index 8760df610..2ed6a2c04 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Rangebreak.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Rangebreak.fs @@ -60,12 +60,13 @@ type Rangebreak() = [] ?TemplateItemName: string ) = (fun (rangebreak: Rangebreak) -> - Enabled |> DynObj.setOptionalProperty rangebreak "enabled" - Bounds |> DynObj.setOptionalPropertyBy rangebreak "bounds" (fun (a, b) -> [| a; b |]) - Pattern |> DynObj.setOptionalPropertyBy rangebreak "pattern" StyleParam.RangebreakPattern.convert - Values |> DynObj.setOptionalProperty rangebreak "values" - DValue |> DynObj.setOptionalProperty rangebreak "dvalue" - Name |> DynObj.setOptionalProperty rangebreak "name" - TemplateItemName |> DynObj.setOptionalProperty rangebreak "templateitemname" - rangebreak) + rangebreak + |> DynObj.withOptionalProperty "enabled" Enabled + |> DynObj.withOptionalPropertyBy "bounds" Bounds (fun (a, b) -> [| a; b |]) + |> DynObj.withOptionalPropertyBy "pattern" Pattern StyleParam.RangebreakPattern.convert + |> DynObj.withOptionalProperty "values" Values + |> DynObj.withOptionalProperty "dvalue" DValue + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Selection.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Selection.fs index 99151c5f8..7965c9104 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Selection.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Selection.fs @@ -86,17 +86,17 @@ type Selection() = ) = (fun (selection: Selection) -> - Line |> DynObj.setOptionalProperty selection "line" - Name |> DynObj.setOptionalProperty selection "name" - Opacity |> DynObj.setOptionalProperty selection "opacity" - Path |> DynObj.setOptionalProperty selection "path" - TemplateItemName |> DynObj.setOptionalProperty selection "templateitemname" - SelectionType |> DynObj.setOptionalPropertyBy selection "type" StyleParam.SelectionType.convert - X0 |> DynObj.setOptionalProperty selection "x0" - X1 |> DynObj.setOptionalProperty selection "x1" - Xref |> DynObj.setOptionalProperty selection "xref" - Y0 |> DynObj.setOptionalProperty selection "y0" - Y1 |> DynObj.setOptionalProperty selection "y1" - Yref |> DynObj.setOptionalProperty selection "yref" - - selection) + selection + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "path" Path + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName + |> DynObj.withOptionalPropertyBy "type" SelectionType StyleParam.SelectionType.convert + |> DynObj.withOptionalProperty "x0" X0 + |> DynObj.withOptionalProperty "x1" X1 + |> DynObj.withOptionalProperty "xref" Xref + |> DynObj.withOptionalProperty "y0" Y0 + |> DynObj.withOptionalProperty "y1" Y1 + |> DynObj.withOptionalProperty "yref" Yref + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Shape.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Shape.fs index 32ea71dfc..ae02631f7 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Shape.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Shape.fs @@ -39,9 +39,7 @@ type Shape() = let id = StyleParam.SubPlotId.Legend legendId - (fun (shape: Shape) -> - shape.SetValue("legend", StyleParam.SubPlotId.convert id) - shape) + (fun (shape: Shape) -> shape |> DynObj.withProperty "legend" (StyleParam.SubPlotId.convert id)) /// /// Returns a new Shape object with the given styling. @@ -201,33 +199,33 @@ type Shape() = ) = (fun (shape: Shape) -> - Editable |> DynObj.setOptionalProperty shape "editable" - FillColor |> DynObj.setOptionalProperty shape "fillcolor" - FillRule |> DynObj.setOptionalPropertyBy shape "fillrule" StyleParam.FillRule.convert - Label |> DynObj.setOptionalProperty shape "label" - ShowLegend |> DynObj.setOptionalProperty shape "showlegend" - Legend |> DynObj.setOptionalPropertyBy shape "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty shape "legendrank" - LegendGroup |> DynObj.setOptionalProperty shape "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty shape "legendgrouptitle" - LegendWidth |> DynObj.setOptionalProperty shape "legendwidth" - Layer |> DynObj.setOptionalPropertyBy shape "layer" StyleParam.Layer.convert - Line |> DynObj.setOptionalProperty shape "line" - Name |> DynObj.setOptionalProperty shape "name" - Opacity |> DynObj.setOptionalProperty shape "opacity" - Path |> DynObj.setOptionalProperty shape "path" - TemplateItemName |> DynObj.setOptionalProperty shape "templateitemname" - ShapeType |> DynObj.setOptionalPropertyBy shape "type" StyleParam.ShapeType.convert - Visible |> DynObj.setOptionalProperty shape "visible" - X0 |> DynObj.setOptionalProperty shape "x0" - X1 |> DynObj.setOptionalProperty shape "x1" - XAnchor |> DynObj.setOptionalPropertyBy shape "xanchor" StyleParam.LinearAxisId.convert - Xref |> DynObj.setOptionalProperty shape "xref" - XSizeMode |> DynObj.setOptionalPropertyBy shape "xsizemode" StyleParam.ShapeSizeMode.convert - Y0 |> DynObj.setOptionalProperty shape "y0" - Y1 |> DynObj.setOptionalProperty shape "y1" - YAnchor |> DynObj.setOptionalPropertyBy shape "yanchor" StyleParam.LinearAxisId.convert - Yref |> DynObj.setOptionalProperty shape "yref" - YSizeMode |> DynObj.setOptionalPropertyBy shape "ysizemode" StyleParam.ShapeSizeMode.convert - - shape) + shape + |> DynObj.withProperty "editable" Editable + |> DynObj.withProperty "fillcolor" FillColor + |> DynObj.withOptionalPropertyBy "fillrule" FillRule StyleParam.FillRule.convert + |> DynObj.withProperty "label" Label + |> DynObj.withProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withProperty "legendrank" LegendRank + |> DynObj.withProperty "legendgroup" LegendGroup + |> DynObj.withProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withProperty "legendwidth" LegendWidth + |> DynObj.withOptionalPropertyBy "layer" Layer StyleParam.Layer.convert + |> DynObj.withProperty "line" Line + |> DynObj.withProperty "name" Name + |> DynObj.withProperty "opacity" Opacity + |> DynObj.withProperty "path" Path + |> DynObj.withProperty "templateitemname" TemplateItemName + |> DynObj.withOptionalPropertyBy "type" ShapeType StyleParam.ShapeType.convert + |> DynObj.withProperty "visible" Visible + |> DynObj.withProperty "x0" X0 + |> DynObj.withProperty "x1" X1 + |> DynObj.withOptionalPropertyBy "xanchor" XAnchor StyleParam.LinearAxisId.convert + |> DynObj.withProperty "xref" Xref + |> DynObj.withOptionalPropertyBy "xsizemode" XSizeMode StyleParam.ShapeSizeMode.convert + |> DynObj.withProperty "y0" Y0 + |> DynObj.withProperty "y1" Y1 + |> DynObj.withOptionalPropertyBy "yanchor" YAnchor StyleParam.LinearAxisId.convert + |> DynObj.withProperty "yref" Yref + |> DynObj.withOptionalPropertyBy "ysizemode" YSizeMode StyleParam.ShapeSizeMode.convert) + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ShapeLabel.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ShapeLabel.fs index 6a391ce1f..04713fa47 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ShapeLabel.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ShapeLabel.fs @@ -72,14 +72,13 @@ type ShapeLabel() = (fun (shapeLabel: ShapeLabel) -> - Font |> DynObj.setOptionalProperty shapeLabel "font" - Padding |> DynObj.setOptionalProperty shapeLabel "padding" - Text |> DynObj.setOptionalProperty shapeLabel "text" - TextAngle |> DynObj.setOptionalPropertyBy shapeLabel "textangle" StyleParam.TextAngle.convert - TextPosition |> DynObj.setOptionalPropertyBy shapeLabel "textposition" StyleParam.TextPosition.convert - TextTemplate |> DynObj.setOptionalProperty shapeLabel "texttemplate" - XAnchor |> DynObj.setOptionalPropertyBy shapeLabel "xanchor" StyleParam.XAnchorPosition.convert - YAnchor |> DynObj.setOptionalPropertyBy shapeLabel "yanchor" StyleParam.YAnchorPosition.convert - shapeLabel + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "padding" Padding + |> DynObj.withOptionalProperty "text" Text + |> DynObj.withOptionalPropertyBy "textangle" TextAngle StyleParam.TextAngle.convert + |> DynObj.withOptionalPropertyBy "textposition" TextPosition StyleParam.TextPosition.convert + |> DynObj.withOptionalProperty "texttemplate" TextTemplate + |> DynObj.withOptionalPropertyBy "xanchor" XAnchor StyleParam.XAnchorPosition.convert + |> DynObj.withOptionalPropertyBy "yanchor" YAnchor StyleParam.YAnchorPosition.convert ) \ No newline at end of file diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/Slider.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/Slider.fs index fbc200e39..746a6b7fb 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/Slider.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/Slider.fs @@ -141,28 +141,28 @@ type Slider() = ?YAnchor: StyleParam.YAnchorPosition ) = (fun (slider: Slider) -> - Active |> DynObj.setOptionalProperty slider "active" - ActiveBgColor |> DynObj.setOptionalProperty slider "activebgcolor" - BgColor |> DynObj.setOptionalProperty slider "bgcolor" - BorderColor |> DynObj.setOptionalProperty slider "bordercolor" - BorderWidth |> DynObj.setOptionalProperty slider "borderwidth" - CurrentValue |> DynObj.setOptionalProperty slider "currentvalue" - Font |> DynObj.setOptionalProperty slider "font" - Len |> DynObj.setOptionalProperty slider "len" - LenMode |> DynObj.setOptionalPropertyBy slider "lenmode" StyleParam.UnitMode.convert - MinorTickLen |> DynObj.setOptionalProperty slider "minorticklen" - Name |> DynObj.setOptionalProperty slider "name" - Padding |> DynObj.setOptionalProperty slider "pad" - Steps |> DynObj.setOptionalProperty slider "steps" - TemplateItemName |> DynObj.setOptionalProperty slider "templateitemname" - TickColor |> DynObj.setOptionalProperty slider "tickcolor" - TickLen |> DynObj.setOptionalProperty slider "ticklen" - TickWidth |> DynObj.setOptionalProperty slider "tickwidth" - Transition |> DynObj.setOptionalProperty slider "transition" - Visible |> DynObj.setOptionalProperty slider "visible" - X |> DynObj.setOptionalProperty slider "x" - XAnchor |> DynObj.setOptionalPropertyBy slider "xanchor" StyleParam.XAnchorPosition.convert - Y |> DynObj.setOptionalProperty slider "y" - YAnchor |> DynObj.setOptionalPropertyBy slider "yanchor" StyleParam.YAnchorPosition.convert - - slider) + slider + |> DynObj.withOptionalProperty "active" Active + |> DynObj.withOptionalProperty "activebgcolor" ActiveBgColor + |> DynObj.withOptionalProperty "bgcolor" BgColor + |> DynObj.withOptionalProperty "bordercolor" BorderColor + |> DynObj.withOptionalProperty "borderwidth" BorderWidth + |> DynObj.withOptionalProperty "currentvalue" CurrentValue + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "len" Len + |> DynObj.withOptionalPropertyBy "lenmode" LenMode StyleParam.UnitMode.convert + |> DynObj.withOptionalProperty "minorticklen" MinorTickLen + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "pad" Padding + |> DynObj.withOptionalProperty "steps" Steps + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName + |> DynObj.withOptionalProperty "tickcolor" TickColor + |> DynObj.withOptionalProperty "ticklen" TickLen + |> DynObj.withOptionalProperty "tickwidth" TickWidth + |> DynObj.withOptionalProperty "transition" Transition + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalPropertyBy "xanchor" XAnchor StyleParam.XAnchorPosition.convert + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalPropertyBy "yanchor" YAnchor StyleParam.YAnchorPosition.convert + ) \ No newline at end of file diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/SliderCurrentValue.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/SliderCurrentValue.fs index 292c8eb53..a457e9383 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/SliderCurrentValue.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/SliderCurrentValue.fs @@ -50,10 +50,12 @@ type SliderCurrentValue() = if autoValueIsProvided then printf "The value '%s' is not supported by CurrentValue" (StyleParam.XAnchorPosition.Auto |> string) - Font |> DynObj.setOptionalProperty currentValue "font" - Offset |> DynObj.setOptionalProperty currentValue "offset" - Prefix |> DynObj.setOptionalProperty currentValue "prefix" - Suffix |> DynObj.setOptionalProperty currentValue "suffix" - Visible |> DynObj.setOptionalProperty currentValue "visible" - XAnchor |> DynObj.setOptionalPropertyBy currentValue "xanchor" StyleParam.XAnchorPosition.convert - currentValue) + currentValue + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "offset" Offset + |> DynObj.withOptionalProperty "prefix" Prefix + |> DynObj.withOptionalProperty "suffix" Suffix + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalPropertyBy "xanchor" XAnchor StyleParam.XAnchorPosition.convert + ) + diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/SliderStep.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/SliderStep.fs index b3f55f32b..7b48e4e61 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/SliderStep.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Slider/SliderStep.fs @@ -80,12 +80,13 @@ type SliderStep() = let argsAsDictionaries = Args |> Option.map (fun args -> args |> Seq.map (fun arg -> [ arg ] |> dict)) - argsAsDictionaries |> DynObj.setOptionalProperty step "args" - Execute |> DynObj.setOptionalProperty step "execute" - Label |> DynObj.setOptionalProperty step "label" - Method |> DynObj.setOptionalPropertyBy step "method" StyleParam.Method.convert - Name |> DynObj.setOptionalProperty step "name" - TemplateItemName |> DynObj.setOptionalProperty step "templateitemname" - Value |> DynObj.setOptionalProperty step "value" - Visible |> DynObj.setOptionalProperty step "visible" - step) + step + |> DynObj.withOptionalProperty "args" argsAsDictionaries + |> DynObj.withOptionalProperty "execute" Execute + |> DynObj.withOptionalProperty "label" Label + |> DynObj.withOptionalPropertyBy "method" Method StyleParam.Method.convert + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName + |> DynObj.withOptionalProperty "value" Value + |> DynObj.withOptionalProperty "visible" Visible + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Transition.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Transition.fs index f11452b98..8c5c433f3 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Transition.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Transition.fs @@ -24,8 +24,9 @@ type Transition() = ) = (fun (transition: Transition) -> - Duration |> DynObj.setOptionalProperty transition "duration" - Easing |> DynObj.setOptionalPropertyBy transition "easing" StyleParam.TransitionEasing.convert - Ordering |> DynObj.setOptionalPropertyBy transition "ordering" StyleParam.TransitionOrdering.convert + transition + |> DynObj.withOptionalProperty "duration" Duration + |> DynObj.withOptionalPropertyBy "easing" Easing StyleParam.TransitionEasing.convert + |> DynObj.withOptionalPropertyBy "ordering" Ordering StyleParam.TransitionOrdering.convert - transition) + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/UniformText.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/UniformText.fs index b52af7fef..1bd4a33c5 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/UniformText.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/UniformText.fs @@ -22,7 +22,7 @@ type UniformText() = ) = (fun (uniformText: UniformText) -> - MinSize |> DynObj.setOptionalProperty uniformText "minsize" - Mode |> DynObj.setOptionalPropertyBy uniformText "mode" StyleParam.UniformTextMode.convert - - uniformText) + uniformText + |> DynObj.withOptionalProperty "minsize" MinSize + |> DynObj.withOptionalPropertyBy "mode" Mode StyleParam.UniformTextMode.convert + ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/UpdateMenu.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/UpdateMenu.fs index d914147b3..e00a28491 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/UpdateMenu.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/UpdateMenu.fs @@ -45,17 +45,16 @@ type UpdateMenuButton() = ) = (fun (updateMenuButton: UpdateMenuButton) -> - Args |> DynObj.setOptionalProperty updateMenuButton "args" - Args2 |> DynObj.setOptionalProperty updateMenuButton "args2" - Execute |> DynObj.setOptionalProperty updateMenuButton "execute" - Label |> DynObj.setOptionalProperty updateMenuButton "label" - Method |> DynObj.setOptionalPropertyBy updateMenuButton "method" StyleParam.UpdateMethod.convert - Name |> DynObj.setOptionalProperty updateMenuButton "name" - TemplateItemName |> DynObj.setOptionalProperty updateMenuButton "templateitemname" - Visible |> DynObj.setOptionalProperty updateMenuButton "visible" - - - updateMenuButton) + updateMenuButton + |> DynObj.withOptionalProperty "args" Args + |> DynObj.withOptionalProperty "args2" Args2 + |> DynObj.withOptionalProperty "execute" Execute + |> DynObj.withOptionalProperty "label" Label + |> DynObj.withOptionalPropertyBy "method" Method StyleParam.UpdateMethod.convert + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName + |> DynObj.withOptionalProperty "visible" Visible + ) type UpdateMenu() = inherit DynamicObj() @@ -121,21 +120,21 @@ type UpdateMenu() = ) = (fun (updateMenu: UpdateMenu) -> - Active |> DynObj.setOptionalProperty updateMenu "active" - BGColor |> DynObj.setOptionalProperty updateMenu "bgcolor" - BorderColor |> DynObj.setOptionalProperty updateMenu "bordercolor" - Buttons |> DynObj.setOptionalProperty updateMenu "buttons" - Direction |> DynObj.setOptionalPropertyBy updateMenu "direction" StyleParam.UpdateMenuDirection.convert - Font |> DynObj.setOptionalProperty updateMenu "font" - Name |> DynObj.setOptionalProperty updateMenu "name" - Pad |> DynObj.setOptionalProperty updateMenu "pad" - ShowActive |> DynObj.setOptionalProperty updateMenu "showactive" - TemplateItemName |> DynObj.setOptionalProperty updateMenu "templateitemname" - Type |> DynObj.setOptionalPropertyBy updateMenu "type" StyleParam.UpdateMenuType.convert - Visible |> DynObj.setOptionalProperty updateMenu "visible" - X |> DynObj.setOptionalProperty updateMenu "x" - XAnchor |> DynObj.setOptionalPropertyBy updateMenu "xanchor" StyleParam.XAnchorPosition.convert - Y |> DynObj.setOptionalProperty updateMenu "y" - YAnchor |> DynObj.setOptionalPropertyBy updateMenu "yanchor" StyleParam.YAnchorPosition.convert - - updateMenu) + updateMenu + |> DynObj.withOptionalProperty "active" Active + |> DynObj.withOptionalProperty "bgcolor" BGColor + |> DynObj.withOptionalProperty "bordercolor" BorderColor + |> DynObj.withOptionalProperty "buttons" Buttons + |> DynObj.withOptionalPropertyBy "direction" Direction StyleParam.UpdateMenuDirection.convert + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "pad" Pad + |> DynObj.withOptionalProperty "showactive" ShowActive + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName + |> DynObj.withOptionalPropertyBy "type" Type StyleParam.UpdateMenuType.convert + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalPropertyBy "xanchor" XAnchor StyleParam.XAnchorPosition.convert + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalPropertyBy "yanchor" YAnchor StyleParam.YAnchorPosition.convert + ) From 730240f0b503297e9800d5969674c1507850d650 Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Mon, 14 Oct 2024 15:18:26 +0200 Subject: [PATCH 04/36] wip port traceobjects to dynObj v4 --- .../Traces/ObjectAbstractions/Bins.fs | 10 +-- .../Traces/ObjectAbstractions/Box.fs | 14 ++-- .../Traces/ObjectAbstractions/Caps.fs | 12 ++-- .../Traces/ObjectAbstractions/Contours.fs | 71 +++++++++---------- .../Traces/ObjectAbstractions/Cumulative.fs | 10 +-- .../Traces/ObjectAbstractions/Dimensions.fs | 32 ++++----- .../Traces/ObjectAbstractions/Error.fs | 31 ++++---- .../ObjectAbstractions/FunnelConnector.fs | 11 ++- .../Traces/ObjectAbstractions/Gradient.fs | 6 +- .../Traces/ObjectAbstractions/Indicator.fs | 47 ++++++------ .../Traces/ObjectAbstractions/Lighting.fs | 22 +++--- .../Traces/ObjectAbstractions/Marker.fs | 62 ++++++++-------- .../Traces/ObjectAbstractions/MeanLine.fs | 11 ++- .../Traces/ObjectAbstractions/Pathbar.fs | 14 ++-- .../Traces/ObjectAbstractions/Pattern.fs | 17 +++-- .../Traces/ObjectAbstractions/Projection.fs | 14 ++-- .../Traces/ObjectAbstractions/Slices.fs | 14 ++-- .../Traces/ObjectAbstractions/SpaceFrame.fs | 5 +- .../ObjectAbstractions/StreamTubeStarts.fs | 7 +- .../Traces/ObjectAbstractions/Sunburst.fs | 14 ++-- .../Traces/ObjectAbstractions/Surface.fs | 9 ++- .../Traces/ObjectAbstractions/Table.fs | 31 ++++---- .../ObjectAbstractions/TraceSelection.fs | 38 +++++----- .../Traces/ObjectAbstractions/Treemap.fs | 27 ++++--- .../ObjectAbstractions/WaterfallConnector.fs | 11 ++- 25 files changed, 250 insertions(+), 290 deletions(-) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Bins.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Bins.fs index 0fc981c9c..94326e188 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Bins.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Bins.fs @@ -28,9 +28,9 @@ type Bins() = [] ?Size: float ) = - (fun (bins: Bins) -> - Start |> DynObj.setOptionalProperty bins "start" - End |> DynObj.setOptionalProperty bins "end" - Size |> DynObj.setOptionalProperty bins "size" + fun (bins: Bins) -> - bins) + bins + |> DynObj.withOptionalProperty "start" Start + |> DynObj.withOptionalProperty "end" End + |> DynObj.withOptionalProperty "size" Size diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Box.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Box.fs index 1f8727800..9b47399c6 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Box.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Box.fs @@ -38,7 +38,7 @@ type Box() = [] ?LineColor: Color, [] ?LineWidth: float ) = - (fun (box: Box) -> + fun (box: Box) -> let line = if LineColor.IsSome || LineWidth.IsSome then @@ -46,10 +46,8 @@ type Box() = else None - Visible |> DynObj.setOptionalProperty box "visible" - Width |> DynObj.setOptionalProperty box "width" - FillColor |> DynObj.setOptionalProperty box "fillcolor" - line |> DynObj.setOptionalProperty box "line" - - // out -> - box) + box + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalProperty "width" Width + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "line" line diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Caps.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Caps.fs index cda906f3b..ce1c112f7 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Caps.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Caps.fs @@ -24,10 +24,9 @@ type CapFill() = fun (capFill: CapFill) -> - Fill |> DynObj.setOptionalProperty capFill "fill" - Show |> DynObj.setOptionalProperty capFill "show" - capFill + |> DynObj.withOptionalProperty "fill" Fill + |> DynObj.withOptionalProperty "show" Show type Caps() = @@ -50,8 +49,7 @@ type Caps() = ) = fun (caps: Caps) -> - X |> DynObj.setOptionalProperty caps "x" - Y |> DynObj.setOptionalProperty caps "y" - Z |> DynObj.setOptionalProperty caps "z" - caps + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Contours.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Contours.fs index 7d9dc9b35..b33f3b7ce 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Contours.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Contours.fs @@ -27,11 +27,10 @@ type ContourProject() = fun (contourProject: ContourProject) -> - X |> DynObj.setOptionalProperty contourProject "x" - Y |> DynObj.setOptionalProperty contourProject "y" - Z |> DynObj.setOptionalProperty contourProject "z" - contourProject + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z /// Contour object inherits from dynamic object type Contour() = @@ -86,21 +85,19 @@ type Contour() = [] ?Width: float ) = - (fun (contour: Contour) -> - Color |> DynObj.setOptionalProperty contour "color" - End |> DynObj.setOptionalProperty contour "end" - Highlight |> DynObj.setOptionalProperty contour "highlight" - HighlightColor |> DynObj.setOptionalProperty contour "highlightcolor" - HighlightWidth |> DynObj.setOptionalProperty contour "highlightwidth" - Project |> DynObj.setOptionalProperty contour "project" - Show |> DynObj.setOptionalProperty contour "show" - Size |> DynObj.setOptionalProperty contour "size" - Start |> DynObj.setOptionalProperty contour "start" - UseColorMap |> DynObj.setOptionalProperty contour "usecolormap" - Width |> DynObj.setOptionalProperty contour "width" - - - contour) + fun (contour: Contour) -> + contour + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "end" End + |> DynObj.withOptionalProperty "highlight" Highlight + |> DynObj.withOptionalProperty "highlightcolor" HighlightColor + |> DynObj.withOptionalProperty "highlightwidth" HighlightWidth + |> DynObj.withOptionalProperty "project" Project + |> DynObj.withOptionalProperty "show" Show + |> DynObj.withOptionalProperty "size" Size + |> DynObj.withOptionalProperty "start" Start + |> DynObj.withOptionalProperty "usecolormap" UseColorMap + |> DynObj.withOptionalProperty "width" Width /// Contours type inherits from dynamic object type Contours() = @@ -167,24 +164,24 @@ type Contours() = [] ?Value: #IConvertible ) = - (fun (contours: Contours) -> - X |> DynObj.setOptionalProperty contours "x" - Y |> DynObj.setOptionalProperty contours "y" - Z |> DynObj.setOptionalProperty contours "z" - Coloring |> DynObj.setOptionalPropertyBy contours "coloring" StyleParam.ContourColoring.convert - End |> DynObj.setOptionalProperty contours "end" - LabelFont |> DynObj.setOptionalProperty contours "labelfont" - LabelFormat |> DynObj.setOptionalProperty contours "labelformat" - Operation |> DynObj.setOptionalPropertyBy contours "operation" StyleParam.ConstraintOperation.convert - ShowLabels |> DynObj.setOptionalProperty contours "showlabels" - ShowLines |> DynObj.setOptionalProperty contours "showlines" - Size |> DynObj.setOptionalProperty contours "size" - Start |> DynObj.setOptionalProperty contours "start" - Type |> DynObj.setOptionalPropertyBy contours "type" StyleParam.ContourType.convert - Value |> DynObj.setOptionalProperty contours "value" - - - contours) + fun (contours: Contours) -> + + contours + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalPropertyBy "coloring" Coloring StyleParam.ContourColoring.convert + |> DynObj.withOptionalProperty "end" End + |> DynObj.withOptionalProperty "labelfont" LabelFont + |> DynObj.withOptionalProperty "labelformat" LabelFormat + |> DynObj.withOptionalPropertyBy "operation" Operation StyleParam.ConstraintOperation.convert + |> DynObj.withOptionalProperty "showlabels" ShowLabels + |> DynObj.withOptionalProperty "showlines" ShowLines + |> DynObj.withOptionalProperty "size" Size + |> DynObj.withOptionalProperty "start" Start + |> DynObj.withOptionalPropertyBy "type" Type StyleParam.ContourType.convert + |> DynObj.withOptionalProperty "value" Value + // Initialized x-y-z-Contours with the same properties diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Cumulative.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Cumulative.fs index fa961dee8..a8f841679 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Cumulative.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Cumulative.fs @@ -38,9 +38,9 @@ type Cumulative() = [] ?Currentbin: StyleParam.Currentbin ) = - (fun (cumulative: Cumulative) -> - Enabled |> DynObj.setOptionalProperty cumulative "enabled" - Direction |> DynObj.setOptionalPropertyBy cumulative "direction" StyleParam.CumulativeDirection.convert - Currentbin |> DynObj.setOptionalPropertyBy cumulative "currentbin" StyleParam.Currentbin.convert + fun (cumulative: Cumulative) -> - cumulative) + cumulative + |> DynObj.withOptionalProperty "enabled" Enabled + |> DynObj.withOptionalPropertyBy "direction" Direction StyleParam.CumulativeDirection.convert + |> DynObj.withOptionalPropertyBy "currentbin" Currentbin StyleParam.Currentbin.convert diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Dimensions.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Dimensions.fs index 2f724ec44..533e44832 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Dimensions.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Dimensions.fs @@ -83,24 +83,22 @@ type Dimension() = [] ?AxisMatches: bool, [] ?AxisType: StyleParam.AxisType ) = - (fun (dims: Dimension) -> + fun (dims: Dimension) -> let axis = LinearAxis.init (?AxisType = AxisType) + |> DynObj.setOptionalProperty "matches" AxisMatches - AxisMatches |> DynObj.setOptionalProperty axis "matches" - - Label |> DynObj.setOptionalProperty dims "label" - Name |> DynObj.setOptionalProperty dims "name" - TemplateItemName |> DynObj.setOptionalProperty dims "templateitemname" - Values |> DynObj.setOptionalProperty dims "values" - Visible |> DynObj.setOptionalProperty dims "visible" - ConstraintRange |> DynObj.setOptionalPropertyBy dims "constraintrange" StyleParam.Range.convert - MultiSelect |> DynObj.setOptionalProperty dims "multiselect" - Range |> DynObj.setOptionalPropertyBy dims "range" StyleParam.Range.convert - TickFormat |> DynObj.setOptionalPropertyBy dims "tickformat" StyleParam.TickMode.convert - TickText |> DynObj.setOptionalProperty dims "ticktext" - Tickvals |> DynObj.setOptionalProperty dims "tickvals" - axis |> DynObj.withProperty dims "axis" - - dims) + dims + |> DynObj.withOptionalProperty "label" Label + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName + |> DynObj.withOptionalProperty "values" Values + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalPropertyBy "constraintrange" ConstraintRange StyleParam.Range.convert + |> DynObj.withOptionalProperty "multiselect" MultiSelect + |> DynObj.withOptionalPropertyBy "range" Range StyleParam.Range.convert + |> DynObj.withOptionalPropertyBy "tickformat" TickFormat StyleParam.TickMode.convert + |> DynObj.withOptionalProperty "ticktext" TickText + |> DynObj.withOptionalProperty "tickvals" Tickvals + |> DynObj.withProperty "axis" axis diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Error.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Error.fs index 576037106..d9ee3e7f3 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Error.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Error.fs @@ -91,20 +91,19 @@ type Error() = [] ?Thickness: float, [] ?Width: float ) = - (fun (error: Error) -> - Visible |> DynObj.setOptionalProperty error "visible" - Type |> DynObj.setOptionalPropertyBy error "type" StyleParam.ErrorType.convert - Symmetric |> DynObj.setOptionalProperty error "symmetric" - Array |> DynObj.setOptionalProperty error "array" - Arrayminus |> DynObj.setOptionalProperty error "arrayminus" - Value |> DynObj.setOptionalProperty error "value" - Valueminus |> DynObj.setOptionalProperty error "valueminus" - Traceref |> DynObj.setOptionalProperty error "traceref" - Tracerefminus |> DynObj.setOptionalProperty error "tracerefminus" - Copy_ystyle |> DynObj.setOptionalProperty error "copy_ystyle" - Color |> DynObj.setOptionalProperty error "color" - Thickness |> DynObj.setOptionalProperty error "thickness" - Width |> DynObj.setOptionalProperty error "width" + fun (error: Error) -> - // out -> - error) + error + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalPropertyBy "type" Type StyleParam.ErrorType.convert + |> DynObj.withOptionalProperty "symmetric" Symmetric + |> DynObj.withOptionalProperty "array" Array + |> DynObj.withOptionalProperty "arrayminus" Arrayminus + |> DynObj.withOptionalProperty "value" Value + |> DynObj.withOptionalProperty "valueminus" Valueminus + |> DynObj.withOptionalProperty "traceref" Traceref + |> DynObj.withOptionalProperty "tracerefminus" Tracerefminus + |> DynObj.withOptionalProperty "copy_ystyle" Copy_ystyle + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "thickness" Thickness + |> DynObj.withOptionalProperty "width" Width diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/FunnelConnector.fs b/src/Plotly.NET/Traces/ObjectAbstractions/FunnelConnector.fs index 9c3f6f32b..06d1cb9ea 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/FunnelConnector.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/FunnelConnector.fs @@ -33,10 +33,9 @@ type FunnelConnector() = [] ?Line: Line, [] ?Visible: bool ) = - (fun (connector: FunnelConnector) -> + fun (connector: FunnelConnector) -> - FillColor |> DynObj.setOptionalProperty connector "fillcolor" - Line |> DynObj.setOptionalProperty connector "line" - Visible |> DynObj.setOptionalProperty connector "visible" - - connector) + connector + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "visible" Visible diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Gradient.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Gradient.fs index 363665a19..38145faae 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Gradient.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Gradient.fs @@ -26,8 +26,6 @@ type Gradient() = fun (gradient: Gradient) -> - (Type, MultiTypes) |> DynObj.setOptionalSingleOrMultiProperty gradient "type" - - Color |> DynObj.setOptionalProperty gradient "color" - gradient + |> DynObj.withOptionalSingleOrMultiProperty "type" (Type, MultiTypes) + |> DynObj.setOptionalProperty "color" Color diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Indicator.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Indicator.fs index 0ab78ca90..ce81f854b 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Indicator.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Indicator.fs @@ -22,12 +22,11 @@ type IndicatorSymbol() = [] ?Color: Color, [] ?Symbol: string ) = - (fun (indicatorDirection: IndicatorSymbol) -> + fun (indicatorDirection: IndicatorSymbol) -> - Color |> DynObj.setOptionalProperty indicatorDirection "color" - Symbol |> DynObj.setOptionalProperty indicatorDirection "symbol" - - indicatorDirection) + indicatorDirection + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "symbol" Symbol type IndicatorDelta() = inherit DynamicObj() @@ -93,19 +92,18 @@ type IndicatorDelta() = [] ?Suffix: string, [] ?ValueFormat: string ) = - (fun (indicatorDelta: IndicatorDelta) -> - - Decreasing |> DynObj.setOptionalProperty indicatorDelta "decreasing" - Font |> DynObj.setOptionalProperty indicatorDelta "font" - Increasing |> DynObj.setOptionalProperty indicatorDelta "increasing" - Position |> DynObj.setOptionalPropertyBy indicatorDelta "position" StyleParam.IndicatorDeltaPosition.convert - Prefix |> DynObj.setOptionalProperty indicatorDelta "prefix" - Reference |> DynObj.setOptionalProperty indicatorDelta "reference" - Relative |> DynObj.setOptionalProperty indicatorDelta "relative" - Suffix |> DynObj.setOptionalProperty indicatorDelta "suffix" - ValueFormat |> DynObj.setOptionalProperty indicatorDelta "valueformat" - - indicatorDelta) + fun (indicatorDelta: IndicatorDelta) -> + + indicatorDelta + |> DynObj.withOptionalProperty "decreasing" Decreasing + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "increasing" Increasing + |> DynObj.withOptionalPropertyBy "position" Position StyleParam.IndicatorDeltaPosition.convert + |> DynObj.withOptionalProperty "prefix" Prefix + |> DynObj.withOptionalProperty "reference" Reference + |> DynObj.withOptionalProperty "relative" Relative + |> DynObj.withOptionalProperty "suffix" Suffix + |> DynObj.withOptionalProperty "valueformat" ValueFormat type IndicatorNumber() = inherit DynamicObj() @@ -127,14 +125,13 @@ type IndicatorNumber() = [] ?Suffix: string, [] ?ValueFormat: string ) = - (fun (indicatorNumber: IndicatorNumber) -> - - Font |> DynObj.setOptionalProperty indicatorNumber "font" - Prefix |> DynObj.setOptionalProperty indicatorNumber "prefix" - Suffix |> DynObj.setOptionalProperty indicatorNumber "suffix" - ValueFormat |> DynObj.setOptionalProperty indicatorNumber "valueformat" + fun (indicatorNumber: IndicatorNumber) -> - indicatorNumber) + indicatorNumber + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "prefix" Prefix + |> DynObj.withOptionalProperty "suffix" Suffix + |> DynObj.withOptionalProperty "valueformat" ValueFormat type IndicatorBar() = diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Lighting.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Lighting.fs index 69cf48767..7107d1979 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Lighting.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Lighting.fs @@ -63,15 +63,14 @@ type Lighting() = ) = fun (l: Lighting) -> - Ambient |> DynObj.setOptionalProperty l "ambient" - Diffuse |> DynObj.setOptionalProperty l "diffuse" - FaceNormalEpsilon |> DynObj.setOptionalProperty l "facenormalepsilon" - Fresnel |> DynObj.setOptionalProperty l "fresnel" - Roughness |> DynObj.setOptionalProperty l "roughness" - Specular |> DynObj.setOptionalProperty l "specular" - VertexNormalEpsilon |> DynObj.setOptionalProperty l "vertexnormalepsilon" - l + |> DynObj.withOptionalProperty "ambient" Ambient + |> DynObj.withOptionalProperty "diffuse" Diffuse + |> DynObj.withOptionalProperty "facenormalepsilon" FaceNormalEpsilon + |> DynObj.withOptionalProperty "fresnel" Fresnel + |> DynObj.withOptionalProperty "roughness" Roughness + |> DynObj.withOptionalProperty "specular" Specular + |> DynObj.withOptionalProperty "vertexnormalepsilon" VertexNormalEpsilon type LightPosition() = inherit DynamicObj() @@ -104,8 +103,7 @@ type LightPosition() = ) = fun (lp: LightPosition) -> - X |> DynObj.setOptionalProperty lp "x" - Y |> DynObj.setOptionalProperty lp "y" - Z |> DynObj.setOptionalProperty lp "z" - lp + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Marker.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Marker.fs index d36a87796..9d3847d5d 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Marker.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Marker.fs @@ -198,34 +198,34 @@ type Marker() = ) = (fun (marker: Marker) -> - Angle |> DynObj.setOptionalProperty marker "angle" - AngleRef |> DynObj.setOptionalPropertyBy marker "angleref" StyleParam.AngleRef.convert - AutoColorScale |> DynObj.setOptionalProperty marker "autocolorscale" - CAuto |> DynObj.setOptionalProperty marker "cauto" - CMax |> DynObj.setOptionalProperty marker "cmax" - CMid |> DynObj.setOptionalProperty marker "cmid" - CMin |> DynObj.setOptionalProperty marker "cmin" - Color |> DynObj.setOptionalProperty marker "color" - Colors |> DynObj.setOptionalProperty marker "colors" - ColorAxis |> DynObj.setOptionalPropertyBy marker "coloraxis" StyleParam.SubPlotId.convert - ColorBar |> DynObj.setOptionalProperty marker "colorbar" - Colorscale |> DynObj.setOptionalPropertyBy marker "colorscale" StyleParam.Colorscale.convert - CornerRadius |> DynObj.setOptionalProperty marker "cornerradius" - Gradient |> DynObj.setOptionalProperty marker "gradient" - Outline |> DynObj.setOptionalProperty marker "line" - (Size, MultiSize) |> DynObj.setOptionalSingleOrMultiProperty marker "size" - (Opacity, MultiOpacity) |> DynObj.setOptionalSingleOrMultiProperty marker "opacity" - Pattern |> DynObj.setOptionalProperty marker "pattern" - (Symbol, MultiSymbol) |> DynObj.setSingleOrMultiOptBy marker "symbol" StyleParam.MarkerSymbol.convert - (Symbol3D, MultiSymbol3D) |> DynObj.setSingleOrMultiOptBy marker "symbol" StyleParam.MarkerSymbol3D.convert - OutlierColor |> DynObj.setOptionalProperty marker "outliercolor" - OutlierWidth |> DynObj.setOptionalProperty marker "outlierwidth" - MaxDisplayed |> DynObj.setOptionalProperty marker "maxdisplayed" - ReverseScale |> DynObj.setOptionalProperty marker "reversescale" - ShowScale |> DynObj.setOptionalProperty marker "showscale" - SizeMin |> DynObj.setOptionalProperty marker "sizemin" - SizeMode |> DynObj.setOptionalProperty marker "sizemode" - SizeRef |> DynObj.setOptionalProperty marker "sizeref" - (StandOff, MultiStandOff) |> DynObj.setOptionalSingleOrMultiProperty marker "standoff" - - marker) + marker + |> DynObj.withOptionalProperty "angle" Angle + |> DynObj.withOptionalPropertyBy "angleref" AngleRef StyleParam.AngleRef.convert + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalProperty "cauto" CAuto + |> DynObj.withOptionalProperty "cmax" CMax + |> DynObj.withOptionalProperty "cmid" CMid + |> DynObj.withOptionalProperty "cmin" CMin + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "colors" Colors + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalPropertyBy "colorscale" Colorscale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "cornerradius" CornerRadius + |> DynObj.withOptionalProperty "gradient" Gradient + |> DynObj.withOptionalProperty "line" Outline + |> DynObj.withOptionalSingleOrMultiProperty "size" (Size, MultiSize) + |> DynObj.withOptionalSingleOrMultiProperty "opacity" (Opacity, MultiOpacity) + |> DynObj.withOptionalProperty "pattern" Pattern + |> DynObj.withOptionalSingleOrMultiPropertyBy "symbol" (Symbol, MultiSymbol) StyleParam.MarkerSymbol.convert + |> DynObj.withOptionalSingleOrMultiPropertyBy "symbol" (Symbol3D, MultiSymbol3D) StyleParam.MarkerSymbol3D.convert + |> DynObj.withOptionalProperty "outliercolor" OutlierColor + |> DynObj.withOptionalProperty "outlierwidth" OutlierWidth + |> DynObj.withOptionalProperty "maxdisplayed" MaxDisplayed + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "sizemin" SizeMin + |> DynObj.withOptionalProperty "sizemode" SizeMode + |> DynObj.withOptionalProperty "sizeref" SizeRef + |> DynObj.withOptionalSingleOrMultiProperty "standoff" (StandOff, MultiStandOff) + ) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/MeanLine.fs b/src/Plotly.NET/Traces/ObjectAbstractions/MeanLine.fs index d68e88e32..84cf107ed 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/MeanLine.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/MeanLine.fs @@ -27,10 +27,9 @@ type MeanLine() = [] ?Color: Color, [] ?Width: float ) = - (fun (line: MeanLine) -> - Visible |> DynObj.setOptionalProperty line "visible" - Color |> DynObj.setOptionalProperty line "color" - Width |> DynObj.setOptionalProperty line "width" + fun (line: MeanLine) -> - // out -> - line) + line + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "width" Width diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Pathbar.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Pathbar.fs index 532c6f4fa..9705fba47 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Pathbar.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Pathbar.fs @@ -61,11 +61,11 @@ type Pathbar() = [] ?Thickness: float, [] ?Textfont: Font ) = - (fun (pathbar: Pathbar) -> - Visible |> DynObj.setOptionalProperty pathbar "visible" - Side |> DynObj.setOptionalPropertyBy pathbar "side" StyleParam.Side.convert - EdgeShape |> DynObj.setOptionalPropertyBy pathbar "edgeshape" StyleParam.PathbarEdgeShape.convert - Thickness |> DynObj.setOptionalProperty pathbar "thickness" - Textfont |> DynObj.setOptionalProperty pathbar "textfont " + fun (pathbar: Pathbar) -> - pathbar) + pathbar + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalPropertyBy "side" Side StyleParam.Side.convert + |> DynObj.withOptionalPropertyBy "edgeshape" EdgeShape StyleParam.PathbarEdgeShape.convert + |> DynObj.withOptionalProperty "thickness" Thickness + |> DynObj.withOptionalProperty "textfont" Textfont diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Pattern.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Pattern.fs index c9829f8bd..18cc28513 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Pattern.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Pattern.fs @@ -72,13 +72,12 @@ type Pattern() = ) = fun (pattern: Pattern) -> - - BGColor |> DynObj.setOptionalProperty pattern "bgcolor" - FGColor |> DynObj.setOptionalProperty pattern "fgcolor" - FGOpacity |> DynObj.setOptionalProperty pattern "fgopacity" - FillMode |> DynObj.setOptionalPropertyBy pattern "fillmode" StyleParam.PatternFillMode.convert - (Shape, MultiShape) |> DynObj.setSingleOrMultiOptBy pattern "shape" StyleParam.PatternShape.convert - (Size, MultiSize) |> DynObj.setOptionalSingleOrMultiProperty pattern "size" - Solidity |> DynObj.setOptionalProperty pattern "solidity" - pattern + |> DynObj.withOptionalProperty "bgcolor" BGColor + |> DynObj.withOptionalProperty "fgcolor" FGColor + |> DynObj.withOptionalProperty "fgopacity" FGOpacity + |> DynObj.withOptionalPropertyBy "fillmode" FillMode StyleParam.PatternFillMode.convert + |> DynObj.withOptionalSingleOrMultiPropertyBy "shape" (Shape, MultiShape) StyleParam.PatternShape.convert + |> DynObj.withOptionalSingleOrMultiProperty "size" (Size, MultiSize) + |> DynObj.withOptionalProperty "solidity" Solidity + diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Projection.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Projection.fs index 6cc85fd71..e705f18bd 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Projection.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Projection.fs @@ -27,11 +27,10 @@ type ProjectionDimension() = fun (projectionDimension: ProjectionDimension) -> - Opacity |> DynObj.setOptionalProperty projectionDimension "opacity" - Scale |> DynObj.setOptionalProperty projectionDimension "scale" - Show |> DynObj.setOptionalProperty projectionDimension "show" - projectionDimension + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "scale" Scale + |> DynObj.withOptionalProperty "show" Show type Projection() = inherit DynamicObj() @@ -53,8 +52,7 @@ type Projection() = fun (projection: Projection) -> - X |> DynObj.setOptionalProperty projection "x" - Y |> DynObj.setOptionalProperty projection "y" - Z |> DynObj.setOptionalProperty projection "z" - projection + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z \ No newline at end of file diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Slices.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Slices.fs index b2d3ec21f..655f2314a 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Slices.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Slices.fs @@ -26,11 +26,10 @@ type SlicesFill() = fun (slicesFill: SlicesFill) -> - Fill |> DynObj.setOptionalProperty slicesFill "fill" - Locations |> DynObj.setOptionalProperty slicesFill "locations" - Show |> DynObj.setOptionalProperty slicesFill "show" - slicesFill + |> DynObj.withOptionalProperty "fill" Fill + |> DynObj.withOptionalProperty "locations" Locations + |> DynObj.withOptionalProperty "show" Show type Slices() = @@ -53,8 +52,7 @@ type Slices() = ) = fun (slices: Slices) -> - X |> DynObj.setOptionalProperty slices "x" - Y |> DynObj.setOptionalProperty slices "y" - Z |> DynObj.setOptionalProperty slices "z" - slices + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/SpaceFrame.fs b/src/Plotly.NET/Traces/ObjectAbstractions/SpaceFrame.fs index 27199a84e..3dbc72d36 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/SpaceFrame.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/SpaceFrame.fs @@ -24,7 +24,6 @@ type Spaceframe() = fun (spaceframe: Spaceframe) -> - Fill |> DynObj.setOptionalProperty spaceframe "fill" - Show |> DynObj.setOptionalProperty spaceframe "show" - spaceframe + |> DynObj.withOptionalProperty "fill" Fill + |> DynObj.withOptionalProperty "show" Show diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/StreamTubeStarts.fs b/src/Plotly.NET/Traces/ObjectAbstractions/StreamTubeStarts.fs index 5fe18ac14..e1d36286e 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/StreamTubeStarts.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/StreamTubeStarts.fs @@ -39,8 +39,7 @@ type StreamTubeStarts() = ) = fun (streamTubeStarts: StreamTubeStarts) -> - X |> DynObj.setOptionalProperty streamTubeStarts "x" - Y |> DynObj.setOptionalProperty streamTubeStarts "y" - Z |> DynObj.setOptionalProperty streamTubeStarts "z" - streamTubeStarts + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Sunburst.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Sunburst.fs index 8fae92404..762b41f6e 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Sunburst.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Sunburst.fs @@ -15,11 +15,9 @@ type SunburstRoot() = SunburstRoot() |> SunburstRoot.style (?Color = Color) static member style([] ?Color: Color) = - (fun (root: SunburstRoot) -> - - Color |> DynObj.setOptionalProperty root "color" - - root) + fun (root: SunburstRoot) -> + root + |> DynObj.withOptionalProperty "color" Color type SunburstLeaf() = inherit DynamicObj() @@ -29,8 +27,8 @@ type SunburstLeaf() = SunburstLeaf() |> SunburstLeaf.style (?Opacity = Opacity) static member style([] ?Opacity: float) = - (fun (leaf: SunburstLeaf) -> + fun (leaf: SunburstLeaf) -> - Opacity |> DynObj.setOptionalProperty leaf "opacity" + leaf + |> DynObj.withOptionalProperty "opacity" Opacity - leaf) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Surface.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Surface.fs index b717958f0..a099edeb3 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Surface.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Surface.fs @@ -28,9 +28,8 @@ type Surface() = fun (surface: Surface) -> - Count |> DynObj.setOptionalProperty surface "count" - Fill |> DynObj.setOptionalProperty surface "fill" - Pattern |> DynObj.setOptionalPropertyBy surface "pattern" StyleParam.SurfacePattern.convert - Show |> DynObj.setOptionalProperty surface "show" - surface + |> DynObj.withOptionalProperty "count" Count + |> DynObj.withOptionalProperty "fill" Fill + |> DynObj.withOptionalPropertyBy "pattern" Pattern StyleParam.SurfacePattern.convert + |> DynObj.withOptionalProperty "show" Show diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Table.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Table.fs index 44e941e94..e91553225 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Table.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Table.fs @@ -14,10 +14,9 @@ type TableFill() = TableFill() |> TableFill.style (?Color = Color) static member style([] ?Color: Color) = - (fun (fill: TableFill) -> - Color |> DynObj.setOptionalProperty fill "color" - fill) - + fun (fill: TableFill) -> + fill + |> DynObj.withOptionalProperty "color" Color /// Cells type inherits from dynamic object type TableCells() = @@ -71,19 +70,17 @@ type TableCells() = [] ?MultiSuffix: seq, [] ?Values: seq<#seq<#IConvertible>> ) = - (fun (cells: TableCells) -> - - (Align, MultiAlign) |> DynObj.setSingleOrMultiOptBy cells "align" StyleParam.HorizontalAlign.convert - Fill |> DynObj.setOptionalProperty cells "fill" - Font |> DynObj.setOptionalProperty cells "font" - Format |> DynObj.setOptionalProperty cells "format" - Height |> DynObj.setOptionalProperty cells "height" - Line |> DynObj.setOptionalProperty cells "line" - (Prefix, MultiPrefix) |> DynObj.setOptionalSingleOrMultiProperty cells "prefix" - (Suffix, MultiSuffix) |> DynObj.setOptionalSingleOrMultiProperty cells "suffix" - Values |> DynObj.setOptionalProperty cells "values" - + fun (cells: TableCells) -> - cells) + cells + |> DynObj.withOptionalSingleOrMultiPropertyBy "align" (Align, MultiAlign) StyleParam.HorizontalAlign.convert + |> DynObj.withOptionalProperty "fill" Fill + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "format" Format + |> DynObj.withOptionalProperty "height" Height + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalSingleOrMultiProperty "prefix" (Prefix, MultiPrefix) + |> DynObj.withOptionalSingleOrMultiProperty "suffix" (Suffix, MultiSuffix) + |> DynObj.withOptionalProperty "values" Values type TableHeader = TableCells diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/TraceSelection.fs b/src/Plotly.NET/Traces/ObjectAbstractions/TraceSelection.fs index d19c58570..476dc2745 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/TraceSelection.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/TraceSelection.fs @@ -36,13 +36,12 @@ type MarkerSelectionStyle() = [] ?Color: Color, [] ?Size: int ) = - (fun (markerSelectionStyle: MarkerSelectionStyle) -> + fun (markerSelectionStyle: MarkerSelectionStyle) -> - Opacity |> DynObj.setOptionalProperty markerSelectionStyle "opacity" - Color |> DynObj.setOptionalProperty markerSelectionStyle "color" - Size |> DynObj.setOptionalProperty markerSelectionStyle "size" - - markerSelectionStyle) + markerSelectionStyle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "size" Size /// Controls the style of selected lines in supported traces type LineSelectionStyle() = @@ -70,12 +69,11 @@ type LineSelectionStyle() = [] ?Opacity: float, [] ?Color: Color ) = - (fun (lineSelectionStyle: LineSelectionStyle) -> - - Opacity |> DynObj.setOptionalProperty lineSelectionStyle "opacity" - Color |> DynObj.setOptionalProperty lineSelectionStyle "color" + fun (lineSelectionStyle: LineSelectionStyle) -> - lineSelectionStyle) + lineSelectionStyle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "color" Color /// Controls the style of selected text in supported traces type FontSelectionStyle() = @@ -93,11 +91,10 @@ type FontSelectionStyle() = /// /// Sets the color of the selected/unselected text static member style([] ?Color: Color) = - (fun (fontSelectionStyle: FontSelectionStyle) -> + fun (fontSelectionStyle: FontSelectionStyle) -> - Color |> DynObj.setOptionalProperty fontSelectionStyle "color" - - fontSelectionStyle) + fontSelectionStyle + |> DynObj.withOptionalProperty "color" Color /// /// Used to control selected/unselected trace item styles in supported traces. @@ -136,10 +133,9 @@ type TraceSelection() = [] ?LineSelectionStyle: LineSelectionStyle, [] ?FontSelectionStyle: FontSelectionStyle ) = - (fun (traceSelection: TraceSelection) -> - - MarkerSelectionStyle |> DynObj.setOptionalProperty traceSelection "marker" - LineSelectionStyle |> DynObj.setOptionalProperty traceSelection "line" - FontSelectionStyle |> DynObj.setOptionalProperty traceSelection "font" + fun (traceSelection: TraceSelection) -> - traceSelection) + traceSelection + |> DynObj.withOptionalProperty "marker" MarkerSelectionStyle + |> DynObj.withOptionalProperty "line" LineSelectionStyle + |> DynObj.withOptionalProperty "font" FontSelectionStyle diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Treemap.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Treemap.fs index fdd467107..63762984c 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Treemap.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Treemap.fs @@ -15,11 +15,9 @@ type TreemapRoot() = TreemapRoot() |> TreemapRoot.style (?Color = Color) static member style([] ?Color: Color) = - (fun (root: TreemapRoot) -> - - Color |> DynObj.setOptionalProperty root "color" - - root) + fun (root: TreemapRoot) -> + root + |> DynObj.withProperty "color" Color type TreemapLeaf() = inherit DynamicObj() @@ -29,11 +27,10 @@ type TreemapLeaf() = TreemapLeaf() |> TreemapLeaf.style (?Opacity = Opacity) static member style([] ?Opacity: float) = - (fun (leaf: TreemapLeaf) -> - - Opacity |> DynObj.setOptionalProperty leaf "opacity" + fun (leaf: TreemapLeaf) -> - leaf) + leaf + |> DynObj.withOptionalProperty "opacity" Opacity type TreemapTiling() = @@ -57,10 +54,10 @@ type TreemapTiling() = [] ?Flip: StyleParam.TilingFlip, [] ?Pad: float ) = - (fun (tiling: TreemapTiling) -> - Packing |> DynObj.setOptionalPropertyBy tiling "packing" StyleParam.TreemapTilingPacking.convert - SquarifyRatio |> DynObj.setOptionalProperty tiling "squarifyRatio" - Flip |> DynObj.setOptionalPropertyBy tiling "flip" StyleParam.TilingFlip.convert - Pad |> DynObj.setOptionalProperty tiling "pad" + fun (tiling: TreemapTiling) -> - tiling) + tiling + |> DynObj.withOptionalPropertyBy "packing" Packing StyleParam.TreemapTilingPacking.convert + |> DynObj.withOptionalProperty "squarifyRatio" SquarifyRatio + |> DynObj.withOptionalPropertyBy "flip" Flip StyleParam.TilingFlip.convert + |> DynObj.withOptionalProperty "pad" Pad diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/WaterfallConnector.fs b/src/Plotly.NET/Traces/ObjectAbstractions/WaterfallConnector.fs index 52a53b29c..1ac0057c5 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/WaterfallConnector.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/WaterfallConnector.fs @@ -34,10 +34,9 @@ type WaterfallConnector() = [] ?Visible: bool, [] ?ConnectorMode: StyleParam.ConnectorMode ) = - (fun (connector: WaterfallConnector) -> + fun (connector: WaterfallConnector) -> - Line |> DynObj.setOptionalProperty connector "line" - Visible |> DynObj.setOptionalProperty connector "visible" - ConnectorMode |> DynObj.setOptionalPropertyBy connector "mode" StyleParam.ConnectorMode.convert - - connector) + connector + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalPropertyBy "mode" ConnectorMode StyleParam.ConnectorMode.convert From 36781a36d45785aa00b812851d66f4c63ecd2a88 Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Tue, 15 Oct 2024 10:01:33 +0200 Subject: [PATCH 05/36] use DynObj module with inlined functions --- src/Plotly.NET/InternalUtils.fs | 8 ++++---- src/Plotly.NET/Layout/Layout.fs | 22 +++++++++++----------- src/Plotly.NET/Plotly.NET.fsproj | 2 +- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/Plotly.NET/InternalUtils.fs b/src/Plotly.NET/InternalUtils.fs index 3a802f279..c55db149e 100644 --- a/src/Plotly.NET/InternalUtils.fs +++ b/src/Plotly.NET/InternalUtils.fs @@ -39,7 +39,7 @@ module DynObj = else dyn |> DynObj.setOptionalProperty propName single - let withOptionalSingleOrMultiProperty (propName: string) (single: 'A option, multi: seq<'A> option) (dyn: #DynamicObj) = + let inline withOptionalSingleOrMultiProperty (propName: string) (single: 'A option, multi: seq<'A> option) (dyn: #DynamicObj) = dyn |> setOptionalSingleOrMultiProperty propName (single,multi) dyn @@ -54,7 +54,7 @@ module DynObj = else dyn |> DynObj.setOptionalPropertyBy propName single f - let withOptionalSingleOrMultiPropertyBy + let inline withOptionalSingleOrMultiPropertyBy (propName: string) (single: 'A option, multi: seq<'A> option) (f: 'A -> 'B) @@ -69,7 +69,7 @@ module DynObj = else dyn |> DynObj.setOptionalProperty propName single - let withOptionalSingleOrAnyProperty (propName: string) (single: 'A option, any: 'B option) (dyn: #DynamicObj) = + let inline withOptionalSingleOrAnyProperty (propName: string) (single: 'A option, any: 'B option) (dyn: #DynamicObj) = dyn |> setOptionalSingleOrAnyProperty propName (single, any) dyn @@ -85,7 +85,7 @@ module DynObj = else dyn |> DynObj.setOptionalPropertyBy propName single singleF - let withOptionalSingleOrAnyPropertyBy + let inline withOptionalSingleOrAnyPropertyBy (propName: string) (single: 'A option, any: 'B option) (singleF: 'A -> 'C) diff --git a/src/Plotly.NET/Layout/Layout.fs b/src/Plotly.NET/Layout/Layout.fs index 95fced511..4a432270d 100644 --- a/src/Plotly.NET/Layout/Layout.fs +++ b/src/Plotly.NET/Layout/Layout.fs @@ -562,7 +562,7 @@ type Layout() = | StyleParam.SubPlotId.YAxis _ -> let axis' = match Layout.tryGetLinearAxisById id layout with - | Some a -> (DynObj.combine a axis) :?> LinearAxis + | Some a -> DynObj.combine a axis | None -> axis layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) axis' @@ -639,7 +639,7 @@ type Layout() = (fun (layout: Layout) -> let scene' = match Layout.tryGetSceneById id layout with - | Some a -> (DynObj.combine a scene) :?> Scene + | Some a -> DynObj.combine a scene | None -> scene layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) scene' @@ -695,7 +695,7 @@ type Layout() = (fun (layout: Layout) -> let geo' = match Layout.tryGetGeoById id layout with - | Some a -> (DynObj.combine a geo) :?> Geo + | Some a -> DynObj.combine a geo | None -> geo layout|> DynObj.withProperty (StyleParam.SubPlotId.toString id) geo' @@ -750,7 +750,7 @@ type Layout() = (fun (layout: Layout) -> let mapbox' = match Layout.tryGetMapboxById id layout with - | Some a -> (DynObj.combine a mapbox) :?> Mapbox + | Some a -> DynObj.combine a mapbox | None -> mapbox layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) mapbox' @@ -806,7 +806,7 @@ type Layout() = let polar' = match layout |> Layout.tryGetPolarById (id) with - | Some a -> (DynObj.combine a polar) :?> Polar + | Some a -> DynObj.combine a polar | None -> polar layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) polar' @@ -861,8 +861,8 @@ type Layout() = (fun (layout: Layout) -> let smith' = - match layout |> Layout.tryGetPolarById (id) with - | Some a -> (DynObj.combine a smith) :?> Smith + match layout |> Layout.tryGetSmithById (id) with + | Some a -> DynObj.combine a smith | None -> smith layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) smith' @@ -918,7 +918,7 @@ type Layout() = let colorAxis' = match layout |> Layout.tryGetColorAxisById (id) with - | Some a -> (DynObj.combine a colorAxis) :?> ColorAxis + | Some a -> DynObj.combine a colorAxis | None -> colorAxis layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) colorAxis' @@ -974,7 +974,7 @@ type Layout() = let ternary' = match layout |> Layout.tryGetTernaryById (id) with - | Some a -> (DynObj.combine a ternary) :?> Ternary + | Some a -> DynObj.combine a ternary | None -> ternary layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) ternary' @@ -1038,7 +1038,7 @@ type Layout() = static member updateLayoutGrid(layoutGrid: LayoutGrid) = (fun (layout: Layout) -> let combined = - (DynObj.combine (layout |> Layout.getLayoutGrid) layoutGrid) :?> LayoutGrid + DynObj.combine (layout |> Layout.getLayoutGrid) layoutGrid layout |> Layout.setLayoutGrid combined) @@ -1076,7 +1076,7 @@ type Layout() = let legend' = match Layout.tryGetLegendById id layout with - | Some l -> (DynObj.combine l legend) :?> Legend + | Some l -> DynObj.combine l legend | None -> legend layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) legend' diff --git a/src/Plotly.NET/Plotly.NET.fsproj b/src/Plotly.NET/Plotly.NET.fsproj index dbe411e92..92720c058 100644 --- a/src/Plotly.NET/Plotly.NET.fsproj +++ b/src/Plotly.NET/Plotly.NET.fsproj @@ -168,7 +168,7 @@ - + From 266779cb0471be7c49e907d141307c0c6d58d912 Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Tue, 15 Oct 2024 10:07:48 +0200 Subject: [PATCH 06/36] finish trace objects dynobj v4 port, fix some sankey props --- .../ObjectAbstractions/FinanceMarker.fs | 9 +-- .../Traces/ObjectAbstractions/Icicle.fs | 27 +++---- .../Traces/ObjectAbstractions/Indicator.fs | 64 +++++++-------- .../Traces/ObjectAbstractions/Sankey.fs | 81 +++++++++---------- .../ObjectAbstractions/SplomDiagonal.fs | 3 +- 5 files changed, 83 insertions(+), 101 deletions(-) diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/FinanceMarker.fs b/src/Plotly.NET/Traces/ObjectAbstractions/FinanceMarker.fs index ac1cba180..b8adfd151 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/FinanceMarker.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/FinanceMarker.fs @@ -32,14 +32,13 @@ type FinanceMarker() = [] ?LineWidth: float, [] ?LineDash: StyleParam.DrawingStyle ) = - (fun (financeMarker: FinanceMarker) -> + fun (financeMarker: FinanceMarker) -> let line = financeMarker.TryGetTypedPropertyValue("line") |> Option.defaultValue(Plotly.NET.Line.init()) |> Line.style (?Color = LineColor, ?Width = LineWidth, ?Dash = LineDash) - FillColor |> DynObj.setOptionalProperty financeMarker "fillcolor" - line |> DynObj.withProperty financeMarker "line" - - financeMarker) + financeMarker + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withProperty "line" line diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Icicle.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Icicle.fs index fc51c53a2..ec8967739 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Icicle.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Icicle.fs @@ -13,11 +13,9 @@ type IcicleRoot() = IcicleRoot() |> IcicleRoot.style (?Color = Color) static member style([] ?Color: Color) = - (fun (icicleRoot: IcicleRoot) -> - - Color |> DynObj.setOptionalProperty icicleRoot "color" - - icicleRoot) + fun (icicleRoot: IcicleRoot) -> + icicleRoot + |> DynObj.withOptionalProperty "color" Color type IcicleLeaf() = inherit DynamicObj() @@ -26,11 +24,9 @@ type IcicleLeaf() = IcicleLeaf() |> IcicleLeaf.style (?Opacity = Opacity) static member style([] ?Opacity: float) = - (fun (icicleLeaf: IcicleLeaf) -> - - Opacity |> DynObj.setOptionalProperty icicleLeaf "opacity" - - icicleLeaf) + fun (icicleLeaf: IcicleLeaf) -> + icicleLeaf + |> DynObj.withOptionalProperty "opacity" Opacity type IcicleTiling() = inherit DynamicObj() @@ -49,10 +45,9 @@ type IcicleTiling() = [] ?Orientation: StyleParam.Orientation, [] ?Pad: int ) = - (fun (icicleTiling: IcicleTiling) -> - - Flip |> DynObj.setOptionalPropertyBy icicleTiling "flip" StyleParam.TilingFlip.convert - Orientation |> DynObj.setOptionalPropertyBy icicleTiling "orientation" StyleParam.Orientation.convert - Pad |> DynObj.setOptionalProperty icicleTiling "pad" + fun (icicleTiling: IcicleTiling) -> - icicleTiling) + icicleTiling + |> DynObj.withOptionalPropertyBy "flip" Flip StyleParam.TilingFlip.convert + |> DynObj.withOptionalPropertyBy "orientation" Orientation StyleParam.Orientation.convert + |> DynObj.withOptionalProperty "pad" Pad diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Indicator.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Indicator.fs index ce81f854b..42e389dbf 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Indicator.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Indicator.fs @@ -151,13 +151,12 @@ type IndicatorBar() = [] ?Line: Line, [] ?Thickness: float ) = - (fun (indicatorBar: IndicatorBar) -> - - Color |> DynObj.setOptionalProperty indicatorBar "color" - Line |> DynObj.setOptionalProperty indicatorBar "line" - Thickness |> DynObj.setOptionalProperty indicatorBar "thickness" - - indicatorBar) + fun (indicatorBar: IndicatorBar) -> + indicatorBar + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "thickness" Thickness + type IndicatorStep() = inherit DynamicObj() @@ -190,16 +189,15 @@ type IndicatorStep() = [] ?TemplateItemName: string, [] ?Thickness: float ) = - (fun (indicatorSteps: IndicatorStep) -> + fun (indicatorSteps: IndicatorStep) -> - Color |> DynObj.setOptionalProperty indicatorSteps "color" - Line |> DynObj.setOptionalProperty indicatorSteps "line" - Name |> DynObj.setOptionalProperty indicatorSteps "name" - Range |> DynObj.setOptionalPropertyBy indicatorSteps "range" StyleParam.Range.convert - TemplateItemName |> DynObj.setOptionalProperty indicatorSteps "templateitemname" - Thickness |> DynObj.setOptionalProperty indicatorSteps "thickness" - - indicatorSteps) + indicatorSteps + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "range" Range StyleParam.Range.convert + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName + |> DynObj.withOptionalProperty "thickness" Thickness type IndicatorThreshold() = @@ -219,13 +217,12 @@ type IndicatorThreshold() = [] ?Thickness: float, [] ?Value: #IConvertible ) = - (fun (indicatorThreshold: IndicatorThreshold) -> - - Line |> DynObj.setOptionalProperty indicatorThreshold "line" - Thickness |> DynObj.setOptionalProperty indicatorThreshold "thickness" - Value |> DynObj.setOptionalProperty indicatorThreshold "value" + fun (indicatorThreshold: IndicatorThreshold) -> - indicatorThreshold) + indicatorThreshold + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "thickness" Thickness + |> DynObj.withOptionalProperty "value" Value type IndicatorGauge() = @@ -265,15 +262,14 @@ type IndicatorGauge() = [] ?Steps: seq, [] ?Threshold: IndicatorThreshold ) = - (fun (indicatorGauge: IndicatorGauge) -> - - Axis |> DynObj.setOptionalProperty indicatorGauge "axis" - Bar |> DynObj.setOptionalProperty indicatorGauge "bar" - BGColor |> DynObj.setOptionalProperty indicatorGauge "bgcolor" - BorderColor |> DynObj.setOptionalProperty indicatorGauge "bordercolor" - BorderWidth |> DynObj.setOptionalProperty indicatorGauge "borderwidth" - Shape |> DynObj.setOptionalPropertyBy indicatorGauge "shape" StyleParam.IndicatorGaugeShape.convert - Steps |> DynObj.setOptionalProperty indicatorGauge "steps" - Threshold |> DynObj.setOptionalProperty indicatorGauge "threshold" - - indicatorGauge) + fun (indicatorGauge: IndicatorGauge) -> + + indicatorGauge + |> DynObj.withOptionalProperty "axis" Axis + |> DynObj.withOptionalProperty "bar" Bar + |> DynObj.withOptionalProperty "bgcolor" BGColor + |> DynObj.withOptionalProperty "bordercolor" BorderColor + |> DynObj.withOptionalProperty "borderwidth" BorderWidth + |> DynObj.withOptionalPropertyBy "shape" Shape StyleParam.IndicatorGaugeShape.convert + |> DynObj.withOptionalProperty "steps" Steps + |> DynObj.withOptionalProperty "threshold" Threshold diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Sankey.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Sankey.fs index 8ed2d6918..ddf328563 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Sankey.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Sankey.fs @@ -60,22 +60,20 @@ type SankeyNodes() = [] ?X: seq<#IConvertible>, [] ?Y: seq<#IConvertible> ) = - (fun (sankeyNodes: SankeyNodes) -> - - Color |> DynObj.setOptionalProperty sankeyNodes "color" - CustomData |> DynObj.setOptionalProperty sankeyNodes "customdata" - Groups |> DynObj.setOptionalProperty sankeyNodes "hoverinfo" - HoverInfo |> DynObj.setOptionalPropertyBy sankeyNodes "color" StyleParam.HoverInfo.convert - HoverLabel |> DynObj.setOptionalProperty sankeyNodes "hoverlabel" - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty sankeyNodes "hovertemplate" - Label |> DynObj.setOptionalProperty sankeyNodes "label" - Line |> DynObj.setOptionalProperty sankeyNodes "line" - Pad |> DynObj.setOptionalProperty sankeyNodes "pad" - Thickness |> DynObj.setOptionalProperty sankeyNodes "thickness" - X |> DynObj.setOptionalProperty sankeyNodes "x" - Y |> DynObj.setOptionalProperty sankeyNodes "y" - - sankeyNodes) + fun (sankeyNodes: SankeyNodes) -> + sankeyNodes + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "groups" Groups + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "label" Label + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "pad" Pad + |> DynObj.withOptionalProperty "thickness" Thickness + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y type SankeyLinkColorscale() = inherit DynamicObj() @@ -110,17 +108,15 @@ type SankeyLinkColorscale() = [] ?Name: string, [] ?TemplateItemName: string ) = - (fun (sankeyLinkColorscale: SankeyLinkColorscale) -> + fun (sankeyLinkColorscale: SankeyLinkColorscale) -> - CMax |> DynObj.setOptionalProperty sankeyLinkColorscale "cmax" - CMin |> DynObj.setOptionalProperty sankeyLinkColorscale "cmin" - ColorScale |> DynObj.setOptionalPropertyBy sankeyLinkColorscale "colorscale" StyleParam.Colorscale.convert - Label |> DynObj.setOptionalProperty sankeyLinkColorscale "label" - Name |> DynObj.setOptionalProperty sankeyLinkColorscale "name" - TemplateItemName |> DynObj.setOptionalProperty sankeyLinkColorscale "templateitemname" - - - sankeyLinkColorscale) + sankeyLinkColorscale + |> DynObj.withOptionalProperty "cmax" CMax + |> DynObj.withOptionalProperty "cmin" CMin + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "label" Label + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName type SankeyLinks() = inherit DynamicObj() @@ -176,21 +172,18 @@ type SankeyLinks() = [] ?Target: seq, [] ?Value: seq<#IConvertible> ) = - (fun (sankeyLinks: SankeyLinks) -> - - ArrowLen |> DynObj.setOptionalProperty sankeyLinks "arrowlen" - Color |> DynObj.setOptionalProperty sankeyLinks "color" - ColorScales |> DynObj.setOptionalProperty sankeyLinks "colorscales" - CustomData |> DynObj.setOptionalProperty sankeyLinks "customdata" - HoverInfo |> DynObj.setOptionalPropertyBy sankeyLinks "hoverinfo" StyleParam.HoverInfo.convert - HoverLabel |> DynObj.setOptionalProperty sankeyLinks "hoverlabel" - HoverTemplate |> DynObj.setOptionalProperty sankeyLinks "hovertemplate" - MultiHoverTemplate |> DynObj.setOptionalProperty sankeyLinks "multihovertemplate" - Label |> DynObj.setOptionalProperty sankeyLinks "label" - Line |> DynObj.setOptionalProperty sankeyLinks "line" - Source |> DynObj.setOptionalProperty sankeyLinks "source" - Target |> DynObj.setOptionalProperty sankeyLinks "target" - Value |> DynObj.setOptionalProperty sankeyLinks "value" - - - sankeyLinks) + fun (sankeyLinks: SankeyLinks) -> + + sankeyLinks + |> DynObj.withOptionalProperty "arrowlen" ArrowLen + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "colorscales" ColorScales + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "label" Label + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "source" Source + |> DynObj.withOptionalProperty "target" Target + diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/SplomDiagonal.fs b/src/Plotly.NET/Traces/ObjectAbstractions/SplomDiagonal.fs index a1f67023a..9647f8d70 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/SplomDiagonal.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/SplomDiagonal.fs @@ -16,6 +16,5 @@ type SplomDiagonal() = fun (splomDiagonal: SplomDiagonal) -> - Visible |> DynObj.setOptionalProperty splomDiagonal "visible" - splomDiagonal + |> DynObj.withOptionalProperty "visible" Visible From 58d270c64f5c6316f802516da54c55493fe76fd6 Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Tue, 15 Oct 2024 12:28:12 +0200 Subject: [PATCH 07/36] port trace2d to dynobj v4 - adjust some Dynobj usage - fix some unused function args --- docs/index.fsx | 26 +- .../PuppeteerSharpRenderer.fs | 6 +- .../Layout/ObjectAbstractions/3D/Scene.fs | 6 +- .../Layout/ObjectAbstractions/Polar/Polar.fs | 4 +- .../Layout/ObjectAbstractions/Smith/Smith.fs | 4 +- .../ObjectAbstractions/Ternary/Ternary.fs | 6 +- src/Plotly.NET/Traces/Trace.fs | 87 +- src/Plotly.NET/Traces/Trace2D.fs | 1611 ++++++++--------- src/Plotly.NET/Traces/Trace3D.fs | 2 +- src/Plotly.NET/Traces/TraceCarpet.fs | 2 +- src/Plotly.NET/Traces/TraceDomain.fs | 8 +- src/Plotly.NET/Traces/TraceGeo.fs | 2 +- src/Plotly.NET/Traces/TraceMapbox.fs | 2 +- src/Plotly.NET/Traces/TracePolar.fs | 2 +- src/Plotly.NET/Traces/TraceSmith.fs | 2 +- src/Plotly.NET/Traces/TraceTernary.fs | 2 +- .../LayoutObjectTests.cs | 4 +- 17 files changed, 865 insertions(+), 911 deletions(-) diff --git a/docs/index.fsx b/docs/index.fsx index f2e129ba5..c78a266be 100644 --- a/docs/index.fsx +++ b/docs/index.fsx @@ -290,25 +290,25 @@ double[] x = new double[] { 1, 2 }; double[] y = new double[] { 5, 10 }; LinearAxis xAxis = new LinearAxis(); -xAxis.SetValue("title", "xAxis"); -xAxis.SetValue("showgrid", false); -xAxis.SetValue("showline", true); +xAxis.SetProperty("title", "xAxis"); +xAxis.SetProperty("showgrid", false); +xAxis.SetProperty("showline", true); LinearAxis yAxis = new LinearAxis(); -yAxis.SetValue("title", "yAxis"); -yAxis.SetValue("showgrid", false); -yAxis.SetValue("showline", true); +yAxis.SetProperty("title", "yAxis"); +yAxis.SetProperty("showgrid", false); +yAxis.SetProperty("showline", true); Layout layout = new Layout(); -layout.SetValue("xaxis", xAxis); -layout.SetValue("yaxis", yAxis); -layout.SetValue("showlegend", true); +layout.SetProperty("xaxis", xAxis); +layout.SetProperty("yaxis", yAxis); +layout.SetProperty("showlegend", true); Trace trace = new Trace("scatter"); -trace.SetValue("x", x); -trace.SetValue("y", y); -trace.SetValue("mode", "markers"); -trace.SetValue("name", "Hello from C#"); +trace.SetProperty("x", x); +trace.SetProperty("y", y); +trace.SetProperty("mode", "markers"); +trace.SetProperty("name", "Hello from C#"); GenericChart .ofTraceObject(true, trace) diff --git a/src/Plotly.NET.ImageExport/PuppeteerSharpRenderer.fs b/src/Plotly.NET.ImageExport/PuppeteerSharpRenderer.fs index 3a49fc868..047b081c7 100644 --- a/src/Plotly.NET.ImageExport/PuppeteerSharpRenderer.fs +++ b/src/Plotly.NET.ImageExport/PuppeteerSharpRenderer.fs @@ -31,11 +31,11 @@ type PuppeteerSharpRenderer() = gChart |> GenericChart.mapConfig (fun c -> - DynObj.setValue c "responsive" true + DynObj.SetProperty c "responsive" true c) |> GenericChart.mapLayout (fun l -> - DynObj.setValue l "width" "100%" - DynObj.setValue l "height" "100%" + DynObj.SetProperty l "width" "100%" + DynObj.SetProperty l "height" "100%" l) |> GenericChart.toEmbeddedHTML // this should be done via regex, as this only captures the default width and height. diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/3D/Scene.fs b/src/Plotly.NET/Layout/ObjectAbstractions/3D/Scene.fs index ab70be78a..944e64e80 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/3D/Scene.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/3D/Scene.fs @@ -125,7 +125,7 @@ type Scene() = /// The new x axis object static member setXAxis(xAxis: LinearAxis) = (fun (scene: Scene) -> - scene.SetValue("xaxis", xAxis) + scene.SetProperty("xaxis", xAxis) scene) /// @@ -143,7 +143,7 @@ type Scene() = /// The new y axis object static member setYAxis(yAxis: LinearAxis) = (fun (scene: Scene) -> - scene.SetValue("yaxis", yAxis) + scene.SetProperty("yaxis", yAxis) scene) /// @@ -161,5 +161,5 @@ type Scene() = /// The new z axis object static member setZAxis(zAxis: LinearAxis) = (fun (scene: Scene) -> - scene.SetValue("zaxis", zAxis) + scene.SetProperty("zaxis", zAxis) scene) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Polar/Polar.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Polar/Polar.fs index 82e1e5a08..0099e42b4 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Polar/Polar.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Polar/Polar.fs @@ -106,7 +106,7 @@ type Polar() = /// The new AngularAxis object static member setAngularAxis(angularAxis: AngularAxis) = (fun (polar: Polar) -> - polar.SetValue("angularaxis", angularAxis) + polar.SetProperty("angularaxis", angularAxis) polar) /// @@ -124,5 +124,5 @@ type Polar() = /// The new RadialAxis object static member setRadialAxis(radialAxis: RadialAxis) = (fun (polar: Polar) -> - polar.SetValue("radialaxis", radialAxis) + polar.SetProperty("radialaxis", radialAxis) polar) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Smith/Smith.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Smith/Smith.fs index 4b2a005ae..548ae6859 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Smith/Smith.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Smith/Smith.fs @@ -77,7 +77,7 @@ type Smith() = /// The new ImaginaryAxis object static member setImaginaryAxis(imaginaryAxis: ImaginaryAxis) = (fun (smith: Smith) -> - smith.SetValue("imaginaryaxis", imaginaryAxis) + smith.SetProperty("imaginaryaxis", imaginaryAxis) smith) /// @@ -95,5 +95,5 @@ type Smith() = /// The new RealAxis object static member setRealAxis(realAxis: RealAxis) = (fun (smith: Smith) -> - smith.SetValue("realaxis", realAxis) + smith.SetProperty("realaxis", realAxis) smith) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Ternary/Ternary.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Ternary/Ternary.fs index 0ef16801f..9d19dfc06 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Ternary/Ternary.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Ternary/Ternary.fs @@ -88,7 +88,7 @@ type Ternary() = /// The new a axis object static member setAAxis(aAxis: LinearAxis) = (fun (ternary: Ternary) -> - ternary.SetValue("aaxis", aAxis) + ternary.SetProperty("aaxis", aAxis) ternary) /// @@ -106,7 +106,7 @@ type Ternary() = /// The new b axis object static member setBAxis(bAxis: LinearAxis) = (fun (ternary: Ternary) -> - ternary.SetValue("baxis", bAxis) + ternary.SetProperty("baxis", bAxis) ternary) /// @@ -124,5 +124,5 @@ type Ternary() = /// The new c axis object static member setCAxis(cAxis: LinearAxis) = (fun (ternary: Ternary) -> - ternary.SetValue("caxis", cAxis) + ternary.SetProperty("caxis", cAxis) ternary) diff --git a/src/Plotly.NET/Traces/Trace.fs b/src/Plotly.NET/Traces/Trace.fs index 8a6b5c531..63efe63c1 100644 --- a/src/Plotly.NET/Traces/Trace.fs +++ b/src/Plotly.NET/Traces/Trace.fs @@ -39,7 +39,7 @@ type Trace(traceTypeName: string) = /// The new marker object static member setMarker(marker: Marker) = (fun (trace: ('T :> Trace)) -> - trace.SetValue("marker", marker) + trace.SetProperty("marker", marker) trace) /// @@ -49,7 +49,7 @@ type Trace(traceTypeName: string) = static member updateMarker(marker: Marker) = (fun (trace: #Trace) -> let combined = - (DynObj.combine (trace |> Trace.getMarker) marker) :?> Marker + (DynObj.combine (trace |> Trace.getMarker) marker) trace |> Trace.setMarker combined) @@ -68,7 +68,7 @@ type Trace(traceTypeName: string) = /// The new line object static member setLine(line: Line) = (fun (trace: #Trace) -> - trace.SetValue("line", line) + trace.SetProperty("line", line) trace) /// @@ -78,7 +78,7 @@ type Trace(traceTypeName: string) = static member updateLine(line: Line) = (fun (trace: #Trace) -> let combined = - (DynObj.combine (trace |> Trace.getLine) line) :?> Line + (DynObj.combine (trace |> Trace.getLine) line) trace |> Trace.setLine combined) @@ -97,7 +97,7 @@ type Trace(traceTypeName: string) = /// The new error object static member setXError(error: Error) = (fun (trace: #Trace) -> - trace.SetValue("error_x", error) + trace.SetProperty("error_x", error) trace) /// @@ -107,7 +107,7 @@ type Trace(traceTypeName: string) = static member updateXError(error: Error) = (fun (trace: #Trace) -> let combined = - (DynObj.combine (trace |> Trace.getXError) error) :?> Error + (DynObj.combine (trace |> Trace.getXError) error) trace |> Trace.setXError combined) @@ -126,7 +126,7 @@ type Trace(traceTypeName: string) = /// The new error object static member setYError(error: Error) = (fun (trace: #Trace) -> - trace.SetValue("error_y", error) + trace.SetProperty("error_y", error) trace) /// @@ -136,7 +136,7 @@ type Trace(traceTypeName: string) = static member updateYError(error: Error) = (fun (trace: #Trace) -> let combined = - (DynObj.combine (trace |> Trace.getYError) error) :?> Error + (DynObj.combine (trace |> Trace.getYError) error) trace |> Trace.setYError combined) @@ -155,7 +155,7 @@ type Trace(traceTypeName: string) = /// The new error object static member setZError(error: Error) = (fun (trace: #Trace) -> - trace.SetValue("error_z", error) + trace.SetProperty("error_z", error) trace) /// @@ -165,7 +165,7 @@ type Trace(traceTypeName: string) = static member updateZError(error: Error) = (fun (trace: #Trace) -> let combined = - (DynObj.combine (trace |> Trace.getZError) error) :?> Error + (DynObj.combine (trace |> Trace.getZError) error) trace |> Trace.setZError combined) @@ -193,7 +193,7 @@ type Trace(traceTypeName: string) = StyleParam.SubPlotId.ColorAxis colorAxisId (fun (trace: #Trace) -> - trace.SetValue("coloraxis", StyleParam.SubPlotId.convert id) + trace.SetProperty("coloraxis", StyleParam.SubPlotId.convert id) trace) /// @@ -220,7 +220,7 @@ type Trace(traceTypeName: string) = StyleParam.SubPlotId.Legend legendId (fun (trace: #Trace) -> - trace.SetValue("legend", StyleParam.SubPlotId.convert id) + trace.SetProperty("legend", StyleParam.SubPlotId.convert id) trace) /// @@ -238,7 +238,7 @@ type Trace(traceTypeName: string) = /// The new domain static member setDomain(domain: Domain) = (fun (trace: ('T :> Trace)) -> - trace.SetValue("domain", domain) + trace.SetProperty("domain", domain) trace) /// @@ -248,7 +248,7 @@ type Trace(traceTypeName: string) = static member updateDomain(domain: Domain) = (fun (trace: #Trace) -> let combined = - (DynObj.combine (trace |> Trace.getDomain) domain) :?> Domain + (DynObj.combine (trace |> Trace.getDomain) domain) trace |> Trace.setDomain combined) @@ -267,7 +267,7 @@ type Trace(traceTypeName: string) = /// The new stackgroup static member setStackGroup(stackgroup: string) = (fun (trace: ('T :> Trace)) -> - trace.SetValue("stackgroup", stackgroup) + trace.SetProperty("stackgroup", stackgroup) trace) /// @@ -286,7 +286,7 @@ type Trace(traceTypeName: string) = static member setColorBar(colorBar: ColorBar) = (fun (trace: ('T :> Trace)) -> - trace.SetValue("colorbar", colorBar) + trace.SetProperty("colorbar", colorBar) trace) /// @@ -296,7 +296,7 @@ type Trace(traceTypeName: string) = static member updateColorBar(colorBar: ColorBar) = (fun (trace: #Trace) -> let combined = - (DynObj.combine (trace |> Trace.getColorBar) colorBar) :?> ColorBar + DynObj.combine (trace |> Trace.getColorBar) colorBar trace |> Trace.setColorBar combined) @@ -327,16 +327,14 @@ type TraceStyle() = [] ?LegendGroup: string, [] ?LegendGroupTitle: Title ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setOptionalProperty trace "name" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty trace "showlegend" - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - - trace) + fun (trace: #Trace) -> + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle /// /// Returns a function that applies the given styles to the trace's marker object. Overwrites attributes with the same name that are already set. @@ -704,13 +702,11 @@ type TraceStyle() = [] ?Selected: TraceSelection, [] ?Unselected: TraceSelection ) = - (fun (trace: ('T :> Trace)) -> - - SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" - Selected |> DynObj.setOptionalProperty trace "selected" - Unselected |> DynObj.setOptionalProperty trace "unselected" - - trace) + fun (trace: #Trace) -> + trace + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected /// /// Returns a function that applies the given styles to the trace's text items. @@ -742,20 +738,15 @@ type TraceStyle() = [] ?MultiHoverTemplate: seq, [] ?TextFont: Font ) = - (fun (trace: ('T :> Trace)) -> - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" - - TextFont |> DynObj.setOptionalProperty trace "textfont" - - trace) + fun (trace: #Trace) -> + trace + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "textfont" TextFont // /// Returns a function that applies the given styles to the trace's domain object. diff --git a/src/Plotly.NET/Traces/Trace2D.fs b/src/Plotly.NET/Traces/Trace2D.fs index 27db7075a..f193e02f0 100644 --- a/src/Plotly.NET/Traces/Trace2D.fs +++ b/src/Plotly.NET/Traces/Trace2D.fs @@ -103,12 +103,10 @@ type Trace2DStyle() = [] ?X: StyleParam.LinearAxisId, [] ?Y: StyleParam.LinearAxisId ) = - (fun (trace: Trace2D) -> - - X |> DynObj.setOptionalPropertyBy trace "xaxis" StyleParam.LinearAxisId.toString - Y |> DynObj.setOptionalPropertyBy trace "yaxis" StyleParam.LinearAxisId.toString - - trace) + fun (trace: Trace2D) -> + trace + |> DynObj.withOptionalProperty "xaxis" X + |> DynObj.withOptionalProperty "yaxis" Y /// /// Create a function that applies the styles of a scatter plot to a Trace object @@ -246,71 +244,67 @@ type Trace2DStyle() = [] ?YCalendar: StyleParam.Calendar, [] ?UIRevision: string ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setOptionalProperty trace "name" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty trace "showlegend" - Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty trace "opacity" - Mode |> DynObj.setOptionalPropertyBy trace "mode" StyleParam.Mode.convert - Ids |> DynObj.setOptionalProperty trace "ids" - (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty trace "x" - X0 |> DynObj.setOptionalProperty trace "x0" - DX |> DynObj.setOptionalProperty trace "dx" - (Y, MultiY) |> DynObj.setOptionalSingleOrMultiProperty trace "y" - Y0 |> DynObj.setOptionalProperty trace "y0" - DY |> DynObj.setOptionalProperty trace "dy" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" + fun (trace: ('T :> Trace)) -> + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalPropertyBy "mode" Mode StyleParam.Mode.convert + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalProperty "x0" X0 + |> DynObj.withOptionalProperty "dx" DX + |> DynObj.withOptionalSingleOrMultiProperty "y" (Y, MultiY) + |> DynObj.withOptionalProperty "y0" Y0 + |> DynObj.withOptionalProperty "dy" DY + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy"textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "orientation" Orientation StyleParam.Orientation.convert + |> DynObj.withOptionalPropertyBy "groupnorm" GroupNorm StyleParam.GroupNorm.convert + |> DynObj.withOptionalProperty "alignmentgroup" AlignmentGroup + |> DynObj.withOptionalProperty "offsetgroup" OffsetGroup + |> DynObj.withOptionalProperty "stackgroup" StackGroup + |> DynObj.withOptionalProperty "xperiod" XPeriod + |> DynObj.withOptionalPropertyBy "xperiodalignment" XPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "xperiod0" XPeriod0 + |> DynObj.withOptionalProperty "yperiod" YPeriod + |> DynObj.withOptionalPropertyBy "yperiodalignment" YPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "yperiod0" YPeriod0 + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "error_x" XError + |> DynObj.withOptionalProperty "error_y" YError + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "cliponaxis" ClipOnAxis + |> DynObj.withOptionalProperty "connectgaps" ConnectGaps + |> DynObj.withOptionalPropertyBy "fill" Fill StyleParam.Fill.convert + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "fillpattern" FillPattern + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "hoveron" HoverOn StyleParam.HoverOn.convert + |> DynObj.withOptionalPropertyBy "stackgaps" StackGaps StyleParam.StackGaps.convert + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "ycalendar" YCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision - (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" - XHoverFormat |> DynObj.setOptionalProperty trace "xhoverformat" - YHoverFormat |> DynObj.setOptionalProperty trace "yhoverformat" - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - XAxis |> DynObj.setOptionalPropertyBy trace "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setOptionalPropertyBy trace "yaxis" StyleParam.LinearAxisId.convert - Orientation |> DynObj.setOptionalPropertyBy trace "orientation" StyleParam.Orientation.convert - GroupNorm |> DynObj.setOptionalPropertyBy trace "groupnorm" StyleParam.GroupNorm.convert - AlignmentGroup |> DynObj.setOptionalProperty trace "alignmentgroup" - OffsetGroup |> DynObj.setOptionalProperty trace "offsetgroup" - StackGroup |> DynObj.setOptionalProperty trace "stackgroup" - XPeriod |> DynObj.setOptionalProperty trace "xperiod" - XPeriodAlignment |> DynObj.setOptionalPropertyBy trace "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setOptionalProperty trace "xperiod0" - YPeriod |> DynObj.setOptionalProperty trace "yperiod" - YPeriodAlignment |> DynObj.setOptionalPropertyBy trace "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setOptionalProperty trace "yperiod0" - Marker |> DynObj.setOptionalProperty trace "marker" - Line |> DynObj.setOptionalProperty trace "line" - TextFont |> DynObj.setOptionalProperty trace "textfont" - XError |> DynObj.setOptionalProperty trace "error_x" - YError |> DynObj.setOptionalProperty trace "error_y" - SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" - Selected |> DynObj.setOptionalProperty trace "selected" - Unselected |> DynObj.setOptionalProperty trace "unselected" - ClipOnAxis |> DynObj.setOptionalProperty trace "cliponaxis" - ConnectGaps |> DynObj.setOptionalProperty trace "connectgaps" - Fill |> DynObj.setOptionalPropertyBy trace "fill" StyleParam.Fill.convert - FillColor |> DynObj.setOptionalProperty trace "fillcolor" - FillPattern |> DynObj.setOptionalProperty trace "fillpattern" - HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" - HoverOn |> DynObj.setOptionalPropertyBy trace "hoveron" StyleParam.HoverOn.convert - StackGaps |> DynObj.setOptionalPropertyBy trace "stackgaps" StyleParam.StackGaps.convert - XCalendar |> DynObj.setOptionalPropertyBy trace "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setOptionalPropertyBy trace "ycalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setOptionalProperty trace "uirevision" - - trace) /// /// Create a function that applies the styles of a bar plot to a Trace object @@ -448,71 +442,65 @@ type Trace2DStyle() = [] ?YCalendar: StyleParam.Calendar, [] ?UIRevision: string ) = - (fun (bar: ('T :> Trace)) -> - - Name |> DynObj.setOptionalProperty bar "name" - Visible |> DynObj.setOptionalPropertyBy bar "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty bar "showlegend" - Legend |> DynObj.setOptionalPropertyBy bar "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty bar "legendrank" - LegendGroup |> DynObj.setOptionalProperty bar "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty bar "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty bar "opacity" - Ids |> DynObj.setOptionalProperty bar "ids" - (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty bar "x" - X0 |> DynObj.setOptionalProperty bar "x0" - DX |> DynObj.setOptionalProperty bar "dx" - (Y, MultiY) |> DynObj.setOptionalSingleOrMultiProperty bar "y" - Y0 |> DynObj.setOptionalProperty bar "y0" - DY |> DynObj.setOptionalProperty bar "dy" - Base |> DynObj.setOptionalProperty bar "base" - (Width, MultiWidth) |> DynObj.setOptionalSingleOrMultiProperty bar "width" - (Offset, MultiOffset) |> DynObj.setOptionalSingleOrMultiProperty bar "offset" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty bar "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy bar "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty bar "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty bar "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy bar "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty bar "hovertemplate" - XHoverFormat |> DynObj.setOptionalProperty bar "xhoverformat" - YHoverFormat |> DynObj.setOptionalProperty bar "yhoverformat" - Meta |> DynObj.setOptionalProperty bar "meta" - CustomData |> DynObj.setOptionalProperty bar "customdata" - XAxis |> DynObj.setOptionalPropertyBy bar "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setOptionalPropertyBy bar "yaxis" StyleParam.LinearAxisId.convert - Orientation |> DynObj.setOptionalPropertyBy bar "orientation" StyleParam.Orientation.convert - AlignmentGroup |> DynObj.setOptionalProperty bar "alignmentgroup" - OffsetGroup |> DynObj.setOptionalProperty bar "offsetgroup" - XPeriod |> DynObj.setOptionalProperty bar "xperiod" - XPeriodAlignment |> DynObj.setOptionalPropertyBy bar "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setOptionalProperty bar "xperiod0" - YPeriod |> DynObj.setOptionalProperty bar "yperiod" - YPeriodAlignment |> DynObj.setOptionalPropertyBy bar "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setOptionalProperty bar "yperiod0" - Marker |> DynObj.setOptionalProperty bar "marker" - TextAngle |> DynObj.setOptionalProperty bar "textangle" - TextFont |> DynObj.setOptionalProperty bar "textfont" - XError |> DynObj.setOptionalProperty bar "error_x" - YError |> DynObj.setOptionalProperty bar "error_y" - SelectedPoints |> DynObj.setOptionalProperty bar "selectedpoints" - Selected |> DynObj.setOptionalProperty bar "selected" - Unselected |> DynObj.setOptionalProperty bar "unselected" - ClipOnAxis |> DynObj.setOptionalProperty bar "cliponaxis" - Constraintext |> DynObj.setOptionalPropertyBy bar "constraintext" StyleParam.ConstrainText.convert - HoverLabel |> DynObj.setOptionalProperty bar "hoverlabel" - InsideTextAnchor |> DynObj.setOptionalPropertyBy bar "insidetextanchor" StyleParam.InsideTextAnchor.convert - InsideTextFont |> DynObj.setOptionalProperty bar "insidetextfont" - OutsideTextFont |> DynObj.setOptionalProperty bar "outsidetextfont" - XCalendar |> DynObj.setOptionalPropertyBy bar "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setOptionalPropertyBy bar "ycalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setOptionalProperty bar "uirevision" + fun (bar: ('T :> Trace)) -> bar - - ) + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalProperty "x0" X0 + |> DynObj.withOptionalProperty "dx" DX + |> DynObj.withOptionalSingleOrMultiProperty "y" (Y, MultiY) + |> DynObj.withOptionalProperty "y0" Y0 + |> DynObj.withOptionalProperty "dy" DY + |> DynObj.withOptionalProperty "base" Base + |> DynObj.withOptionalSingleOrMultiProperty "width" (Width, MultiWidth) + |> DynObj.withOptionalSingleOrMultiProperty "offset" (Offset, MultiOffset) + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "orientation" Orientation StyleParam.Orientation.convert + |> DynObj.withOptionalProperty "alignmentgroup" AlignmentGroup + |> DynObj.withOptionalProperty "offsetgroup" OffsetGroup + |> DynObj.withOptionalProperty "xperiod" XPeriod + |> DynObj.withOptionalPropertyBy "xperiodalignment" XPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "xperiod0" XPeriod0 + |> DynObj.withOptionalProperty "yperiod" YPeriod + |> DynObj.withOptionalPropertyBy "yperiodalignment" YPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "yperiod0" YPeriod0 + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "textangle" TextAngle + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "error_x" XError + |> DynObj.withOptionalProperty "error_y" YError + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "cliponaxis" ClipOnAxis + |> DynObj.withOptionalPropertyBy "constraintext" Constraintext StyleParam.ConstrainText.convert + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "insidetextanchor" InsideTextAnchor StyleParam.InsideTextAnchor.convert + |> DynObj.withOptionalProperty "insidetextfont" InsideTextFont + |> DynObj.withOptionalProperty "outsidetextfont" OutsideTextFont + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "ycalendar" YCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Create a function that applies the styles of a funnel plot to a Trace object @@ -636,66 +624,61 @@ type Trace2DStyle() = [] ?OutsideTextFont: Font, [] ?UIRevision: string ) = - (fun (funnel: #Trace) -> - - Name |> DynObj.setOptionalProperty funnel "name" - Visible |> DynObj.setOptionalPropertyBy funnel "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty funnel "showlegend" - Legend |> DynObj.setOptionalPropertyBy funnel "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty funnel "legendrank" - LegendGroup |> DynObj.setOptionalProperty funnel "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty funnel "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty funnel "opacity" - Ids |> DynObj.setOptionalProperty funnel "ids" - (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty funnel "x" - X0 |> DynObj.setOptionalProperty funnel "x0" - DX |> DynObj.setOptionalProperty funnel "dx" - (Y, MultiY) |> DynObj.setOptionalSingleOrMultiProperty funnel "y" - Y0 |> DynObj.setOptionalProperty funnel "y0" - DY |> DynObj.setOptionalProperty funnel "dy" - Width |> DynObj.setOptionalProperty funnel "width" - Offset |> DynObj.setOptionalProperty funnel "offset" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty funnel "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy funnel "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty funnel "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty funnel "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy funnel "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty funnel "hovertemplate" - XHoverFormat |> DynObj.setOptionalProperty funnel "xhoverformat" - YHoverFormat |> DynObj.setOptionalProperty funnel "yhoverformat" - Meta |> DynObj.setOptionalProperty funnel "meta" - CustomData |> DynObj.setOptionalProperty funnel "customdata" - XAxis |> DynObj.setOptionalPropertyBy funnel "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setOptionalPropertyBy funnel "yaxis" StyleParam.LinearAxisId.convert - Orientation |> DynObj.setOptionalPropertyBy funnel "orientation" StyleParam.Orientation.convert - AlignmentGroup |> DynObj.setOptionalProperty funnel "alignmentgroup" - OffsetGroup |> DynObj.setOptionalProperty funnel "offsetgroup" - XPeriod |> DynObj.setOptionalProperty funnel "xperiod" - XPeriodAlignment |> DynObj.setOptionalPropertyBy funnel "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setOptionalProperty funnel "xperiod0" - YPeriod |> DynObj.setOptionalProperty funnel "yperiod" - YPeriodAlignment |> DynObj.setOptionalPropertyBy funnel "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setOptionalProperty funnel "yperiod0" - Marker |> DynObj.setOptionalProperty funnel "marker" - TextAngle |> DynObj.setOptionalProperty funnel "textangle" - TextFont |> DynObj.setOptionalProperty funnel "textfont" - TextInfo |> DynObj.setOptionalPropertyBy funnel "textinfo" StyleParam.TextInfo.convert - SelectedPoints |> DynObj.setOptionalProperty funnel "selectedpoints" - ClipOnAxis |> DynObj.setOptionalProperty funnel "cliponaxis" - Connector |> DynObj.setOptionalProperty funnel "connector" - Constraintext |> DynObj.setOptionalPropertyBy funnel "constraintext" StyleParam.ConstrainText.convert - HoverLabel |> DynObj.setOptionalProperty funnel "hoverlabel" - InsideTextAnchor |> DynObj.setOptionalPropertyBy funnel "insidetextanchor" StyleParam.InsideTextAnchor.convert - InsideTextFont |> DynObj.setOptionalProperty funnel "insidetextfont" - OutsideTextFont |> DynObj.setOptionalProperty funnel "outsidetextfont" - UIRevision |> DynObj.setOptionalProperty funnel "uirevision" - + fun (funnel: #Trace) -> + funnel + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalProperty "x0" X0 + |> DynObj.withOptionalProperty "dx" DX + |> DynObj.withOptionalSingleOrMultiProperty "y" (Y, MultiY) + |> DynObj.withOptionalProperty "y0" Y0 + |> DynObj.withOptionalProperty "dy" DY + |> DynObj.withOptionalProperty "width" Width + |> DynObj.withOptionalProperty "offset" Offset + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "orientation" Orientation StyleParam.Orientation.convert + |> DynObj.withOptionalProperty "alignmentgroup" AlignmentGroup + |> DynObj.withOptionalProperty "offsetgroup" OffsetGroup + |> DynObj.withOptionalProperty "xperiod" XPeriod + |> DynObj.withOptionalPropertyBy "xperiodalignment" XPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "xperiod0" XPeriod0 + |> DynObj.withOptionalProperty "yperiod" YPeriod + |> DynObj.withOptionalPropertyBy "yperiodalignment" YPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "yperiod0" YPeriod0 + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "textangle" TextAngle + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalPropertyBy "textinfo" TextInfo StyleParam.TextInfo.convert + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "cliponaxis" ClipOnAxis + |> DynObj.withOptionalProperty "connector" Connector + |> DynObj.withOptionalPropertyBy "constraintext" Constraintext StyleParam.ConstrainText.convert + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "insidetextanchor" InsideTextAnchor StyleParam.InsideTextAnchor.convert + |> DynObj.withOptionalProperty "insidetextfont" InsideTextFont + |> DynObj.withOptionalProperty "outsidetextfont" OutsideTextFont + |> DynObj.withOptionalProperty "uirevision" UIRevision - ) /// /// Create a function that applies the styles of a waterfall plot to a Trace object @@ -831,69 +814,64 @@ type Trace2DStyle() = [] ?Totals: FinanceMarker, [] ?UIRevision: string ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setOptionalProperty trace "name" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty trace "showlegend" - Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty trace "opacity" - Ids |> DynObj.setOptionalProperty trace "ids" - (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty trace "x" - X0 |> DynObj.setOptionalProperty trace "x0" - DX |> DynObj.setOptionalProperty trace "dx" - (Y, MultiY) |> DynObj.setOptionalSingleOrMultiProperty trace "y" - Y0 |> DynObj.setOptionalProperty trace "y0" - DY |> DynObj.setOptionalProperty trace "dy" - Base |> DynObj.setOptionalProperty trace "base" - (Width, MultiWidth) |> DynObj.setOptionalSingleOrMultiProperty trace "width" - Measure |> DynObj.setOptionalPropertyBy trace "measure" (Seq.map StyleParam.WaterfallMeasure.convert) - (Offset, MultiOffset) |> DynObj.setOptionalSingleOrMultiProperty trace "offset" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemTotalsplate" - XHoverFormat |> DynObj.setOptionalProperty trace "xhoverformat" - YHoverFormat |> DynObj.setOptionalProperty trace "yhoverformat" - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - XAxis |> DynObj.setOptionalPropertyBy trace "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setOptionalPropertyBy trace "yaxis" StyleParam.LinearAxisId.convert - Orientation |> DynObj.setOptionalPropertyBy trace "orientation" StyleParam.Orientation.convert - AlignmentGroup |> DynObj.setOptionalProperty trace "alignmentgroup" - OffsetGroup |> DynObj.setOptionalProperty trace "offsetgroup" - XPeriod |> DynObj.setOptionalProperty trace "xperiod" - XPeriodAlignment |> DynObj.setOptionalPropertyBy trace "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setOptionalProperty trace "xperiod0" - YPeriod |> DynObj.setOptionalProperty trace "yperiod" - YPeriodAlignment |> DynObj.setOptionalPropertyBy trace "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setOptionalProperty trace "yperiod0" - TextAngle |> DynObj.setOptionalProperty trace "textangle" - TextFont |> DynObj.setOptionalProperty trace "textfont" - TextInfo |> DynObj.setOptionalProperty trace "textinfo" - SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" - ClipOnAxis |> DynObj.setOptionalProperty trace "cliponaxis" - Connector |> DynObj.setOptionalProperty trace "connector" - Constraintext |> DynObj.setOptionalPropertyBy trace "constraintext" StyleParam.ConstrainText.convert - Increasing |> DynObj.setOptionalProperty trace "increasing" - Decreasing |> DynObj.setOptionalProperty trace "decreasing" - HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" - InsideTextAnchor |> DynObj.setOptionalPropertyBy trace "insidetextanchor" StyleParam.InsideTextAnchor.convert - InsideTextFont |> DynObj.setOptionalProperty trace "insidetextfont" - OutsideTextFont |> DynObj.setOptionalProperty trace "outsidetextfont" - Totals |> DynObj.setOptionalProperty trace "totals" - UIRevision |> DynObj.setOptionalProperty trace "uirevision" - - trace) - + fun (waterfall: ('T :> Trace)) -> + + waterfall + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalProperty "x0" X0 + |> DynObj.withOptionalProperty "dx" DX + |> DynObj.withOptionalSingleOrMultiProperty "y" (Y, MultiY) + |> DynObj.withOptionalProperty "y0" Y0 + |> DynObj.withOptionalProperty "dy" DY + |> DynObj.withOptionalProperty "base" Base + |> DynObj.withOptionalSingleOrMultiProperty "width" (Width, MultiWidth) + |> DynObj.withOptionalPropertyBy "measure" Measure (Seq.map StyleParam.WaterfallMeasure.convert) + |> DynObj.withOptionalSingleOrMultiProperty "offset" (Offset, MultiOffset) + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemTotalsplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "orientation" Orientation StyleParam.Orientation.convert + |> DynObj.withOptionalProperty "alignmentgroup" AlignmentGroup + |> DynObj.withOptionalProperty "offsetgroup" OffsetGroup + |> DynObj.withOptionalProperty "xperiod" XPeriod + |> DynObj.withOptionalPropertyBy "xperiodalignment" XPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "xperiod0" XPeriod0 + |> DynObj.withOptionalProperty "yperiod" YPeriod + |> DynObj.withOptionalPropertyBy "yperiodalignment" YPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "yperiod0" YPeriod0 + |> DynObj.withOptionalProperty "textangle" TextAngle + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "textinfo" TextInfo + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "cliponaxis" ClipOnAxis + |> DynObj.withOptionalProperty "connector" Connector + |> DynObj.withOptionalPropertyBy "constraintext" Constraintext StyleParam.ConstrainText.convert + |> DynObj.withOptionalProperty "increasing" Increasing + |> DynObj.withOptionalProperty "decreasing" Decreasing + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "insidetextanchor" InsideTextAnchor StyleParam.InsideTextAnchor.convert + |> DynObj.withOptionalProperty "insidetextfont" InsideTextFont + |> DynObj.withOptionalProperty "outsidetextfont" OutsideTextFont + |> DynObj.withOptionalProperty "totals" Totals + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Create a function that applies the styles of a histogram plot to a Trace object @@ -1021,64 +999,64 @@ type Trace2DStyle() = [] ?YCalendar: StyleParam.Calendar, [] ?UIRevision: string ) = - (fun (histogram: ('T :> Trace)) -> - - Name |> DynObj.setOptionalProperty histogram "name" - Visible |> DynObj.setOptionalPropertyBy histogram "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty histogram "showlegend" - Legend |> DynObj.setOptionalPropertyBy histogram "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty histogram "legendrank" - LegendGroup |> DynObj.setOptionalProperty histogram "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty histogram "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty histogram "opacity" - Ids |> DynObj.setOptionalProperty histogram "ids" - (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty histogram "x" - (Y, MultiY) |> DynObj.setOptionalSingleOrMultiProperty histogram "y" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty histogram "text" - TextPosition |> DynObj.setOptionalPropertyBy histogram "textposition" StyleParam.TextPosition.convert - (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty histogram "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty histogram "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy histogram "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty histogram "hovertemplate" - XHoverFormat |> DynObj.setOptionalProperty histogram "xhoverformat" - YHoverFormat |> DynObj.setOptionalProperty histogram "yhoverformat" - Meta |> DynObj.setOptionalProperty histogram "meta" - CustomData |> DynObj.setOptionalProperty histogram "customdata" - XAxis |> DynObj.setOptionalPropertyBy histogram "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setOptionalPropertyBy histogram "yaxis" StyleParam.LinearAxisId.convert - Orientation |> DynObj.setOptionalPropertyBy histogram "orientation" StyleParam.Orientation.convert - HistFunc |> DynObj.setOptionalPropertyBy histogram "histfunc" StyleParam.HistFunc.convert - HistNorm |> DynObj.setOptionalPropertyBy histogram "histnorm" StyleParam.HistNorm.convert - AlignmentGroup |> DynObj.setOptionalProperty histogram "alignmentgroup" - OffsetGroup |> DynObj.setOptionalProperty histogram "offsetgroup" - NBinsX |> DynObj.setOptionalProperty histogram "nbinsx" - NBinsY |> DynObj.setOptionalProperty histogram "nbinsy" - AutoBinX |> DynObj.setOptionalProperty histogram "autobinx" - AutoBinY |> DynObj.setOptionalProperty histogram "autobiny" - BinGroup |> DynObj.setOptionalProperty histogram "bingroup" - XBins |> DynObj.setOptionalProperty histogram "xbins" - YBins |> DynObj.setOptionalProperty histogram "ybins" - Marker |> DynObj.setOptionalProperty histogram "marker" - TextAngle |> DynObj.setOptionalProperty histogram "textangle" - TextFont |> DynObj.setOptionalProperty histogram "textfont" - Line |> DynObj.setOptionalProperty histogram "line" - XError |> DynObj.setOptionalProperty histogram "error_x" - YError |> DynObj.setOptionalProperty histogram "error_y" - SelectedPoints |> DynObj.setOptionalProperty histogram "selectedpoints" - Selected |> DynObj.setOptionalProperty histogram "selected" - Unselected |> DynObj.setOptionalProperty histogram "unselected" - ClipOnAxis |> DynObj.setOptionalProperty histogram "cliponaxis" - Constraintext |> DynObj.setOptionalPropertyBy histogram "constraintext" StyleParam.ConstrainText.convert - Cumulative |> DynObj.setOptionalProperty histogram "cumulative" - HoverLabel |> DynObj.setOptionalProperty histogram "hoverlabel" - InsideTextAnchor |> DynObj.setOptionalPropertyBy histogram "insidetextanchor" StyleParam.InsideTextAnchor.convert - InsideTextFont |> DynObj.setOptionalProperty histogram "insidetextfont" - OutsideTextFont |> DynObj.setOptionalProperty histogram "outsidetextfont" - XCalendar |> DynObj.setOptionalPropertyBy histogram "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setOptionalPropertyBy histogram "ycalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setOptionalProperty histogram "uirevision" + fun (histogram: ('T :> Trace)) -> + + histogram + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalSingleOrMultiProperty "y" (Y, MultiY) + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalPropertyBy "textposition" TextPosition StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "orientation" Orientation StyleParam.Orientation.convert + |> DynObj.withOptionalPropertyBy "histfunc" HistFunc StyleParam.HistFunc.convert + |> DynObj.withOptionalPropertyBy "histnorm" HistNorm StyleParam.HistNorm.convert + |> DynObj.withOptionalProperty "alignmentgroup" AlignmentGroup + |> DynObj.withOptionalProperty "offsetgroup" OffsetGroup + |> DynObj.withOptionalProperty "nbinsx" NBinsX + |> DynObj.withOptionalProperty "nbinsy" NBinsY + |> DynObj.withOptionalProperty "autobinx" AutoBinX + |> DynObj.withOptionalProperty "autobiny" AutoBinY + |> DynObj.withOptionalProperty "bingroup" BinGroup + |> DynObj.withOptionalProperty "xbins" XBins + |> DynObj.withOptionalProperty "ybins" YBins + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "textangle" TextAngle + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "error_x" XError + |> DynObj.withOptionalProperty "error_y" YError + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "cliponaxis" ClipOnAxis + |> DynObj.withOptionalPropertyBy "constraintext" Constraintext StyleParam.ConstrainText.convert + |> DynObj.withOptionalProperty "cumulative" Cumulative + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "insidetextanchor" InsideTextAnchor StyleParam.InsideTextAnchor.convert + |> DynObj.withOptionalProperty "insidetextfont" InsideTextFont + |> DynObj.withOptionalProperty "outsidetextfont" OutsideTextFont + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "ycalendar" YCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision - histogram) /// /// Create a function that applies the styles of a boxplot to a Trace object @@ -1228,77 +1206,75 @@ type Trace2DStyle() = [] ?YCalendar: StyleParam.Calendar, [] ?UIRevision: string ) = - (fun (boxPlot: ('T :> Trace)) -> - - Name |> DynObj.setOptionalProperty boxPlot "name" - Visible |> DynObj.setOptionalPropertyBy boxPlot "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty boxPlot "showlegend" - Legend |> DynObj.setOptionalPropertyBy boxPlot "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty boxPlot "legendrank" - LegendGroup |> DynObj.setOptionalProperty boxPlot "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty boxPlot "legendgrouptitle" - LegendWidth |> DynObj.setOptionalProperty boxPlot "legendwidth" - Opacity |> DynObj.setOptionalProperty boxPlot "opacity" - Ids |> DynObj.setOptionalProperty boxPlot "ids" - (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty boxPlot "x" - X0 |> DynObj.setOptionalProperty boxPlot "x0" - DX |> DynObj.setOptionalProperty boxPlot "dx" - (Y, MultiY) |> DynObj.setOptionalSingleOrMultiProperty boxPlot "y" - Y0 |> DynObj.setOptionalProperty boxPlot "y0" - DY |> DynObj.setOptionalProperty boxPlot "dy" - Width |> DynObj.setOptionalProperty boxPlot "width" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty boxPlot "text" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty boxPlot "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy boxPlot "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty boxPlot "hovertemplate" - XHoverFormat |> DynObj.setOptionalProperty boxPlot "xhoverformat" - YHoverFormat |> DynObj.setOptionalProperty boxPlot "yhoverformat" - Meta |> DynObj.setOptionalProperty boxPlot "meta" - CustomData |> DynObj.setOptionalProperty boxPlot "customdata" - XAxis |> DynObj.setOptionalPropertyBy boxPlot "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setOptionalPropertyBy boxPlot "yaxis" StyleParam.LinearAxisId.convert - Orientation |> DynObj.setOptionalPropertyBy boxPlot "orientation" StyleParam.Orientation.convert - AlignmentGroup |> DynObj.setOptionalProperty boxPlot "alignmentgroup" - OffsetGroup |> DynObj.setOptionalProperty boxPlot "offsetgroup" - XPeriod |> DynObj.setOptionalProperty boxPlot "xperiod" - XPeriodAlignment |> DynObj.setOptionalPropertyBy boxPlot "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setOptionalProperty boxPlot "xperiod0" - YPeriod |> DynObj.setOptionalProperty boxPlot "yperiod" - YPeriodAlignment |> DynObj.setOptionalPropertyBy boxPlot "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setOptionalProperty boxPlot "yperiod0" - Marker |> DynObj.setOptionalProperty boxPlot "marker" - Line |> DynObj.setOptionalProperty boxPlot "line" - BoxMean |> DynObj.setOptionalPropertyBy boxPlot "boxmean" StyleParam.BoxMean.convert - BoxPoints |> DynObj.setOptionalPropertyBy boxPlot "boxpoints" StyleParam.BoxPoints.convert - Notched |> DynObj.setOptionalProperty boxPlot "notched" - NotchWidth |> DynObj.setOptionalProperty boxPlot "notchwidth" - WhiskerWidth |> DynObj.setOptionalProperty boxPlot "whiskerwidth" - ShowWhiskers |> DynObj.setOptionalProperty boxPlot "showwhiskers" - Q1 |> DynObj.setOptionalProperty boxPlot "q1" - Median |> DynObj.setOptionalProperty boxPlot "median" - Q3 |> DynObj.setOptionalProperty boxPlot "q3" - LowerFence |> DynObj.setOptionalProperty boxPlot "lowerfence" - UpperFence |> DynObj.setOptionalProperty boxPlot "upperfence" - NotchSpan |> DynObj.setOptionalProperty boxPlot "notchspan" - Mean |> DynObj.setOptionalProperty boxPlot "mean" - SD |> DynObj.setOptionalProperty boxPlot "sd" - SDMultiple |> DynObj.setOptionalProperty boxPlot "sdmultiple" - QuartileMethod |> DynObj.setOptionalPropertyBy boxPlot "quartilemethod" StyleParam.QuartileMethod.convert - SelectedPoints |> DynObj.setOptionalProperty boxPlot "selectedpoints" - Selected |> DynObj.setOptionalProperty boxPlot "selected" - Unselected |> DynObj.setOptionalProperty boxPlot "unselected" - FillColor |> DynObj.setOptionalProperty boxPlot "fillcolor" - HoverLabel |> DynObj.setOptionalProperty boxPlot "hoverlabel" - HoverOn |> DynObj.setOptionalPropertyBy boxPlot "hoveron" StyleParam.HoverOn.convert - PointPos |> DynObj.setOptionalProperty boxPlot "pointpos" - Jitter |> DynObj.setOptionalProperty boxPlot "jitter" - SizeMode |> DynObj.setOptionalPropertyBy boxPlot "sizemode" StyleParam.BoxSizeMode.convert - XCalendar |> DynObj.setOptionalPropertyBy boxPlot "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setOptionalPropertyBy boxPlot "ycalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setOptionalProperty boxPlot "uirevision" - - // out -> - boxPlot) + fun (boxPlot: ('T :> Trace)) -> + + boxPlot + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "legendwidth" LegendWidth + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalProperty "x0" X0 + |> DynObj.withOptionalProperty "dx" DX + |> DynObj.withOptionalSingleOrMultiProperty "y" (Y, MultiY) + |> DynObj.withOptionalProperty "y0" Y0 + |> DynObj.withOptionalProperty "dy" DY + |> DynObj.withOptionalProperty "width" Width + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "orientation" Orientation StyleParam.Orientation.convert + |> DynObj.withOptionalProperty "alignmentgroup" AlignmentGroup + |> DynObj.withOptionalProperty "offsetgroup" OffsetGroup + |> DynObj.withOptionalProperty "xperiod" XPeriod + |> DynObj.withOptionalPropertyBy "xperiodalignment" XPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "xperiod0" XPeriod0 + |> DynObj.withOptionalProperty "yperiod" YPeriod + |> DynObj.withOptionalPropertyBy "yperiodalignment" YPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "yperiod0" YPeriod0 + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalPropertyBy "boxmean" BoxMean StyleParam.BoxMean.convert + |> DynObj.withOptionalPropertyBy "boxpoints" BoxPoints StyleParam.BoxPoints.convert + |> DynObj.withOptionalProperty "notched" Notched + |> DynObj.withOptionalProperty "notchwidth" NotchWidth + |> DynObj.withOptionalProperty "whiskerwidth" WhiskerWidth + |> DynObj.withOptionalProperty "showwhiskers" ShowWhiskers + |> DynObj.withOptionalProperty "q1" Q1 + |> DynObj.withOptionalProperty "median" Median + |> DynObj.withOptionalProperty "q3" Q3 + |> DynObj.withOptionalProperty "lowerfence" LowerFence + |> DynObj.withOptionalProperty "upperfence" UpperFence + |> DynObj.withOptionalProperty "notchspan" NotchSpan + |> DynObj.withOptionalProperty "mean" Mean + |> DynObj.withOptionalProperty "sd" SD + |> DynObj.withOptionalProperty "sdmultiple" SDMultiple + |> DynObj.withOptionalPropertyBy "quartilemethod" QuartileMethod StyleParam.QuartileMethod.convert + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "hoveron" HoverOn StyleParam.HoverOn.convert + |> DynObj.withOptionalProperty "pointpos" PointPos + |> DynObj.withOptionalProperty "jitter" Jitter + |> DynObj.withOptionalPropertyBy "sizemode" SizeMode StyleParam.BoxSizeMode.convert + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "ycalendar" YCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// @@ -1415,59 +1391,58 @@ type Trace2DStyle() = [] ?SpanMode: StyleParam.SpanMode, [] ?UIRevision: string ) = - (fun (violin: ('T :> Trace)) -> - - Name |> DynObj.setOptionalProperty violin "name" - Visible |> DynObj.setOptionalPropertyBy violin "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty violin "showlegend" - Legend |> DynObj.setOptionalPropertyBy violin "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty violin "legendrank" - LegendGroup |> DynObj.setOptionalProperty violin "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty violin "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty violin "opacity" - Ids |> DynObj.setOptionalProperty violin "ids" - (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty violin "x" - X0 |> DynObj.setOptionalProperty violin "x0" - DX |> DynObj.setOptionalProperty violin "dx" - (Y, MultiY) |> DynObj.setOptionalSingleOrMultiProperty violin "y" - Y0 |> DynObj.setOptionalProperty violin "y0" - DY |> DynObj.setOptionalProperty violin "dy" - Width |> DynObj.setOptionalProperty violin "width" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty violin "text" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty violin "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy violin "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty violin "hovertemplate" - XHoverFormat |> DynObj.setOptionalProperty violin "xhoverformat" - YHoverFormat |> DynObj.setOptionalProperty violin "yhoverformat" - Meta |> DynObj.setOptionalProperty violin "meta" - CustomData |> DynObj.setOptionalProperty violin "customdata" - XAxis |> DynObj.setOptionalPropertyBy violin "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setOptionalPropertyBy violin "yaxis" StyleParam.LinearAxisId.convert - Orientation |> DynObj.setOptionalPropertyBy violin "orientation" StyleParam.Orientation.convert - AlignmentGroup |> DynObj.setOptionalProperty violin "alignmentgroup" - OffsetGroup |> DynObj.setOptionalProperty violin "offsetgroup" - Marker |> DynObj.setOptionalProperty violin "marker" - Line |> DynObj.setOptionalProperty violin "line" - Box |> DynObj.setOptionalProperty violin "box" - SelectedPoints |> DynObj.setOptionalProperty violin "selectedpoints" - Selected |> DynObj.setOptionalProperty violin "selected" - Unselected |> DynObj.setOptionalProperty violin "unselected" - BandWidth |> DynObj.setOptionalProperty violin "bandwidth" - FillColor |> DynObj.setOptionalProperty violin "fillcolor" - HoverLabel |> DynObj.setOptionalProperty violin "hoverlabel" - HoverOn |> DynObj.setOptionalPropertyBy violin "hoveron" StyleParam.HoverOn.convert - PointPos |> DynObj.setOptionalProperty violin "pointpos" - Jitter |> DynObj.setOptionalProperty violin "jitter" - MeanLine |> DynObj.setOptionalProperty violin "meanline" - Points |> DynObj.setOptionalPropertyBy violin "points" StyleParam.JitterPoints.convert - ScaleGroup |> DynObj.setOptionalProperty violin "scalegroup" - ScaleMode |> DynObj.setOptionalPropertyBy violin "scalemode" StyleParam.ScaleMode.convert - Side |> DynObj.setOptionalPropertyBy violin "side" StyleParam.ViolinSide.convert - Span |> DynObj.setOptionalPropertyBy violin "span" StyleParam.Range.convert - SpanMode |> DynObj.setOptionalPropertyBy violin "spanmode" StyleParam.SpanMode.convert - UIRevision |> DynObj.setOptionalProperty violin "uirevision" - - violin) + fun (violin: ('T :> Trace)) -> + + violin + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalProperty "x0" X0 + |> DynObj.withOptionalProperty "dx" DX + |> DynObj.withOptionalSingleOrMultiProperty "y" (Y, MultiY) + |> DynObj.withOptionalProperty "y0" Y0 + |> DynObj.withOptionalProperty "dy" DY + |> DynObj.withOptionalProperty "width" Width + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "orientation" Orientation StyleParam.Orientation.convert + |> DynObj.withOptionalProperty "alignmentgroup" AlignmentGroup + |> DynObj.withOptionalProperty "offsetgroup" OffsetGroup + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "box" Box + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "bandwidth" BandWidth + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "hoveron" HoverOn StyleParam.HoverOn.convert + |> DynObj.withOptionalProperty "pointpos" PointPos + |> DynObj.withOptionalProperty "jitter" Jitter + |> DynObj.withOptionalProperty "meanline" MeanLine + |> DynObj.withOptionalPropertyBy "points" Points StyleParam.JitterPoints.convert + |> DynObj.withOptionalProperty "scalegroup" ScaleGroup + |> DynObj.withOptionalPropertyBy "scalemode" ScaleMode StyleParam.ScaleMode.convert + |> DynObj.withOptionalPropertyBy "side" Side StyleParam.ViolinSide.convert + |> DynObj.withOptionalPropertyBy "span" Span StyleParam.Range.convert + |> DynObj.withOptionalPropertyBy "spanmode" SpanMode StyleParam.SpanMode.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Create a function that applies the styles of a 2d histogram plot to a Trace object @@ -1585,62 +1560,61 @@ type Trace2DStyle() = [] ?YCalendar: StyleParam.Calendar, [] ?UIRevision: string ) = - (fun (histogram2D: ('T :> Trace)) -> - - Name |> DynObj.setOptionalProperty histogram2D "name" - Visible |> DynObj.setOptionalPropertyBy histogram2D "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty histogram2D "showlegend" - Legend |> DynObj.setOptionalPropertyBy histogram2D "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty histogram2D "legendrank" - LegendGroup |> DynObj.setOptionalProperty histogram2D "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty histogram2D "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty histogram2D "opacity" - Ids |> DynObj.setOptionalProperty histogram2D "ids" - (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty histogram2D "x" - XGap |> DynObj.setOptionalProperty histogram2D "xgap" - (Y, MultiY) |> DynObj.setOptionalSingleOrMultiProperty histogram2D "y" - YGap |> DynObj.setOptionalProperty histogram2D "ygap" - Z |> DynObj.setOptionalProperty histogram2D "z" - TextTemplate |> DynObj.setOptionalProperty histogram2D "texttemplate" - HoverInfo |> DynObj.setOptionalPropertyBy histogram2D "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty histogram2D "hovertemplate" - XHoverFormat |> DynObj.setOptionalProperty histogram2D "xhoverformat" - YHoverFormat |> DynObj.setOptionalProperty histogram2D "yhoverformat" - Meta |> DynObj.setOptionalProperty histogram2D "meta" - CustomData |> DynObj.setOptionalProperty histogram2D "customdata" - XAxis |> DynObj.setOptionalPropertyBy histogram2D "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setOptionalPropertyBy histogram2D "yaxis" StyleParam.LinearAxisId.convert - ColorAxis |> DynObj.setOptionalProperty histogram2D "coloraxis" - HistFunc |> DynObj.setOptionalPropertyBy histogram2D "histfunc" StyleParam.HistFunc.convert - HistNorm |> DynObj.setOptionalPropertyBy histogram2D "histnorm" StyleParam.HistNorm.convert - NBinsX |> DynObj.setOptionalProperty histogram2D "nbinsx" - NBinsY |> DynObj.setOptionalProperty histogram2D "nbinsy" - AutoBinX |> DynObj.setOptionalProperty histogram2D "autobinx" - AutoBinY |> DynObj.setOptionalProperty histogram2D "autobiny" - BinGroup |> DynObj.setOptionalProperty histogram2D "bingroup" - XBinGroup |> DynObj.setOptionalProperty histogram2D "xbingroup" - XBins |> DynObj.setOptionalProperty histogram2D "xbins" - YBinGroup |> DynObj.setOptionalProperty histogram2D "ybingroup" - YBins |> DynObj.setOptionalProperty histogram2D "ybins" - Marker |> DynObj.setOptionalProperty histogram2D "marker" - TextFont |> DynObj.setOptionalProperty histogram2D "textfont" - ColorBar |> DynObj.setOptionalProperty histogram2D "colorbar" - AutoColorScale |> DynObj.setOptionalProperty histogram2D "autocolorscale" - ColorScale |> DynObj.setOptionalPropertyBy histogram2D "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setOptionalProperty histogram2D "showscale" - ReverseScale |> DynObj.setOptionalProperty histogram2D "reversescale" - ZAuto |> DynObj.setOptionalProperty histogram2D "zauto" - ZHoverFormat |> DynObj.setOptionalProperty histogram2D "zhoverformat" - ZMin |> DynObj.setOptionalProperty histogram2D "zmin" - ZMid |> DynObj.setOptionalProperty histogram2D "zmid" - ZMax |> DynObj.setOptionalProperty histogram2D "zmax" - ZSmooth |> DynObj.setOptionalPropertyBy histogram2D "zsmooth" StyleParam.SmoothAlg.convert - HoverLabel |> DynObj.setOptionalProperty histogram2D "hoverlabel" - XCalendar |> DynObj.setOptionalPropertyBy histogram2D "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setOptionalPropertyBy histogram2D "ycalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setOptionalProperty histogram2D "uirevision" - - histogram2D) + fun (histogram2D: ('T :> Trace)) -> + + histogram2D + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalProperty "xgap" XGap + |> DynObj.withOptionalSingleOrMultiProperty "y" (Y, MultiY) + |> DynObj.withOptionalProperty "ygap" YGap + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "texttemplate" TextTemplate + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalProperty "coloraxis" ColorAxis + |> DynObj.withOptionalPropertyBy "histfunc" HistFunc StyleParam.HistFunc.convert + |> DynObj.withOptionalPropertyBy "histnorm" HistNorm StyleParam.HistNorm.convert + |> DynObj.withOptionalProperty "nbinsx" NBinsX + |> DynObj.withOptionalProperty "nbinsy" NBinsY + |> DynObj.withOptionalProperty "autobinx" AutoBinX + |> DynObj.withOptionalProperty "autobiny" AutoBinY + |> DynObj.withOptionalProperty "bingroup" BinGroup + |> DynObj.withOptionalProperty "xbingroup" XBinGroup + |> DynObj.withOptionalProperty "xbins" XBins + |> DynObj.withOptionalProperty "ybingroup" YBinGroup + |> DynObj.withOptionalProperty "ybins" YBins + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "zauto" ZAuto + |> DynObj.withOptionalProperty "zhoverformat" ZHoverFormat + |> DynObj.withOptionalProperty "zmin" ZMin + |> DynObj.withOptionalProperty "zmid" ZMid + |> DynObj.withOptionalProperty "zmax" ZMax + |> DynObj.withOptionalPropertyBy "zsmooth" ZSmooth StyleParam.SmoothAlg.convert + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "ycalendar" YCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Create a function that applies the styles of a 2d histogram contour plot to a Trace object @@ -1760,63 +1734,62 @@ type Trace2DStyle() = [] ?YCalendar: StyleParam.Calendar, [] ?UIRevision: string ) = - (fun (histogram2DContour: ('T :> Trace)) -> - - Name |> DynObj.setOptionalProperty histogram2DContour "name" - Visible |> DynObj.setOptionalPropertyBy histogram2DContour "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty histogram2DContour "showlegend" - Legend |> DynObj.setOptionalPropertyBy histogram2DContour "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty histogram2DContour "legendrank" - LegendGroup |> DynObj.setOptionalProperty histogram2DContour "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty histogram2DContour "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty histogram2DContour "opacity" - Ids |> DynObj.setOptionalProperty histogram2DContour "ids" - (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty histogram2DContour "x" - (Y, MultiY) |> DynObj.setOptionalSingleOrMultiProperty histogram2DContour "y" - Z |> DynObj.setOptionalProperty histogram2DContour "z" - TextTemplate |> DynObj.setOptionalProperty histogram2DContour "texttemplate" - HoverInfo |> DynObj.setOptionalPropertyBy histogram2DContour "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty histogram2DContour "hovertemplate" - XHoverFormat |> DynObj.setOptionalProperty histogram2DContour "xhoverformat" - YHoverFormat |> DynObj.setOptionalProperty histogram2DContour "yhoverformat" - Meta |> DynObj.setOptionalProperty histogram2DContour "meta" - CustomData |> DynObj.setOptionalProperty histogram2DContour "customdata" - XAxis |> DynObj.setOptionalPropertyBy histogram2DContour "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setOptionalPropertyBy histogram2DContour "yaxis" StyleParam.LinearAxisId.convert - ColorAxis |> DynObj.setOptionalProperty histogram2DContour "coloraxis" - HistFunc |> DynObj.setOptionalPropertyBy histogram2DContour "histfunc" StyleParam.HistFunc.convert - HistNorm |> DynObj.setOptionalPropertyBy histogram2DContour "histnorm" StyleParam.HistNorm.convert - NBinsX |> DynObj.setOptionalProperty histogram2DContour "nbinsx" - NBinsY |> DynObj.setOptionalProperty histogram2DContour "nbinsy" - AutoBinX |> DynObj.setOptionalProperty histogram2DContour "autobinx" - AutoBinY |> DynObj.setOptionalProperty histogram2DContour "autobiny" - BinGroup |> DynObj.setOptionalProperty histogram2DContour "bingroup" - XBinGroup |> DynObj.setOptionalProperty histogram2DContour "xbingroup" - XBins |> DynObj.setOptionalProperty histogram2DContour "xbins" - YBinGroup |> DynObj.setOptionalProperty histogram2DContour "ybingroup" - YBins |> DynObj.setOptionalProperty histogram2DContour "ybins" - Marker |> DynObj.setOptionalProperty histogram2DContour "marker" - Line |> DynObj.setOptionalProperty histogram2DContour "line" - TextFont |> DynObj.setOptionalProperty histogram2DContour "textfont" - ColorBar |> DynObj.setOptionalProperty histogram2DContour "colorbar" - AutoColorScale |> DynObj.setOptionalProperty histogram2DContour "autocolorscale" - ColorScale |> DynObj.setOptionalPropertyBy histogram2DContour "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setOptionalProperty histogram2DContour "showscale" - ReverseScale |> DynObj.setOptionalProperty histogram2DContour "reversescale" - ZAuto |> DynObj.setOptionalProperty histogram2DContour "zauto" - ZHoverFormat |> DynObj.setOptionalProperty histogram2DContour "zhoverformat" - Zmin |> DynObj.setOptionalProperty histogram2DContour "zmin" - Zmid |> DynObj.setOptionalProperty histogram2DContour "zmid" - Zmax |> DynObj.setOptionalProperty histogram2DContour "zmax" - AutoContour |> DynObj.setOptionalProperty histogram2DContour "autocontour" - Contours |> DynObj.setOptionalProperty histogram2DContour "contours" - HoverLabel |> DynObj.setOptionalProperty histogram2DContour "hoverlabel" - NContours |> DynObj.setOptionalProperty histogram2DContour "ncontours" - XCalendar |> DynObj.setOptionalPropertyBy histogram2DContour "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setOptionalPropertyBy histogram2DContour "ycalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setOptionalProperty histogram2DContour "uirevision" - - histogram2DContour) + fun (histogram2DContour: ('T :> Trace)) -> + + histogram2DContour + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalSingleOrMultiProperty "y" (Y, MultiY) + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "texttemplate" TextTemplate + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalProperty "coloraxis" ColorAxis + |> DynObj.withOptionalPropertyBy "histfunc" HistFunc StyleParam.HistFunc.convert + |> DynObj.withOptionalPropertyBy "histnorm" HistNorm StyleParam.HistNorm.convert + |> DynObj.withOptionalProperty "nbinsx" NBinsX + |> DynObj.withOptionalProperty "nbinsy" NBinsY + |> DynObj.withOptionalProperty "autobinx" AutoBinX + |> DynObj.withOptionalProperty "autobiny" AutoBinY + |> DynObj.withOptionalProperty "bingroup" BinGroup + |> DynObj.withOptionalProperty "xbingroup" XBinGroup + |> DynObj.withOptionalProperty "xbins" XBins + |> DynObj.withOptionalProperty "ybingroup" YBinGroup + |> DynObj.withOptionalProperty "ybins" YBins + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "zauto" ZAuto + |> DynObj.withOptionalProperty "zhoverformat" ZHoverFormat + |> DynObj.withOptionalProperty "zmin" Zmin + |> DynObj.withOptionalProperty "zmid" Zmid + |> DynObj.withOptionalProperty "zmax" Zmax + |> DynObj.withOptionalProperty "autocontour" AutoContour + |> DynObj.withOptionalProperty "contours" Contours + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "ncontours" NContours + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "ycalendar" YCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// @@ -1949,69 +1922,66 @@ type Trace2DStyle() = [] ?YCalendar: StyleParam.Calendar, [] ?UIRevision: string ) = - (fun (heatmap: ('T :> Trace)) -> - - Name |> DynObj.setOptionalProperty heatmap "name" - Visible |> DynObj.setOptionalPropertyBy heatmap "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty heatmap "showlegend" - Legend |> DynObj.setOptionalPropertyBy heatmap "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty heatmap "legendrank" - LegendGroup |> DynObj.setOptionalProperty heatmap "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty heatmap "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty heatmap "opacity" - Ids |> DynObj.setOptionalProperty heatmap "ids" - (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty heatmap "x" - X0 |> DynObj.setOptionalProperty heatmap "x0" - DX |> DynObj.setOptionalProperty heatmap "dx" - XType |> DynObj.setOptionalPropertyBy heatmap "xtype" StyleParam.CoordinateType.convert - XGap |> DynObj.setOptionalProperty heatmap "xgap" - (Y, MultiY) |> DynObj.setOptionalSingleOrMultiProperty heatmap "y" - Y0 |> DynObj.setOptionalProperty heatmap "y0" - DY |> DynObj.setOptionalProperty heatmap "dy" - YType |> DynObj.setOptionalPropertyBy heatmap "ytype" StyleParam.CoordinateType.convert - YGap |> DynObj.setOptionalProperty heatmap "ygap" - Z |> DynObj.setOptionalProperty heatmap "z" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty heatmap "text" - TextTemplate |> DynObj.setOptionalProperty heatmap "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty heatmap "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy heatmap "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty heatmap "hovertemplate" - XHoverFormat |> DynObj.setOptionalProperty heatmap "xhoverformat" - YHoverFormat |> DynObj.setOptionalProperty heatmap "yhoverformat" - Meta |> DynObj.setOptionalProperty heatmap "meta" - CustomData |> DynObj.setOptionalProperty heatmap "customdata" - XAxis |> DynObj.setOptionalPropertyBy heatmap "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setOptionalPropertyBy heatmap "yaxis" StyleParam.LinearAxisId.convert - ColorAxis |> DynObj.setOptionalPropertyBy heatmap "coloraxis" StyleParam.SubPlotId.convert - XPeriod |> DynObj.setOptionalProperty heatmap "xperiod" - XPeriodAlignment |> DynObj.setOptionalPropertyBy heatmap "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setOptionalProperty heatmap "xperiod0" - YPeriod |> DynObj.setOptionalProperty heatmap "yperiod" - YPeriodAlignment |> DynObj.setOptionalPropertyBy heatmap "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setOptionalProperty heatmap "yperiod0" - TextFont |> DynObj.setOptionalProperty heatmap "textfont" - ColorBar |> DynObj.setOptionalProperty heatmap "colorbar" - AutoColorScale |> DynObj.setOptionalProperty heatmap "autocolorscale" - ColorScale |> DynObj.setOptionalPropertyBy heatmap "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setOptionalProperty heatmap "showscale" - ReverseScale |> DynObj.setOptionalProperty heatmap "reversescale" - ZAuto |> DynObj.setOptionalProperty heatmap "zauto" - ZHoverFormat |> DynObj.setOptionalProperty heatmap "zhoverformat" - ZMax |> DynObj.setOptionalProperty heatmap "zmax" - ZMid |> DynObj.setOptionalProperty heatmap "zmid" - ZMin |> DynObj.setOptionalProperty heatmap "zmin" - ZSmooth |> DynObj.setOptionalPropertyBy heatmap "zsmooth" StyleParam.SmoothAlg.convert - ConnectGaps |> DynObj.setOptionalProperty heatmap "connectgaps" - HoverLabel |> DynObj.setOptionalProperty heatmap "hoverlabel" - HoverOnGaps |> DynObj.setOptionalProperty heatmap "hoverongaps" - Transpose |> DynObj.setOptionalProperty heatmap "transpose" - XCalendar |> DynObj.setOptionalPropertyBy heatmap "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setOptionalPropertyBy heatmap "ycalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setOptionalProperty heatmap "uirevision" - - - // out -> - heatmap) + fun (heatmap: ('T :> Trace)) -> + + heatmap + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalProperty "x0" X0 + |> DynObj.withOptionalProperty "dx" DX + |> DynObj.withOptionalPropertyBy "xtype" XType StyleParam.CoordinateType.convert + |> DynObj.withOptionalProperty "xgap" XGap + |> DynObj.withOptionalSingleOrMultiProperty "y" (Y, MultiY) + |> DynObj.withOptionalProperty "y0" Y0 + |> DynObj.withOptionalProperty "dy" DY + |> DynObj.withOptionalPropertyBy "ytype" YType StyleParam.CoordinateType.convert + |> DynObj.withOptionalProperty "ygap" YGap + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalProperty "texttemplate" TextTemplate + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "xperiod" XPeriod + |> DynObj.withOptionalPropertyBy "xperiodalignment" XPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "xperiod0" XPeriod0 + |> DynObj.withOptionalProperty "yperiod" YPeriod + |> DynObj.withOptionalPropertyBy "yperiodalignment" YPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "yperiod0" YPeriod0 + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "zauto" ZAuto + |> DynObj.withOptionalProperty "zhoverformat" ZHoverFormat + |> DynObj.withOptionalProperty "zmax" ZMax + |> DynObj.withOptionalProperty "zmid" ZMid + |> DynObj.withOptionalProperty "zmin" ZMin + |> DynObj.withOptionalPropertyBy "zsmooth" ZSmooth StyleParam.SmoothAlg.convert + |> DynObj.withOptionalProperty "connectgaps" ConnectGaps + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "hoverongaps" HoverOnGaps + |> DynObj.withOptionalProperty "transpose" Transpose + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "ycalendar" YCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Create a function that applies the styles of a Image plot to a Trace object @@ -2083,40 +2053,38 @@ type Trace2DStyle() = [] ?HoverLabel: Hoverlabel, [] ?UIRevision: string ) = - (fun (image: ('T :> Trace)) -> - - Name |> DynObj.setOptionalProperty image "name" - Visible |> DynObj.setOptionalPropertyBy image "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty image "showlegend" - Legend |> DynObj.setOptionalPropertyBy image "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty image "legendrank" - LegendGroup |> DynObj.setOptionalProperty image "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty image "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty image "opacity" - Ids |> DynObj.setOptionalProperty image "ids" - X0 |> DynObj.setOptionalProperty image "x0" - DX |> DynObj.setOptionalProperty image "dx" - Y0 |> DynObj.setOptionalProperty image "y0" - DY |> DynObj.setOptionalProperty image "dy" - Z |> DynObj.setOptionalProperty image "z" - Source |> DynObj.setOptionalProperty image "source" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty image "text" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty image "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy image "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty image "hovertemplate" - Meta |> DynObj.setOptionalProperty image "meta" - CustomData |> DynObj.setOptionalProperty image "customdata" - XAxis |> DynObj.setOptionalPropertyBy image "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setOptionalPropertyBy image "yaxis" StyleParam.LinearAxisId.convert - ColorModel |> DynObj.setOptionalPropertyBy image "colormodel" StyleParam.ColorModel.convert - ZMax |> DynObj.setOptionalPropertyBy image "zmax" StyleParam.ColorComponentBound.convert - ZMin |> DynObj.setOptionalPropertyBy image "zmin" StyleParam.ColorComponentBound.convert - ZSmooth |> DynObj.setOptionalPropertyBy image "zsmooth" StyleParam.SmoothAlg.convert - HoverLabel |> DynObj.setOptionalProperty image "hoverlabel" - UIRevision |> DynObj.setOptionalProperty image "uirevision" - - // out -> - image) + fun (image: ('T :> Trace)) -> + + image + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "x0" X0 + |> DynObj.withOptionalProperty "dx" DX + |> DynObj.withOptionalProperty "y0" Y0 + |> DynObj.withOptionalProperty "dy" DY + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "source" Source + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "colormodel" ColorModel StyleParam.ColorModel.convert + |> DynObj.withOptionalPropertyBy "zmax" ZMax StyleParam.ColorComponentBound.convert + |> DynObj.withOptionalPropertyBy "zmin" ZMin StyleParam.ColorComponentBound.convert + |> DynObj.withOptionalPropertyBy "zsmooth" ZSmooth StyleParam.SmoothAlg.convert + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Create a function that applies the styles of a contour plot to a Trace object @@ -2252,71 +2220,68 @@ type Trace2DStyle() = [] ?YCalendar: StyleParam.Calendar, [] ?UIRevision: string ) = - (fun (contour: ('T :> Trace)) -> - - Name |> DynObj.setOptionalProperty contour "name" - Visible |> DynObj.setOptionalPropertyBy contour "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty contour "showlegend" - Legend |> DynObj.setOptionalPropertyBy contour "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty contour "legendrank" - LegendGroup |> DynObj.setOptionalProperty contour "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty contour "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty contour "opacity" - Ids |> DynObj.setOptionalProperty contour "ids" - (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty contour "x" - X0 |> DynObj.setOptionalProperty contour "x0" - DX |> DynObj.setOptionalProperty contour "dx" - XType |> DynObj.setOptionalPropertyBy contour "xtype" StyleParam.CoordinateType.convert - (Y, MultiY) |> DynObj.setOptionalSingleOrMultiProperty contour "y" - Y0 |> DynObj.setOptionalProperty contour "y0" - DY |> DynObj.setOptionalProperty contour "dy" - YType |> DynObj.setOptionalPropertyBy contour "ytype" StyleParam.CoordinateType.convert - Z |> DynObj.setOptionalProperty contour "z" - TextTemplate |> DynObj.setOptionalProperty contour "texttemplate" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty contour "text" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty contour "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy contour "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty contour "hovertemplate" - XHoverFormat |> DynObj.setOptionalProperty contour "xhoverformat" - YHoverFormat |> DynObj.setOptionalProperty contour "yhoverformat" - Meta |> DynObj.setOptionalProperty contour "meta" - CustomData |> DynObj.setOptionalProperty contour "customdata" - XAxis |> DynObj.setOptionalPropertyBy contour "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setOptionalPropertyBy contour "yaxis" StyleParam.LinearAxisId.convert - ColorAxis |> DynObj.setOptionalPropertyBy contour "coloraxis" StyleParam.SubPlotId.convert - XPeriod |> DynObj.setOptionalProperty contour "xperiod" - XPeriodAlignment |> DynObj.setOptionalPropertyBy contour "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setOptionalProperty contour "xperiod0" - YPeriod |> DynObj.setOptionalProperty contour "yperiod" - YPeriodAlignment |> DynObj.setOptionalPropertyBy contour "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setOptionalProperty contour "yperiod0" - Line |> DynObj.setOptionalProperty contour "line" - TextFont |> DynObj.setOptionalProperty contour "textfont" - ColorBar |> DynObj.setOptionalProperty contour "colorbar" - AutoColorScale |> DynObj.setOptionalProperty contour "autocolorscale" - ColorScale |> DynObj.setOptionalPropertyBy contour "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setOptionalProperty contour "showscale" - ReverseScale |> DynObj.setOptionalProperty contour "reversescale" - ZAuto |> DynObj.setOptionalProperty contour "zauto" - ZHoverFormat |> DynObj.setOptionalProperty contour "zhoverformat" - ZMax |> DynObj.setOptionalProperty contour "zmax" - ZMid |> DynObj.setOptionalProperty contour "zmid" - ZMin |> DynObj.setOptionalProperty contour "zmin" - AutoContour |> DynObj.setOptionalProperty contour "autocontour" - ConnectGaps |> DynObj.setOptionalProperty contour "connectgaps" - Contours |> DynObj.setOptionalProperty contour "contours" - FillColor |> DynObj.setOptionalProperty contour "fillcolor" - HoverLabel |> DynObj.setOptionalProperty contour "hoverlabel" - HoverOnGaps |> DynObj.setOptionalProperty contour "hoverongaps" - NContours |> DynObj.setOptionalProperty contour "ncontours" - Transpose |> DynObj.setOptionalProperty contour "transpose" - XCalendar |> DynObj.setOptionalPropertyBy contour "xcalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setOptionalProperty contour "uirevision" - - - // out -> - contour) - + fun (contour: ('T :> Trace)) -> + + contour + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalProperty "x0" X0 + |> DynObj.withOptionalProperty "dx" DX + |> DynObj.withOptionalPropertyBy "xtype" XType StyleParam.CoordinateType.convert + |> DynObj.withOptionalSingleOrMultiProperty "y" (Y, MultiY) + |> DynObj.withOptionalProperty "y0" Y0 + |> DynObj.withOptionalProperty "dy" DY + |> DynObj.withOptionalPropertyBy "ytype" YType StyleParam.CoordinateType.convert + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "texttemplate" TextTemplate + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "xperiod" XPeriod + |> DynObj.withOptionalPropertyBy "xperiodalignment" XPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "xperiod0" XPeriod0 + |> DynObj.withOptionalProperty "yperiod" YPeriod + |> DynObj.withOptionalPropertyBy "yperiodalignment" YPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "yperiod0" YPeriod0 + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "zauto" ZAuto + |> DynObj.withOptionalProperty "zhoverformat" ZHoverFormat + |> DynObj.withOptionalProperty "zmax" ZMax + |> DynObj.withOptionalProperty "zmid" ZMid + |> DynObj.withOptionalProperty "zmin" ZMin + |> DynObj.withOptionalProperty "autocontour" AutoContour + |> DynObj.withOptionalProperty "connectgaps" ConnectGaps + |> DynObj.withOptionalProperty "contours" Contours + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "hoverongaps" HoverOnGaps + |> DynObj.withOptionalProperty "ncontours" NContours + |> DynObj.withOptionalProperty "transpose" Transpose + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "ycalendar" YCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Create a function that applies the styles of a OHLC plot to a Trace object @@ -2404,47 +2369,46 @@ type Trace2DStyle() = [] ?XCalendar: StyleParam.Calendar, [] ?UIRevision: string ) = - (fun (ohlc: ('T :> Trace)) -> - - Name |> DynObj.setOptionalProperty ohlc "name" - Visible |> DynObj.setOptionalPropertyBy ohlc "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty ohlc "showlegend" - Legend |> DynObj.setOptionalPropertyBy ohlc "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty ohlc "legendrank" - LegendGroup |> DynObj.setOptionalProperty ohlc "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty ohlc "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty ohlc "opacity" - Ids |> DynObj.setOptionalProperty ohlc "ids" - (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty ohlc "x" - Close |> DynObj.setOptionalProperty ohlc "close" - Open |> DynObj.setOptionalProperty ohlc "open" - High |> DynObj.setOptionalProperty ohlc "high" - Low |> DynObj.setOptionalProperty ohlc "low" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty ohlc "text" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty ohlc "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy ohlc "hoverinfo" StyleParam.HoverInfo.convert - XHoverFormat |> DynObj.setOptionalProperty ohlc "xhoverformat" - YHoverFormat |> DynObj.setOptionalProperty ohlc "yhoverformat" - Meta |> DynObj.setOptionalProperty ohlc "meta" - CustomData |> DynObj.setOptionalProperty ohlc "customdata" - XAxis |> DynObj.setOptionalPropertyBy ohlc "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setOptionalPropertyBy ohlc "yaxis" StyleParam.LinearAxisId.convert - XPeriod |> DynObj.setOptionalProperty ohlc "xperiod" - XPeriodAlignment |> DynObj.setOptionalPropertyBy ohlc "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setOptionalProperty ohlc "xperiod0" - YPeriod |> DynObj.setOptionalProperty ohlc "yperiod" - YPeriodAlignment |> DynObj.setOptionalPropertyBy ohlc "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setOptionalProperty ohlc "yperiod0" - Line |> DynObj.setOptionalProperty ohlc "line" - Increasing |> DynObj.setOptionalProperty ohlc "increasing" - Decreasing |> DynObj.setOptionalProperty ohlc "decreasing" - HoverLabel |> DynObj.setOptionalProperty ohlc "hoverlabel" - TickWidth |> DynObj.setOptionalProperty ohlc "tickwidth" - XCalendar |> DynObj.setOptionalPropertyBy ohlc "xcalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setOptionalProperty ohlc "uirevision" - - ohlc) - + fun (ohlc: ('T :> Trace)) -> + + ohlc + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalProperty "close" Close + |> DynObj.withOptionalProperty "open" Open + |> DynObj.withOptionalProperty "high" High + |> DynObj.withOptionalProperty "low" Low + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalProperty "xperiod" XPeriod + |> DynObj.withOptionalPropertyBy "xperiodalignment" XPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "xperiod0" XPeriod0 + |> DynObj.withOptionalProperty "yperiod" YPeriod + |> DynObj.withOptionalPropertyBy "yperiodalignment" YPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "yperiod0" YPeriod0 + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "increasing" Increasing + |> DynObj.withOptionalProperty "decreasing" Decreasing + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "tickwidth" TickWidth + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Create a function that applies the styles of a candlestick plot to a Trace object @@ -2532,46 +2496,46 @@ type Trace2DStyle() = [] ?XCalendar: StyleParam.Calendar, [] ?UIRevision: string ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setOptionalProperty trace "name" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty trace "showlegend" - Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty trace "opacity" - Ids |> DynObj.setOptionalProperty trace "ids" - (X, MultiX) |> DynObj.setOptionalSingleOrMultiProperty trace "x" - Close |> DynObj.setOptionalProperty trace "close" - Open |> DynObj.setOptionalProperty trace "open" - High |> DynObj.setOptionalProperty trace "high" - Low |> DynObj.setOptionalProperty trace "low" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert - XHoverFormat |> DynObj.setOptionalProperty trace "xhoverformat" - YHoverFormat |> DynObj.setOptionalProperty trace "yhoverformat" - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - XAxis |> DynObj.setOptionalPropertyBy trace "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setOptionalPropertyBy trace "yaxis" StyleParam.LinearAxisId.convert - XPeriod |> DynObj.setOptionalProperty trace "xperiod" - XPeriodAlignment |> DynObj.setOptionalPropertyBy trace "xperiodalignment" StyleParam.PeriodAlignment.convert - XPeriod0 |> DynObj.setOptionalProperty trace "xperiod0" - YPeriod |> DynObj.setOptionalProperty trace "yperiod" - YPeriodAlignment |> DynObj.setOptionalPropertyBy trace "yperiodalignment" StyleParam.PeriodAlignment.convert - YPeriod0 |> DynObj.setOptionalProperty trace "yperiod0" - Line |> DynObj.setOptionalProperty trace "line" - WhiskerWidth |> DynObj.setOptionalProperty trace "whiskerwidth" - Increasing |> DynObj.setOptionalProperty trace "increasing" - Decreasing |> DynObj.setOptionalProperty trace "decreasing" - HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" - XCalendar |> DynObj.setOptionalPropertyBy trace "xcalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setOptionalProperty trace "uirevision" - - trace) + fun (trace: ('T :> Trace)) -> + + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "x" (X, MultiX) + |> DynObj.withOptionalProperty "close" Close + |> DynObj.withOptionalProperty "open" Open + |> DynObj.withOptionalProperty "high" High + |> DynObj.withOptionalProperty "low" Low + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalProperty "xperiod" XPeriod + |> DynObj.withOptionalPropertyBy "xperiodalignment" XPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "xperiod0" XPeriod0 + |> DynObj.withOptionalProperty "yperiod" YPeriod + |> DynObj.withOptionalPropertyBy "yperiodalignment" YPeriodAlignment StyleParam.PeriodAlignment.convert + |> DynObj.withOptionalProperty "yperiod0" YPeriod0 + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "whiskerwidth" WhiskerWidth + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "increasing" Increasing + |> DynObj.withOptionalProperty "decreasing" Decreasing + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Create a function that applies the styles of a scatter plot matrix (SPLOM) to a Trace object @@ -2643,36 +2607,35 @@ type Trace2DStyle() = [] ?HoverLabel: Hoverlabel, [] ?UIRevision: string ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setOptionalProperty trace "name" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty trace "showlegend" - Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty trace "opacity" - Ids |> DynObj.setOptionalProperty trace "ids" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" - Dimensions |> DynObj.setOptionalProperty trace "dimensions" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" - XHoverFormat |> DynObj.setOptionalProperty trace "xhoverformat" - YHoverFormat |> DynObj.setOptionalProperty trace "yhoverformat" - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - Marker |> DynObj.setOptionalProperty trace "marker" - Diagonal |> DynObj.setOptionalProperty trace "diagonal" - XAxes |> DynObj.setOptionalPropertyBy trace "xaxis" (Seq.map StyleParam.LinearAxisId.convert) - YAxes |> DynObj.setOptionalPropertyBy trace "yaxis" (Seq.map StyleParam.LinearAxisId.convert) - ShowLowerHalf |> DynObj.setOptionalProperty trace "showlowerhalf" - ShowUpperHalf |> DynObj.setOptionalProperty trace "showupperhalf" - SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" - Selected |> DynObj.setOptionalProperty trace "selected" - Unselected |> DynObj.setOptionalProperty trace "unselected" - HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" - UIRevision |> DynObj.setOptionalProperty trace "uirevision" - - trace) + fun (trace: ('T :> Trace)) -> + + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalProperty "dimensions" Dimensions + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "diagonal" Diagonal + |> DynObj.withOptionalPropertyBy "xaxis" XAxes (Seq.map StyleParam.LinearAxisId.convert) + |> DynObj.withOptionalPropertyBy "yaxis" YAxes (Seq.map StyleParam.LinearAxisId.convert) + |> DynObj.withOptionalProperty "showlowerhalf" ShowLowerHalf + |> DynObj.withOptionalProperty "showupperhalf" ShowUpperHalf + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "uirevision" UIRevision diff --git a/src/Plotly.NET/Traces/Trace3D.fs b/src/Plotly.NET/Traces/Trace3D.fs index dd618fae5..1ac4ac5f6 100644 --- a/src/Plotly.NET/Traces/Trace3D.fs +++ b/src/Plotly.NET/Traces/Trace3D.fs @@ -171,7 +171,7 @@ type Trace3DStyle() = (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty scatter "text" (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy scatter "textposition" StyleParam.TextPosition.convert + |> DynObj.setOptionalSingleOrMultiPropertyBy scatter "textposition" StyleParam.TextPosition.convert (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty scatter "texttemplate" (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty scatter "hovertext" diff --git a/src/Plotly.NET/Traces/TraceCarpet.fs b/src/Plotly.NET/Traces/TraceCarpet.fs index 495fec105..28dd976ea 100644 --- a/src/Plotly.NET/Traces/TraceCarpet.fs +++ b/src/Plotly.NET/Traces/TraceCarpet.fs @@ -246,7 +246,7 @@ type TraceCarpetStyle() = (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert + |> DynObj.setOptionalSingleOrMultiPropertyBy trace "textposition" StyleParam.TextPosition.convert (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" diff --git a/src/Plotly.NET/Traces/TraceDomain.fs b/src/Plotly.NET/Traces/TraceDomain.fs index b8516342c..0eeee1ae9 100644 --- a/src/Plotly.NET/Traces/TraceDomain.fs +++ b/src/Plotly.NET/Traces/TraceDomain.fs @@ -163,7 +163,7 @@ type TraceDomainStyle() = (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert + |> DynObj.setOptionalSingleOrMultiPropertyBy trace "textposition" StyleParam.TextPosition.convert (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" @@ -291,7 +291,7 @@ type TraceDomainStyle() = (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert + |> DynObj.setOptionalSingleOrMultiPropertyBy trace "textposition" StyleParam.TextPosition.convert (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" @@ -551,7 +551,7 @@ type TraceDomainStyle() = (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert + |> DynObj.setOptionalSingleOrMultiPropertyBy trace "textposition" StyleParam.TextPosition.convert (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" @@ -1013,7 +1013,7 @@ type TraceDomainStyle() = (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert + |> DynObj.setOptionalSingleOrMultiPropertyBy trace "textposition" StyleParam.TextPosition.convert (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" diff --git a/src/Plotly.NET/Traces/TraceGeo.fs b/src/Plotly.NET/Traces/TraceGeo.fs index 3eee83f33..0bea27283 100644 --- a/src/Plotly.NET/Traces/TraceGeo.fs +++ b/src/Plotly.NET/Traces/TraceGeo.fs @@ -278,7 +278,7 @@ type TraceGeoStyle() = (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert + |> DynObj.setOptionalSingleOrMultiPropertyBy trace "textposition" StyleParam.TextPosition.convert (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" diff --git a/src/Plotly.NET/Traces/TraceMapbox.fs b/src/Plotly.NET/Traces/TraceMapbox.fs index 5ace95140..accf11b59 100644 --- a/src/Plotly.NET/Traces/TraceMapbox.fs +++ b/src/Plotly.NET/Traces/TraceMapbox.fs @@ -152,7 +152,7 @@ type TraceMapboxStyle() = (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert + |> DynObj.setOptionalSingleOrMultiPropertyBy trace "textposition" StyleParam.TextPosition.convert (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" diff --git a/src/Plotly.NET/Traces/TracePolar.fs b/src/Plotly.NET/Traces/TracePolar.fs index 4d27bcae9..cec5d5179 100644 --- a/src/Plotly.NET/Traces/TracePolar.fs +++ b/src/Plotly.NET/Traces/TracePolar.fs @@ -156,7 +156,7 @@ type TracePolarStyle() = (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert + |> DynObj.setOptionalSingleOrMultiPropertyBy trace "textposition" StyleParam.TextPosition.convert (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" diff --git a/src/Plotly.NET/Traces/TraceSmith.fs b/src/Plotly.NET/Traces/TraceSmith.fs index 916b0d577..38e0d041b 100644 --- a/src/Plotly.NET/Traces/TraceSmith.fs +++ b/src/Plotly.NET/Traces/TraceSmith.fs @@ -124,7 +124,7 @@ type TraceSmithStyle() = (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert + |> DynObj.setOptionalSingleOrMultiPropertyBy trace "textposition" StyleParam.TextPosition.convert (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" diff --git a/src/Plotly.NET/Traces/TraceTernary.fs b/src/Plotly.NET/Traces/TraceTernary.fs index e78fa13d4..3b799b758 100644 --- a/src/Plotly.NET/Traces/TraceTernary.fs +++ b/src/Plotly.NET/Traces/TraceTernary.fs @@ -129,7 +129,7 @@ type TraceTernaryStyle() = (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" (TextPosition, MultiTextPosition) - |> DynObj.setSingleOrMultiOptBy trace "textposition" StyleParam.TextPosition.convert + |> DynObj.setOptionalSingleOrMultiPropertyBy trace "textposition" StyleParam.TextPosition.convert (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" diff --git a/tests/CoreTests/CSharpInteroperabilityTests/LayoutObjectTests.cs b/tests/CoreTests/CSharpInteroperabilityTests/LayoutObjectTests.cs index b2081b67b..650963b9d 100644 --- a/tests/CoreTests/CSharpInteroperabilityTests/LayoutObjectTests.cs +++ b/tests/CoreTests/CSharpInteroperabilityTests/LayoutObjectTests.cs @@ -14,8 +14,8 @@ public void OptionalArgumentsAndDynamicSettingAreEqual() var actual = LinearAxis.init(Color: Color.fromString("red"), AxisType: StyleParam.AxisType.Linear); var expected = new LinearAxis(); - expected.SetValue("color", Color.fromString("red")); - expected.SetValue("type", StyleParam.AxisType.Linear.Convert()); + expected.SetProperty("color", Color.fromString("red")); + expected.SetProperty("type", StyleParam.AxisType.Linear.Convert()); Assert.Equal(expected.GetProperties(true), actual.GetProperties(true)); } From bd0a8a35cc88413d79be7b15d2a3c7f42a17b84f Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Tue, 15 Oct 2024 12:48:36 +0200 Subject: [PATCH 08/36] port trace3d to dynobj v4 --- src/Plotly.NET/Traces/Trace3D.fs | 675 +++++++++++++++---------------- 1 file changed, 330 insertions(+), 345 deletions(-) diff --git a/src/Plotly.NET/Traces/Trace3D.fs b/src/Plotly.NET/Traces/Trace3D.fs index 1ac4ac5f6..e87b07811 100644 --- a/src/Plotly.NET/Traces/Trace3D.fs +++ b/src/Plotly.NET/Traces/Trace3D.fs @@ -49,11 +49,9 @@ type Trace3DStyle() = // ######################## 3d-Charts static member SetScene([] ?SceneId: StyleParam.SubPlotId) = - (fun (trace: Trace3D) -> - - SceneId |> DynObj.setOptionalPropertyBy trace "scene" StyleParam.SubPlotId.toString - - trace) + fun (trace: Trace3D) -> + trace + |> DynObj.withOptionalPropertyBy "scene" SceneId StyleParam.SubPlotId.toString /// /// Create a function that applies the styles of a 3D scatter plot to a Trace object @@ -152,55 +150,49 @@ type Trace3DStyle() = [] ?UIRevision: string ) = - (fun (scatter: #Trace) -> - - Name |> DynObj.setOptionalProperty scatter "name" - Visible |> DynObj.setOptionalPropertyBy scatter "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty scatter "showlegend" - Legend |> DynObj.setOptionalPropertyBy scatter "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty scatter "legendrank" - LegendGroup |> DynObj.setOptionalProperty scatter "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty scatter "legendgrouptitle" - Mode |> DynObj.setOptionalPropertyBy scatter "mode" StyleParam.Mode.convert - Opacity |> DynObj.setOptionalProperty scatter "opacity" - Ids |> DynObj.setOptionalProperty scatter "ids" - X |> DynObj.setOptionalProperty scatter "x" - Y |> DynObj.setOptionalProperty scatter "y" - Z |> DynObj.setOptionalProperty scatter "z" - SurfaceColor |> DynObj.setOptionalProperty scatter "surfacecolor" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty scatter "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setOptionalSingleOrMultiPropertyBy scatter "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty scatter "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty scatter "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy scatter "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty scatter "hovertemplate" - XHoverFormat |> DynObj.setOptionalProperty scatter "xhoverformat" - YHoverFormat |> DynObj.setOptionalProperty scatter "yhoverformat" - ZHoverFormat |> DynObj.setOptionalProperty scatter "zhoverformat" - Meta |> DynObj.setOptionalProperty scatter "meta" - CustomData |> DynObj.setOptionalProperty scatter "customdata" - Scene |> DynObj.setOptionalPropertyBy scatter "scene" StyleParam.SubPlotId.convert - Marker |> DynObj.setOptionalProperty scatter "marker" - Line |> DynObj.setOptionalProperty scatter "line" - TextFont |> DynObj.setOptionalProperty scatter "textfont" - XError |> DynObj.setOptionalProperty scatter "error_x" - YError |> DynObj.setOptionalProperty scatter "error_y" - ZError |> DynObj.setOptionalProperty scatter "error_z" - ConnectGaps |> DynObj.setOptionalProperty scatter "connectgaps" - Hoverlabel |> DynObj.setOptionalProperty scatter "hoverlabel" - Projection |> DynObj.setOptionalProperty scatter "projection" - Surfaceaxis |> DynObj.setOptionalPropertyBy scatter "surfaceaxis" StyleParam.SurfaceAxis.convert - XCalendar |> DynObj.setOptionalPropertyBy scatter "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setOptionalPropertyBy scatter "ycalendar" StyleParam.Calendar.convert - ZCalendar |> DynObj.setOptionalPropertyBy scatter "zcalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setOptionalProperty scatter "uirevision" - - scatter) - + fun (scatter: #Trace) -> + scatter + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalPropertyBy "mode" Mode StyleParam.Mode.convert + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "surfacecolor" SurfaceColor + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "zhoverformat" ZHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "scene" Scene StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "error_x" XError + |> DynObj.withOptionalProperty "error_y" YError + |> DynObj.withOptionalProperty "error_z" ZError + |> DynObj.withOptionalProperty "connectgaps" ConnectGaps + |> DynObj.withOptionalProperty "hoverlabel" Hoverlabel + |> DynObj.withOptionalProperty "projection" Projection + |> DynObj.withOptionalPropertyBy "surfaceaxis" Surfaceaxis StyleParam.SurfaceAxis.convert + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "ycalendar" YCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "zcalendar" ZCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Create a function that applies the styles of a surface chart to the given trace @@ -302,55 +294,53 @@ type Trace3DStyle() = [] ?ZCalendar: StyleParam.Calendar, [] ?UIRevision: string ) = - (fun (surface: #Trace) -> - - Name |> DynObj.setOptionalProperty surface "name" - Visible |> DynObj.setOptionalPropertyBy surface "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty surface "showlegend" - Legend |> DynObj.setOptionalPropertyBy surface "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty surface "legendrank" - LegendGroup |> DynObj.setOptionalProperty surface "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty surface "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty surface "opacity" - Ids |> DynObj.setOptionalProperty surface "ids" - X |> DynObj.setOptionalProperty surface "x" - Y |> DynObj.setOptionalProperty surface "y" - Z |> DynObj.setOptionalProperty surface "z" - SurfaceColor |> DynObj.setOptionalProperty surface "surfacecolor" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty surface "text" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty surface "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy surface "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty surface "hovertemplate" - XHoverFormat |> DynObj.setOptionalProperty surface "xhoverformat" - YHoverFormat |> DynObj.setOptionalProperty surface "yhoverformat" - ZHoverFormat |> DynObj.setOptionalProperty surface "zhoverformat" - Meta |> DynObj.setOptionalProperty surface "meta" - CustomData |> DynObj.setOptionalProperty surface "customdata" - Scene |> DynObj.setOptionalPropertyBy surface "scene" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setOptionalPropertyBy surface "coloraxis" StyleParam.SubPlotId.convert - ColorBar |> DynObj.setOptionalProperty surface "colorbar" - AutoColorScale |> DynObj.setOptionalProperty surface "autocolorscale" - ColorScale |> DynObj.setOptionalPropertyBy surface "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setOptionalProperty surface "showscale" - ReverseScale |> DynObj.setOptionalProperty surface "reversescale" - CAuto |> DynObj.setOptionalProperty surface "cauto" - CMin |> DynObj.setOptionalProperty surface "cmin" - CMid |> DynObj.setOptionalProperty surface "cmid" - CMax |> DynObj.setOptionalProperty surface "cmax" - ConnectGaps |> DynObj.setOptionalProperty surface "connectgaps" - Contours |> DynObj.setOptionalProperty surface "contours" - HideSurface |> DynObj.setOptionalProperty surface "hidesurface" - Hoverlabel |> DynObj.setOptionalProperty surface "hoverlabel" - Lighting |> DynObj.setOptionalProperty surface "lighting" - LightPosition |> DynObj.setOptionalProperty surface "lightposition" - OpacityScale |> DynObj.setOptionalProperty surface "opacityscale" - XCalendar |> DynObj.setOptionalPropertyBy surface "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setOptionalPropertyBy surface "ycalendar" StyleParam.Calendar.convert - ZCalendar |> DynObj.setOptionalPropertyBy surface "zcalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setOptionalProperty surface "uirevision" - - surface) + fun (surface: #Trace) -> + surface + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "surfacecolor" SurfaceColor + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "zhoverformat" ZHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "scene" Scene StyleParam.SubPlotId.convert + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "cauto" CAuto + |> DynObj.withOptionalProperty "cmin" CMin + |> DynObj.withOptionalProperty "cmid" CMid + |> DynObj.withOptionalProperty "cmax" CMax + |> DynObj.withOptionalProperty "connectgaps" ConnectGaps + |> DynObj.withOptionalProperty "contours" Contours + |> DynObj.withOptionalProperty "hidesurface" HideSurface + |> DynObj.withOptionalProperty "hoverlabel" Hoverlabel + |> DynObj.withOptionalProperty "lighting" Lighting + |> DynObj.withOptionalProperty "lightposition" LightPosition + |> DynObj.withOptionalProperty "opacityscale" OpacityScale + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "ycalendar" YCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "zcalendar" ZCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Create a function that applies the styles of a mesh3d chart to the given trace @@ -469,59 +459,58 @@ type Trace3DStyle() = fun (mesh3d: #Trace) -> - Name |> DynObj.setOptionalProperty mesh3d "name" - Visible |> DynObj.setOptionalPropertyBy mesh3d "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty mesh3d "showlegend" - Legend |> DynObj.setOptionalPropertyBy mesh3d "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty mesh3d "legendrank" - LegendGroup |> DynObj.setOptionalProperty mesh3d "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty mesh3d "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty mesh3d "opacity" - Ids |> DynObj.setOptionalProperty mesh3d "ids" - X |> DynObj.setOptionalProperty mesh3d "x" - Y |> DynObj.setOptionalProperty mesh3d "y" - Z |> DynObj.setOptionalProperty mesh3d "z" - I |> DynObj.setOptionalProperty mesh3d "i" - J |> DynObj.setOptionalProperty mesh3d "j" - K |> DynObj.setOptionalProperty mesh3d "k" - FaceColor |> DynObj.setOptionalProperty mesh3d "facecolor" - Intensity |> DynObj.setOptionalProperty mesh3d "intensity" - IntensityMode |> DynObj.setOptionalPropertyBy mesh3d "intensitymode" StyleParam.IntensityMode.convert - VertexColor |> DynObj.setOptionalProperty mesh3d "vertexcolor" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty mesh3d "text" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty mesh3d "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy mesh3d "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty mesh3d "hovertemplate" - XHoverFormat |> DynObj.setOptionalProperty mesh3d "xhoverformat" - YHoverFormat |> DynObj.setOptionalProperty mesh3d "yhoverformat" - ZHoverFormat |> DynObj.setOptionalProperty mesh3d "zhoverformat" - Meta |> DynObj.setOptionalProperty mesh3d "meta" - CustomData |> DynObj.setOptionalProperty mesh3d "customdata" - Scene |> DynObj.setOptionalPropertyBy mesh3d "scene" StyleParam.SubPlotId.convert - Color |> DynObj.setOptionalProperty mesh3d "color" - ColorAxis |> DynObj.setOptionalPropertyBy mesh3d "coloraxis" StyleParam.SubPlotId.convert - ColorBar |> DynObj.setOptionalProperty mesh3d "colorbar" - AutoColorScale |> DynObj.setOptionalProperty mesh3d "autocolorscale" - ColorScale |> DynObj.setOptionalPropertyBy mesh3d "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setOptionalProperty mesh3d "showscale" - ReverseScale |> DynObj.setOptionalProperty mesh3d "reversescale" - CAuto |> DynObj.setOptionalProperty mesh3d "cauto" - CMin |> DynObj.setOptionalProperty mesh3d "cmin" - CMid |> DynObj.setOptionalProperty mesh3d "cmid" - CMax |> DynObj.setOptionalProperty mesh3d "cmax" - AlphaHull |> DynObj.setOptionalPropertyBy mesh3d "alphahull" StyleParam.TriangulationAlgorithm.convert - Delaunayaxis |> DynObj.setOptionalPropertyBy mesh3d "delaunayaxis" StyleParam.Delaunayaxis.convert - Contour |> DynObj.setOptionalProperty mesh3d "contour" - FlatShading |> DynObj.setOptionalProperty mesh3d "flatshading" - Hoverlabel |> DynObj.setOptionalProperty mesh3d "hoverlabel" - Lighting |> DynObj.setOptionalProperty mesh3d "lighting" - LightPosition |> DynObj.setOptionalProperty mesh3d "lightposition" - XCalendar |> DynObj.setOptionalPropertyBy mesh3d "xcalendar" StyleParam.Calendar.convert - YCalendar |> DynObj.setOptionalPropertyBy mesh3d "ycalendar" StyleParam.Calendar.convert - ZCalendar |> DynObj.setOptionalPropertyBy mesh3d "zcalendar" StyleParam.Calendar.convert - UIRevision |> DynObj.setOptionalProperty mesh3d "uirevision" - mesh3d + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "i" I + |> DynObj.withOptionalProperty "j" J + |> DynObj.withOptionalProperty "k" K + |> DynObj.withOptionalProperty "facecolor" FaceColor + |> DynObj.withOptionalProperty "intensity" Intensity + |> DynObj.withOptionalPropertyBy "intensitymode" IntensityMode StyleParam.IntensityMode.convert + |> DynObj.withOptionalProperty "vertexcolor" VertexColor + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "zhoverformat" ZHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "scene" Scene StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "cauto" CAuto + |> DynObj.withOptionalProperty "cmin" CMin + |> DynObj.withOptionalProperty "cmid" CMid + |> DynObj.withOptionalProperty "cmax" CMax + |> DynObj.withOptionalPropertyBy "alphahull" AlphaHull StyleParam.TriangulationAlgorithm.convert + |> DynObj.withOptionalPropertyBy "delaunayaxis" Delaunayaxis StyleParam.Delaunayaxis.convert + |> DynObj.withOptionalProperty "contour" Contour + |> DynObj.withOptionalProperty "flatshading" FlatShading + |> DynObj.withOptionalProperty "hoverlabel" Hoverlabel + |> DynObj.withOptionalProperty "lighting" Lighting + |> DynObj.withOptionalProperty "lightposition" LightPosition + |> DynObj.withOptionalPropertyBy "xcalendar" XCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "ycalendar" YCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalPropertyBy "zcalendar" ZCalendar StyleParam.Calendar.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// @@ -626,54 +615,53 @@ type Trace3DStyle() = [] ?SizeRef: float, [] ?UIRevision: seq<#IConvertible> ) = - (fun (cone: #Trace) -> - Name |> DynObj.setOptionalProperty cone "name" - Visible |> DynObj.setOptionalPropertyBy cone "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty cone "showlegend" - Legend |> DynObj.setOptionalPropertyBy cone "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty cone "legendrank" - LegendGroup |> DynObj.setOptionalProperty cone "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty cone "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty cone "opacity" - Ids |> DynObj.setOptionalProperty cone "ids" - X |> DynObj.setOptionalProperty cone "x" - Y |> DynObj.setOptionalProperty cone "y" - Z |> DynObj.setOptionalProperty cone "z" - U |> DynObj.setOptionalProperty cone "u" - V |> DynObj.setOptionalProperty cone "v" - W |> DynObj.setOptionalProperty cone "w" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty cone "text" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty cone "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy cone "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty cone "hovertemplate" - XHoverFormat |> DynObj.setOptionalProperty cone "xhoverformat" - YHoverFormat |> DynObj.setOptionalProperty cone "yhoverformat" - ZHoverFormat |> DynObj.setOptionalProperty cone "zhoverformat" - UHoverFormat |> DynObj.setOptionalProperty cone "uhoverformat" - VHoverFormat |> DynObj.setOptionalProperty cone "vhoverformat" - WHoverFormat |> DynObj.setOptionalProperty cone "whoverformat" - Meta |> DynObj.setOptionalProperty cone "meta" - CustomData |> DynObj.setOptionalProperty cone "customdata" - Scene |> DynObj.setOptionalPropertyBy cone "scene" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setOptionalPropertyBy cone "coloraxis" StyleParam.SubPlotId.convert - ColorBar |> DynObj.setOptionalProperty cone "colorbar" - AutoColorScale |> DynObj.setOptionalProperty cone "autocolorscale" - ColorScale |> DynObj.setOptionalPropertyBy cone "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setOptionalProperty cone "showscale" - ReverseScale |> DynObj.setOptionalProperty cone "reversescale" - CAuto |> DynObj.setOptionalProperty cone "cauto" - CMin |> DynObj.setOptionalProperty cone "cmin" - CMid |> DynObj.setOptionalProperty cone "cmid" - CMax |> DynObj.setOptionalProperty cone "cmax" - Anchor |> DynObj.setOptionalPropertyBy cone "anchor" StyleParam.ConeAnchor.convert - HoverLabel |> DynObj.setOptionalProperty cone "hoverlabel" - Lighting |> DynObj.setOptionalProperty cone "lighting" - LightPosition |> DynObj.setOptionalProperty cone "lightposition" - SizeMode |> DynObj.setOptionalPropertyBy cone "sizemode" StyleParam.ConeSizeMode.convert - SizeRef |> DynObj.setOptionalProperty cone "sizeref" - UIRevision |> DynObj.setOptionalProperty cone "uirevision" - - cone) + fun (cone: #Trace) -> + cone + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "u" U + |> DynObj.withOptionalProperty "v" V + |> DynObj.withOptionalProperty "w" W + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "zhoverformat" ZHoverFormat + |> DynObj.withOptionalProperty "uhoverformat" UHoverFormat + |> DynObj.withOptionalProperty "vhoverformat" VHoverFormat + |> DynObj.withOptionalProperty "whoverformat" WHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "scene" Scene StyleParam.SubPlotId.convert + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "cauto" CAuto + |> DynObj.withOptionalProperty "cmin" CMin + |> DynObj.withOptionalProperty "cmid" CMid + |> DynObj.withOptionalProperty "cmax" CMax + |> DynObj.withOptionalPropertyBy "anchor" Anchor StyleParam.ConeAnchor.convert + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "lighting" Lighting + |> DynObj.withOptionalProperty "lightposition" LightPosition + |> DynObj.withOptionalPropertyBy "sizemode" SizeMode StyleParam.ConeSizeMode.convert + |> DynObj.withOptionalProperty "sizeref" SizeRef + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Create a function that applies the styles of a streamtube chart to the given trace @@ -777,54 +765,53 @@ type Trace3DStyle() = [] ?Starts: StreamTubeStarts, [] ?UIRevision: seq<#IConvertible> ) = - (fun (streamTube: #Trace) -> - Name |> DynObj.setOptionalProperty streamTube "name" - Visible |> DynObj.setOptionalPropertyBy streamTube "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty streamTube "showlegend" - Legend |> DynObj.setOptionalPropertyBy streamTube "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty streamTube "legendrank" - LegendGroup |> DynObj.setOptionalProperty streamTube "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty streamTube "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty streamTube "opacity" - Ids |> DynObj.setOptionalProperty streamTube "ids" - X |> DynObj.setOptionalProperty streamTube "x" - Y |> DynObj.setOptionalProperty streamTube "y" - Z |> DynObj.setOptionalProperty streamTube "z" - U |> DynObj.setOptionalProperty streamTube "u" - V |> DynObj.setOptionalProperty streamTube "v" - W |> DynObj.setOptionalProperty streamTube "w" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty streamTube "text" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty streamTube "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy streamTube "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty streamTube "hovertemplate" - XHoverFormat |> DynObj.setOptionalProperty streamTube "xhoverformat" - YHoverFormat |> DynObj.setOptionalProperty streamTube "yhoverformat" - ZHoverFormat |> DynObj.setOptionalProperty streamTube "zhoverformat" - UHoverFormat |> DynObj.setOptionalProperty streamTube "uhoverformat" - VHoverFormat |> DynObj.setOptionalProperty streamTube "vhoverformat" - WHoverFormat |> DynObj.setOptionalProperty streamTube "whoverformat" - Meta |> DynObj.setOptionalProperty streamTube "meta" - CustomData |> DynObj.setOptionalProperty streamTube "customdata" - Scene |> DynObj.setOptionalPropertyBy streamTube "scene" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setOptionalPropertyBy streamTube "coloraxis" StyleParam.SubPlotId.convert - ColorBar |> DynObj.setOptionalProperty streamTube "colorbar" - AutoColorScale |> DynObj.setOptionalProperty streamTube "autocolorscale" - ColorScale |> DynObj.setOptionalPropertyBy streamTube "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setOptionalProperty streamTube "showscale" - ReverseScale |> DynObj.setOptionalProperty streamTube "reversescale" - CAuto |> DynObj.setOptionalProperty streamTube "cauto" - CMin |> DynObj.setOptionalProperty streamTube "cmin" - CMid |> DynObj.setOptionalProperty streamTube "cmid" - CMax |> DynObj.setOptionalProperty streamTube "cmax" - HoverLabel |> DynObj.setOptionalProperty streamTube "hoverlabel" - Lighting |> DynObj.setOptionalProperty streamTube "lighting" - LightPosition |> DynObj.setOptionalProperty streamTube "lightposition" - MaxDisplayed |> DynObj.setOptionalProperty streamTube "maxdisplayed" - SizeRef |> DynObj.setOptionalProperty streamTube "sizeref" - Starts |> DynObj.setOptionalProperty streamTube "starts" - UIRevision |> DynObj.setOptionalProperty streamTube "uirevision" - - streamTube) + fun (streamTube: #Trace) -> + streamTube + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "u" U + |> DynObj.withOptionalProperty "v" V + |> DynObj.withOptionalProperty "w" W + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "zhoverformat" ZHoverFormat + |> DynObj.withOptionalProperty "uhoverformat" UHoverFormat + |> DynObj.withOptionalProperty "vhoverformat" VHoverFormat + |> DynObj.withOptionalProperty "whoverformat" WHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "scene" Scene StyleParam.SubPlotId.convert + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "cauto" CAuto + |> DynObj.withOptionalProperty "cmin" CMin + |> DynObj.withOptionalProperty "cmid" CMid + |> DynObj.withOptionalProperty "cmax" CMax + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "lighting" Lighting + |> DynObj.withOptionalProperty "lightposition" LightPosition + |> DynObj.withOptionalProperty "maxdisplayed" MaxDisplayed + |> DynObj.withOptionalProperty "sizeref" SizeRef + |> DynObj.withOptionalProperty "starts" Starts + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Create a function that applies the styles of a volume chart to the given trace @@ -934,55 +921,54 @@ type Trace3DStyle() = ) = fun (volume: #Trace) -> - Name |> DynObj.setOptionalProperty volume "name" - Visible |> DynObj.setOptionalPropertyBy volume "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty volume "showlegend" - Legend |> DynObj.setOptionalPropertyBy volume "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty volume "legendrank" - LegendGroup |> DynObj.setOptionalProperty volume "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty volume "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty volume "opacity" - Ids |> DynObj.setOptionalProperty volume "ids" - X |> DynObj.setOptionalProperty volume "x" - Y |> DynObj.setOptionalProperty volume "y" - Z |> DynObj.setOptionalProperty volume "z" - Value |> DynObj.setOptionalProperty volume "value" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty volume "text" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty volume "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy volume "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty volume "hovertemplate" - XHoverFormat |> DynObj.setOptionalProperty volume "xhoverformat" - YHoverFormat |> DynObj.setOptionalProperty volume "yhoverformat" - ZHoverFormat |> DynObj.setOptionalProperty volume "zhoverformat" - ValueHoverFormat |> DynObj.setOptionalProperty volume "valuehoverformat" - Meta |> DynObj.setOptionalProperty volume "meta" - CustomData |> DynObj.setOptionalProperty volume "customdata" - Scene |> DynObj.setOptionalPropertyBy volume "scene" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setOptionalPropertyBy volume "coloraxis" StyleParam.SubPlotId.convert - ColorBar |> DynObj.setOptionalProperty volume "colorbar" - AutoColorScale |> DynObj.setOptionalProperty volume "autocolorscale" - ColorScale |> DynObj.setOptionalPropertyBy volume "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setOptionalProperty volume "showscale" - ReverseScale |> DynObj.setOptionalProperty volume "reversescale" - CAuto |> DynObj.setOptionalProperty volume "cauto" - CMin |> DynObj.setOptionalProperty volume "cmin" - CMid |> DynObj.setOptionalProperty volume "cmid" - CMax |> DynObj.setOptionalProperty volume "cmax" - Caps |> DynObj.setOptionalProperty volume "caps" - Contour |> DynObj.setOptionalProperty volume "contour" - FlatShading |> DynObj.setOptionalProperty volume "flatshading" - HoverLabel |> DynObj.setOptionalProperty volume "hoverlabel" - IsoMax |> DynObj.setOptionalProperty volume "isomax" - IsoMin |> DynObj.setOptionalProperty volume "isomin" - Lighting |> DynObj.setOptionalProperty volume "lighting" - LightPosition |> DynObj.setOptionalProperty volume "lightposition" - OpacityScale |> DynObj.setOptionalProperty volume "opacityscale" - Slices |> DynObj.setOptionalProperty volume "slices" - SpaceFrame |> DynObj.setOptionalProperty volume "spaceframe" - Surface |> DynObj.setOptionalProperty volume "surface" - UIRevision |> DynObj.setOptionalProperty volume "uirevision" - volume + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "value" Value + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "zhoverformat" ZHoverFormat + |> DynObj.withOptionalProperty "valuehoverformat" ValueHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "scene" Scene StyleParam.SubPlotId.convert + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "cauto" CAuto + |> DynObj.withOptionalProperty "cmin" CMin + |> DynObj.withOptionalProperty "cmid" CMid + |> DynObj.withOptionalProperty "cmax" CMax + |> DynObj.withOptionalProperty "caps" Caps + |> DynObj.withOptionalProperty "contour" Contour + |> DynObj.withOptionalProperty "flatshading" FlatShading + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "isomax" IsoMax + |> DynObj.withOptionalProperty "isomin" IsoMin + |> DynObj.withOptionalProperty "lighting" Lighting + |> DynObj.withOptionalProperty "lightposition" LightPosition + |> DynObj.withOptionalProperty "opacityscale" OpacityScale + |> DynObj.withOptionalProperty "slices" Slices + |> DynObj.withOptionalProperty "spaceframe" SpaceFrame + |> DynObj.withOptionalProperty "surface" Surface + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Create a function that applies the styles of a isosurface chart to the given trace @@ -1092,52 +1078,51 @@ type Trace3DStyle() = ) = fun (isoSurface: #Trace) -> - Name |> DynObj.setOptionalProperty isoSurface "name" - Visible |> DynObj.setOptionalPropertyBy isoSurface "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty isoSurface "showlegend" - Legend |> DynObj.setOptionalPropertyBy isoSurface "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty isoSurface "legendrank" - LegendGroup |> DynObj.setOptionalProperty isoSurface "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty isoSurface "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty isoSurface "opacity" - Ids |> DynObj.setOptionalProperty isoSurface "ids" - X |> DynObj.setOptionalProperty isoSurface "x" - Y |> DynObj.setOptionalProperty isoSurface "y" - Z |> DynObj.setOptionalProperty isoSurface "z" - Value |> DynObj.setOptionalProperty isoSurface "value" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty isoSurface "text" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty isoSurface "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy isoSurface "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty isoSurface "hovertemplate" - XHoverFormat |> DynObj.setOptionalProperty isoSurface "xhoverformat" - YHoverFormat |> DynObj.setOptionalProperty isoSurface "yhoverformat" - ZHoverFormat |> DynObj.setOptionalProperty isoSurface "zhoverformat" - ValueHoverFormat |> DynObj.setOptionalProperty isoSurface "valuehoverformat" - Meta |> DynObj.setOptionalProperty isoSurface "meta" - CustomData |> DynObj.setOptionalProperty isoSurface "customdata" - Scene |> DynObj.setOptionalPropertyBy isoSurface "scene" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setOptionalPropertyBy isoSurface "coloraxis" StyleParam.SubPlotId.convert - ColorBar |> DynObj.setOptionalProperty isoSurface "colorbar" - AutoColorScale |> DynObj.setOptionalProperty isoSurface "autocolorscale" - ColorScale |> DynObj.setOptionalPropertyBy isoSurface "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setOptionalProperty isoSurface "showscale" - ReverseScale |> DynObj.setOptionalProperty isoSurface "reversescale" - CAuto |> DynObj.setOptionalProperty isoSurface "cauto" - CMin |> DynObj.setOptionalProperty isoSurface "cmin" - CMid |> DynObj.setOptionalProperty isoSurface "cmid" - CMax |> DynObj.setOptionalProperty isoSurface "cmax" - Caps |> DynObj.setOptionalProperty isoSurface "caps" - Contour |> DynObj.setOptionalProperty isoSurface "contour" - FlatShading |> DynObj.setOptionalProperty isoSurface "flatshading" - HoverLabel |> DynObj.setOptionalProperty isoSurface "hoverlabel" - IsoMax |> DynObj.setOptionalProperty isoSurface "isomax" - IsoMin |> DynObj.setOptionalProperty isoSurface "isomin" - Lighting |> DynObj.setOptionalProperty isoSurface "lighting" - LightPosition |> DynObj.setOptionalProperty isoSurface "lightposition" - OpacityScale |> DynObj.setOptionalProperty isoSurface "opacityscale" - Slices |> DynObj.setOptionalProperty isoSurface "slices" - SpaceFrame |> DynObj.setOptionalProperty isoSurface "spaceframe" - Surface |> DynObj.setOptionalProperty isoSurface "surface" - UIRevision |> DynObj.setOptionalProperty isoSurface "uirevision" - isoSurface + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "value" Value + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "xhoverformat" XHoverFormat + |> DynObj.withOptionalProperty "yhoverformat" YHoverFormat + |> DynObj.withOptionalProperty "zhoverformat" ZHoverFormat + |> DynObj.withOptionalProperty "valuehoverformat" ValueHoverFormat + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "scene" Scene StyleParam.SubPlotId.convert + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "cauto" CAuto + |> DynObj.withOptionalProperty "cmin" CMin + |> DynObj.withOptionalProperty "cmid" CMid + |> DynObj.withOptionalProperty "cmax" CMax + |> DynObj.withOptionalProperty "caps" Caps + |> DynObj.withOptionalProperty "contour" Contour + |> DynObj.withOptionalProperty "flatshading" FlatShading + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "isomax" IsoMax + |> DynObj.withOptionalProperty "isomin" IsoMin + |> DynObj.withOptionalProperty "lighting" Lighting + |> DynObj.withOptionalProperty "lightposition" LightPosition + |> DynObj.withOptionalProperty "opacityscale" OpacityScale + |> DynObj.withOptionalProperty "slices" Slices + |> DynObj.withOptionalProperty "spaceframe" SpaceFrame + |> DynObj.withOptionalProperty "surface" Surface + |> DynObj.withOptionalProperty "uirevision" UIRevision \ No newline at end of file From 21b25a324328d01cbff0855667837cf9a0642033 Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Tue, 15 Oct 2024 12:55:08 +0200 Subject: [PATCH 09/36] port tracepolar to dynobj v4 --- src/Plotly.NET/Traces/TracePolar.fs | 162 +++++++++++++--------------- 1 file changed, 77 insertions(+), 85 deletions(-) diff --git a/src/Plotly.NET/Traces/TracePolar.fs b/src/Plotly.NET/Traces/TracePolar.fs index cec5d5179..b1f5b6502 100644 --- a/src/Plotly.NET/Traces/TracePolar.fs +++ b/src/Plotly.NET/Traces/TracePolar.fs @@ -34,11 +34,8 @@ type TracePolar(traceTypeName) = type TracePolarStyle() = static member SetPolar([] ?PolarId: StyleParam.SubPlotId) = - (fun (trace: TracePolar) -> - - PolarId |> DynObj.setOptionalPropertyBy trace "subplot" StyleParam.SubPlotId.toString - - trace) + fun (trace: TracePolar) -> + trace |> DynObj.withOptionalPropertyBy "subplot" PolarId StyleParam.SubPlotId.toString /// /// Create a function that applies the styles of a polar scatter plot to a Trace object @@ -134,52 +131,48 @@ type TracePolarStyle() = [] ?HoverOn: string, [] ?UIRevision: seq<#IConvertible> ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setOptionalProperty trace "name" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty trace "showlegend" - Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty trace "opacity" - Mode |> DynObj.setOptionalPropertyBy trace "mode" StyleParam.Mode.convert - Ids |> DynObj.setOptionalProperty trace "ids" - R |> DynObj.setOptionalProperty trace "r" - R0 |> DynObj.setOptionalProperty trace "r0" - DR |> DynObj.setOptionalProperty trace "dr" - Theta |> DynObj.setOptionalProperty trace "theta" - Theta0 |> DynObj.setOptionalProperty trace "theta0" - DTheta |> DynObj.setOptionalProperty trace "dtheta" - ThetaUnit |> DynObj.setOptionalPropertyBy trace "thetaunit" StyleParam.AngularUnit.convert - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" + fun (trace: ('T :> Trace)) -> - (TextPosition, MultiTextPosition) - |> DynObj.setOptionalSingleOrMultiPropertyBy trace "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - Subplot |> DynObj.setOptionalPropertyBy trace "subplot" StyleParam.SubPlotId.convert - Marker |> DynObj.setOptionalProperty trace "marker" - Line |> DynObj.setOptionalProperty trace "line" - TextFont |> DynObj.setOptionalProperty trace "textfont" - SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" - Selected |> DynObj.setOptionalProperty trace "selected" - Unselected |> DynObj.setOptionalProperty trace "unselected" - ClipOnAxis |> DynObj.setOptionalProperty trace "cliponaxis" - ConnectGaps |> DynObj.setOptionalProperty trace "connectgaps" - Fill |> DynObj.setOptionalPropertyBy trace "fill" StyleParam.Fill.convert - FillColor |> DynObj.setOptionalProperty trace "fillcolor" - HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" - HoverOn |> DynObj.setOptionalProperty trace "hoveron" - UIRevision |> DynObj.setOptionalProperty trace "uirevision" - - trace) + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalPropertyBy "mode" Mode StyleParam.Mode.convert + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "r" R + |> DynObj.withOptionalProperty "r0" R0 + |> DynObj.withOptionalProperty "dr" DR + |> DynObj.withOptionalProperty "theta" Theta + |> DynObj.withOptionalProperty "theta0" Theta0 + |> DynObj.withOptionalProperty "dtheta" DTheta + |> DynObj.withOptionalPropertyBy "thetaunit" ThetaUnit StyleParam.AngularUnit.convert + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "subplot" Subplot StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "cliponaxis" ClipOnAxis + |> DynObj.withOptionalProperty "connectgaps" ConnectGaps + |> DynObj.withOptionalPropertyBy "fill" Fill StyleParam.Fill.convert + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "hoveron" HoverOn + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Create a function that applies the styles of a polar bar plot to a Trace object @@ -261,39 +254,38 @@ type TracePolarStyle() = [] ?HoverLabel: Hoverlabel, [] ?UIRevision: seq<#IConvertible> ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setOptionalProperty trace "name" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty trace "showlegend" - Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty trace "opacity" - Ids |> DynObj.setOptionalProperty trace "ids" - Base |> DynObj.setOptionalProperty trace "base" - R |> DynObj.setOptionalProperty trace "r" - R0 |> DynObj.setOptionalProperty trace "r0" - DR |> DynObj.setOptionalProperty trace "dr" - Theta |> DynObj.setOptionalProperty trace "theta" - Theta0 |> DynObj.setOptionalProperty trace "theta0" - DTheta |> DynObj.setOptionalProperty trace "dtheta" - ThetaUnit |> DynObj.setOptionalPropertyBy trace "thetaunit" StyleParam.AngularUnit.convert - (Width, MultiWidth) |> DynObj.setOptionalSingleOrMultiProperty trace "width" - (Offset, MultiOffset) |> DynObj.setOptionalSingleOrMultiProperty trace "offset" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - Subplot |> DynObj.setOptionalPropertyBy trace "subplot" StyleParam.SubPlotId.convert - Marker |> DynObj.setOptionalProperty trace "marker" - SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" - Selected |> DynObj.setOptionalProperty trace "selected" - Unselected |> DynObj.setOptionalProperty trace "unselected" - HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" - UIRevision |> DynObj.setOptionalProperty trace "uirevision" + fun (trace: ('T :> Trace)) -> - trace) + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "base" Base + |> DynObj.withOptionalProperty "r" R + |> DynObj.withOptionalProperty "r0" R0 + |> DynObj.withOptionalProperty "dr" DR + |> DynObj.withOptionalProperty "theta" Theta + |> DynObj.withOptionalProperty "theta0" Theta0 + |> DynObj.withOptionalProperty "dtheta" DTheta + |> DynObj.withOptionalPropertyBy "thetaunit" ThetaUnit StyleParam.AngularUnit.convert + |> DynObj.withOptionalSingleOrMultiProperty "width" (Width, MultiWidth) + |> DynObj.withOptionalSingleOrMultiProperty "offset" (Offset, MultiOffset) + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "subplot" Subplot StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "uirevision" UIRevision From 300eab31fdc76a3cc04edba06492a221115ab1a5 Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Tue, 15 Oct 2024 13:06:08 +0200 Subject: [PATCH 10/36] port tracegeo to dynobj v4 --- src/Plotly.NET/Traces/TraceGeo.fs | 163 ++++++++++++++---------------- 1 file changed, 77 insertions(+), 86 deletions(-) diff --git a/src/Plotly.NET/Traces/TraceGeo.fs b/src/Plotly.NET/Traces/TraceGeo.fs index 0bea27283..478105431 100644 --- a/src/Plotly.NET/Traces/TraceGeo.fs +++ b/src/Plotly.NET/Traces/TraceGeo.fs @@ -39,11 +39,9 @@ type TraceGeo(traceTypeName) = type TraceGeoStyle() = static member SetGeo([] ?GeoId: StyleParam.SubPlotId) = - (fun (trace: TraceGeo) -> + fun (trace: TraceGeo) -> + trace |> DynObj.withOptionalPropertyBy "geo" GeoId StyleParam.SubPlotId.toString - GeoId |> DynObj.setOptionalPropertyBy trace "geo" StyleParam.SubPlotId.toString - - trace) /// /// Creates a function that applies the styles of a choropleth map to a Trace object @@ -129,46 +127,45 @@ type TraceGeoStyle() = [] ?LocationMode: StyleParam.LocationFormat, [] ?UIRevision: string ) = - (fun (trace: #Trace) -> - - Name |> DynObj.setOptionalProperty trace "name" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty trace "showlegend" - Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Ids |> DynObj.setOptionalProperty trace "ids" - Z |> DynObj.setOptionalProperty trace "z" - GeoJson |> DynObj.setOptionalProperty trace "geojson" - FeatureIdKey |> DynObj.setOptionalProperty trace "featureidkey" - Locations |> DynObj.setOptionalProperty trace "locations" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - Geo |> DynObj.setOptionalPropertyBy trace "geo" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setOptionalPropertyBy trace "coloraxis" StyleParam.SubPlotId.convert - Marker |> DynObj.setOptionalProperty trace "marker" - ColorBar |> DynObj.setOptionalProperty trace "colorbar" - AutoColorScale |> DynObj.setOptionalProperty trace "autocolorscale" - ColorScale |> DynObj.setOptionalPropertyBy trace "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setOptionalProperty trace "showscale" - ReverseScale |> DynObj.setOptionalProperty trace "reversescale" - ZAuto |> DynObj.setOptionalProperty trace "zauto" - Zmin |> DynObj.setOptionalProperty trace "zmin" - Zmid |> DynObj.setOptionalProperty trace "zmid" - Zmax |> DynObj.setOptionalProperty trace "zmax" - SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" - Selected |> DynObj.setOptionalProperty trace "selected" - Unselected |> DynObj.setOptionalProperty trace "unselected" - HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" - LocationMode |> DynObj.setOptionalPropertyBy trace "locationmode" StyleParam.LocationFormat.convert - UIRevision |> DynObj.setOptionalProperty trace "uirevision" + fun (trace: #Trace) -> - trace) + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "geojson" GeoJson + |> DynObj.withOptionalProperty "featureidkey" FeatureIdKey + |> DynObj.withOptionalProperty "locations" Locations + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "geo" Geo StyleParam.SubPlotId.convert + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "zauto" ZAuto + |> DynObj.withOptionalProperty "zmin" Zmin + |> DynObj.withOptionalProperty "zmid" Zmid + |> DynObj.withOptionalProperty "zmax" Zmax + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "locationmode" LocationMode StyleParam.LocationFormat.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Creates a function that applies the styles of a scattergeo plot to a Trace object @@ -258,48 +255,42 @@ type TraceGeoStyle() = [] ?LocationMode: StyleParam.LocationFormat, [] ?UIRevision: string ) = - (fun (trace: #Trace) -> - - Name |> DynObj.setOptionalProperty trace "name" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty trace "showlegend" - Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty trace "opacity" - Mode |> DynObj.setOptionalPropertyBy trace "mode" StyleParam.Mode.convert - Ids |> DynObj.setOptionalProperty trace "ids" - Lat |> DynObj.setOptionalProperty trace "lat" - GeoJson |> DynObj.setOptionalProperty trace "geojson" - FeatureIdKey |> DynObj.setOptionalProperty trace "featureidkey" - Locations |> DynObj.setOptionalProperty trace "locations" - Lon |> DynObj.setOptionalProperty trace "lon" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setOptionalSingleOrMultiPropertyBy trace "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - Geo |> DynObj.setOptionalPropertyBy trace "geo" StyleParam.SubPlotId.convert - Marker |> DynObj.setOptionalProperty trace "marker" - Line |> DynObj.setOptionalProperty trace "line" - TextFont |> DynObj.setOptionalProperty trace "textfont" - SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" - Selected |> DynObj.setOptionalProperty trace "selected" - Unselected |> DynObj.setOptionalProperty trace "unselected" - ConnectGaps |> DynObj.setOptionalProperty trace "connectgaps" - Fill |> DynObj.setOptionalPropertyBy trace "fill" StyleParam.Fill.convert - FillColor |> DynObj.setOptionalProperty trace "fillcolor" - HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" - LocationMode |> DynObj.setOptionalPropertyBy trace "locationmode" StyleParam.LocationFormat.convert - UIRevision |> DynObj.setOptionalProperty trace "uirevision" + fun (trace: #Trace) -> trace - - ) + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalPropertyBy "mode" Mode StyleParam.Mode.convert + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "lat" Lat + |> DynObj.withOptionalProperty "geojson" GeoJson + |> DynObj.withOptionalProperty "featureidkey" FeatureIdKey + |> DynObj.withOptionalProperty "locations" Locations + |> DynObj.withOptionalProperty "lon" Lon + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "geo" Geo StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "connectgaps" ConnectGaps + |> DynObj.withOptionalPropertyBy "fill" Fill StyleParam.Fill.convert + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "locationmode" LocationMode StyleParam.LocationFormat.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision From d4ec04dc020a1b4464209129ac1d7266d3a88ff2 Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Tue, 15 Oct 2024 13:55:37 +0200 Subject: [PATCH 11/36] port tracecarpet to dynobj v4 --- src/Plotly.NET/Traces/TraceCarpet.fs | 235 +++++++++++++-------------- 1 file changed, 112 insertions(+), 123 deletions(-) diff --git a/src/Plotly.NET/Traces/TraceCarpet.fs b/src/Plotly.NET/Traces/TraceCarpet.fs index 28dd976ea..f9b69cddf 100644 --- a/src/Plotly.NET/Traces/TraceCarpet.fs +++ b/src/Plotly.NET/Traces/TraceCarpet.fs @@ -29,20 +29,15 @@ type TraceCarpetStyle() = [] ?X: StyleParam.LinearAxisId, [] ?Y: StyleParam.LinearAxisId ) = - (fun (trace: TraceCarpet) -> + fun (trace: TraceCarpet) -> - X |> DynObj.setOptionalPropertyBy trace "xaxis" StyleParam.LinearAxisId.toString - Y |> DynObj.setOptionalPropertyBy trace "yaxis" StyleParam.LinearAxisId.toString - - trace) + trace + |> DynObj.withOptionalPropertyBy "xaxis" X StyleParam.LinearAxisId.toString + |> DynObj.withOptionalPropertyBy "yaxis" Y StyleParam.LinearAxisId.toString static member SetCarpet([] ?CarpetId: StyleParam.SubPlotId) = - (fun (trace: TraceCarpet) -> - - CarpetId |> DynObj.setOptionalPropertyBy trace "carpet" StyleParam.SubPlotId.toString - - trace) - + fun (trace: TraceCarpet) -> + trace |> DynObj.withOptionalPropertyBy "carpet" CarpetId StyleParam.SubPlotId.toString /// /// Create a function that applies the styles of a carpet to a Trace object @@ -112,36 +107,35 @@ type TraceCarpetStyle() = ) = fun (trace: #Trace) -> - Name |> DynObj.setOptionalProperty trace "name" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty trace "showlegend" - Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroup |> DynObj.setOptionalProperty trace "opacity" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty trace "opacity" - Ids |> DynObj.setOptionalProperty trace "ids" - (X, MultiX) |> DynObj.setSingleOrAnyOpt trace "x" - (Y, MultiY) |> DynObj.setSingleOrAnyOpt trace "y" - A |> DynObj.setOptionalProperty trace "a" - A0 |> DynObj.setOptionalProperty trace "a0" - DA |> DynObj.setOptionalProperty trace "da" - B |> DynObj.setOptionalProperty trace "b" - B0 |> DynObj.setOptionalProperty trace "b0" - DB |> DynObj.setOptionalProperty trace "db" - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - AAxis |> DynObj.setOptionalProperty trace "aaxis" - BAxis |> DynObj.setOptionalProperty trace "baxis" - XAxis |> DynObj.setOptionalPropertyBy trace "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setOptionalPropertyBy trace "yaxis" StyleParam.LinearAxisId.convert - Color |> DynObj.setOptionalProperty trace "color" - Carpet |> DynObj.setOptionalPropertyBy trace "carpet" StyleParam.SubPlotId.convert - CheaterSlope |> DynObj.setOptionalProperty trace "cheaterslope" - Font |> DynObj.setOptionalProperty trace "font" - UIRevision |> DynObj.setOptionalProperty trace "uirevision" - trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "opacity" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalSingleOrAnyProperty "x" (X, MultiX) + |> DynObj.withOptionalSingleOrAnyProperty "y" (Y, MultiY) + |> DynObj.withOptionalProperty "a" A + |> DynObj.withOptionalProperty "a0" A0 + |> DynObj.withOptionalProperty "da" DA + |> DynObj.withOptionalProperty "b" B + |> DynObj.withOptionalProperty "b0" B0 + |> DynObj.withOptionalProperty "db" DB + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "aaxis" AAxis + |> DynObj.withOptionalProperty "baxis" BAxis + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalPropertyBy "carpet" Carpet StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "cheaterslope" CheaterSlope + |> DynObj.withOptionalProperty "font" Font + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Create a function that applies the styles of a scatter carpet plot to a Trace object @@ -230,47 +224,43 @@ type TraceCarpetStyle() = [] ?UIRevision: string ) = fun (trace: #Trace) -> - - Name |> DynObj.setOptionalProperty trace "name" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty trace "showlegend" - Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty trace "opacity" - Mode |> DynObj.setOptionalPropertyBy trace "mode" StyleParam.Mode.convert - Ids |> DynObj.setOptionalProperty trace "ids" - A |> DynObj.setOptionalProperty trace "a" - B |> DynObj.setOptionalProperty trace "b" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setOptionalSingleOrMultiPropertyBy trace "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - XAxis |> DynObj.setOptionalPropertyBy trace "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setOptionalPropertyBy trace "yaxis" StyleParam.LinearAxisId.convert - Marker |> DynObj.setOptionalProperty trace "marker" - Line |> DynObj.setOptionalProperty trace "line" - TextFont |> DynObj.setOptionalProperty trace "textfont" - SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" - Selected |> DynObj.setOptionalProperty trace "selected" - Unselected |> DynObj.setOptionalProperty trace "unselected" - Carpet |> DynObj.setOptionalPropertyBy trace "carpet" StyleParam.SubPlotId.convert - ConnectGaps |> DynObj.setOptionalProperty trace "connectgaps" - Fill |> DynObj.setOptionalPropertyBy trace "fill" StyleParam.Fill.convert - FillColor |> DynObj.setOptionalProperty trace "fillcolor" - HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" - HoverOn |> DynObj.setOptionalPropertyBy trace "hoveron" StyleParam.HoverOn.convert - UIRevision |> DynObj.setOptionalProperty trace "uirevision" - + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalPropertyBy "mode" Mode StyleParam.Mode.convert + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "a" A + |> DynObj.withOptionalProperty "b" B + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalPropertyBy "carpet" Carpet StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "connectgaps" ConnectGaps + |> DynObj.withOptionalPropertyBy "fill" Fill StyleParam.Fill.convert + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "hoveron" HoverOn StyleParam.HoverOn.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Create a function that applies the styles of a carpet contour scatter plot to a Trace object @@ -368,47 +358,46 @@ type TraceCarpetStyle() = ) = fun (trace: #Trace) -> - Name |> DynObj.setOptionalProperty trace "name" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty trace "showlegend" - Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty trace "opacity" - Ids |> DynObj.setOptionalProperty trace "ids" - Z |> DynObj.setOptionalProperty trace "z" - A |> DynObj.setOptionalProperty trace "a" - AType |> DynObj.setOptionalPropertyBy trace "atype" StyleParam.CoordinateType.convert - A0 |> DynObj.setOptionalProperty trace "a0" - DA |> DynObj.setOptionalProperty trace "da" - B |> DynObj.setOptionalProperty trace "b" - BType |> DynObj.setOptionalPropertyBy trace "btype" StyleParam.CoordinateType.convert - B0 |> DynObj.setOptionalProperty trace "b0" - DB |> DynObj.setOptionalProperty trace "db" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - XAxis |> DynObj.setOptionalPropertyBy trace "xaxis" StyleParam.LinearAxisId.convert - YAxis |> DynObj.setOptionalPropertyBy trace "yaxis" StyleParam.LinearAxisId.convert - ColorAxis |> DynObj.setOptionalPropertyBy trace "coloraxis" StyleParam.SubPlotId.convert - Line |> DynObj.setOptionalProperty trace "line" - ColorBar |> DynObj.setOptionalProperty trace "colorbar" - AutoColorScale |> DynObj.setOptionalProperty trace "autocolorscale" - ColorScale |> DynObj.setOptionalPropertyBy trace "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setOptionalProperty trace "showscale" - ReverseScale |> DynObj.setOptionalProperty trace "reversescale" - ZAuto |> DynObj.setOptionalProperty trace "zauto" - ZMax |> DynObj.setOptionalProperty trace "zmax" - ZMid |> DynObj.setOptionalProperty trace "zmid" - ZMin |> DynObj.setOptionalProperty trace "zmin" - AutoContour |> DynObj.setOptionalProperty trace "autocontour" - Carpet |> DynObj.setOptionalPropertyBy trace "carpet" StyleParam.SubPlotId.convert - Contours |> DynObj.setOptionalProperty trace "contours" - FillColor |> DynObj.setOptionalProperty trace "fillcolor" - NContours |> DynObj.setOptionalProperty trace "ncontours" - Transpose |> DynObj.setOptionalProperty trace "transpose" - UIRevision |> DynObj.setOptionalProperty trace "uirevision" - trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "a" A + |> DynObj.withOptionalPropertyBy "atype" AType StyleParam.CoordinateType.convert + |> DynObj.withOptionalProperty "a0" A0 + |> DynObj.withOptionalProperty "da" DA + |> DynObj.withOptionalProperty "b" B + |> DynObj.withOptionalPropertyBy "btype" BType StyleParam.CoordinateType.convert + |> DynObj.withOptionalProperty "b0" B0 + |> DynObj.withOptionalProperty "db" DB + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "xaxis" XAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" YAxis StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "zauto" ZAuto + |> DynObj.withOptionalProperty "zmax" ZMax + |> DynObj.withOptionalProperty "zmid" ZMid + |> DynObj.withOptionalProperty "zmin" ZMin + |> DynObj.withOptionalProperty "autocontour" AutoContour + |> DynObj.withOptionalPropertyBy "carpet" Carpet StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "contours" Contours + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "ncontours" NContours + |> DynObj.withOptionalProperty "transpose" Transpose + |> DynObj.withOptionalProperty "uirevision" UIRevision From bde12e88be76c139fdf7bb68cab92dc0563ad979 Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Tue, 15 Oct 2024 13:55:44 +0200 Subject: [PATCH 12/36] port tracedomain to dynobj v4 --- src/Plotly.NET/Traces/TraceDomain.fs | 616 +++++++++++++-------------- 1 file changed, 291 insertions(+), 325 deletions(-) diff --git a/src/Plotly.NET/Traces/TraceDomain.fs b/src/Plotly.NET/Traces/TraceDomain.fs index 0eeee1ae9..74659635e 100644 --- a/src/Plotly.NET/Traces/TraceDomain.fs +++ b/src/Plotly.NET/Traces/TraceDomain.fs @@ -43,11 +43,8 @@ type TraceDomain(traceTypeName) = type TraceDomainStyle() = static member SetDomain([] ?Domain: Domain) = - (fun (trace: TraceDomain) -> - - Domain |> DynObj.setOptionalProperty trace "domain" - - trace) + fun (trace: TraceDomain) -> + trace |> DynObj.withOptionalProperty "domain" Domain /// /// Creates a function that applies the styles of a pie chart to a Trace object @@ -143,54 +140,46 @@ type TraceDomainStyle() = [] ?Sort: bool, [] ?UIRevision: string ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setOptionalProperty trace "name" - Title |> DynObj.setOptionalProperty trace "title" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty trace "showlegend" - Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty trace "opacity" - Ids |> DynObj.setOptionalProperty trace "ids" - Values |> DynObj.setOptionalProperty trace "values" - Labels |> DynObj.setOptionalProperty trace "labels" - DLabel |> DynObj.setOptionalProperty trace "dlabel" - Label0 |> DynObj.setOptionalProperty trace "label0" - (Pull, MultiPull) |> DynObj.setOptionalSingleOrMultiProperty trace "pull" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setOptionalSingleOrMultiPropertyBy trace "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - Domain |> DynObj.setOptionalProperty trace "domain" - AutoMargin |> DynObj.setOptionalProperty trace "automargin" - Marker |> DynObj.setOptionalProperty trace "marker" - TextFont |> DynObj.setOptionalProperty trace "textfont" - TextInfo |> DynObj.setOptionalPropertyBy trace "textinfo" StyleParam.TextInfo.convert - Direction |> DynObj.setOptionalPropertyBy trace "direction" StyleParam.Direction.convert - Hole |> DynObj.setOptionalProperty trace "hole" - HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" - InsideTextFont |> DynObj.setOptionalProperty trace "insidetextfont" - - InsideTextOrientation - |> DynObj.setOptionalPropertyBy trace "insidetextorientation" StyleParam.InsideTextOrientation.convert - - OutsideTextFont |> DynObj.setOptionalProperty trace "outsidetextfont" - Rotation |> DynObj.setOptionalProperty trace "rotation" - ScaleGroup |> DynObj.setOptionalProperty trace "scalegroup" - Sort |> DynObj.setOptionalProperty trace "sort" - UIRevision |> DynObj.setOptionalProperty trace "uirevision" - - trace) + fun (trace: ('T :> Trace)) -> + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "title" Title + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "values" Values + |> DynObj.withOptionalProperty "labels" Labels + |> DynObj.withOptionalProperty "dlabel" DLabel + |> DynObj.withOptionalProperty "label0" Label0 + |> DynObj.withOptionalSingleOrMultiProperty "pull" (Pull, MultiPull) + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalProperty "automargin" AutoMargin + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalPropertyBy "textinfo" TextInfo StyleParam.TextInfo.convert + |> DynObj.withOptionalPropertyBy "direction" Direction StyleParam.Direction.convert + |> DynObj.withOptionalProperty "hole" Hole + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "insidetextfont" InsideTextFont + |> DynObj.withOptionalPropertyBy "insidetextorientation" InsideTextOrientation StyleParam.InsideTextOrientation.convert + |> DynObj.withOptionalProperty "outsidetextfont" OutsideTextFont + |> DynObj.withOptionalProperty "rotation" Rotation + |> DynObj.withOptionalProperty "scalegroup" ScaleGroup + |> DynObj.withOptionalProperty "sort" Sort + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Creates a function that applies the styles of a funnel area chart to a Trace object @@ -272,45 +261,40 @@ type TraceDomainStyle() = [] ?ScaleGroup: string, [] ?UIRevision: string ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setOptionalProperty trace "name" - Title |> DynObj.setOptionalProperty trace "title" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty trace "showlegend" - Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty trace "opacity" - Ids |> DynObj.setOptionalProperty trace "ids" - Values |> DynObj.setOptionalProperty trace "values" - Labels |> DynObj.setOptionalProperty trace "labels" - DLabel |> DynObj.setOptionalProperty trace "dlabel" - Label0 |> DynObj.setOptionalProperty trace "label0" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setOptionalSingleOrMultiPropertyBy trace "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - Domain |> DynObj.setOptionalProperty trace "domain" - Marker |> DynObj.setOptionalProperty trace "marker" - TextFont |> DynObj.setOptionalProperty trace "textfont" - TextInfo |> DynObj.setOptionalPropertyBy trace "textinfo" StyleParam.TextInfo.convert - AspectRatio |> DynObj.setOptionalProperty trace "aspectratio" - BaseRatio |> DynObj.setOptionalProperty trace "baseratio" - HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" - InsideTextFont |> DynObj.setOptionalProperty trace "insidetextfont" - ScaleGroup |> DynObj.setOptionalProperty trace "scalegroup" - UIRevision |> DynObj.setOptionalProperty trace "uirevision" - - trace) + fun (trace: ('T :> Trace)) -> + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "title" Title + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "values" Values + |> DynObj.withOptionalProperty "labels" Labels + |> DynObj.withOptionalProperty "dlabel" DLabel + |> DynObj.withOptionalProperty "label0" Label0 + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalPropertyBy "textinfo" TextInfo StyleParam.TextInfo.convert + |> DynObj.withOptionalProperty "aspectratio" AspectRatio + |> DynObj.withOptionalProperty "baseratio" BaseRatio + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "insidetextfont" InsideTextFont + |> DynObj.withOptionalProperty "scalegroup" ScaleGroup + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Creates a function that applies the styles of a sunburst chart to a Trace object @@ -400,50 +384,46 @@ type TraceDomainStyle() = [] ?Sort: bool, [] ?UIRevision: string ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setOptionalProperty trace "name" - Title |> DynObj.setOptionalProperty trace "title" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty trace "showlegend" - Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty trace "opacity" - Ids |> DynObj.setOptionalProperty trace "ids" - Parents |> DynObj.setOptionalProperty trace "parents" - Values |> DynObj.setOptionalProperty trace "values" - Labels |> DynObj.setOptionalProperty trace "labels" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" - (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - Domain |> DynObj.setOptionalProperty trace "domain" - Marker |> DynObj.setOptionalProperty trace "marker" - TextFont |> DynObj.setOptionalProperty trace "textfont" - TextInfo |> DynObj.setOptionalPropertyBy trace "textinfo" StyleParam.TextInfo.convert - BranchValues |> DynObj.setOptionalPropertyBy trace "branchvalues" StyleParam.BranchValues.convert - Count |> DynObj.setOptionalProperty trace "count" - HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" - InsideTextFont |> DynObj.setOptionalProperty trace "insidetextfont" - - InsideTextOrientation - |> DynObj.setOptionalPropertyBy trace "insidetextorientation" StyleParam.InsideTextOrientation.convert - - OutsideTextFont |> DynObj.setOptionalProperty trace "outsidetextfont" - Root |> DynObj.setOptionalProperty trace "root" - Leaf |> DynObj.setOptionalProperty trace "leaf" - Level |> DynObj.setOptionalProperty trace "level" - MaxDepth |> DynObj.setOptionalProperty trace "maxdepth" - Rotation |> DynObj.setOptionalProperty trace "rotation" - Sort |> DynObj.setOptionalProperty trace "sort" - UIRevision |> DynObj.setOptionalProperty trace "uirevision" - - trace) + fun (trace: ('T :> Trace)) -> + + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "title" Title + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "parents" Parents + |> DynObj.withOptionalProperty "values" Values + |> DynObj.withOptionalProperty "labels" Labels + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalPropertyBy "textinfo" TextInfo StyleParam.TextInfo.convert + |> DynObj.withOptionalPropertyBy "branchvalues" BranchValues StyleParam.BranchValues.convert + |> DynObj.withOptionalProperty "count" Count + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "insidetextfont" InsideTextFont + |> DynObj.withOptionalPropertyBy "insidetextorientation" InsideTextOrientation StyleParam.InsideTextOrientation.convert + |> DynObj.withOptionalProperty "outsidetextfont" OutsideTextFont + |> DynObj.withOptionalProperty "root" Root + |> DynObj.withOptionalProperty "leaf" Leaf + |> DynObj.withOptionalProperty "level" Level + |> DynObj.withOptionalProperty "maxdepth" MaxDepth + |> DynObj.withOptionalProperty "rotation" Rotation + |> DynObj.withOptionalProperty "sort" Sort + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Creates a function that applies the styles of a treemap chart to a Trace object @@ -533,49 +513,45 @@ type TraceDomainStyle() = [] ?MaxDepth: int, [] ?UIRevision: string ) = - (fun (trace: ('T :> Trace)) -> + fun (trace: ('T :> Trace)) -> - Name |> DynObj.setOptionalProperty trace "name" - Title |> DynObj.setOptionalProperty trace "title" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty trace "showlegend" - Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty trace "opacity" - Ids |> DynObj.setOptionalProperty trace "ids" - Parents |> DynObj.setOptionalProperty trace "parents" - Values |> DynObj.setOptionalProperty trace "values" - Labels |> DynObj.setOptionalProperty trace "labels" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setOptionalSingleOrMultiPropertyBy trace "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - Domain |> DynObj.setOptionalProperty trace "domain" - Marker |> DynObj.setOptionalProperty trace "marker" - TextFont |> DynObj.setOptionalProperty trace "textfont" - TextInfo |> DynObj.setOptionalPropertyBy trace "textinfo" StyleParam.TextInfo.convert - BranchValues |> DynObj.setOptionalPropertyBy trace "branchvalues" StyleParam.BranchValues.convert - Count |> DynObj.setOptionalProperty trace "count" - Tiling |> DynObj.setOptionalProperty trace "tiling" - PathBar |> DynObj.setOptionalProperty trace "pathbar" - HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" - InsideTextFont |> DynObj.setOptionalProperty trace "insidetextfont" - OutsideTextFont |> DynObj.setOptionalProperty trace "outsidetextfont" - Root |> DynObj.setOptionalProperty trace "root" - Level |> DynObj.setOptionalProperty trace "level" - MaxDepth |> DynObj.setOptionalProperty trace "maxdepth" - UIRevision |> DynObj.setOptionalProperty trace "uirevision" - - trace) + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "title" Title + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "parents" Parents + |> DynObj.withOptionalProperty "values" Values + |> DynObj.withOptionalProperty "labels" Labels + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalPropertyBy "textinfo" TextInfo StyleParam.TextInfo.convert + |> DynObj.withOptionalPropertyBy "branchvalues" BranchValues StyleParam.BranchValues.convert + |> DynObj.withOptionalProperty "count" Count + |> DynObj.withOptionalProperty "tiling" Tiling + |> DynObj.withOptionalProperty "pathbar" PathBar + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "insidetextfont" InsideTextFont + |> DynObj.withOptionalProperty "outsidetextfont" OutsideTextFont + |> DynObj.withOptionalProperty "root" Root + |> DynObj.withOptionalProperty "level" Level + |> DynObj.withOptionalProperty "maxdepth" MaxDepth + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Creates a function that applies the styles of a parallel coordinates plot to a Trace object @@ -621,29 +597,27 @@ type TraceDomainStyle() = [] ?TickFont: Font, [] ?UIRevision: string ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setOptionalProperty trace "name" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Ids |> DynObj.setOptionalProperty trace "ids" - Dimensions |> DynObj.setOptionalProperty trace "dimensions" - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - Domain |> DynObj.setOptionalProperty trace "domain" - Line |> DynObj.setOptionalProperty trace "line" - Unselected |> DynObj.setOptionalProperty trace "unselected" - LabelAngle |> DynObj.setOptionalProperty trace "labelangle" - LabelFont |> DynObj.setOptionalProperty trace "labelfont" - LabelSide |> DynObj.setOptionalProperty trace "labelside" - RangeFont |> DynObj.setOptionalProperty trace "rangefont" - TickFont |> DynObj.setOptionalProperty trace "tickfont " - UIRevision |> DynObj.setOptionalProperty trace "uirevision" - - trace) + fun (trace: ('T :> Trace)) -> + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "dimensions" Dimensions + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "labelangle" LabelAngle + |> DynObj.withOptionalProperty "labelfont" LabelFont + |> DynObj.withOptionalProperty "labelside" LabelSide + |> DynObj.withOptionalProperty "rangefont" RangeFont + |> DynObj.withOptionalProperty "tickfont " TickFont + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Creates a function that applies the styles of a parallel categories plot to a Trace object @@ -691,29 +665,28 @@ type TraceDomainStyle() = [] ?TickFont: Font, [] ?UIRevision: string ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setOptionalProperty trace "name" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert - LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Counts |> DynObj.setOptionalProperty trace "counts" - Dimensions |> DynObj.setOptionalProperty trace "dimensions" - HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" - Meta |> DynObj.setOptionalProperty trace "meta" - Domain |> DynObj.setOptionalProperty trace "domain" - Line |> DynObj.setOptionalProperty trace "line" - Arrangement |> DynObj.setOptionalPropertyBy trace "arrangement" StyleParam.CategoryArrangement.convert - BundleColors |> DynObj.setOptionalProperty trace "bundlecolors" - SortPaths |> DynObj.setOptionalPropertyBy trace "sortpaths" StyleParam.SortAlgorithm.convert - Hoveron |> DynObj.setOptionalPropertyBy trace "hoveron" StyleParam.HoverOn.convert - LabelFont |> DynObj.setOptionalProperty trace "labelfont" - TickFont |> DynObj.setOptionalProperty trace "tickfont " - UIRevision |> DynObj.setOptionalProperty trace "uirevision" - - trace) + fun (trace: ('T :> Trace)) -> + + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalProperty "counts" Counts + |> DynObj.withOptionalProperty "dimensions" Dimensions + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalPropertyBy "arrangement" Arrangement StyleParam.CategoryArrangement.convert + |> DynObj.withOptionalProperty "bundlecolors" BundleColors + |> DynObj.withOptionalPropertyBy "sortpaths" SortPaths StyleParam.SortAlgorithm.convert + |> DynObj.withOptionalPropertyBy "hoveron" Hoveron StyleParam.HoverOn.convert + |> DynObj.withOptionalProperty "labelfont" LabelFont + |> DynObj.withOptionalProperty "tickfont " TickFont + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Creates a function that applies the styles of a sankey chart to a Trace object @@ -763,31 +736,31 @@ type TraceDomainStyle() = [] ?ValueSuffix: string, [] ?UIRevision: string ) = - (fun (trace: ('T :> Trace)) -> + fun (trace: ('T :> Trace)) -> - Name |> DynObj.setOptionalProperty trace "name" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Ids |> DynObj.setOptionalProperty trace "ids" - HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - Domain |> DynObj.setOptionalProperty trace "domain" - Orientation |> DynObj.setOptionalPropertyBy trace "orientation" StyleParam.Orientation.convert - Node |> DynObj.setOptionalProperty trace "node" - Link |> DynObj.setOptionalProperty trace "link" - TextFont |> DynObj.setOptionalProperty trace "textfont" - SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" - Arrangement |> DynObj.setOptionalPropertyBy trace "arrangement" StyleParam.CategoryArrangement.convert - HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" - ValueFormat |> DynObj.setOptionalProperty trace "valueformat" - ValueSuffix |> DynObj.setOptionalProperty trace "valuesuffix" - UIRevision |> DynObj.setOptionalProperty trace "uirevision" + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalPropertyBy "orientation" Orientation StyleParam.Orientation.convert + |> DynObj.withOptionalProperty "node" Node + |> DynObj.withOptionalProperty "link" Link + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalPropertyBy "arrangement" Arrangement StyleParam.CategoryArrangement.convert + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "valueformat" ValueFormat + |> DynObj.withOptionalProperty "valuesuffix" ValueSuffix + |> DynObj.withOptionalProperty "uirevision" UIRevision - trace) /// /// Creates a function that applies the styles of a table to a Trace object @@ -829,26 +802,24 @@ type TraceDomainStyle() = [] ?HoverLabel: Hoverlabel, [] ?UIRevision: string ) = - (fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setOptionalProperty trace "name" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Ids |> DynObj.setOptionalProperty trace "ids" - ColumnOrder |> DynObj.setOptionalProperty trace "columnorder" - (ColumnWidth, MultiColumnWidth) |> DynObj.setOptionalSingleOrMultiProperty trace "columnwidth" - HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - Domain |> DynObj.setOptionalProperty trace "domain" - Cells |> DynObj.setOptionalProperty trace "cells" - Header |> DynObj.setOptionalProperty trace "header" - HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" - UIRevision |> DynObj.setOptionalProperty trace "uirevision" - - trace) + fun (trace: ('T :> Trace)) -> + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "columnorder" ColumnOrder + |> DynObj.withOptionalSingleOrMultiProperty "columnwidth" (ColumnWidth, MultiColumnWidth) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalProperty "cells" Cells + |> DynObj.withOptionalProperty "header" Header + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Creates a function that applies the styles of an indicator to a Trace object @@ -891,26 +862,25 @@ type TraceDomainStyle() = [] ?UIRevision: string ) = fun (trace: #Trace) -> - - Name |> DynObj.setOptionalProperty trace "name" - Title |> DynObj.setOptionalProperty trace "title" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Mode |> DynObj.setOptionalPropertyBy trace "mode" StyleParam.IndicatorMode.convert - Ids |> DynObj.setOptionalProperty trace "ids" - Value |> DynObj.setOptionalProperty trace "value" - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - Domain |> DynObj.setOptionalProperty trace "domain" - Align |> DynObj.setOptionalPropertyBy trace "align" StyleParam.IndicatorAlignment.convert - Delta |> DynObj.setOptionalProperty trace "delta" - Number |> DynObj.setOptionalProperty trace "number" - Gauge |> DynObj.setOptionalProperty trace "gauge" - UIRevision |> DynObj.setOptionalProperty trace "uirevision" - + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "title" Title + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalPropertyBy "mode" Mode StyleParam.IndicatorMode.convert + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "value" Value + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalPropertyBy "align" Align StyleParam.IndicatorAlignment.convert + |> DynObj.withOptionalProperty "delta" Delta + |> DynObj.withOptionalProperty "number" Number + |> DynObj.withOptionalProperty "gauge" Gauge + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Creates a function that applies the styles of an icicle chart to a Trace object @@ -1000,43 +970,39 @@ type TraceDomainStyle() = ) = fun (trace: #Trace) -> - Name |> DynObj.setOptionalProperty trace "name" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty trace "opacity" - Ids |> DynObj.setOptionalProperty trace "ids" - Parents |> DynObj.setOptionalProperty trace "parents" - Values |> DynObj.setOptionalProperty trace "values" - Labels |> DynObj.setOptionalProperty trace "labels" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setOptionalSingleOrMultiPropertyBy trace "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - Domain |> DynObj.setOptionalProperty trace "domain" - Marker |> DynObj.setOptionalProperty trace "marker" - TextFont |> DynObj.setOptionalProperty trace "textfont" - TextInfo |> DynObj.setOptionalPropertyBy trace "textinfo" StyleParam.TextInfo.convert - BranchValues |> DynObj.setOptionalPropertyBy trace "branchvalues" StyleParam.BranchValues.convert - Count |> DynObj.setOptionalPropertyBy trace "count" StyleParam.IcicleCount.convert - Tiling |> DynObj.setOptionalProperty trace "tiling" - PathBar |> DynObj.setOptionalProperty trace "pathbar" - HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" - InsideTextFont |> DynObj.setOptionalProperty trace "insidetextfont" - OutsideTextFont |> DynObj.setOptionalProperty trace "outsidetextfont" - Root |> DynObj.setOptionalProperty trace "root" - Leaf |> DynObj.setOptionalProperty trace "leaf" - Level |> DynObj.setOptionalProperty trace "level" - MaxDepth |> DynObj.setOptionalProperty trace "maxdepth" - Sort |> DynObj.setOptionalProperty trace "sort" - UIRevision |> DynObj.setOptionalProperty trace "uirevision" - trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "parents" Parents + |> DynObj.withOptionalProperty "values" Values + |> DynObj.withOptionalProperty "labels" Labels + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalPropertyBy "textinfo" TextInfo StyleParam.TextInfo.convert + |> DynObj.withOptionalPropertyBy "branchvalues" BranchValues StyleParam.BranchValues.convert + |> DynObj.withOptionalPropertyBy "count" Count StyleParam.IcicleCount.convert + |> DynObj.withOptionalProperty "tiling" Tiling + |> DynObj.withOptionalProperty "pathbar" PathBar + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "insidetextfont" InsideTextFont + |> DynObj.withOptionalProperty "outsidetextfont" OutsideTextFont + |> DynObj.withOptionalProperty "root" Root + |> DynObj.withOptionalProperty "leaf" Leaf + |> DynObj.withOptionalProperty "level" Level + |> DynObj.withOptionalProperty "maxdepth" MaxDepth + |> DynObj.withOptionalProperty "sort" Sort + |> DynObj.withOptionalProperty "uirevision" UIRevision \ No newline at end of file From f8d89baee927999eadb03de389cc7099defb9edf Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Tue, 15 Oct 2024 13:55:54 +0200 Subject: [PATCH 13/36] port tracemapbox to dynobj v4 --- src/Plotly.NET/Traces/TraceMapbox.fs | 232 +++++++++++++-------------- 1 file changed, 110 insertions(+), 122 deletions(-) diff --git a/src/Plotly.NET/Traces/TraceMapbox.fs b/src/Plotly.NET/Traces/TraceMapbox.fs index accf11b59..a792afef8 100644 --- a/src/Plotly.NET/Traces/TraceMapbox.fs +++ b/src/Plotly.NET/Traces/TraceMapbox.fs @@ -45,11 +45,9 @@ type TraceMapbox(traceTypeName) = type TraceMapboxStyle() = static member SetMapbox([] ?MapboxId: StyleParam.SubPlotId) = - (fun (trace: TraceMapbox) -> + fun (trace: TraceMapbox) -> + trace |> DynObj.setOptionalPropertyBy "subplot" MapboxId StyleParam.SubPlotId.toString - MapboxId |> DynObj.setOptionalPropertyBy trace "subplot" StyleParam.SubPlotId.toString - - trace) /// /// Create a function that applies the styles of a mapbox scatter plot to a Trace object @@ -135,46 +133,42 @@ type TraceMapboxStyle() = [] ?HoverLabel: Hoverlabel, [] ?UIRevision: string ) = - (fun (trace: #Trace) -> - - Name |> DynObj.setOptionalProperty trace "name" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty trace "showlegend" - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty trace "opacity" - Mode |> DynObj.setOptionalPropertyBy trace "mode" StyleParam.Mode.convert - Ids |> DynObj.setOptionalProperty trace "ids" - Lat |> DynObj.setOptionalProperty trace "lat" - Lon |> DynObj.setOptionalProperty trace "lon" - Cluster |> DynObj.setOptionalProperty trace "cluster" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setOptionalSingleOrMultiPropertyBy trace "textposition" StyleParam.TextPosition.convert + fun (trace: #Trace) -> - (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - SubPlot |> DynObj.setOptionalPropertyBy trace "subplot" StyleParam.SubPlotId.convert - Marker |> DynObj.setOptionalProperty trace "marker" - Line |> DynObj.setOptionalProperty trace "line" - TextFont |> DynObj.setOptionalProperty trace "textfont" - SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" - Selected |> DynObj.setOptionalProperty trace "selected" - Unselected |> DynObj.setOptionalProperty trace "unselected" - Below |> DynObj.setOptionalProperty trace "below" - ConnectGaps |> DynObj.setOptionalProperty trace "connectgaps" - Fill |> DynObj.setOptionalPropertyBy trace "fill" StyleParam.Fill.convert - FillColor |> DynObj.setOptionalProperty trace "fillcolor" - HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" - UIRevision |> DynObj.setOptionalProperty trace "uirevision" - - trace) + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalPropertyBy "mode" Mode StyleParam.Mode.convert + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "lat" Lat + |> DynObj.withOptionalProperty "lon" Lon + |> DynObj.withOptionalProperty "cluster" Cluster + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "subplot" SubPlot StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "below" Below + |> DynObj.withOptionalProperty "connectgaps" ConnectGaps + |> DynObj.withOptionalPropertyBy "fill" Fill StyleParam.Fill.convert + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Create a function that applies the styles of a choropleth mapbox plot to a Trace object @@ -260,46 +254,43 @@ type TraceMapboxStyle() = [] ?HoverLabel: Hoverlabel, [] ?UIRevision: string ) = - (fun (trace: #Trace) -> - - Name |> DynObj.setOptionalProperty trace "name" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty trace "showlegend" - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Ids |> DynObj.setOptionalProperty trace "ids" - Z |> DynObj.setOptionalProperty trace "z" - GeoJson |> DynObj.setOptionalProperty trace "geojson" - FeatureIdKey |> DynObj.setOptionalProperty trace "featureidkey" - Locations |> DynObj.setOptionalProperty trace "locations" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - SubPlot |> DynObj.setOptionalPropertyBy trace "subplot" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setOptionalPropertyBy trace "coloraxis" StyleParam.SubPlotId.convert - Marker |> DynObj.setOptionalProperty trace "marker" - ColorBar |> DynObj.setOptionalProperty trace "colorbar" - AutoColorScale |> DynObj.setOptionalProperty trace "autocolorscale" - ColorScale |> DynObj.setOptionalPropertyBy trace "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setOptionalProperty trace "showscale" - ReverseScale |> DynObj.setOptionalProperty trace "reversescale" - ZAuto |> DynObj.setOptionalProperty trace "zauto" - Zmin |> DynObj.setOptionalProperty trace "zmin" - Zmid |> DynObj.setOptionalProperty trace "zmid" - Zmax |> DynObj.setOptionalProperty trace "zmax" - SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" - Selected |> DynObj.setOptionalProperty trace "selected" - Unselected |> DynObj.setOptionalProperty trace "unselected" - Below |> DynObj.setOptionalProperty trace "below" - HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" - UIRevision |> DynObj.setOptionalProperty trace "uirevision" - - - trace) + fun (trace: #Trace) -> + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "geojson" GeoJson + |> DynObj.withOptionalProperty "featureidkey" FeatureIdKey + |> DynObj.withOptionalProperty "locations" Locations + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "subplot" SubPlot StyleParam.SubPlotId.convert + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "zauto" ZAuto + |> DynObj.withOptionalProperty "zmin" Zmin + |> DynObj.withOptionalProperty "zmid" Zmid + |> DynObj.withOptionalProperty "zmax" Zmax + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "below" Below + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "uirevision" UIRevision /// /// Create a function that applies the styles of a density mapbox plot to a Trace object @@ -381,42 +372,39 @@ type TraceMapboxStyle() = [] ?HoverLabel: Hoverlabel, [] ?UIRevision: string ) = - (fun (trace: #Trace) -> - - Name |> DynObj.setOptionalProperty trace "name" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty trace "showlegend" - Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty trace "opacity" - Ids |> DynObj.setOptionalProperty trace "ids" - Z |> DynObj.setOptionalProperty trace "z" - Radius |> DynObj.setOptionalProperty trace "radius" - Lat |> DynObj.setOptionalProperty trace "lat" - Lon |> DynObj.setOptionalProperty trace "lon" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - SubPlot |> DynObj.setOptionalPropertyBy trace "subplot" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setOptionalPropertyBy trace "coloraxis" StyleParam.SubPlotId.convert - Marker |> DynObj.setOptionalProperty trace "marker" - ColorBar |> DynObj.setOptionalProperty trace "colorbar" - AutoColorScale |> DynObj.setOptionalProperty trace "autocolorscale" - ColorScale |> DynObj.setOptionalPropertyBy trace "colorscale" StyleParam.Colorscale.convert - ShowScale |> DynObj.setOptionalProperty trace "showscale" - ReverseScale |> DynObj.setOptionalProperty trace "reversescale" - ZAuto |> DynObj.setOptionalProperty trace "zauto" - Zmin |> DynObj.setOptionalProperty trace "zmin" - Zmid |> DynObj.setOptionalProperty trace "zmid" - Zmax |> DynObj.setOptionalProperty trace "zmax" - Below |> DynObj.setOptionalProperty trace "below" - HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" - UIRevision |> DynObj.setOptionalProperty trace "uirevision" - - - trace) + fun (trace: #Trace) -> + trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "z" Z + |> DynObj.withOptionalProperty "radius" Radius + |> DynObj.withOptionalProperty "lat" Lat + |> DynObj.withOptionalProperty "lon" Lon + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "subplot" SubPlot StyleParam.SubPlotId.convert + |> DynObj.withOptionalPropertyBy "coloraxis" ColorAxis StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "colorbar" ColorBar + |> DynObj.withOptionalProperty "autocolorscale" AutoColorScale + |> DynObj.withOptionalPropertyBy "colorscale" ColorScale StyleParam.Colorscale.convert + |> DynObj.withOptionalProperty "showscale" ShowScale + |> DynObj.withOptionalProperty "reversescale" ReverseScale + |> DynObj.withOptionalProperty "zauto" ZAuto + |> DynObj.withOptionalProperty "zmin" Zmin + |> DynObj.withOptionalProperty "zmid" Zmid + |> DynObj.withOptionalProperty "zmax" Zmax + |> DynObj.withOptionalProperty "below" Below + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalProperty "uirevision" UIRevision From 0e9fbbcf003cebe9f2302d65329678399a2fb073 Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Tue, 15 Oct 2024 13:56:01 +0200 Subject: [PATCH 14/36] port tracesmith to dynobj v4 --- src/Plotly.NET/Traces/TraceSmith.fs | 79 +++++++++++++---------------- 1 file changed, 36 insertions(+), 43 deletions(-) diff --git a/src/Plotly.NET/Traces/TraceSmith.fs b/src/Plotly.NET/Traces/TraceSmith.fs index 38e0d041b..fbe98af42 100644 --- a/src/Plotly.NET/Traces/TraceSmith.fs +++ b/src/Plotly.NET/Traces/TraceSmith.fs @@ -17,11 +17,9 @@ type TraceSmith(traceTypeName) = type TraceSmithStyle() = static member SetSmith([] ?SmithId: StyleParam.SubPlotId) = - (fun (trace: TraceSmith) -> + fun (trace: TraceSmith) -> + trace |> DynObj.setOptionalPropertyBy "subplot" SmithId StyleParam.SubPlotId.toString - SmithId |> DynObj.setOptionalPropertyBy trace "subplot" StyleParam.SubPlotId.toString - - trace) /// /// Create a function that applies the styles of a scatter smith plot to a Trace object @@ -108,43 +106,38 @@ type TraceSmithStyle() = [] ?UIRevision: string ) = fun (trace: ('T :> Trace)) -> - - Name |> DynObj.setOptionalProperty trace "name" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty trace "showlegend" - Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty trace "opacity" - Mode |> DynObj.setOptionalPropertyBy trace "mode" StyleParam.Mode.convert - Ids |> DynObj.setOptionalProperty trace "ids" - Imag |> DynObj.setOptionalProperty trace "imag" - Real |> DynObj.setOptionalProperty trace "real" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setOptionalSingleOrMultiPropertyBy trace "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - Subplot |> DynObj.setOptionalProperty trace "subplot" - Marker |> DynObj.setOptionalProperty trace "marker" - Line |> DynObj.setOptionalProperty trace "line" - TextFont |> DynObj.setOptionalProperty trace "textfont" - SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" - Selected |> DynObj.setOptionalProperty trace "selected" - Unselected |> DynObj.setOptionalProperty trace "unselected" - ClipOnAxis |> DynObj.setOptionalProperty trace "cliponaxis" - ConnectGaps |> DynObj.setOptionalProperty trace "connectgaps" - Fill |> DynObj.setOptionalPropertyBy trace "fill" StyleParam.Fill.convert - FillColor |> DynObj.setOptionalProperty trace "fillcolor" - HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" - HoverOn |> DynObj.setOptionalPropertyBy trace "hoveron" StyleParam.HoverOn.convert - UIRevision |> DynObj.setOptionalProperty trace "uirevision" - trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalPropertyBy "mode" Mode StyleParam.Mode.convert + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "imag" Imag + |> DynObj.withOptionalProperty "real" Real + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalProperty "subplot" Subplot + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "cliponaxis" ClipOnAxis + |> DynObj.withOptionalProperty "connectgaps" ConnectGaps + |> DynObj.withOptionalPropertyBy "fill" Fill StyleParam.Fill.convert + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "hoveron" HoverOn StyleParam.HoverOn.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision \ No newline at end of file From b84581dbf59601da3c45cf2cc0ae8eb10ac8c5c2 Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Tue, 15 Oct 2024 13:56:09 +0200 Subject: [PATCH 15/36] port traceternary to dynobj v4 --- src/Plotly.NET/Traces/TraceTernary.fs | 83 ++++++++++++--------------- 1 file changed, 38 insertions(+), 45 deletions(-) diff --git a/src/Plotly.NET/Traces/TraceTernary.fs b/src/Plotly.NET/Traces/TraceTernary.fs index 3b799b758..3d83b272a 100644 --- a/src/Plotly.NET/Traces/TraceTernary.fs +++ b/src/Plotly.NET/Traces/TraceTernary.fs @@ -17,11 +17,8 @@ type TraceTernary(traceTypeName) = type TraceTernaryStyle() = static member SetTernary([] ?TernaryId: StyleParam.SubPlotId) = - (fun (trace: TraceTernary) -> - - TernaryId |> DynObj.setOptionalPropertyBy trace "subplot" StyleParam.SubPlotId.toString - - trace) + fun (trace: TraceTernary) -> + trace |> DynObj.withOptionalPropertyBy "subplot" TernaryId StyleParam.SubPlotId.toString /// /// Create a function that applies the styles of a ternary scatter plot to a Trace object @@ -113,44 +110,40 @@ type TraceTernaryStyle() = ) = fun (trace: #Trace) -> - Name |> DynObj.setOptionalProperty trace "name" - Visible |> DynObj.setOptionalPropertyBy trace "visible" StyleParam.Visible.convert - ShowLegend |> DynObj.setOptionalProperty trace "showlegend" - Legend |> DynObj.setOptionalPropertyBy trace "legend" StyleParam.SubPlotId.convert - LegendRank |> DynObj.setOptionalProperty trace "legendrank" - LegendGroup |> DynObj.setOptionalProperty trace "legendgroup" - LegendGroupTitle |> DynObj.setOptionalProperty trace "legendgrouptitle" - Opacity |> DynObj.setOptionalProperty trace "opacity" - Mode |> DynObj.setOptionalPropertyBy trace "mode" StyleParam.Mode.convert - Ids |> DynObj.setOptionalProperty trace "ids" - A |> DynObj.setOptionalProperty trace "a" - B |> DynObj.setOptionalProperty trace "b" - C |> DynObj.setOptionalProperty trace "c" - (Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace "text" - - (TextPosition, MultiTextPosition) - |> DynObj.setOptionalSingleOrMultiPropertyBy trace "textposition" StyleParam.TextPosition.convert - - (TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "texttemplate" - (HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertext" - HoverInfo |> DynObj.setOptionalPropertyBy trace "hoverinfo" StyleParam.HoverInfo.convert - (HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace "hovertemplate" - Meta |> DynObj.setOptionalProperty trace "meta" - CustomData |> DynObj.setOptionalProperty trace "customdata" - SubPlot |> DynObj.setOptionalPropertyBy trace "subplot" StyleParam.SubPlotId.convert - Marker |> DynObj.setOptionalProperty trace "marker" - Line |> DynObj.setOptionalProperty trace "line" - TextFont |> DynObj.setOptionalProperty trace "textfont" - SelectedPoints |> DynObj.setOptionalProperty trace "selectedpoints" - Selected |> DynObj.setOptionalProperty trace "selected" - Unselected |> DynObj.setOptionalProperty trace "unselected" - ClipOnAxis |> DynObj.setOptionalProperty trace "cliponaxis" - ConnectGaps |> DynObj.setOptionalProperty trace "connectgaps" - Fill |> DynObj.setOptionalPropertyBy trace "fill" StyleParam.Fill.convert - FillColor |> DynObj.setOptionalProperty trace "fillcolor" - HoverLabel |> DynObj.setOptionalProperty trace "hoverlabel" - HoverOn |> DynObj.setOptionalPropertyBy trace "hoveron" StyleParam.HoverOn.convert - Sum |> DynObj.setOptionalProperty trace "sum" - UIRevision |> DynObj.setOptionalProperty trace "uirevision" - trace + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalPropertyBy "visible" Visible StyleParam.Visible.convert + |> DynObj.withOptionalProperty "showlegend" ShowLegend + |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle"LegendGroupTitle + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalPropertyBy "mode" Mode StyleParam.Mode.convert + |> DynObj.withOptionalProperty "ids" Ids + |> DynObj.withOptionalProperty "a" A + |> DynObj.withOptionalProperty "b" B + |> DynObj.withOptionalProperty "c" C + |> DynObj.withOptionalSingleOrMultiProperty "text" (Text, MultiText) + |> DynObj.withOptionalSingleOrMultiPropertyBy "textposition" (TextPosition, MultiTextPosition) StyleParam.TextPosition.convert + |> DynObj.withOptionalSingleOrMultiProperty "texttemplate" (TextTemplate, MultiTextTemplate) + |> DynObj.withOptionalSingleOrMultiProperty "hovertext" (HoverText, MultiHoverText) + |> DynObj.withOptionalPropertyBy "hoverinfo" HoverInfo StyleParam.HoverInfo.convert + |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) + |> DynObj.withOptionalProperty "meta" Meta + |> DynObj.withOptionalProperty "customdata" CustomData + |> DynObj.withOptionalPropertyBy "subplot" SubPlot StyleParam.SubPlotId.convert + |> DynObj.withOptionalProperty "marker" Marker + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalProperty "selectedpoints" SelectedPoints + |> DynObj.withOptionalProperty "selected" Selected + |> DynObj.withOptionalProperty "unselected" Unselected + |> DynObj.withOptionalProperty "cliponaxis" ClipOnAxis + |> DynObj.withOptionalProperty "connectgaps" ConnectGaps + |> DynObj.withOptionalPropertyBy "fill" Fill StyleParam.Fill.convert + |> DynObj.withOptionalProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "hoverlabel" HoverLabel + |> DynObj.withOptionalPropertyBy "hoveron" HoverOn StyleParam.HoverOn.convert + |> DynObj.withOptionalProperty "sum" Sum + |> DynObj.withOptionalProperty "uirevision" UIRevision From 5064b7b98d149cbe9c2510140d5357d7e98007a7 Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Tue, 15 Oct 2024 14:26:28 +0200 Subject: [PATCH 16/36] port leftover layout objects to dynobj v4 --- .../ObjectAbstractions/3D/AspectRatio.fs | 8 +- .../Layout/ObjectAbstractions/3D/Camera.fs | 38 +++---- .../Layout/ObjectAbstractions/3D/Scene.fs | 29 +++-- .../Layout/ObjectAbstractions/Common/Shape.fs | 5 +- .../Layout/ObjectAbstractions/Map/Geo.fs | 81 +++++++------- .../ObjectAbstractions/Map/GeoProjection.fs | 25 ++--- .../Layout/ObjectAbstractions/Map/Mapbox.fs | 37 +++---- .../ObjectAbstractions/Map/MapboxBounds.fs | 13 +-- .../ObjectAbstractions/Map/MapboxCluster.fs | 18 ++- .../ObjectAbstractions/Map/MapboxLayer.fs | 61 +++++----- .../Map/MapboxLayerSymbol.fs | 23 ++-- .../ObjectAbstractions/Polar/AngularAxis.fs | 91 ++++++++------- .../Layout/ObjectAbstractions/Polar/Polar.fs | 26 ++--- .../ObjectAbstractions/Polar/RadialAxis.fs | 104 +++++++++--------- .../ObjectAbstractions/Smith/ImaginaryAxis.fs | 49 ++++----- .../ObjectAbstractions/Smith/RealAxis.fs | 53 +++++---- .../Layout/ObjectAbstractions/Smith/Smith.fs | 10 +- .../ObjectAbstractions/Ternary/Ternary.fs | 18 ++- 18 files changed, 329 insertions(+), 360 deletions(-) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/3D/AspectRatio.fs b/src/Plotly.NET/Layout/ObjectAbstractions/3D/AspectRatio.fs index 06c9bc960..944c05037 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/3D/AspectRatio.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/3D/AspectRatio.fs @@ -26,8 +26,8 @@ type AspectRatio() = fun (aspectRatio: AspectRatio) -> - X |> DynObj.setOptionalProperty aspectRatio "x" - Y |> DynObj.setOptionalProperty aspectRatio "y" - Z |> DynObj.setOptionalProperty aspectRatio "z" - aspectRatio + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z + diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/3D/Camera.fs b/src/Plotly.NET/Layout/ObjectAbstractions/3D/Camera.fs index 497cf011e..640dad78a 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/3D/Camera.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/3D/Camera.fs @@ -26,12 +26,11 @@ type CameraCenter() = ) = fun (cameraCenter: CameraCenter) -> - - X |> DynObj.setOptionalProperty cameraCenter "x" - Y |> DynObj.setOptionalProperty cameraCenter "y" - Z |> DynObj.setOptionalProperty cameraCenter "z" - + cameraCenter + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z type CameraEye() = inherit DynamicObj() @@ -53,11 +52,10 @@ type CameraEye() = fun (cameraEye: CameraEye) -> - X |> DynObj.setOptionalProperty cameraEye "x" - Y |> DynObj.setOptionalProperty cameraEye "y" - Z |> DynObj.setOptionalProperty cameraEye "z" - cameraEye + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z type CameraUp() = inherit DynamicObj() @@ -79,11 +77,11 @@ type CameraUp() = fun (cameraUp: CameraUp) -> - X |> DynObj.setOptionalProperty cameraUp "x" - Y |> DynObj.setOptionalProperty cameraUp "y" - Z |> DynObj.setOptionalProperty cameraUp "z" - cameraUp + |> DynObj.withOptionalProperty "x" X + |> DynObj.withOptionalProperty "y" Y + |> DynObj.withOptionalProperty "z" Z + type CameraProjection() = inherit DynamicObj() @@ -95,9 +93,9 @@ type CameraProjection() = fun (cameraProjection: CameraProjection) -> - ProjectionType |> DynObj.setOptionalPropertyBy cameraProjection "type" StyleParam.CameraProjectionType.convert + cameraProjection |> DynObj.withOptionalPropertyBy "type" ProjectionType StyleParam.CameraProjectionType.convert - cameraProjection + type Camera() = inherit DynamicObj() @@ -121,9 +119,9 @@ type Camera() = fun (camera: Camera) -> - Center |> DynObj.setOptionalProperty camera "center" - Eye |> DynObj.setOptionalProperty camera "eye" - Projection |> DynObj.setOptionalProperty camera "projection" - Up |> DynObj.setOptionalProperty camera "up" - camera + |> DynObj.withOptionalProperty "center" Center + |> DynObj.withOptionalProperty "eye" Eye + |> DynObj.withOptionalProperty "projection" Projection + |> DynObj.withOptionalProperty "up" Up + diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/3D/Scene.fs b/src/Plotly.NET/Layout/ObjectAbstractions/3D/Scene.fs index 944e64e80..d4b995baf 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/3D/Scene.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/3D/Scene.fs @@ -86,22 +86,21 @@ type Scene() = [] ?YAxis: LinearAxis, [] ?ZAxis: LinearAxis ) = - (fun (scene: Scene) -> - - Annotations |> DynObj.setOptionalProperty scene "annotations" - AspectMode |> DynObj.setOptionalPropertyBy scene "aspectmode" StyleParam.AspectMode.convert - AspectRatio |> DynObj.setOptionalProperty scene "aspectratio" - BGColor |> DynObj.setOptionalProperty scene "bgcolor" - Camera |> DynObj.setOptionalProperty scene "camera" - Domain |> DynObj.setOptionalProperty scene "domain" - DragMode |> DynObj.setOptionalPropertyBy scene "dragmode" StyleParam.DragMode.convert - HoverMode |> DynObj.setOptionalPropertyBy scene "hovermode" StyleParam.HoverMode.convert - UIRevision |> DynObj.setOptionalProperty scene "uirevision" - XAxis |> DynObj.setOptionalProperty scene "xaxis" - YAxis |> DynObj.setOptionalProperty scene "yaxis" - ZAxis |> DynObj.setOptionalProperty scene "zaxis" + fun (scene: Scene) -> - scene) + scene + |> DynObj.withOptionalProperty "annotations" Annotations + |> DynObj.withOptionalPropertyBy "aspectmode" AspectMode StyleParam.AspectMode.convert + |> DynObj.withOptionalProperty "aspectratio" AspectRatio + |> DynObj.withOptionalProperty "bgcolor" BGColor + |> DynObj.withOptionalProperty "camera" Camera + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalPropertyBy "dragmode" DragMode StyleParam.DragMode.convert + |> DynObj.withOptionalPropertyBy "hovermode" HoverMode StyleParam.HoverMode.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision + |> DynObj.withOptionalProperty "xaxis" XAxis + |> DynObj.withOptionalProperty "yaxis" YAxis + |> DynObj.withOptionalProperty "zaxis" ZAxis /// /// Returns Some(dynamic member value) of the scene object's underlying DynamicObj when a dynamic member with the given name exists, and None otherwise. diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Shape.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Shape.fs index ae02631f7..0e4675b48 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Shape.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Shape.fs @@ -197,7 +197,7 @@ type Shape() = [] ?Yref: string, [] ?YSizeMode: StyleParam.ShapeSizeMode ) = - (fun (shape: Shape) -> + fun (shape: Shape) -> shape |> DynObj.withProperty "editable" Editable @@ -227,5 +227,4 @@ type Shape() = |> DynObj.withProperty "y1" Y1 |> DynObj.withOptionalPropertyBy "yanchor" YAnchor StyleParam.LinearAxisId.convert |> DynObj.withProperty "yref" Yref - |> DynObj.withOptionalPropertyBy "ysizemode" YSizeMode StyleParam.ShapeSizeMode.convert) - ) + |> DynObj.withOptionalPropertyBy "ysizemode" YSizeMode StyleParam.ShapeSizeMode.convert diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Map/Geo.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Map/Geo.fs index 3f7d0a76d..997e90dc5 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Map/Geo.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Map/Geo.fs @@ -177,46 +177,45 @@ type Geo() = [] ?LatAxis: LinearAxis, [] ?LonAxis: LinearAxis ) = - (fun (geo: Geo) -> + fun (geo: Geo) -> - Domain |> DynObj.setOptionalProperty geo "domain" - FitBounds |> DynObj.setOptionalPropertyBy geo "fitbounds" StyleParam.GeoFitBounds.convert - Resolution |> DynObj.setOptionalPropertyBy geo "resolution" StyleParam.GeoResolution.convert - Scope |> DynObj.setOptionalPropertyBy geo "scope" StyleParam.GeoScope.convert - Projection |> DynObj.setOptionalProperty geo "projection" + let center = + Center + |> Option.map (fun (lon, lat) -> + DynamicObj() + |> DynObj.withProperty "lon" lon + |> DynObj.withProperty "lat" lat + ) - Center - |> Option.map (fun (lon, lat) -> - let t = DynamicObj() - t?lon <- lon - t?lat <- lat - t) - |> DynObj.setOptionalProperty geo "center" - - Visible |> DynObj.setOptionalProperty geo "visible" - ShowCoastLines |> DynObj.setOptionalProperty geo "showcoastline" - CoastLineColor |> DynObj.setOptionalProperty geo "coastlinecolor" - CoastLineWidth |> DynObj.setOptionalProperty geo "coastlinewidth" - ShowLand |> DynObj.setOptionalProperty geo "showland" - LandColor |> DynObj.setOptionalProperty geo "landcolor" - ShowOcean |> DynObj.setOptionalProperty geo "showocean" - OceanColor |> DynObj.setOptionalProperty geo "oceancolor" - ShowLakes |> DynObj.setOptionalProperty geo "showlakes" - LakeColor |> DynObj.setOptionalProperty geo "lakecolor" - ShowRivers |> DynObj.setOptionalProperty geo "showrivers" - RiverColor |> DynObj.setOptionalProperty geo "rivercolor" - RiverWidth |> DynObj.setOptionalProperty geo "riverwidth" - ShowCountries |> DynObj.setOptionalProperty geo "showcountries" - CountryColor |> DynObj.setOptionalProperty geo "countrycolor" - CountryWidth |> DynObj.setOptionalProperty geo "countrywidth" - ShowSubunits |> DynObj.setOptionalProperty geo "showsubunits" - SubunitColor |> DynObj.setOptionalProperty geo "subunitcolor" - SubunitWidth |> DynObj.setOptionalProperty geo "subunitwidth" - ShowFrame |> DynObj.setOptionalProperty geo "showframe" - FrameColor |> DynObj.setOptionalProperty geo "framecolor" - FrameWidth |> DynObj.setOptionalProperty geo "framewidth" - BgColor |> DynObj.setOptionalProperty geo "bgcolor" - LatAxis |> DynObj.setOptionalProperty geo "lataxis" - LonAxis |> DynObj.setOptionalProperty geo "lonaxis" - - geo) + geo + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalPropertyBy "fitbounds" FitBounds StyleParam.GeoFitBounds.convert + |> DynObj.withOptionalPropertyBy "resolution" Resolution StyleParam.GeoResolution.convert + |> DynObj.withOptionalPropertyBy "scope" Scope StyleParam.GeoScope.convert + |> DynObj.withOptionalProperty "projection" Projection + |> DynObj.withOptionalProperty "center" center + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalProperty "showcoastline" ShowCoastLines + |> DynObj.withOptionalProperty "coastlinecolor" CoastLineColor + |> DynObj.withOptionalProperty "coastlinewidth" CoastLineWidth + |> DynObj.withOptionalProperty "showland" ShowLand + |> DynObj.withOptionalProperty "landcolor" LandColor + |> DynObj.withOptionalProperty "showocean" ShowOcean + |> DynObj.withOptionalProperty "oceancolor" OceanColor + |> DynObj.withOptionalProperty "showlakes" ShowLakes + |> DynObj.withOptionalProperty "lakecolor" LakeColor + |> DynObj.withOptionalProperty "showrivers" ShowRivers + |> DynObj.withOptionalProperty "rivercolor" RiverColor + |> DynObj.withOptionalProperty "riverwidth" RiverWidth + |> DynObj.withOptionalProperty "showcountries" ShowCountries + |> DynObj.withOptionalProperty "countrycolor" CountryColor + |> DynObj.withOptionalProperty "countrywidth" CountryWidth + |> DynObj.withOptionalProperty "showsubunits" ShowSubunits + |> DynObj.withOptionalProperty "subunitcolor" SubunitColor + |> DynObj.withOptionalProperty "subunitwidth" SubunitWidth + |> DynObj.withOptionalProperty "showframe" ShowFrame + |> DynObj.withOptionalProperty "framecolor" FrameColor + |> DynObj.withOptionalProperty "framewidth" FrameWidth + |> DynObj.withOptionalProperty "bgcolor" BgColor + |> DynObj.withOptionalProperty "lataxis" LatAxis + |> DynObj.withOptionalProperty "lonaxis" LonAxis diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Map/GeoProjection.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Map/GeoProjection.fs index d7ae4fd63..64b946f5a 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Map/GeoProjection.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Map/GeoProjection.fs @@ -32,12 +32,12 @@ type GeoProjectionRotation() = [] ?Latitude: float, [] ?Roll: int ) = - (fun (rotation: GeoProjectionRotation) -> - Longitude |> DynObj.setOptionalProperty rotation "lon" - Latitude |> DynObj.setOptionalProperty rotation "lat" - Roll |> DynObj.setOptionalProperty rotation "roll" + fun (rotation: GeoProjectionRotation) -> - rotation) + rotation + |> DynObj.withOptionalProperty "lon" Longitude + |> DynObj.withOptionalProperty "lat" Latitude + |> DynObj.withOptionalProperty "roll" Roll /// Determines the map projection in geo traces. type GeoProjection() = @@ -75,13 +75,10 @@ type GeoProjection() = [] ?Parallels: (float * float), [] ?Scale: float ) = - (fun (projection: GeoProjection) -> + fun (projection: GeoProjection) -> - projectionType |> StyleParam.GeoProjectionType.convert |> DynObj.withProperty projection "type" - - Parallels |> Option.map (fun (a, b) -> sprintf "[%f,%f]" a b) |> DynObj.setOptionalProperty projection "parallels" - - Rotation |> DynObj.setOptionalProperty projection "rotation" - Scale |> DynObj.setOptionalProperty projection "scale" - - projection) + projection + |> DynObj.withProperty "type" (StyleParam.GeoProjectionType.convert projectionType) + |> DynObj.withOptionalProperty "rotation" Rotation + |> DynObj.withOptionalPropertyBy "parallels" Parallels (fun (a, b) -> sprintf "[%f,%f]" a b) + |> DynObj.withOptionalProperty "scale" Scale diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Map/Mapbox.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Map/Mapbox.fs index 6189a6dae..975d613c2 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Map/Mapbox.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Map/Mapbox.fs @@ -69,24 +69,23 @@ type Mapbox() = [] ?Pitch: float, [] ?Layers: seq ) = - (fun (mapBox: Mapbox) -> + fun (mapBox: Mapbox) -> - Domain |> DynObj.setOptionalProperty mapBox "domain" - AccessToken |> DynObj.setOptionalProperty mapBox "accesstoken" - Style |> DynObj.setOptionalPropertyBy mapBox "style" StyleParam.MapboxStyle.convert - Bounds |> DynObj.setOptionalProperty mapBox "bounds" + let center = + Center + |> Option.map (fun (lon, lat) -> + DynamicObj() + |> DynObj.withProperty "lon" lon + |> DynObj.withProperty "lat" lat + ) - Center - |> Option.map (fun (lon, lat) -> - let t = DynamicObj() - t?lon <- lon - t?lat <- lat - t) - |> DynObj.setOptionalProperty mapBox "center" - - Zoom |> DynObj.setOptionalProperty mapBox "zoom" - Bearing |> DynObj.setOptionalProperty mapBox "bearing" - Pitch |> DynObj.setOptionalProperty mapBox "pitch" - Layers |> DynObj.setOptionalProperty mapBox "layers" - - mapBox) + mapBox + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalProperty "accesstoken" AccessToken + |> DynObj.withOptionalPropertyBy "style" Style StyleParam.MapboxStyle.convert + |> DynObj.withOptionalProperty "bounds" Bounds + |> DynObj.withOptionalProperty "center" center + |> DynObj.withOptionalProperty "zoom" Zoom + |> DynObj.withOptionalProperty "bearing" Bearing + |> DynObj.withOptionalProperty "pitch" Pitch + |> DynObj.withOptionalProperty "layers" Layers diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxBounds.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxBounds.fs index 2ccb35f67..383480478 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxBounds.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxBounds.fs @@ -40,11 +40,10 @@ type MapboxBounds() = [] ?South: float, [] ?West: float ) = - (fun (mapboxBounds: MapboxBounds) -> + fun (mapboxBounds: MapboxBounds) -> - East |> DynObj.setOptionalProperty mapboxBounds "east" - North |> DynObj.setOptionalProperty mapboxBounds "north" - South |> DynObj.setOptionalProperty mapboxBounds "south" - West |> DynObj.setOptionalProperty mapboxBounds "west" - - mapboxBounds) + mapboxBounds + |> DynObj.withOptionalProperty "east" East + |> DynObj.withOptionalProperty "north" North + |> DynObj.withOptionalProperty "south" South + |> DynObj.withOptionalProperty "west" West \ No newline at end of file diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxCluster.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxCluster.fs index 648765902..e390ec21a 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxCluster.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxCluster.fs @@ -67,13 +67,11 @@ type MapboxCluster() = [] ?MultiStep: seq ) = - (fun (mapboxCluster: MapboxCluster) -> - - Color |> DynObj.setOptionalProperty mapboxCluster "color" - Enabled |> DynObj.setOptionalProperty mapboxCluster "enabled" - MaxZoom |> DynObj.setOptionalProperty mapboxCluster "maxzoom" - Opacity |> DynObj.setOptionalProperty mapboxCluster "opacity" - (Size, MultiSize) |> DynObj.setOptionalSingleOrMultiProperty mapboxCluster "size" - (Step, MultiStep) |> DynObj.setOptionalSingleOrMultiProperty mapboxCluster "step" - - mapboxCluster) + fun (mapboxCluster: MapboxCluster) -> + mapboxCluster + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "enabled" Enabled + |> DynObj.withOptionalProperty "maxzoom" MaxZoom + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalSingleOrMultiProperty"size" (Size, MultiSize) + |> DynObj.withOptionalSingleOrMultiProperty"step" (Step, MultiStep) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxLayer.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxLayer.fs index 3cc4a099e..baf700109 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxLayer.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxLayer.fs @@ -75,38 +75,35 @@ type MapboxLayer() = [] ?Symbol: MapboxLayerSymbol, [] ?Name: string ) = - (fun (mapBoxLayer: MapboxLayer) -> + fun (mapBoxLayer: MapboxLayer) -> - Visible |> DynObj.setOptionalProperty mapBoxLayer "visible" - SourceType |> DynObj.setOptionalPropertyBy mapBoxLayer "sourcetype" StyleParam.MapboxLayerSourceType.convert - Source |> DynObj.setOptionalProperty mapBoxLayer "source" - SourceLayer |> DynObj.setOptionalProperty mapBoxLayer "sourcelayer" - SourceAttribution |> DynObj.setOptionalProperty mapBoxLayer "sourceattribution" - Type |> DynObj.setOptionalPropertyBy mapBoxLayer "type" StyleParam.MapboxLayerType.convert - Coordinates |> DynObj.setOptionalProperty mapBoxLayer "coordinates" - Below |> DynObj.setOptionalProperty mapBoxLayer "below" - Color |> DynObj.setOptionalProperty mapBoxLayer "color" - Opacity |> DynObj.setOptionalProperty mapBoxLayer "opacity" - MinZoom |> DynObj.setOptionalProperty mapBoxLayer "minzoom" - MaxZoom |> DynObj.setOptionalProperty mapBoxLayer "maxzoom" + let circle = + CircleRadius + |> Option.map (fun r -> + DynamicObj() |> DynObj.withProperty "radius" r + ) - CircleRadius - |> Option.map (fun r -> - let circle = DynamicObj() - circle?radius <- r - circle) - |> DynObj.setOptionalProperty mapBoxLayer "circle" + let fill = + FillOutlineColor + |> Option.map (fun c -> + DynamicObj() |> DynObj.withProperty "outlinecolor" c + ) - Line |> DynObj.setOptionalProperty mapBoxLayer "line" - - FillOutlineColor - |> Option.map (fun c -> - let fill = DynamicObj() - fill?outlinecolor <- c - fill) - |> DynObj.setOptionalProperty mapBoxLayer "fill" - - Symbol |> DynObj.setOptionalProperty mapBoxLayer "symbol" - Name |> DynObj.setOptionalProperty mapBoxLayer "name" - - mapBoxLayer) + mapBoxLayer + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalPropertyBy "sourcetype" SourceType StyleParam.MapboxLayerSourceType.convert + |> DynObj.withOptionalProperty "source" Source + |> DynObj.withOptionalProperty "sourcelayer" SourceLayer + |> DynObj.withOptionalProperty "sourceattribution" SourceAttribution + |> DynObj.withOptionalPropertyBy "type" Type StyleParam.MapboxLayerType.convert + |> DynObj.withOptionalProperty "coordinates" Coordinates + |> DynObj.withOptionalProperty "below" Below + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "minzoom" MinZoom + |> DynObj.withOptionalProperty "maxzoom" MaxZoom + |> DynObj.withOptionalProperty "circle" circle + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "fill" fill + |> DynObj.withOptionalProperty "symbol" Symbol + |> DynObj.withOptionalProperty "name" Name diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxLayerSymbol.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxLayerSymbol.fs index 0a27e0298..658424fe0 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxLayerSymbol.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Map/MapboxLayerSymbol.fs @@ -42,17 +42,12 @@ type MapboxLayerSymbol() = [] ?TextFont: Font, [] ?TextPosition: StyleParam.TextPosition ) = - (fun (mapBoxLayerSymbol: MapboxLayerSymbol) -> - - Icon |> DynObj.setOptionalProperty mapBoxLayerSymbol "icon" - IconSize |> DynObj.setOptionalProperty mapBoxLayerSymbol "iconsize" - Text |> DynObj.setOptionalProperty mapBoxLayerSymbol "text" - - Placement - |> DynObj.setOptionalPropertyBy mapBoxLayerSymbol "placement" StyleParam.MapboxLayerSymbolPlacement.convert - - TextFont |> DynObj.setOptionalProperty mapBoxLayerSymbol "textfont" - TextPosition |> DynObj.setOptionalPropertyBy mapBoxLayerSymbol "textposition" StyleParam.TextPosition.convert - - - mapBoxLayerSymbol) + fun (mapBoxLayerSymbol: MapboxLayerSymbol) -> + + mapBoxLayerSymbol + |> DynObj.withOptionalProperty "icon" Icon + |> DynObj.withOptionalProperty "iconsize" IconSize + |> DynObj.withOptionalProperty "text" Text + |> DynObj.withOptionalPropertyBy "placement" Placement StyleParam.MapboxLayerSymbolPlacement.convert + |> DynObj.withOptionalProperty "textfont" TextFont + |> DynObj.withOptionalPropertyBy "textposition" TextPosition StyleParam.TextPosition.convert diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Polar/AngularAxis.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Polar/AngularAxis.fs index 41a2f1b0b..b421523bc 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Polar/AngularAxis.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Polar/AngularAxis.fs @@ -253,50 +253,49 @@ type AngularAxis() = ) = fun (angularAxis: AngularAxis) -> - Visible |> DynObj.setOptionalProperty angularAxis "visible" - AxisType |> DynObj.setOptionalPropertyBy angularAxis "type" StyleParam.AxisType.convert - AutoTypeNumbers |> DynObj.setOptionalPropertyBy angularAxis "autotypenumbers" StyleParam.AutoTypeNumbers.convert - CategoryOrder |> DynObj.setOptionalPropertyBy angularAxis "categoryorder" StyleParam.CategoryOrder.convert - CategoryArray |> DynObj.setOptionalProperty angularAxis "categoryarray" - ThetaUnit |> DynObj.setOptionalProperty angularAxis "thetaunit" - Period |> DynObj.setOptionalProperty angularAxis "period" - Direction |> DynObj.setOptionalPropertyBy angularAxis "direction" StyleParam.Direction.convert - Rotation |> DynObj.setOptionalProperty angularAxis "rotation" - HoverFormat |> DynObj.setOptionalProperty angularAxis "hoverformat" - UIRevision |> DynObj.setOptionalProperty angularAxis "uirevision" - Color |> DynObj.setOptionalProperty angularAxis "color" - ShowLine |> DynObj.setOptionalProperty angularAxis "showline" - LineColor |> DynObj.setOptionalProperty angularAxis "linecolor" - LineWidth |> DynObj.setOptionalProperty angularAxis "linewidth" - ShowGrid |> DynObj.setOptionalProperty angularAxis "showgrid" - GridColor |> DynObj.setOptionalProperty angularAxis "gridcolor" - GridDash |> DynObj.setOptionalPropertyBy angularAxis "griddash" StyleParam.DrawingStyle.convert - GridWidth |> DynObj.setOptionalProperty angularAxis "gridwidth" - TickMode |> DynObj.setOptionalPropertyBy angularAxis "tickmode" StyleParam.TickMode.convert - NTicks |> DynObj.setOptionalProperty angularAxis "nticks" - Tick0 |> DynObj.setOptionalProperty angularAxis "tick0" - DTick |> DynObj.setOptionalProperty angularAxis "dtick" - TickVals |> DynObj.setOptionalProperty angularAxis "tickvals" - TickText |> DynObj.setOptionalProperty angularAxis "ticktext" - Ticks |> DynObj.setOptionalPropertyBy angularAxis "ticks" StyleParam.TickOptions.convert - TickLen |> DynObj.setOptionalProperty angularAxis "ticklen" - TickWidth |> DynObj.setOptionalProperty angularAxis "tickwidth" - TickColor |> DynObj.setOptionalProperty angularAxis "tickcolor" - ShowTickLabels |> DynObj.setOptionalProperty angularAxis "showticklabels" - ShowTickPrefix |> DynObj.setOptionalPropertyBy angularAxis "showtickprefix" StyleParam.ShowTickOption.convert - TickPrefix |> DynObj.setOptionalProperty angularAxis "tickprefix" - ShowTickSuffix |> DynObj.setOptionalPropertyBy angularAxis "showticksuffix" StyleParam.ShowTickOption.convert - TickSuffix |> DynObj.setOptionalProperty angularAxis "ticksuffix" - ShowExponent |> DynObj.setOptionalPropertyBy angularAxis "showexponent" StyleParam.ShowExponent.convert - ExponentFormat |> DynObj.setOptionalPropertyBy angularAxis "exponentformat" StyleParam.ExponentFormat.convert - MinExponent |> DynObj.setOptionalProperty angularAxis "minexponent" - SeparateThousands |> DynObj.setOptionalProperty angularAxis "separatethousands" - TickFont |> DynObj.setOptionalProperty angularAxis "tickfont" - TickAngle |> DynObj.setOptionalProperty angularAxis "tickangle" - TickFormat |> DynObj.setOptionalProperty angularAxis "tickformat" - TickFormatStops |> DynObj.setOptionalProperty angularAxis "tickformatstops" - TickLabelStep |> DynObj.setOptionalProperty angularAxis "ticklabelstep" - LabelAlias |> DynObj.setOptionalProperty angularAxis "labelalias" - Layer |> DynObj.setOptionalPropertyBy angularAxis "layer" StyleParam.Layer.convert - angularAxis + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalPropertyBy "type" AxisType StyleParam.AxisType.convert + |> DynObj.withOptionalPropertyBy "autotypenumbers" AutoTypeNumbers StyleParam.AutoTypeNumbers.convert + |> DynObj.withOptionalPropertyBy "categoryorder" CategoryOrder StyleParam.CategoryOrder.convert + |> DynObj.withOptionalProperty "categoryarray" CategoryArray + |> DynObj.withOptionalProperty "thetaunit" ThetaUnit + |> DynObj.withOptionalProperty "period" Period + |> DynObj.withOptionalPropertyBy "direction" Direction StyleParam.Direction.convert + |> DynObj.withOptionalProperty "rotation" Rotation + |> DynObj.withOptionalProperty "hoverformat" HoverFormat + |> DynObj.withOptionalProperty "uirevision" UIRevision + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "showline" ShowLine + |> DynObj.withOptionalProperty "linecolor" LineColor + |> DynObj.withOptionalProperty "linewidth" LineWidth + |> DynObj.withOptionalProperty "showgrid" ShowGrid + |> DynObj.withOptionalProperty "gridcolor" GridColor + |> DynObj.withOptionalPropertyBy "griddash" GridDash StyleParam.DrawingStyle.convert + |> DynObj.withOptionalProperty "gridwidth" GridWidth + |> DynObj.withOptionalPropertyBy "tickmode" TickMode StyleParam.TickMode.convert + |> DynObj.withOptionalProperty "nticks" NTicks + |> DynObj.withOptionalProperty "tick0" Tick0 + |> DynObj.withOptionalProperty "dtick" DTick + |> DynObj.withOptionalProperty "tickvals" TickVals + |> DynObj.withOptionalProperty "ticktext" TickText + |> DynObj.withOptionalPropertyBy "ticks" Ticks StyleParam.TickOptions.convert + |> DynObj.withOptionalProperty "ticklen" TickLen + |> DynObj.withOptionalProperty "tickwidth" TickWidth + |> DynObj.withOptionalProperty "tickcolor" TickColor + |> DynObj.withOptionalProperty "showticklabels" ShowTickLabels + |> DynObj.withOptionalPropertyBy "showtickprefix" ShowTickPrefix StyleParam.ShowTickOption.convert + |> DynObj.withOptionalProperty "tickprefix" TickPrefix + |> DynObj.withOptionalPropertyBy "showticksuffix" ShowTickSuffix StyleParam.ShowTickOption.convert + |> DynObj.withOptionalProperty "ticksuffix" TickSuffix + |> DynObj.withOptionalPropertyBy "showexponent" ShowExponent StyleParam.ShowExponent.convert + |> DynObj.withOptionalPropertyBy "exponentformat" ExponentFormat StyleParam.ExponentFormat.convert + |> DynObj.withOptionalProperty "minexponent" MinExponent + |> DynObj.withOptionalProperty "separatethousands" SeparateThousands + |> DynObj.withOptionalProperty "tickfont" TickFont + |> DynObj.withOptionalProperty "tickangle" TickAngle + |> DynObj.withOptionalProperty "tickformat" TickFormat + |> DynObj.withOptionalProperty "tickformatstops" TickFormatStops + |> DynObj.withOptionalProperty "ticklabelstep" TickLabelStep + |> DynObj.withOptionalProperty "labelalias" LabelAlias + |> DynObj.withOptionalPropertyBy "layer" Layer StyleParam.Layer.convert diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Polar/Polar.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Polar/Polar.fs index 0099e42b4..36bf8b523 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Polar/Polar.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Polar/Polar.fs @@ -69,20 +69,18 @@ type Polar() = [] ?BarMode: StyleParam.BarMode, [] ?BarGap: float ) = - (fun (polar: Polar) -> - - Domain |> DynObj.setOptionalProperty polar "domain" - Sector |> DynObj.setOptionalPropertyBy polar "sector" (fun (a, b) -> [| a; b |]) - Hole |> DynObj.setOptionalProperty polar "hole" - BGColor |> DynObj.setOptionalProperty polar "bgcolor" - RadialAxis |> DynObj.setOptionalProperty polar "radialaxis" - AngularAxis |> DynObj.setOptionalProperty polar "angularaxis" - GridShape |> DynObj.setOptionalPropertyBy polar "gridshape" StyleParam.PolarGridShape.convert - UIRevision |> DynObj.setOptionalProperty polar "uirevision" - BarMode |> DynObj.setOptionalPropertyBy polar "barmode" StyleParam.BarMode.convert - BarGap |> DynObj.setOptionalProperty polar "bargap" - - polar) + fun (polar: Polar) -> + polar + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalPropertyBy "sector" Sector (fun (a, b) -> [| a; b |]) + |> DynObj.withOptionalProperty "hole" Hole + |> DynObj.withOptionalProperty "bgcolor" BGColor + |> DynObj.withOptionalProperty "radialaxis" RadialAxis + |> DynObj.withOptionalProperty "angularaxis" AngularAxis + |> DynObj.withOptionalPropertyBy "gridshape" GridShape StyleParam.PolarGridShape.convert + |> DynObj.withOptionalProperty "uirevision" UIRevision + |> DynObj.withOptionalPropertyBy "barmode" BarMode StyleParam.BarMode.convert + |> DynObj.withOptionalProperty "bargap" BarGap /// /// Returns Some(dynamic member value) of the object's underlying DynamicObj when a dynamic member with the given name exists, and None otherwise. diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Polar/RadialAxis.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Polar/RadialAxis.fs index cce990fdd..78e603ca2 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Polar/RadialAxis.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Polar/RadialAxis.fs @@ -281,57 +281,55 @@ type RadialAxis() = [] ?Calendar: StyleParam.Calendar ) = fun (radialAxis: RadialAxis) -> - - Visible |> DynObj.setOptionalProperty radialAxis "visible" - AxisType |> DynObj.setOptionalPropertyBy radialAxis "type" StyleParam.AxisType.convert - AutoTypeNumbers |> DynObj.setOptionalPropertyBy radialAxis "autotypenumbers" StyleParam.AutoTypeNumbers.convert - AutoRange |> DynObj.setOptionalPropertyBy radialAxis "autorange" StyleParam.AutoRange.convert - AutoRangeOptions |> DynObj.setOptionalProperty radialAxis "autorangeoptions" - RangeMode |> DynObj.setOptionalPropertyBy radialAxis "rangemode" StyleParam.RangeMode.convert - Range |> DynObj.setOptionalPropertyBy radialAxis "range" StyleParam.Range.convert - CategoryOrder |> DynObj.setOptionalPropertyBy radialAxis "categoryorder" StyleParam.CategoryOrder.convert - CategoryArray |> DynObj.setOptionalProperty radialAxis "categoryarray" - Angle |> DynObj.setOptionalProperty radialAxis "angle" - Side |> DynObj.setOptionalPropertyBy radialAxis "side" StyleParam.Direction.convert - Title |> DynObj.setOptionalProperty radialAxis "title" - HoverFormat |> DynObj.setOptionalProperty radialAxis "hoverformat" - UIRevision |> DynObj.setOptionalProperty radialAxis "uirevision" - Color |> DynObj.setOptionalProperty radialAxis "color" - ShowLine |> DynObj.setOptionalProperty radialAxis "showline" - LineColor |> DynObj.setOptionalProperty radialAxis "linecolor" - LineWidth |> DynObj.setOptionalProperty radialAxis "linewidth" - MaxAllowed |> DynObj.setOptionalProperty radialAxis "maxallowed" - MinAllowed |> DynObj.setOptionalProperty radialAxis "minallowed" - ShowGrid |> DynObj.setOptionalProperty radialAxis "showgrid" - GridColor |> DynObj.setOptionalProperty radialAxis "gridcolor" - GridDash |> DynObj.setOptionalPropertyBy radialAxis "griddash" StyleParam.DrawingStyle.convert - GridWidth |> DynObj.setOptionalProperty radialAxis "gridwidth" - TickMode |> DynObj.setOptionalPropertyBy radialAxis "tickmode" StyleParam.TickMode.convert - NTicks |> DynObj.setOptionalProperty radialAxis "nticks" - Tick0 |> DynObj.setOptionalProperty radialAxis "tick0" - DTick |> DynObj.setOptionalProperty radialAxis "dtick" - TickVals |> DynObj.setOptionalProperty radialAxis "tickvals" - TickText |> DynObj.setOptionalProperty radialAxis "ticktext" - Ticks |> DynObj.setOptionalPropertyBy radialAxis "ticks" StyleParam.TickOptions.convert - TickLen |> DynObj.setOptionalProperty radialAxis "ticklen" - TickWidth |> DynObj.setOptionalProperty radialAxis "tickwidth" - TickColor |> DynObj.setOptionalProperty radialAxis "tickcolor" - ShowTickLabels |> DynObj.setOptionalProperty radialAxis "showticklabels" - ShowTickPrefix |> DynObj.setOptionalPropertyBy radialAxis "showtickprefix" StyleParam.ShowTickOption.convert - TickPrefix |> DynObj.setOptionalProperty radialAxis "tickprefix" - ShowTickSuffix |> DynObj.setOptionalPropertyBy radialAxis "showticksuffix" StyleParam.ShowTickOption.convert - TickSuffix |> DynObj.setOptionalProperty radialAxis "ticksuffix" - ShowExponent |> DynObj.setOptionalPropertyBy radialAxis "showexponent" StyleParam.ShowExponent.convert - ExponentFormat |> DynObj.setOptionalPropertyBy radialAxis "exponentformat" StyleParam.ExponentFormat.convert - MinExponent |> DynObj.setOptionalProperty radialAxis "minexponent" - SeparateThousands |> DynObj.setOptionalProperty radialAxis "separatethousands" - TickFont |> DynObj.setOptionalProperty radialAxis "tickfont" - TickAngle |> DynObj.setOptionalProperty radialAxis "tickangle" - TickFormat |> DynObj.setOptionalProperty radialAxis "tickformat" - TickFormatStops |> DynObj.setOptionalProperty radialAxis "tickformatstops" - LabelAlias |> DynObj.setOptionalProperty radialAxis "labelalias" - Layer |> DynObj.setOptionalPropertyBy radialAxis "layer" StyleParam.Layer.convert - TickLabelStep |> DynObj.setOptionalProperty radialAxis "ticklabelstep" - Calendar |> DynObj.setOptionalPropertyBy radialAxis "calendar" StyleParam.Calendar.convert - radialAxis + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalPropertyBy "type" AxisType StyleParam.AxisType.convert + |> DynObj.withOptionalPropertyBy "autotypenumbers" AutoTypeNumbers StyleParam.AutoTypeNumbers.convert + |> DynObj.withOptionalPropertyBy "autorange" AutoRange StyleParam.AutoRange.convert + |> DynObj.withOptionalProperty "autorangeoptions" AutoRangeOptions + |> DynObj.withOptionalPropertyBy "rangemode" RangeMode StyleParam.RangeMode.convert + |> DynObj.withOptionalPropertyBy "range" Range StyleParam.Range.convert + |> DynObj.withOptionalPropertyBy "categoryorder" CategoryOrder StyleParam.CategoryOrder.convert + |> DynObj.withOptionalProperty "categoryarray" CategoryArray + |> DynObj.withOptionalProperty "angle" Angle + |> DynObj.withOptionalPropertyBy "side" Side StyleParam.Direction.convert + |> DynObj.withOptionalProperty "title" Title + |> DynObj.withOptionalProperty "hoverformat" HoverFormat + |> DynObj.withOptionalProperty "uirevision" UIRevision + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "showline" ShowLine + |> DynObj.withOptionalProperty "linecolor" LineColor + |> DynObj.withOptionalProperty "linewidth" LineWidth + |> DynObj.withOptionalProperty "maxallowed" MaxAllowed + |> DynObj.withOptionalProperty "minallowed" MinAllowed + |> DynObj.withOptionalProperty "showgrid" ShowGrid + |> DynObj.withOptionalProperty "gridcolor" GridColor + |> DynObj.withOptionalPropertyBy "griddash" GridDash StyleParam.DrawingStyle.convert + |> DynObj.withOptionalProperty "gridwidth" GridWidth + |> DynObj.withOptionalPropertyBy "tickmode" TickMode StyleParam.TickMode.convert + |> DynObj.withOptionalProperty "nticks" NTicks + |> DynObj.withOptionalProperty "tick0" Tick0 + |> DynObj.withOptionalProperty "dtick" DTick + |> DynObj.withOptionalProperty "tickvals" TickVals + |> DynObj.withOptionalProperty "ticktext" TickText + |> DynObj.withOptionalPropertyBy "ticks" Ticks StyleParam.TickOptions.convert + |> DynObj.withOptionalProperty "ticklen" TickLen + |> DynObj.withOptionalProperty "tickwidth" TickWidth + |> DynObj.withOptionalProperty "tickcolor" TickColor + |> DynObj.withOptionalProperty "showticklabels" ShowTickLabels + |> DynObj.withOptionalPropertyBy "showtickprefix" ShowTickPrefix StyleParam.ShowTickOption.convert + |> DynObj.withOptionalProperty "tickprefix" TickPrefix + |> DynObj.withOptionalPropertyBy "showticksuffix" ShowTickSuffix StyleParam.ShowTickOption.convert + |> DynObj.withOptionalProperty "ticksuffix" TickSuffix + |> DynObj.withOptionalPropertyBy "showexponent" ShowExponent StyleParam.ShowExponent.convert + |> DynObj.withOptionalPropertyBy "exponentformat" ExponentFormat StyleParam.ExponentFormat.convert + |> DynObj.withOptionalProperty "minexponent" MinExponent + |> DynObj.withOptionalProperty "separatethousands" SeparateThousands + |> DynObj.withOptionalProperty "tickfont" TickFont + |> DynObj.withOptionalProperty "tickangle" TickAngle + |> DynObj.withOptionalProperty "tickformat" TickFormat + |> DynObj.withOptionalProperty "tickformatstops" TickFormatStops + |> DynObj.withOptionalProperty "labelalias" LabelAlias + |> DynObj.withOptionalPropertyBy "layer" Layer StyleParam.Layer.convert + |> DynObj.withOptionalProperty "ticklabelstep" TickLabelStep + |> DynObj.withOptionalPropertyBy "calendar" Calendar StyleParam.Calendar.convert diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Smith/ImaginaryAxis.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Smith/ImaginaryAxis.fs index 3f238be12..828e438d8 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Smith/ImaginaryAxis.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Smith/ImaginaryAxis.fs @@ -149,29 +149,28 @@ type ImaginaryAxis() = ) = fun (imaginaryAxis: ImaginaryAxis) -> - Color |> DynObj.setOptionalProperty imaginaryAxis "color" - GridColor |> DynObj.setOptionalProperty imaginaryAxis "gridcolor" - GridDash |> DynObj.setOptionalPropertyBy imaginaryAxis "griddash" StyleParam.DrawingStyle.convert - GridWidth |> DynObj.setOptionalProperty imaginaryAxis "gridwidth" - HoverFormat |> DynObj.setOptionalProperty imaginaryAxis "hoverformat" - LabelAlias |> DynObj.setOptionalProperty imaginaryAxis "labelalias" - Layer |> DynObj.setOptionalPropertyBy imaginaryAxis "layer" StyleParam.Layer.convert - LineColor |> DynObj.setOptionalProperty imaginaryAxis "linecolor" - LineWidth |> DynObj.setOptionalProperty imaginaryAxis "linewidth" - ShowGrid |> DynObj.setOptionalProperty imaginaryAxis "showgrid" - ShowLine |> DynObj.setOptionalProperty imaginaryAxis "showline" - ShowTickLabels |> DynObj.setOptionalProperty imaginaryAxis "showticklabels" - ShowTickSuffix |> DynObj.setOptionalPropertyBy imaginaryAxis "showticksuffix" StyleParam.ShowTickOption.convert - ShowTickPrefix |> DynObj.setOptionalPropertyBy imaginaryAxis "showtickprefix" StyleParam.ShowTickOption.convert - TickColor |> DynObj.setOptionalProperty imaginaryAxis "tickcolor" - TickFont |> DynObj.setOptionalProperty imaginaryAxis "tickfont" - TickFormat |> DynObj.setOptionalProperty imaginaryAxis "tickformat" - TickLen |> DynObj.setOptionalProperty imaginaryAxis "ticklen" - TickPrefix |> DynObj.setOptionalProperty imaginaryAxis "tickprefix" - Ticks |> DynObj.setOptionalPropertyBy imaginaryAxis "ticks" StyleParam.TickLabelPosition.convert - TickSuffix |> DynObj.setOptionalProperty imaginaryAxis "ticksuffix" - TickVals |> DynObj.setOptionalProperty imaginaryAxis "tickvals" - TickWidth |> DynObj.setOptionalProperty imaginaryAxis "tickwidth" - Visible |> DynObj.setOptionalProperty imaginaryAxis "visible" - imaginaryAxis + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "gridcolor" GridColor + |> DynObj.withOptionalPropertyBy "griddash" GridDash StyleParam.DrawingStyle.convert + |> DynObj.withOptionalProperty "gridwidth" GridWidth + |> DynObj.withOptionalProperty "hoverformat" HoverFormat + |> DynObj.withOptionalProperty "labelalias" LabelAlias + |> DynObj.withOptionalPropertyBy "layer" Layer StyleParam.Layer.convert + |> DynObj.withOptionalProperty "linecolor" LineColor + |> DynObj.withOptionalProperty "linewidth" LineWidth + |> DynObj.withOptionalProperty "showgrid" ShowGrid + |> DynObj.withOptionalProperty "showline" ShowLine + |> DynObj.withOptionalProperty "showticklabels" ShowTickLabels + |> DynObj.withOptionalPropertyBy "showticksuffix" ShowTickSuffix StyleParam.ShowTickOption.convert + |> DynObj.withOptionalPropertyBy "showtickprefix" ShowTickPrefix StyleParam.ShowTickOption.convert + |> DynObj.withOptionalProperty "tickcolor" TickColor + |> DynObj.withOptionalProperty "tickfont" TickFont + |> DynObj.withOptionalProperty "tickformat" TickFormat + |> DynObj.withOptionalProperty "ticklen" TickLen + |> DynObj.withOptionalProperty "tickprefix" TickPrefix + |> DynObj.withOptionalPropertyBy "ticks" Ticks StyleParam.TickLabelPosition.convert + |> DynObj.withOptionalProperty "ticksuffix" TickSuffix + |> DynObj.withOptionalProperty "tickvals" TickVals + |> DynObj.withOptionalProperty "tickwidth" TickWidth + |> DynObj.withOptionalProperty "visible" Visible diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Smith/RealAxis.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Smith/RealAxis.fs index 2846284c7..cbda84c34 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Smith/RealAxis.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Smith/RealAxis.fs @@ -158,31 +158,30 @@ type RealAxis() = ) = fun (realAxis: RealAxis) -> - Color |> DynObj.setOptionalProperty realAxis "color" - GridColor |> DynObj.setOptionalProperty realAxis "gridcolor" - GridDash |> DynObj.setOptionalPropertyBy realAxis "griddash" StyleParam.DrawingStyle.convert - GridWidth |> DynObj.setOptionalProperty realAxis "gridwidth" - HoverFormat |> DynObj.setOptionalProperty realAxis "hoverformat" - LabelAlias |> DynObj.setOptionalProperty realAxis "labelalias" - Layer |> DynObj.setOptionalPropertyBy realAxis "layer" StyleParam.Layer.convert - LineColor |> DynObj.setOptionalProperty realAxis "linecolor" - LineWidth |> DynObj.setOptionalProperty realAxis "linewidth" - ShowGrid |> DynObj.setOptionalProperty realAxis "showgrid" - ShowLine |> DynObj.setOptionalProperty realAxis "showline" - ShowTickLabels |> DynObj.setOptionalProperty realAxis "showticklabels" - ShowTickSuffix |> DynObj.setOptionalPropertyBy realAxis "showticksuffix" StyleParam.ShowTickOption.convert - ShowTickPrefix |> DynObj.setOptionalPropertyBy realAxis "showtickprefix" StyleParam.ShowTickOption.convert - Side |> DynObj.setOptionalPropertyBy realAxis "side" StyleParam.Side.convert - TickAngle |> DynObj.setOptionalProperty realAxis "tickangle" - TickColor |> DynObj.setOptionalProperty realAxis "tickcolor" - TickFont |> DynObj.setOptionalProperty realAxis "tickfont" - TickFormat |> DynObj.setOptionalProperty realAxis "tickformat" - TickLen |> DynObj.setOptionalProperty realAxis "ticklen" - TickPrefix |> DynObj.setOptionalProperty realAxis "tickprefix" - Ticks |> DynObj.setOptionalPropertyBy realAxis "ticks" StyleParam.TickLabelPosition.convert - TickSuffix |> DynObj.setOptionalProperty realAxis "ticksuffix" - TickVals |> DynObj.setOptionalProperty realAxis "tickvals" - TickWidth |> DynObj.setOptionalProperty realAxis "tickwidth" - Visible |> DynObj.setOptionalProperty realAxis "visible" - realAxis + |> DynObj.withOptionalProperty "color" Color + |> DynObj.withOptionalProperty "gridcolor" GridColor + |> DynObj.withOptionalPropertyBy "griddash" GridDash StyleParam.DrawingStyle.convert + |> DynObj.withOptionalProperty "gridwidth" GridWidth + |> DynObj.withOptionalProperty "hoverformat" HoverFormat + |> DynObj.withOptionalProperty "labelalias" LabelAlias + |> DynObj.withOptionalPropertyBy "layer" Layer StyleParam.Layer.convert + |> DynObj.withOptionalProperty "linecolor" LineColor + |> DynObj.withOptionalProperty "linewidth" LineWidth + |> DynObj.withOptionalProperty "showgrid" ShowGrid + |> DynObj.withOptionalProperty "showline" ShowLine + |> DynObj.withOptionalProperty "showticklabels" ShowTickLabels + |> DynObj.withOptionalPropertyBy "showticksuffix" ShowTickSuffix StyleParam.ShowTickOption.convert + |> DynObj.withOptionalPropertyBy "showtickprefix" ShowTickPrefix StyleParam.ShowTickOption.convert + |> DynObj.withOptionalPropertyBy "side" Side StyleParam.Side.convert + |> DynObj.withOptionalProperty "tickangle" TickAngle + |> DynObj.withOptionalProperty "tickcolor" TickColor + |> DynObj.withOptionalProperty "tickfont" TickFont + |> DynObj.withOptionalProperty "tickformat" TickFormat + |> DynObj.withOptionalProperty "ticklen" TickLen + |> DynObj.withOptionalProperty "tickprefix" TickPrefix + |> DynObj.withOptionalPropertyBy "ticks" Ticks StyleParam.TickLabelPosition.convert + |> DynObj.withOptionalProperty "ticksuffix" TickSuffix + |> DynObj.withOptionalProperty "tickvals" TickVals + |> DynObj.withOptionalProperty "tickwidth" TickWidth + |> DynObj.withOptionalProperty "visible" Visible diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Smith/Smith.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Smith/Smith.fs index 548ae6859..98f1e061e 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Smith/Smith.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Smith/Smith.fs @@ -47,13 +47,11 @@ type Smith() = [] ?RealAxis: RealAxis ) = fun (smith: Smith) -> - - BGColor |> DynObj.setOptionalProperty smith "bgcolor" - Domain |> DynObj.setOptionalProperty smith "domain" - ImaginaryAxis |> DynObj.setOptionalProperty smith "imaginaryaxis" - RealAxis |> DynObj.setOptionalProperty smith "realaxis" - smith + |> DynObj.withOptionalProperty "bgcolor" BGColor + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalProperty "imaginaryaxis" ImaginaryAxis + |> DynObj.withOptionalProperty "realaxis" RealAxis /// /// Returns Some(dynamic member value) of the object's underlying DynamicObj when a dynamic member with the given name exists, and None otherwise. diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Ternary/Ternary.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Ternary/Ternary.fs index 9d19dfc06..6799c2144 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Ternary/Ternary.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Ternary/Ternary.fs @@ -54,16 +54,14 @@ type Ternary() = [] ?Sum: #IConvertible, [] ?BGColor: Color ) = - (fun (ternary: Ternary) -> - - AAxis |> DynObj.setOptionalProperty ternary "aaxis" - BAxis |> DynObj.setOptionalProperty ternary "baxis" - CAxis |> DynObj.setOptionalProperty ternary "caxis" - Domain |> DynObj.setOptionalProperty ternary "domain" - Sum |> DynObj.setOptionalProperty ternary "sum" - BGColor |> DynObj.setOptionalProperty ternary "bgcolor" - - ternary) + fun (ternary: Ternary) -> + ternary + |> DynObj.withOptionalProperty "aaxis" AAxis + |> DynObj.withOptionalProperty "baxis" BAxis + |> DynObj.withOptionalProperty "caxis" CAxis + |> DynObj.withOptionalProperty "domain" Domain + |> DynObj.withOptionalProperty "sum" Sum + |> DynObj.withOptionalProperty "bgcolor" BGColor /// From 831b59d3de9c60956d793c1b9882ea26a443f02b Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Tue, 15 Oct 2024 14:42:33 +0200 Subject: [PATCH 17/36] port the rest of plotly.net core project to dynobj v4 --- .../CSharpLayer/GenericChartExtensions.fs | 8 +- src/Plotly.NET/ChartAPI/Chart.fs | 18 ++-- src/Plotly.NET/Config/Config.fs | 89 ++++++++----------- .../Config/ObjectAbstractions/Edits.fs | 21 +++-- .../ToImageButtonOptions.fs | 10 +-- src/Plotly.NET/Defaults.fs | 1 - .../DisplayOptions/DisplayOptions.fs | 59 ++++++------ src/Plotly.NET/Templates/ChartTemplates.fs | 27 +++--- src/Plotly.NET/Templates/Template.fs | 22 ++--- src/Plotly.NET/Traces/TraceMapbox.fs | 2 +- src/Plotly.NET/Traces/TraceSmith.fs | 2 +- 11 files changed, 119 insertions(+), 140 deletions(-) diff --git a/src/Plotly.NET/CSharpLayer/GenericChartExtensions.fs b/src/Plotly.NET/CSharpLayer/GenericChartExtensions.fs index e9d085d22..aadeb6dd0 100644 --- a/src/Plotly.NET/CSharpLayer/GenericChartExtensions.fs +++ b/src/Plotly.NET/CSharpLayer/GenericChartExtensions.fs @@ -426,8 +426,8 @@ module GenericChartExtensions = member this.withColorBar(colorbar: ColorBar) = this |> GenericChart.mapTrace (fun t -> - colorbar |> DynObj.withProperty t "colorbar" - t) + t |> DynObj.withProperty "colorbar" colorbar + ) [] [] @@ -913,8 +913,8 @@ module GenericChartExtensions = member this.WithTemplate(template: Template) = this |> GenericChart.mapLayout (fun l -> - template |> DynObj.withProperty l "template" - l) + l |> DynObj.withProperty "template" template + ) // TODO: Include withLegend & withLegendStyle diff --git a/src/Plotly.NET/ChartAPI/Chart.fs b/src/Plotly.NET/ChartAPI/Chart.fs index b603e28fa..dcf86e282 100644 --- a/src/Plotly.NET/ChartAPI/Chart.fs +++ b/src/Plotly.NET/ChartAPI/Chart.fs @@ -68,7 +68,7 @@ type Chart = LinearAxis.init (ShowGrid = false, ShowLine = false, ShowTickLabels = false, ZeroLine = false) let trace = Trace2D.initScatter (id) - trace.Remove("type") |> ignore + trace.RemoveProperty("type") |> ignore GenericChart.ofTraceObject false trace |> GenericChart.mapLayout (fun l -> @@ -3228,8 +3228,8 @@ type Chart = let allYAxes = Layout.getYAxes layout |> Seq.map fst // remove all axes from layout. Only cartesian axis in each dimension is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine. - allXAxes |> Seq.iter (fun propName -> layout.Remove(propName) |> ignore) - allYAxes |> Seq.iter (fun propName -> layout.Remove(propName) |> ignore) + allXAxes |> Seq.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) + allYAxes |> Seq.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) let xAnchor, yAnchor = if hasSharedAxes then @@ -3252,7 +3252,7 @@ type Chart = let allScenes = Layout.getScenes layout |> Seq.map fst // remove all scenes from layout. Only one scene is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine. - allScenes |> Seq.iter (fun propName -> layout.Remove(propName) |> ignore) + allScenes |> Seq.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) let sceneAnchor = StyleParam.SubPlotId.Scene(i + 1) @@ -3270,7 +3270,7 @@ type Chart = let allPolars = Layout.getPolars layout |> Seq.map fst // remove all polar subplots from layout. Only one polar subplot is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine. - allPolars |> Seq.iter (fun propName -> layout.Remove(propName) |> ignore) + allPolars |> Seq.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) let polarAnchor = StyleParam.SubPlotId.Polar(i + 1) @@ -3290,7 +3290,7 @@ type Chart = let allSmiths = Layout.getSmiths layout |> Seq.map fst // remove all smith subplots from layout. Only one smith subplot is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine. - allSmiths |> Seq.iter (fun propName -> layout.Remove(propName) |> ignore) + allSmiths |> Seq.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) let polarAnchor = StyleParam.SubPlotId.Smith(i + 1) @@ -3309,7 +3309,7 @@ type Chart = let allGeos = Layout.getGeos layout |> Seq.map fst // remove all geo subplots from layout. Only one geo subplot is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine. - allGeos |> Seq.iter (fun propName -> layout.Remove(propName) |> ignore) + allGeos |> Seq.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) let geoAnchor = StyleParam.SubPlotId.Geo(i + 1) @@ -3329,7 +3329,7 @@ type Chart = let allMapboxes = Layout.getMapboxes layout |> Seq.map fst // remove all mapbox subplots from layout. Only one mapbox subplot is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine. - allMapboxes |> Seq.iter (fun propName -> layout.Remove(propName) |> ignore) + allMapboxes |> Seq.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) let geoAnchor = StyleParam.SubPlotId.Geo(i + 1) @@ -3354,7 +3354,7 @@ type Chart = let allTernaries = Layout.getTernaries layout |> Seq.map fst // remove all ternary subplots from layout. Only one ternary subplot is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine. - allTernaries |> Seq.iter (fun propName -> layout.Remove(propName) |> ignore) + allTernaries |> Seq.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) let ternaryAnchor = StyleParam.SubPlotId.Ternary(i + 1) diff --git a/src/Plotly.NET/Config/Config.fs b/src/Plotly.NET/Config/Config.fs index 433a59695..43f43efae 100644 --- a/src/Plotly.NET/Config/Config.fs +++ b/src/Plotly.NET/Config/Config.fs @@ -262,57 +262,46 @@ type Config() = ) = fun (config: Config) -> - StaticPlot |> DynObj.setOptionalProperty config "staticPlot" - TypesetMath |> DynObj.setOptionalProperty config "typesetMath" - PlotlyServerUrl |> DynObj.setOptionalProperty config "plotlyServerUrl" - Editable |> DynObj.setOptionalProperty config "editable" - Edits |> DynObj.setOptionalProperty config "edits" - EditSelection |> DynObj.setOptionalProperty config "editSelection" - Autosizable |> DynObj.setOptionalProperty config "autosizable" - Responsive |> DynObj.setOptionalProperty config "responsive" - FillFrame |> DynObj.setOptionalProperty config "fillFrame" - FrameMargins |> DynObj.setOptionalProperty config "frameMargins" - ScrollZoom |> DynObj.setOptionalPropertyBy config "scrollZoom" StyleParam.ScrollZoom.convert - DoubleClick |> DynObj.setOptionalPropertyBy config "doubleClick" StyleParam.DoubleClick.convert - DoubleClickDelay |> DynObj.setOptionalProperty config "doubleClickDelay" - ShowAxisDragHandles |> DynObj.setOptionalProperty config "showAxisDragHandles" - ShowAxisRangeEntryBoxes |> DynObj.setOptionalProperty config "showAxisRangeEntryBoxes" - ShowTips |> DynObj.setOptionalProperty config "showTips" - ShowLink |> DynObj.setOptionalProperty config "showLink" - LinkText |> DynObj.setOptionalProperty config "linkText" - SendData |> DynObj.setOptionalProperty config "sendData" - ShowSources |> DynObj.setOptionalProperty config "showSources" - DisplayModeBar |> DynObj.setOptionalProperty config "displayModeBar" - ShowSendToCloud |> DynObj.setOptionalProperty config "showSendToCloud" - ShowEditInChartStudio |> DynObj.setOptionalProperty config "showEditInChartStudio" - - ModeBarButtonsToRemove - |> DynObj.setOptionalPropertyBy config "modeBarButtonsToRemove" (fun x -> - x |> Seq.map StyleParam.ModeBarButton.toString) - - ModeBarButtonsToAdd - |> DynObj.setOptionalPropertyBy config "modeBarButtonsToAdd" (fun x -> - x |> Seq.map StyleParam.ModeBarButton.toString) - - ModeBarButtons - |> DynObj.setOptionalPropertyBy config "modeBarButtons" (fun x -> - x |> Seq.map (Seq.map StyleParam.ModeBarButton.toString)) - - ToImageButtonOptions |> DynObj.setOptionalProperty config "toImageButtonOptions" - Displaylogo |> DynObj.setOptionalProperty config "displaylogo" - Watermark |> DynObj.setOptionalProperty config "watermark" - plotGlPixelRatio |> DynObj.setOptionalProperty config "plotGlPixelRatio" - SetBackground |> DynObj.setOptionalProperty config "setBackground" - TopojsonURL |> DynObj.setOptionalProperty config "topojsonURL" - MapboxAccessToken |> DynObj.setOptionalProperty config "mapboxAccessToken" - Logging |> DynObj.setOptionalProperty config "logging" - NotifyOnLogging |> DynObj.setOptionalProperty config "notifyOnLogging" - QueueLength |> DynObj.setOptionalProperty config "queueLength" - GlobalTransforms |> DynObj.setOptionalProperty config "globalTransforms" - Locale |> DynObj.setOptionalProperty config "locale" - Locales |> DynObj.setOptionalProperty config "locales" - config + |> DynObj.withOptionalProperty "staticPlot" StaticPlot + |> DynObj.withOptionalProperty "typesetMath" TypesetMath + |> DynObj.withOptionalProperty "plotlyServerUrl" PlotlyServerUrl + |> DynObj.withOptionalProperty "editable" Editable + |> DynObj.withOptionalProperty "edits" Edits + |> DynObj.withOptionalProperty "editSelection" EditSelection + |> DynObj.withOptionalProperty "autosizable" Autosizable + |> DynObj.withOptionalProperty "responsive" Responsive + |> DynObj.withOptionalProperty "fillFrame" FillFrame + |> DynObj.withOptionalProperty "frameMargins" FrameMargins + |> DynObj.withOptionalPropertyBy "scrollZoom" ScrollZoom StyleParam.ScrollZoom.convert + |> DynObj.withOptionalPropertyBy "doubleClick" DoubleClick StyleParam.DoubleClick.convert + |> DynObj.withOptionalProperty "doubleClickDelay" DoubleClickDelay + |> DynObj.withOptionalProperty "showAxisDragHandles" ShowAxisDragHandles + |> DynObj.withOptionalProperty "showAxisRangeEntryBoxes"ShowAxisRangeEntryBoxes + |> DynObj.withOptionalProperty "showTips" ShowTips + |> DynObj.withOptionalProperty "showLink" ShowLink + |> DynObj.withOptionalProperty "linkText" LinkText + |> DynObj.withOptionalProperty "sendData" SendData + |> DynObj.withOptionalProperty "showSources" ShowSources + |> DynObj.withOptionalProperty "displayModeBar" DisplayModeBar + |> DynObj.withOptionalProperty "showSendToCloud" ShowSendToCloud + |> DynObj.withOptionalProperty "showEditInChartStudio" ShowEditInChartStudio + |> DynObj.withOptionalPropertyBy "modeBarButtonsToRemove" ModeBarButtonsToRemove (fun x -> x |> Seq.map StyleParam.ModeBarButton.toString) + |> DynObj.withOptionalPropertyBy "modeBarButtonsToAdd" ModeBarButtonsToAdd (fun x -> x |> Seq.map StyleParam.ModeBarButton.toString) + |> DynObj.withOptionalPropertyBy "modeBarButtons" ModeBarButtons (fun x -> x |> Seq.map (Seq.map StyleParam.ModeBarButton.toString)) + |> DynObj.withOptionalProperty "toImageButtonOptions" ToImageButtonOptions + |> DynObj.withOptionalProperty "displaylogo" Displaylogo + |> DynObj.withOptionalProperty "watermark" Watermark + |> DynObj.withOptionalProperty "plotGlPixelRatio" plotGlPixelRatio + |> DynObj.withOptionalProperty "setBackground" SetBackground + |> DynObj.withOptionalProperty "topojsonURL" TopojsonURL + |> DynObj.withOptionalProperty "mapboxAccessToken" MapboxAccessToken + |> DynObj.withOptionalProperty "logging" Logging + |> DynObj.withOptionalProperty "notifyOnLogging" NotifyOnLogging + |> DynObj.withOptionalProperty "queueLength" QueueLength + |> DynObj.withOptionalProperty "globalTransforms" GlobalTransforms + |> DynObj.withOptionalProperty "locale" Locale + |> DynObj.withOptionalProperty "locales" Locales /// /// Combines two Config objects. diff --git a/src/Plotly.NET/Config/ObjectAbstractions/Edits.fs b/src/Plotly.NET/Config/ObjectAbstractions/Edits.fs index fa3f5ca65..ba4eb9d64 100644 --- a/src/Plotly.NET/Config/ObjectAbstractions/Edits.fs +++ b/src/Plotly.NET/Config/ObjectAbstractions/Edits.fs @@ -78,15 +78,14 @@ type Edits() = [] ?TitleText: bool ) = fun (edits: Edits) -> - AnnotationPosition |> DynObj.setOptionalProperty edits "annotationPosition" - AnnotationTail |> DynObj.setOptionalProperty edits "annotationTail" - AnnotationText |> DynObj.setOptionalProperty edits "annotationText" - AxisTitleText |> DynObj.setOptionalProperty edits "axisTitleText" - ColorbarPosition |> DynObj.setOptionalProperty edits "colorbarPosition" - ColorbarTitleText |> DynObj.setOptionalProperty edits "colorbarTitleText" - LegendPosition |> DynObj.setOptionalProperty edits "legendPosition" - LegendText |> DynObj.setOptionalProperty edits "legendText" - ShapePosition |> DynObj.setOptionalProperty edits "shapePosition" - TitleText |> DynObj.setOptionalProperty edits "titleText" - edits + |> DynObj.withOptionalProperty "annotationPosition" AnnotationPosition + |> DynObj.withOptionalProperty "annotationTail" AnnotationTail + |> DynObj.withOptionalProperty "annotationText" AnnotationText + |> DynObj.withOptionalProperty "axisTitleText" AxisTitleText + |> DynObj.withOptionalProperty "colorbarPosition" ColorbarPosition + |> DynObj.withOptionalProperty "colorbarTitleText" ColorbarTitleText + |> DynObj.withOptionalProperty "legendPosition" LegendPosition + |> DynObj.withOptionalProperty "legendText" LegendText + |> DynObj.withOptionalProperty "shapePosition" ShapePosition + |> DynObj.withOptionalProperty "titleText" TitleText diff --git a/src/Plotly.NET/Config/ObjectAbstractions/ToImageButtonOptions.fs b/src/Plotly.NET/Config/ObjectAbstractions/ToImageButtonOptions.fs index f4b97bfaf..1e15ac826 100644 --- a/src/Plotly.NET/Config/ObjectAbstractions/ToImageButtonOptions.fs +++ b/src/Plotly.NET/Config/ObjectAbstractions/ToImageButtonOptions.fs @@ -35,9 +35,9 @@ type ToImageButtonOptions() = [] ?Scale ) = fun (btnConf: ToImageButtonOptions) -> - Format |> Option.map StyleParam.ImageFormat.toString |> DynObj.setOptionalProperty btnConf "format" - Filename |> DynObj.setOptionalProperty btnConf "filename" - Width |> DynObj.setOptionalProperty btnConf "width" - Height |> DynObj.setOptionalProperty btnConf "height" - Scale |> DynObj.setOptionalProperty btnConf "scale" btnConf + |> DynObj.withOptionalPropertyBy "format" Format StyleParam.ImageFormat.toString + |> DynObj.withOptionalProperty "filename" Filename + |> DynObj.withOptionalProperty "width" Width + |> DynObj.withOptionalProperty "height" Height + |> DynObj.withOptionalProperty "scale" Scale diff --git a/src/Plotly.NET/Defaults.fs b/src/Plotly.NET/Defaults.fs index 3ee2a18e7..7bd88a9ef 100644 --- a/src/Plotly.NET/Defaults.fs +++ b/src/Plotly.NET/Defaults.fs @@ -4,7 +4,6 @@ open Plotly.NET open Plotly.NET.LayoutObjects open DynamicObj -open DynamicObj.Operators open System.Runtime.InteropServices open Giraffe.ViewEngine diff --git a/src/Plotly.NET/DisplayOptions/DisplayOptions.fs b/src/Plotly.NET/DisplayOptions/DisplayOptions.fs index 15a9fcdc9..1821fb2d4 100644 --- a/src/Plotly.NET/DisplayOptions/DisplayOptions.fs +++ b/src/Plotly.NET/DisplayOptions/DisplayOptions.fs @@ -62,17 +62,15 @@ type DisplayOptions() = [] ?ChartDescription: XmlNode list, [] ?PlotlyJSReference: PlotlyJSReference ) = - (fun (displayOpts: DisplayOptions) -> - - DocumentTitle |> DynObj.setOptionalProperty displayOpts "DocumentTitle" - DocumentCharset |> DynObj.setOptionalProperty displayOpts "DocumentCharset" - DocumentDescription |> DynObj.setOptionalProperty displayOpts "DocumentDescription" - DocumentFavicon |> DynObj.setOptionalProperty displayOpts "DocumentFavicon" - AdditionalHeadTags |> DynObj.setOptionalProperty displayOpts "AdditionalHeadTags" - ChartDescription |> DynObj.setOptionalProperty displayOpts "ChartDescription" - PlotlyJSReference |> DynObj.setOptionalProperty displayOpts "PlotlyJSReference" - - displayOpts) + fun (displayOpts: DisplayOptions) -> + displayOpts + |> DynObj.withOptionalProperty "DocumentTitle" DocumentTitle + |> DynObj.withOptionalProperty "DocumentCharset" DocumentCharset + |> DynObj.withOptionalProperty "DocumentDescription" DocumentDescription + |> DynObj.withOptionalProperty "DocumentFavicon" DocumentFavicon + |> DynObj.withOptionalProperty "AdditionalHeadTags" AdditionalHeadTags + |> DynObj.withOptionalProperty "ChartDescription" ChartDescription + |> DynObj.withOptionalProperty "PlotlyJSReference" PlotlyJSReference /// /// Returns a DisplayOptions Object with the plotly cdn set to Globals.PLOTLYJS_VERSION @@ -117,9 +115,8 @@ type DisplayOptions() = /// /// The document title to set on the given DisplayOptions object static member setDocumentTitle(documentTitle: string) = - (fun (displayOpts: DisplayOptions) -> - documentTitle |> DynObj.withProperty displayOpts "DocumentTitle" - displayOpts) + fun (displayOpts: DisplayOptions) -> + displayOpts |> DynObj.withProperty "DocumentTitle" documentTitle /// /// Returns Some document title from the given DisplayOptions object if it exists, None otherwise @@ -140,9 +137,9 @@ type DisplayOptions() = /// /// The document charset to set on the given DisplayOptions object static member setDocumentCharset(documentCharset: string) = - (fun (displayOpts: DisplayOptions) -> - documentCharset |> DynObj.withProperty displayOpts "DocumentCharset" - displayOpts) + fun (displayOpts: DisplayOptions) -> + displayOpts |> DynObj.withProperty "DocumentCharset" documentCharset + /// /// Returns Some document charset from the given DisplayOptions object if it exists, None otherwise @@ -163,9 +160,9 @@ type DisplayOptions() = /// /// The document description to set on the given DisplayOptions object static member setDocumentDescription(documentDescription: string) = - (fun (displayOpts: DisplayOptions) -> - documentDescription |> DynObj.withProperty displayOpts "DocumentDescription" - displayOpts) + fun (displayOpts: DisplayOptions) -> + displayOpts |> DynObj.withProperty "DocumentDescription" documentDescription + /// /// Returns Some document description from the given DisplayOptions object if it exists, None otherwise @@ -186,9 +183,8 @@ type DisplayOptions() = /// /// The document favicon to set on the given DisplayOptions object static member setDocumentFavicon(documentFavicon: XmlNode) = - (fun (displayOpts: DisplayOptions) -> - documentFavicon |> DynObj.withProperty displayOpts "DocumentFavicon" - displayOpts) + fun (displayOpts: DisplayOptions) -> + displayOpts |> DynObj.withProperty "DocumentFavicon" documentFavicon /// /// Returns Some document favicon from the given DisplayOptions object if it exists, None otherwise @@ -209,9 +205,9 @@ type DisplayOptions() = /// /// The additional head tags to set on the given DisplayOptions object static member setAdditionalHeadTags(additionalHeadTags: XmlNode list) = - (fun (displayOpts: DisplayOptions) -> - additionalHeadTags |> DynObj.withProperty displayOpts "AdditionalHeadTags" - displayOpts) + fun (displayOpts: DisplayOptions) -> + displayOpts |> DynObj.withProperty "AdditionalHeadTags" additionalHeadTags + /// /// Returns Some additional head tags from the given DisplayOptions object if they exist, None otherwise @@ -243,9 +239,9 @@ type DisplayOptions() = /// /// The chart chart description to set on the given DisplayOptions object static member setChartDescription(chartDescription: XmlNode list) = - (fun (displayOpts: DisplayOptions) -> - chartDescription |> DynObj.withProperty displayOpts "ChartDescription" - displayOpts) + fun (displayOpts: DisplayOptions) -> + displayOpts |> DynObj.withProperty "ChartDescription" chartDescription + /// /// Returns Some chart description from the given DisplayOptions object if it exists, None otherwise @@ -275,9 +271,8 @@ type DisplayOptions() = /// /// The reference to a plotly.js source to set on the given DisplayOptions object static member setPlotlyReference(plotlyReference: PlotlyJSReference) = - (fun (displayOpts: DisplayOptions) -> - plotlyReference |> DynObj.withProperty displayOpts "PlotlyJSReference" - displayOpts) + fun (displayOpts: DisplayOptions) -> + displayOpts |> DynObj.withProperty "PlotlyJSReference" plotlyReference /// /// Returns Some reference to a plotly.js source from the given DisplayOptions object if it exists, None otherwise diff --git a/src/Plotly.NET/Templates/ChartTemplates.fs b/src/Plotly.NET/Templates/ChartTemplates.fs index ad9d09776..9ec2bd4ab 100644 --- a/src/Plotly.NET/Templates/ChartTemplates.fs +++ b/src/Plotly.NET/Templates/ChartTemplates.fs @@ -4,7 +4,6 @@ open Plotly.NET.LayoutObjects open Plotly.NET.TraceObjects open DynamicObj -open DynamicObj.Operators open System.Runtime.InteropServices module ChartTemplates = @@ -70,7 +69,7 @@ module ChartTemplates = Template.init (defaultLayout) - let dark = + let dark : Template = let initDarkAxisTemplate () = LinearAxis.init ( @@ -94,20 +93,18 @@ module ChartTemplates = Template.init (darkLayoutTemplate) - let darkMirrored = + let darkMirrored : Template = dark |> Template.mapLayoutTemplate (fun l -> - l.TryGetTypedPropertyValue("xaxis") - |> Option.map (LinearAxis.style (Mirror = StyleParam.Mirror.AllTicks)) - |> DynObj.setOptionalProperty l "xaxis" + let x = l.TryGetTypedPropertyValue("xaxis") + let y =l.TryGetTypedPropertyValue("yaxis") - l.TryGetTypedPropertyValue("yaxis") - |> Option.map (LinearAxis.style (Mirror = StyleParam.Mirror.AllTicks)) - |> DynObj.setOptionalProperty l "yaxis" + l + |> DynObj.withOptionalPropertyBy "xaxis" x (LinearAxis.style (Mirror = StyleParam.Mirror.AllTicks)) + |> DynObj.withOptionalPropertyBy "yaxis" y (LinearAxis.style (Mirror = StyleParam.Mirror.AllTicks)) + ) - l) - - let fslab = + let fslab : Template = let initFslabAxisTemplate () = LinearAxis.init ( @@ -132,7 +129,7 @@ module ChartTemplates = Template.init (fslabLayoutTemplate) |> Template.withColorWay ColorWays.fslab - let transparent = + let transparent : Template = let initTransparentAxisTemplate () = LinearAxis.init (ShowLine = true, ZeroLine = true) @@ -146,7 +143,7 @@ module ChartTemplates = Template.init (defaultLayout) - let transparentMirrored = + let transparentMirrored : Template = let initTransparentAxisTemplate () = LinearAxis.init ( ShowLine = true, @@ -166,7 +163,7 @@ module ChartTemplates = Template.init (defaultLayout) /// the default template, as used in the python lib by default. - let plotly = + let plotly : Template = // non-standard props, may change in the future let annotationdefaults = diff --git a/src/Plotly.NET/Templates/Template.fs b/src/Plotly.NET/Templates/Template.fs index 38eca444d..c1044995e 100644 --- a/src/Plotly.NET/Templates/Template.fs +++ b/src/Plotly.NET/Templates/Template.fs @@ -17,7 +17,7 @@ type Template() = layoutTemplate: Layout, [] ?TraceTemplates: seq<#Trace> ) = - (fun (template: Template) -> + fun (template: Template) -> let traceTemplates = TraceTemplates @@ -39,26 +39,26 @@ type Template() = let tmp = DynamicObj() traceTemplates - |> Option.iter (Seq.iter (fun (id, traceTemplate) -> traceTemplate |> DynObj.withProperty tmp id)) + |> Option.iter (Seq.iter (fun (id, traceTemplate) -> tmp |> DynObj.setProperty id traceTemplate)) tmp - - layoutTemplate |> DynObj.withProperty template "layout" - traceTemplates |> DynObj.withProperty template "data" - - template) + template + |> DynObj.withProperty "layout" layoutTemplate + |> DynObj.withProperty "data" traceTemplates static member mapLayoutTemplate (styleF: Layout -> Layout) (template: Template) = - template.TryGetTypedPropertyValue("layout") |> Option.map (styleF) |> DynObj.setOptionalProperty template "layout" + let l = template.TryGetTypedPropertyValue("layout") template + |> DynObj.withOptionalPropertyBy "layout" l (styleF) static member mapTraceTemplates (styleF: #Trace[] -> #Trace[]) (template: Template) = - template.TryGetTypedPropertyValue<#Trace[]>("data") |> Option.map (styleF) |> DynObj.setOptionalProperty template "data" + let l = template.TryGetTypedPropertyValue<#Trace[]>("data") template + |> DynObj.withOptionalPropertyBy "data" l (styleF) static member withColorWay (colorway: Color) (template: Template) = template |> Template.mapLayoutTemplate (fun l -> - colorway |> DynObj.withProperty l "colorway" - l) + l |> DynObj.withProperty "colorway" colorway + ) diff --git a/src/Plotly.NET/Traces/TraceMapbox.fs b/src/Plotly.NET/Traces/TraceMapbox.fs index a792afef8..d970f6307 100644 --- a/src/Plotly.NET/Traces/TraceMapbox.fs +++ b/src/Plotly.NET/Traces/TraceMapbox.fs @@ -46,7 +46,7 @@ type TraceMapboxStyle() = static member SetMapbox([] ?MapboxId: StyleParam.SubPlotId) = fun (trace: TraceMapbox) -> - trace |> DynObj.setOptionalPropertyBy "subplot" MapboxId StyleParam.SubPlotId.toString + trace |> DynObj.withOptionalPropertyBy "subplot" MapboxId StyleParam.SubPlotId.toString /// diff --git a/src/Plotly.NET/Traces/TraceSmith.fs b/src/Plotly.NET/Traces/TraceSmith.fs index fbe98af42..6c1d53b89 100644 --- a/src/Plotly.NET/Traces/TraceSmith.fs +++ b/src/Plotly.NET/Traces/TraceSmith.fs @@ -18,7 +18,7 @@ type TraceSmithStyle() = static member SetSmith([] ?SmithId: StyleParam.SubPlotId) = fun (trace: TraceSmith) -> - trace |> DynObj.setOptionalPropertyBy "subplot" SmithId StyleParam.SubPlotId.toString + trace |> DynObj.withOptionalPropertyBy "subplot" SmithId StyleParam.SubPlotId.toString /// From bc31d9b3e7bdf7af59a0d832c8d8c2ebcf6ef0ab Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Tue, 15 Oct 2024 14:51:14 +0200 Subject: [PATCH 18/36] finish port of source code to dynobj v4 --- .../PuppeteerSharpRenderer.fs | 11 ++++---- src/Plotly.NET/ChartAPI/Chart.fs | 23 ++++++--------- src/Plotly.NET/Config/Config.fs | 2 +- src/Plotly.NET/Traces/Trace.fs | 1 + .../CoreTests/ConfigObjects/Config.fs | 12 ++++---- .../CoreTests/LayoutObjects/Layout.fs | 28 +++++++++---------- .../CSharpTests/ExtensionMethodsTests.cs | 2 +- 7 files changed, 37 insertions(+), 42 deletions(-) diff --git a/src/Plotly.NET.ImageExport/PuppeteerSharpRenderer.fs b/src/Plotly.NET.ImageExport/PuppeteerSharpRenderer.fs index 047b081c7..fedbbe8aa 100644 --- a/src/Plotly.NET.ImageExport/PuppeteerSharpRenderer.fs +++ b/src/Plotly.NET.ImageExport/PuppeteerSharpRenderer.fs @@ -31,12 +31,13 @@ type PuppeteerSharpRenderer() = gChart |> GenericChart.mapConfig (fun c -> - DynObj.SetProperty c "responsive" true - c) + c |> DynObj.withProperty "responsive" true + ) |> GenericChart.mapLayout (fun l -> - DynObj.SetProperty l "width" "100%" - DynObj.SetProperty l "height" "100%" - l) + l + |> DynObj.withProperty "width" "100%" + |> DynObj.withProperty "height" "100%" + ) |> GenericChart.toEmbeddedHTML // this should be done via regex, as this only captures the default width and height. |> fun html -> html.Replace("width: 600px; height: 600px;", "width: 100%; height: 100%;") diff --git a/src/Plotly.NET/ChartAPI/Chart.fs b/src/Plotly.NET/ChartAPI/Chart.fs index dcf86e282..c56332d01 100644 --- a/src/Plotly.NET/ChartAPI/Chart.fs +++ b/src/Plotly.NET/ChartAPI/Chart.fs @@ -1131,8 +1131,7 @@ type Chart = | StyleParam.SubPlotId.ZAxis -> scene |> Scene.getZAxis | _ -> failwith "invalid scene axis id" - let updatedAxis = - (DynObj.combine currentAxis axis) :?> LinearAxis + let updatedAxis = DynObj.combine currentAxis axis let updatedScene = scene @@ -1752,8 +1751,7 @@ type Chart = let currentAxis = polar |> Polar.getAngularAxis - let updatedAxis = - (DynObj.combine currentAxis angularAxis) :?> AngularAxis + let updatedAxis = DynObj.combine currentAxis angularAxis let updatedPolar = polar |> Polar.setAngularAxis updatedAxis @@ -1812,7 +1810,7 @@ type Chart = polar |> Polar.getRadialAxis let updatedAxis = - (DynObj.combine currentAxis radialAxis) :?> RadialAxis + DynObj.combine currentAxis radialAxis let updatedPolar = polar |> Polar.setRadialAxis updatedAxis @@ -1927,8 +1925,7 @@ type Chart = let currentAxis = smith |> Smith.getImaginaryAxis - let updatedAxis = - (DynObj.combine currentAxis imaginaryAxis) :?> ImaginaryAxis + let updatedAxis = DynObj.combine currentAxis imaginaryAxis let updatedSmith = smith |> Smith.setImaginaryAxis updatedAxis @@ -1985,8 +1982,7 @@ type Chart = if combine then let currentAxis = smith |> Smith.getRealAxis - let updatedAxis = - (DynObj.combine currentAxis realAxis) :?> RealAxis + let updatedAxis = DynObj.combine currentAxis realAxis let updatedSmith = smith |> Smith.setRealAxis updatedAxis @@ -2368,8 +2364,7 @@ type Chart = let currentAxis = ternary |> Ternary.getAAxis - let updatedAxis = - (DynObj.combine currentAxis aAxis) :?> LinearAxis + let updatedAxis = DynObj.combine currentAxis aAxis let updatedTernary = ternary |> Ternary.setAAxis updatedAxis @@ -2428,8 +2423,7 @@ type Chart = let currentAxis = ternary |> Ternary.getBAxis - let updatedAxis = - (DynObj.combine currentAxis bAxis) :?> LinearAxis + let updatedAxis = DynObj.combine currentAxis bAxis let updatedTernary = ternary |> Ternary.setBAxis updatedAxis @@ -2488,8 +2482,7 @@ type Chart = let currentAxis = ternary |> Ternary.getCAxis - let updatedAxis = - (DynObj.combine currentAxis cAxis) :?> LinearAxis + let updatedAxis = DynObj.combine currentAxis cAxis let updatedTernary = ternary |> Ternary.setCAxis updatedAxis diff --git a/src/Plotly.NET/Config/Config.fs b/src/Plotly.NET/Config/Config.fs index 43f43efae..01b2e043e 100644 --- a/src/Plotly.NET/Config/Config.fs +++ b/src/Plotly.NET/Config/Config.fs @@ -261,7 +261,7 @@ type Config() = [] ?Locales: obj ) = fun (config: Config) -> - + config |> DynObj.withOptionalProperty "staticPlot" StaticPlot |> DynObj.withOptionalProperty "typesetMath" TypesetMath diff --git a/src/Plotly.NET/Traces/Trace.fs b/src/Plotly.NET/Traces/Trace.fs index 63efe63c1..4ebca7a92 100644 --- a/src/Plotly.NET/Traces/Trace.fs +++ b/src/Plotly.NET/Traces/Trace.fs @@ -748,6 +748,7 @@ type TraceStyle() = |> DynObj.withOptionalSingleOrMultiProperty "hovertemplate" (HoverTemplate, MultiHoverTemplate) |> DynObj.withOptionalProperty "textfont" TextFont + // /// Returns a function that applies the given styles to the trace's domain object. /// diff --git a/tests/CoreTests/CoreTests/ConfigObjects/Config.fs b/tests/CoreTests/CoreTests/ConfigObjects/Config.fs index 26a6a0bf4..8ed2176b3 100644 --- a/tests/CoreTests/CoreTests/ConfigObjects/Config.fs +++ b/tests/CoreTests/CoreTests/ConfigObjects/Config.fs @@ -122,20 +122,20 @@ let ``Config API tests`` = testList "ConfigObjects.Config API" [ testCase "combine ModeBarButtonsToRemove" (fun _ -> Expect.sequenceEqual - (combined.TryGetTypedValue>("modeBarButtonsToRemove")).Value - (expectedCombined.TryGetTypedValue>("modeBarButtonsToRemove")).Value + (combined.TryGetTypedPropertyValue>("modeBarButtonsToRemove")).Value + (expectedCombined.TryGetTypedPropertyValue>("modeBarButtonsToRemove")).Value "Config.combine did not return the correct object" ) testCase "combine ModeBarButtonsToAdd" (fun _ -> Expect.sequenceEqual - (combined.TryGetTypedValue>("modeBarButtonsToAdd")).Value - (expectedCombined.TryGetTypedValue>("modeBarButtonsToAdd")).Value + (combined.TryGetTypedPropertyValue>("modeBarButtonsToAdd")).Value + (expectedCombined.TryGetTypedPropertyValue>("modeBarButtonsToAdd")).Value "Config.combine did not return the correct object" ) testCase "combine ModeBarButtons" (fun _ -> Expect.sequenceEqual - (Seq.concat (combined.TryGetTypedValue>>("modeBarButtons")).Value) - (Seq.concat (expectedCombined.TryGetTypedValue>>("modeBarButtons")).Value) + (Seq.concat (combined.TryGetTypedPropertyValue>>("modeBarButtons")).Value) + (Seq.concat (expectedCombined.TryGetTypedPropertyValue>>("modeBarButtons")).Value) "Config.combine did not return the correct object" ) ] \ No newline at end of file diff --git a/tests/CoreTests/CoreTests/LayoutObjects/Layout.fs b/tests/CoreTests/CoreTests/LayoutObjects/Layout.fs index 6d4cf0ba5..cf648f0dd 100644 --- a/tests/CoreTests/CoreTests/LayoutObjects/Layout.fs +++ b/tests/CoreTests/CoreTests/LayoutObjects/Layout.fs @@ -204,44 +204,44 @@ let ``Layout combine API tests`` = testList "LayoutObjects.Layout API" [ testCase "combine Annotations" (fun _ -> Expect.sequenceEqual - (combined.TryGetTypedValue>("annotations")).Value - (expectedCombined.TryGetTypedValue>("annotations")).Value + (combined.TryGetTypedPropertyValue>("annotations")).Value + (expectedCombined.TryGetTypedPropertyValue>("annotations")).Value "Layout.combine did not return the correct object" ) testCase "combine Shapes" (fun _ -> Expect.sequenceEqual - (combined.TryGetTypedValue>("shapes")).Value - (expectedCombined.TryGetTypedValue>("shapes")).Value + (combined.TryGetTypedPropertyValue>("shapes")).Value + (expectedCombined.TryGetTypedPropertyValue>("shapes")).Value "Layout.combine did not return the correct object" ) testCase "combine Selections" (fun _ -> Expect.sequenceEqual - (combined.TryGetTypedValue>("selections")).Value - (expectedCombined.TryGetTypedValue>("selections")).Value + (combined.TryGetTypedPropertyValue>("selections")).Value + (expectedCombined.TryGetTypedPropertyValue>("selections")).Value "Layout.combine did not return the correct object" ) testCase "combine Images" (fun _ -> Expect.sequenceEqual - (combined.TryGetTypedValue>("images")).Value - (expectedCombined.TryGetTypedValue>("images")).Value + (combined.TryGetTypedPropertyValue>("images")).Value + (expectedCombined.TryGetTypedPropertyValue>("images")).Value "Layout.combine did not return the correct object" ) testCase "combine Sliders" (fun _ -> Expect.sequenceEqual - (combined.TryGetTypedValue>("sliders")).Value - (expectedCombined.TryGetTypedValue>("sliders")).Value + (combined.TryGetTypedPropertyValue>("sliders")).Value + (expectedCombined.TryGetTypedPropertyValue>("sliders")).Value "Layout.combine did not return the correct object" ) testCase "combine HiddenLabels" (fun _ -> Expect.sequenceEqual - (combined.TryGetTypedValue>("hiddenlabels")).Value - (expectedCombined.TryGetTypedValue>("hiddenlabels")).Value + (combined.TryGetTypedPropertyValue>("hiddenlabels")).Value + (expectedCombined.TryGetTypedPropertyValue>("hiddenlabels")).Value "Layout.combine did not return the correct object" ) testCase "combine UpdateMenus" (fun _ -> Expect.sequenceEqual - (combined.TryGetTypedValue>("updatemenus")).Value - (expectedCombined.TryGetTypedValue>("updatemenus")).Value + (combined.TryGetTypedPropertyValue>("updatemenus")).Value + (expectedCombined.TryGetTypedPropertyValue>("updatemenus")).Value "Layout.combine did not return the correct object" ) ] diff --git a/tests/ExtensionLibsTests/CSharpTests/ExtensionMethodsTests.cs b/tests/ExtensionLibsTests/CSharpTests/ExtensionMethodsTests.cs index 89fbd3106..5167d6a05 100644 --- a/tests/ExtensionLibsTests/CSharpTests/ExtensionMethodsTests.cs +++ b/tests/ExtensionLibsTests/CSharpTests/ExtensionMethodsTests.cs @@ -18,7 +18,7 @@ public void CanUseCSharpExtensionMethod() .GetTraces() [0]; - Assert.Equal("Trace Name", DynamicObj.DynamicObj.GetValue(actual,"name")); + Assert.Equal("Trace Name", actual.GetPropertyValue("name")); } [Fact] From dbdf8b61931cee6b39239d8a3f45e952f4a5742c Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Wed, 16 Oct 2024 13:50:01 +0200 Subject: [PATCH 19/36] various final adjustments to source, typos, and tests --- src/Plotly.NET/ChartAPI/Chart.fs | 71 ++++++++++--------- src/Plotly.NET/Config/Config.fs | 2 +- .../DisplayOptions/DisplayOptions.fs | 2 +- src/Plotly.NET/Globals.fs | 6 +- src/Plotly.NET/Layout/Layout.fs | 36 ++++++---- .../ObjectAbstractions/Common/NewSelection.fs | 2 +- .../Layout/ObjectAbstractions/Common/Shape.fs | 40 +++++------ src/Plotly.NET/Plotly.NET.fsproj | 2 +- .../Traces/ObjectAbstractions/Dimensions.fs | 2 +- .../Traces/ObjectAbstractions/Sankey.fs | 1 + src/Plotly.NET/Traces/Trace.fs | 14 ++-- src/Plotly.NET/Traces/Trace2D.fs | 4 +- tests/Common/FSharpTestBase/TestUtils.fs | 12 ++++ .../FSharpConsole/FSharpConsole.fsproj | 1 + tests/ConsoleApps/FSharpConsole/Program.fs | 20 +----- .../FeatureAdditions/Grid_SubPlotTitles.fs | 5 +- .../CoreTests/HTMLCodegen/ChartDomain.fs | 5 +- .../CoreTests/Traces/TraceStaticMembers.fs | 2 +- 18 files changed, 121 insertions(+), 106 deletions(-) diff --git a/src/Plotly.NET/ChartAPI/Chart.fs b/src/Plotly.NET/ChartAPI/Chart.fs index c56332d01..0eef89cd0 100644 --- a/src/Plotly.NET/ChartAPI/Chart.fs +++ b/src/Plotly.NET/ChartAPI/Chart.fs @@ -1751,7 +1751,7 @@ type Chart = let currentAxis = polar |> Polar.getAngularAxis - let updatedAxis = DynObj.combine currentAxis angularAxis + let updatedAxis = DynObj.combine currentAxis angularAxis |> unbox let updatedPolar = polar |> Polar.setAngularAxis updatedAxis @@ -1810,7 +1810,7 @@ type Chart = polar |> Polar.getRadialAxis let updatedAxis = - DynObj.combine currentAxis radialAxis + DynObj.combine currentAxis radialAxis |> unbox let updatedPolar = polar |> Polar.setRadialAxis updatedAxis @@ -1925,10 +1925,10 @@ type Chart = let currentAxis = smith |> Smith.getImaginaryAxis - let updatedAxis = DynObj.combine currentAxis imaginaryAxis + let updatedAxis = DynObj.combine currentAxis imaginaryAxis |> unbox let updatedSmith = - smith |> Smith.setImaginaryAxis updatedAxis + smith |> Smith.setImaginaryAxis updatedAxis layout |> Layout.updateSmithById (id, updatedSmith) @@ -1982,10 +1982,10 @@ type Chart = if combine then let currentAxis = smith |> Smith.getRealAxis - let updatedAxis = DynObj.combine currentAxis realAxis + let updatedAxis = DynObj.combine currentAxis realAxis |> unbox let updatedSmith = - smith |> Smith.setRealAxis updatedAxis + smith |> Smith.setRealAxis updatedAxis layout |> Layout.updateSmithById (id, updatedSmith) @@ -2364,10 +2364,10 @@ type Chart = let currentAxis = ternary |> Ternary.getAAxis - let updatedAxis = DynObj.combine currentAxis aAxis + let updatedAxis = DynObj.combine currentAxis aAxis |> unbox let updatedTernary = - ternary |> Ternary.setAAxis updatedAxis + ternary |> Ternary.setAAxis updatedAxis layout |> Layout.updateTernaryById (id, updatedTernary) @@ -2423,7 +2423,7 @@ type Chart = let currentAxis = ternary |> Ternary.getBAxis - let updatedAxis = DynObj.combine currentAxis bAxis + let updatedAxis = DynObj.combine currentAxis bAxis |> unbox let updatedTernary = ternary |> Ternary.setBAxis updatedAxis @@ -2482,7 +2482,7 @@ type Chart = let currentAxis = ternary |> Ternary.getCAxis - let updatedAxis = DynObj.combine currentAxis cAxis + let updatedAxis = DynObj.combine currentAxis cAxis |> unbox let updatedTernary = ternary |> Ternary.setCAxis updatedAxis @@ -3176,8 +3176,9 @@ type Chart = calculateSubplotTitlePositions 0. 1. xGap yGap nRows nCols reversed titles - |> Seq.zip positions[0 .. (Seq.length titles) - 1] - |> Seq.map (fun (((rowIndex, colIndex), (x, y)), title) -> + |> Array.ofSeq + |> Array.zip positions[0 .. (Seq.length titles) - 1] + |> Array.map (fun (((rowIndex, colIndex), (x, y)), title) -> Annotation.init( X = x, XRef = "paper", @@ -3199,7 +3200,8 @@ type Chart = gCharts |> Seq.zip gridCoordinates - |> Seq.mapi (fun i ((rowIndex, colIndex), gChart) -> + |> Array.ofSeq + |> Array.mapi (fun i ((rowIndex, colIndex), gChart) -> let layout = gChart |> GenericChart.getLayout @@ -3217,12 +3219,12 @@ type Chart = let yAxis = layout.TryGetTypedPropertyValue "yaxis" |> Option.defaultValue (LinearAxis.init ()) - let allXAxes = Layout.getXAxes layout |> Seq.map fst - let allYAxes = Layout.getYAxes layout |> Seq.map fst + let allXAxes = Layout.getXAxes layout |> Array.map fst + let allYAxes = Layout.getYAxes layout |> Array.map fst // remove all axes from layout. Only cartesian axis in each dimension is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine. - allXAxes |> Seq.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) - allYAxes |> Seq.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) + allXAxes |> Array.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) + allYAxes |> Array.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) let xAnchor, yAnchor = if hasSharedAxes then @@ -3230,11 +3232,12 @@ type Chart = else i + 1, i + 1 - gChart - |> Chart.withAxisAnchor (xAnchor, yAnchor) // set adapted axis anchors - |> Chart.withXAxis (xAxis, (StyleParam.SubPlotId.XAxis(i + 1))) // set previous axis with adapted id (one individual axis for each subplot, whether or not they will be used later) - |> Chart.withYAxis (yAxis, (StyleParam.SubPlotId.YAxis(i + 1))) // set previous axis with adapted id (one individual axis for each subplot, whether or not they will be used later) - + let lol = + gChart + |> Chart.withAxisAnchor (xAnchor, yAnchor) // set adapted axis anchors + |> Chart.withXAxis (xAxis, (StyleParam.SubPlotId.XAxis(i + 1))) // set previous axis with adapted id (one individual axis for each subplot, whether or not they will be used later) + |> Chart.withYAxis (yAxis, (StyleParam.SubPlotId.YAxis(i + 1))) // set previous axis with adapted id (one individual axis for each subplot, whether or not they will be used later) + lol | TraceID.Cartesian3D -> let scene = @@ -3242,10 +3245,10 @@ type Chart = |> Option.defaultValue (Scene.init ()) |> Scene.style (Domain = LayoutObjects.Domain.init (Row = rowIndex - 1, Column = colIndex - 1)) - let allScenes = Layout.getScenes layout |> Seq.map fst + let allScenes = Layout.getScenes layout |> Array.map fst // remove all scenes from layout. Only one scene is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine. - allScenes |> Seq.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) + allScenes |> Array.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) let sceneAnchor = StyleParam.SubPlotId.Scene(i + 1) @@ -3260,10 +3263,10 @@ type Chart = |> Option.defaultValue (Polar.init ()) |> Polar.style (Domain = LayoutObjects.Domain.init (Row = rowIndex - 1, Column = colIndex - 1)) - let allPolars = Layout.getPolars layout |> Seq.map fst + let allPolars = Layout.getPolars layout |> Array.map fst // remove all polar subplots from layout. Only one polar subplot is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine. - allPolars |> Seq.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) + allPolars |> Array.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) let polarAnchor = StyleParam.SubPlotId.Polar(i + 1) @@ -3280,10 +3283,10 @@ type Chart = |> Option.defaultValue (Smith.init ()) |> Smith.style (Domain = LayoutObjects.Domain.init (Row = rowIndex - 1, Column = colIndex - 1)) - let allSmiths = Layout.getSmiths layout |> Seq.map fst + let allSmiths = Layout.getSmiths layout |> Array.map fst // remove all smith subplots from layout. Only one smith subplot is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine. - allSmiths |> Seq.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) + allSmiths |> Array.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) let polarAnchor = StyleParam.SubPlotId.Smith(i + 1) @@ -3299,10 +3302,10 @@ type Chart = |> Option.defaultValue (Geo.init ()) |> Geo.style (Domain = LayoutObjects.Domain.init (Row = rowIndex - 1, Column = colIndex - 1)) - let allGeos = Layout.getGeos layout |> Seq.map fst + let allGeos = Layout.getGeos layout |> Array.map fst // remove all geo subplots from layout. Only one geo subplot is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine. - allGeos |> Seq.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) + allGeos |> Array.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) let geoAnchor = StyleParam.SubPlotId.Geo(i + 1) @@ -3319,10 +3322,10 @@ type Chart = Domain = LayoutObjects.Domain.init (Row = rowIndex - 1, Column = colIndex - 1) ) - let allMapboxes = Layout.getMapboxes layout |> Seq.map fst + let allMapboxes = Layout.getMapboxes layout |> Array.map fst // remove all mapbox subplots from layout. Only one mapbox subplot is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine. - allMapboxes |> Seq.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) + allMapboxes |> Array.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) let geoAnchor = StyleParam.SubPlotId.Geo(i + 1) @@ -3344,10 +3347,10 @@ type Chart = Domain = LayoutObjects.Domain.init (Row = rowIndex - 1, Column = colIndex - 1) ) - let allTernaries = Layout.getTernaries layout |> Seq.map fst + let allTernaries = Layout.getTernaries layout |> Array.map fst // remove all ternary subplots from layout. Only one ternary subplot is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine. - allTernaries |> Seq.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) + allTernaries |> Array.iter (fun propName -> layout.RemoveProperty(propName) |> ignore) let ternaryAnchor = StyleParam.SubPlotId.Ternary(i + 1) diff --git a/src/Plotly.NET/Config/Config.fs b/src/Plotly.NET/Config/Config.fs index 01b2e043e..c6c85d149 100644 --- a/src/Plotly.NET/Config/Config.fs +++ b/src/Plotly.NET/Config/Config.fs @@ -334,7 +334,7 @@ type Config() = (second.TryGetTypedPropertyValue>>("modeBarButtons")) DynObj.combine first second - |> unbox + |> unbox |> Config.style ( ?ModeBarButtonsToRemove = (modeBarButtonsToRemove |> Option.map (Seq.map StyleParam.ModeBarButton.ofString)), ?ModeBarButtonsToAdd = (modeBarButtonsToAdd |> Option.map (Seq.map StyleParam.ModeBarButton.ofString)), diff --git a/src/Plotly.NET/DisplayOptions/DisplayOptions.fs b/src/Plotly.NET/DisplayOptions/DisplayOptions.fs index 1821fb2d4..27bf82029 100644 --- a/src/Plotly.NET/DisplayOptions/DisplayOptions.fs +++ b/src/Plotly.NET/DisplayOptions/DisplayOptions.fs @@ -107,7 +107,7 @@ type DisplayOptions() = (second.TryGetTypedPropertyValue("ChartDescription")) DynObj.combine first second - |> unbox + |> unbox |> DisplayOptions.style (?AdditionalHeadTags = additionalHeadTags, ?ChartDescription = description) /// diff --git a/src/Plotly.NET/Globals.fs b/src/Plotly.NET/Globals.fs index 86934d902..fbe2cac6e 100644 --- a/src/Plotly.NET/Globals.fs +++ b/src/Plotly.NET/Globals.fs @@ -52,11 +52,11 @@ let LOGO_BASE64 = """iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAA1VBMVEVHcEwQnv+gCXURnf+gCXURnf8Rnf+gCXURnf+gCXWgCXURnf+gCHURnf+gCXURnf+gCXURnf+gCXUwke5YVbykBXEijO+gCXURnf8Rnf8Rnf8Rnf8Rnf8Rnf+gCXWIIoygCXUohekRnf8Rnf8Qn/+gCXUQnf8SoP////8ijO+PG4agAnGQLY6gEnrP7f94yP8aof8YwP/DY6jJcrDuz+RlwP/owt0Urv8k/v4e4v9Nr9F1XaSxMoyx3/9rc7Ayq/98UZ3gr9L8+v05rv9Fv9rF5/+7T52h9OprAAAAJHRSTlMAINTUgPmA+gYGNbu7NR9PR/xP/hoh/o74f471R3x8uie60TS1lKLVAAABzUlEQVRYw83X2XKCMBQGYOyK3RdL9x0ChVCkVAHFfXn/RyphKSIBE85Mp8woV/8HOUByIgj/+mg2yb8o1s4/nZHTw2NNobmzf0HOp/d7Ys18Apzv1hHCvJICqIZA8hnAL0T5FYBXiPOrAJ+Q5HMAj5Dm8wC78JtfA1iFLK8oeYBNWM1vvQitltB4QxxCLn8gXD2/NoTjbXZhLX9ypH8c8giFvKJLiEMo5gnALlDyEcAq0PIxwCZQ8wnAItDzKbBZKObNBJDlMCFvEor5YQ8buDfUJdt3kevb1QLl+j2vb4y9OZZ8z0a251feA238uG8qZh/rkmurSLXdqjrQ62eQn5EWsaqS9Dweh3ewDOI7aHdG5ULJ8yM1WE67cQ0604FaJqx/v0leGc6x8aV94+gpWNqiTR3FrShcU68fHqYSA3J47Qwgwnsm3NxtBtR2NVA2BKcbxIC1mFUOoaSIZldzIuDyU+tkAPtjoAMcLwIV4HkVaQDXx0ABOD9HZxIYwcTRJWswQrOBxT8hpBMKIi+xWmdK4pvS4JMqfFqHLyzwpQ2+uMKXd3iDAW9x4E0WvM2DN5rwVhfebMPbffiGA77lgW+64Ns++MYTvvX9m+MHc8vmMWg2fMUAAAAASUVORK5CYII=""" /// -let internal JSON_CONFIG = +let JSON_CONFIG = JsonSerializerSettings(ReferenceLoopHandling = ReferenceLoopHandling.Serialize) /// the mathjax v2 tags to add to html docs for rendering latex -let internal MATHJAX_V2_TAGS = +let MATHJAX_V2_TAGS = [ script [ @@ -76,7 +76,7 @@ let internal MATHJAX_V2_TAGS = ] /// the mathjax v3 tags to add to html docs for rendering latex -let internal MATHJAX_V3_TAGS = +let MATHJAX_V3_TAGS = [ script [] diff --git a/src/Plotly.NET/Layout/Layout.fs b/src/Plotly.NET/Layout/Layout.fs index 4a432270d..a0ad6ac93 100644 --- a/src/Plotly.NET/Layout/Layout.fs +++ b/src/Plotly.NET/Layout/Layout.fs @@ -525,7 +525,7 @@ type Layout() = (second.TryGetTypedPropertyValue>("updatemenus")) DynObj.combine first second - |> unbox + |> unbox |> Layout.style ( ?Annotations = annotations, ?Shapes = shapes, @@ -562,7 +562,7 @@ type Layout() = | StyleParam.SubPlotId.YAxis _ -> let axis' = match Layout.tryGetLinearAxisById id layout with - | Some a -> DynObj.combine a axis + | Some a -> DynObj.combine a axis |> unbox | None -> axis layout |> DynObj.withProperty (StyleParam.SubPlotId.toString id) axis' @@ -585,7 +585,8 @@ type Layout() = /// The layout to get the x axes from static member getXAxes (layout: Layout) = layout.GetProperties(includeInstanceProperties = false) - |> Seq.choose (fun kv -> + |> Array.ofSeq + |> Array.choose (fun kv -> if StyleParam.SubPlotId.isValidXAxisId kv.Key then match layout.TryGetTypedPropertyValue(kv.Key) with | Some axis -> Some (kv.Key, axis) @@ -599,7 +600,8 @@ type Layout() = /// The layout to get the y axes from static member getYAxes (layout: Layout) = layout.GetProperties(includeInstanceProperties = false) - |> Seq.choose (fun kv -> + |> Array.ofSeq + |> Array.choose (fun kv -> if StyleParam.SubPlotId.isValidYAxisId kv.Key then match layout.TryGetTypedPropertyValue(kv.Key) with | Some axis -> Some (kv.Key, axis) @@ -661,7 +663,8 @@ type Layout() = /// The layout to get the scenes from static member getScenes (layout: Layout) = layout.GetProperties(includeInstanceProperties = false) - |> Seq.choose (fun kv -> + |> Array.ofSeq + |> Array.choose (fun kv -> if StyleParam.SubPlotId.isValidSceneId kv.Key then match layout.TryGetTypedPropertyValue(kv.Key) with | Some scene -> Some (kv.Key, scene) @@ -716,7 +719,8 @@ type Layout() = /// The layout to get the geos from static member getGeos (layout: Layout) = layout.GetProperties(includeInstanceProperties = false) - |> Seq.choose (fun kv -> + |> Array.ofSeq + |> Array.choose (fun kv -> if StyleParam.SubPlotId.isValidGeoId kv.Key then match layout.TryGetTypedPropertyValue(kv.Key) with | Some geo -> Some (kv.Key, geo) @@ -771,7 +775,8 @@ type Layout() = /// The layout to get the mapboxes from static member getMapboxes (layout: Layout) = layout.GetProperties(includeInstanceProperties = false) - |> Seq.choose (fun kv -> + |> Array.ofSeq + |> Array.choose (fun kv -> if StyleParam.SubPlotId.isValidMapboxId kv.Key then match layout.TryGetTypedPropertyValue(kv.Key) with | Some mapbox -> Some (kv.Key, mapbox) @@ -827,7 +832,8 @@ type Layout() = /// The layout to get the polars from static member getPolars (layout: Layout) = layout.GetProperties(includeInstanceProperties = false) - |> Seq.choose (fun kv -> + |> Array.ofSeq + |> Array.choose (fun kv -> if StyleParam.SubPlotId.isValidPolarId kv.Key then match layout.TryGetTypedPropertyValue(kv.Key) with | Some polar -> Some (kv.Key, polar) @@ -883,7 +889,8 @@ type Layout() = /// The layout to get the smiths from static member getSmiths (layout: Layout) = layout.GetProperties(includeInstanceProperties = false) - |> Seq.choose (fun kv -> + |> Array.ofSeq + |> Array.choose (fun kv -> if StyleParam.SubPlotId.isValidSmithId kv.Key then match layout.TryGetTypedPropertyValue(kv.Key) with | Some smith -> Some (kv.Key, smith) @@ -939,7 +946,8 @@ type Layout() = /// The layout to get the color axes from static member getColorAxes (layout: Layout) = layout.GetProperties(includeInstanceProperties = false) - |> Seq.choose (fun kv -> + |> Array.ofSeq + |> Array.choose (fun kv -> if StyleParam.SubPlotId.isValidColorAxisId kv.Key then match layout.TryGetTypedPropertyValue(kv.Key) with | Some colorAxis -> Some (kv.Key, colorAxis) @@ -995,7 +1003,8 @@ type Layout() = /// The layout to get the ternaries from static member getTernaries (layout: Layout) = layout.GetProperties(includeInstanceProperties = false) - |> Seq.choose (fun kv -> + |> Array.ofSeq + |> Array.choose (fun kv -> if StyleParam.SubPlotId.isValidTernaryId kv.Key then match layout.TryGetTypedPropertyValue(kv.Key) with | Some ternary -> Some (kv.Key, ternary) @@ -1038,7 +1047,7 @@ type Layout() = static member updateLayoutGrid(layoutGrid: LayoutGrid) = (fun (layout: Layout) -> let combined = - DynObj.combine (layout |> Layout.getLayoutGrid) layoutGrid + DynObj.combine (layout |> Layout.getLayoutGrid) layoutGrid |> unbox layout |> Layout.setLayoutGrid combined) @@ -1055,7 +1064,8 @@ type Layout() = /// The layout to get the color axes from static member getLegends (layout: Layout) = layout.GetProperties(includeInstanceProperties = false) - |> Seq.choose (fun kv -> + |> Array.ofSeq + |> Array.choose (fun kv -> if StyleParam.SubPlotId.isValidLegendId kv.Key then match layout.TryGetTypedPropertyValue(kv.Key) with | Some legend -> Some (kv.Key, legend) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewSelection.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewSelection.fs index 8ddb48c33..c3f1c19f7 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewSelection.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewSelection.fs @@ -46,5 +46,5 @@ type NewSelection() = newSelection |> DynObj.withProperty "line" line - |> DynObj.setOptionalPropertyBy "mode" Mode StyleParam.NewSelectionMode.convert + |> DynObj.withOptionalPropertyBy "mode" Mode StyleParam.NewSelectionMode.convert ) diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Shape.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Shape.fs index 0e4675b48..3c346a4d0 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Shape.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Shape.fs @@ -200,31 +200,31 @@ type Shape() = fun (shape: Shape) -> shape - |> DynObj.withProperty "editable" Editable - |> DynObj.withProperty "fillcolor" FillColor + |> DynObj.withOptionalProperty "editable" Editable + |> DynObj.withOptionalProperty "fillcolor" FillColor |> DynObj.withOptionalPropertyBy "fillrule" FillRule StyleParam.FillRule.convert - |> DynObj.withProperty "label" Label - |> DynObj.withProperty "showlegend" ShowLegend + |> DynObj.withOptionalProperty "label" Label + |> DynObj.withOptionalProperty "showlegend" ShowLegend |> DynObj.withOptionalPropertyBy "legend" Legend StyleParam.SubPlotId.convert - |> DynObj.withProperty "legendrank" LegendRank - |> DynObj.withProperty "legendgroup" LegendGroup - |> DynObj.withProperty "legendgrouptitle" LegendGroupTitle - |> DynObj.withProperty "legendwidth" LegendWidth + |> DynObj.withOptionalProperty "legendrank" LegendRank + |> DynObj.withOptionalProperty "legendgroup" LegendGroup + |> DynObj.withOptionalProperty "legendgrouptitle" LegendGroupTitle + |> DynObj.withOptionalProperty "legendwidth" LegendWidth |> DynObj.withOptionalPropertyBy "layer" Layer StyleParam.Layer.convert - |> DynObj.withProperty "line" Line - |> DynObj.withProperty "name" Name - |> DynObj.withProperty "opacity" Opacity - |> DynObj.withProperty "path" Path - |> DynObj.withProperty "templateitemname" TemplateItemName + |> DynObj.withOptionalProperty "line" Line + |> DynObj.withOptionalProperty "name" Name + |> DynObj.withOptionalProperty "opacity" Opacity + |> DynObj.withOptionalProperty "path" Path + |> DynObj.withOptionalProperty "templateitemname" TemplateItemName |> DynObj.withOptionalPropertyBy "type" ShapeType StyleParam.ShapeType.convert - |> DynObj.withProperty "visible" Visible - |> DynObj.withProperty "x0" X0 - |> DynObj.withProperty "x1" X1 + |> DynObj.withOptionalProperty "visible" Visible + |> DynObj.withOptionalProperty "x0" X0 + |> DynObj.withOptionalProperty "x1" X1 |> DynObj.withOptionalPropertyBy "xanchor" XAnchor StyleParam.LinearAxisId.convert - |> DynObj.withProperty "xref" Xref + |> DynObj.withOptionalProperty "xref" Xref |> DynObj.withOptionalPropertyBy "xsizemode" XSizeMode StyleParam.ShapeSizeMode.convert - |> DynObj.withProperty "y0" Y0 - |> DynObj.withProperty "y1" Y1 + |> DynObj.withOptionalProperty "y0" Y0 + |> DynObj.withOptionalProperty "y1" Y1 |> DynObj.withOptionalPropertyBy "yanchor" YAnchor StyleParam.LinearAxisId.convert - |> DynObj.withProperty "yref" Yref + |> DynObj.withOptionalProperty "yref" Yref |> DynObj.withOptionalPropertyBy "ysizemode" YSizeMode StyleParam.ShapeSizeMode.convert diff --git a/src/Plotly.NET/Plotly.NET.fsproj b/src/Plotly.NET/Plotly.NET.fsproj index 92720c058..4431ce9e3 100644 --- a/src/Plotly.NET/Plotly.NET.fsproj +++ b/src/Plotly.NET/Plotly.NET.fsproj @@ -168,7 +168,7 @@ - + diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Dimensions.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Dimensions.fs index 533e44832..bdb06a8fb 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Dimensions.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Dimensions.fs @@ -87,7 +87,7 @@ type Dimension() = let axis = LinearAxis.init (?AxisType = AxisType) - |> DynObj.setOptionalProperty "matches" AxisMatches + |> DynObj.withOptionalProperty "matches" AxisMatches dims |> DynObj.withOptionalProperty "label" Label diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Sankey.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Sankey.fs index ddf328563..bf3067ba1 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Sankey.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Sankey.fs @@ -186,4 +186,5 @@ type SankeyLinks() = |> DynObj.withOptionalProperty "line" Line |> DynObj.withOptionalProperty "source" Source |> DynObj.withOptionalProperty "target" Target + |> DynObj.withOptionalProperty "value" Value diff --git a/src/Plotly.NET/Traces/Trace.fs b/src/Plotly.NET/Traces/Trace.fs index 4ebca7a92..d9eb9e738 100644 --- a/src/Plotly.NET/Traces/Trace.fs +++ b/src/Plotly.NET/Traces/Trace.fs @@ -49,7 +49,7 @@ type Trace(traceTypeName: string) = static member updateMarker(marker: Marker) = (fun (trace: #Trace) -> let combined = - (DynObj.combine (trace |> Trace.getMarker) marker) + (DynObj.combine (trace |> Trace.getMarker) marker) |> unbox trace |> Trace.setMarker combined) @@ -78,7 +78,7 @@ type Trace(traceTypeName: string) = static member updateLine(line: Line) = (fun (trace: #Trace) -> let combined = - (DynObj.combine (trace |> Trace.getLine) line) + (DynObj.combine (trace |> Trace.getLine) line) |> unbox trace |> Trace.setLine combined) @@ -107,7 +107,7 @@ type Trace(traceTypeName: string) = static member updateXError(error: Error) = (fun (trace: #Trace) -> let combined = - (DynObj.combine (trace |> Trace.getXError) error) + (DynObj.combine (trace |> Trace.getXError) error) |> unbox trace |> Trace.setXError combined) @@ -136,7 +136,7 @@ type Trace(traceTypeName: string) = static member updateYError(error: Error) = (fun (trace: #Trace) -> let combined = - (DynObj.combine (trace |> Trace.getYError) error) + (DynObj.combine (trace |> Trace.getYError) error) |> unbox trace |> Trace.setYError combined) @@ -165,7 +165,7 @@ type Trace(traceTypeName: string) = static member updateZError(error: Error) = (fun (trace: #Trace) -> let combined = - (DynObj.combine (trace |> Trace.getZError) error) + (DynObj.combine (trace |> Trace.getZError) error) |> unbox trace |> Trace.setZError combined) @@ -248,7 +248,7 @@ type Trace(traceTypeName: string) = static member updateDomain(domain: Domain) = (fun (trace: #Trace) -> let combined = - (DynObj.combine (trace |> Trace.getDomain) domain) + (DynObj.combine (trace |> Trace.getDomain) domain) |> unbox trace |> Trace.setDomain combined) @@ -296,7 +296,7 @@ type Trace(traceTypeName: string) = static member updateColorBar(colorBar: ColorBar) = (fun (trace: #Trace) -> let combined = - DynObj.combine (trace |> Trace.getColorBar) colorBar + DynObj.combine (trace |> Trace.getColorBar) colorBar |> unbox trace |> Trace.setColorBar combined) diff --git a/src/Plotly.NET/Traces/Trace2D.fs b/src/Plotly.NET/Traces/Trace2D.fs index f193e02f0..aa6e7dbfe 100644 --- a/src/Plotly.NET/Traces/Trace2D.fs +++ b/src/Plotly.NET/Traces/Trace2D.fs @@ -105,8 +105,8 @@ type Trace2DStyle() = ) = fun (trace: Trace2D) -> trace - |> DynObj.withOptionalProperty "xaxis" X - |> DynObj.withOptionalProperty "yaxis" Y + |> DynObj.withOptionalPropertyBy "xaxis" X StyleParam.LinearAxisId.convert + |> DynObj.withOptionalPropertyBy "yaxis" Y StyleParam.LinearAxisId.convert /// /// Create a function that applies the styles of a scatter plot to a Trace object diff --git a/tests/Common/FSharpTestBase/TestUtils.fs b/tests/Common/FSharpTestBase/TestUtils.fs index fe10a58de..1b754de42 100644 --- a/tests/Common/FSharpTestBase/TestUtils.fs +++ b/tests/Common/FSharpTestBase/TestUtils.fs @@ -213,6 +213,18 @@ module JsonGen = let json = chart |> GenericChart.toFigureJson Expect.equal json expected $"JSON not equal to expected value." + let layoutJsonIs chart expected = + let json = + let layout = GenericChart.getLayout chart + JsonConvert.SerializeObject(layout, Globals.JSON_CONFIG) + Expect.equal json expected $"Layout JSON not equal to expected value." + + let tracesJsonIs (expectedJson: string) (chart: GenericChart) = + let json = + let traces = GenericChart.getTraces chart + JsonConvert.SerializeObject(traces, Globals.JSON_CONFIG) + Expect.equal json expectedJson $"Traces JSON not equal to expected value" + module Objects = let jsonFieldIsSetWith fieldName expected (object:#DynamicObj) = diff --git a/tests/ConsoleApps/FSharpConsole/FSharpConsole.fsproj b/tests/ConsoleApps/FSharpConsole/FSharpConsole.fsproj index 8ca3ea8e8..0e9fd6d5e 100644 --- a/tests/ConsoleApps/FSharpConsole/FSharpConsole.fsproj +++ b/tests/ConsoleApps/FSharpConsole/FSharpConsole.fsproj @@ -15,6 +15,7 @@ + diff --git a/tests/ConsoleApps/FSharpConsole/Program.fs b/tests/ConsoleApps/FSharpConsole/Program.fs index 09bf2e520..ef6f626db 100644 --- a/tests/ConsoleApps/FSharpConsole/Program.fs +++ b/tests/ConsoleApps/FSharpConsole/Program.fs @@ -11,22 +11,8 @@ open Newtonsoft.Json [] let main args = - let x = [1.; 2.; 3.; 4.; 5.; 6.; 7.; 8.; 9.; 10.; ] - let y = [2.; 1.5; 5.; 1.5; 3.; 2.5; 2.5; 1.5; 3.5; 1.] - [ - Chart.Point(x = x, y = y, UseDefaults = false) - |> Chart.withYAxisStyle("This title must") - - Chart.Line(x = x, y = y, UseDefaults = false) - |> Chart.withYAxisStyle("be set on the",ZeroLine=false) - - Chart.Spline(x = x, y = y, UseDefaults = false) - |> Chart.withYAxisStyle("respective subplots",ZeroLine=false) - ] - |> Chart.SingleStack(Pattern = StyleParam.LayoutGridPattern.Coupled) - //move xAxis to bottom and increase spacing between plots by using the withLayoutGridStyle function - |> Chart.withLayoutGridStyle(XSide=StyleParam.LayoutGridXSide.Bottom,YGap= 0.1) - |> Chart.withTitle("Hi i am the new SingleStackChart") - |> Chart.withXAxisStyle("im the shared xAxis") + + ChartDomainTestCharts.Sankey.``Styled sankey chart`` + |> Chart.show 0 \ No newline at end of file diff --git a/tests/CoreTests/CoreTests/FeatureAdditions/Grid_SubPlotTitles.fs b/tests/CoreTests/CoreTests/FeatureAdditions/Grid_SubPlotTitles.fs index bcb68542f..59619a44b 100644 --- a/tests/CoreTests/CoreTests/FeatureAdditions/Grid_SubPlotTitles.fs +++ b/tests/CoreTests/CoreTests/FeatureAdditions/Grid_SubPlotTitles.fs @@ -5,6 +5,7 @@ open Plotly.NET open Plotly.NET.LayoutObjects open Plotly.NET.TraceObjects +open TestUtils open TestUtils.HtmlCodegen open Grid_SubPlotTitles_TestCharts @@ -14,8 +15,8 @@ module ``Add logic for positioning subplot titles in LayoutGrid #388`` = let ``Add subplot titles`` = testList "FeatureAddition.Add subplot titles in LayoutGrid" [ test "cartesian 2x2 grid data" { - """var data = [{"type":"scatter","mode":"markers","x":[1],"y":[2],"marker":{},"line":{},"xaxis":"x","yaxis":"y"},{"type":"scatter","mode":"markers","x":[1],"y":[2],"marker":{},"line":{},"xaxis":"x2","yaxis":"y2"},{"type":"scatter","mode":"markers","x":[1],"y":[2],"marker":{},"line":{},"xaxis":"x3","yaxis":"y3"},{"type":"scatter","mode":"markers","x":[1],"y":[2],"marker":{},"line":{},"xaxis":"x4","yaxis":"y4"}];""" - |> chartGeneratedContains ``Add logic for positioning subplot titles in LayoutGrid #388``.``cartesian 2x2 grid with subplot titles`` + ``Add logic for positioning subplot titles in LayoutGrid #388``.``cartesian 2x2 grid with subplot titles`` + |> JsonGen.tracesJsonIs """[{"type":"scatter","mode":"markers","x":[1],"y":[2],"marker":{},"line":{},"xaxis":"x","yaxis":"y"},{"type":"scatter","mode":"markers","x":[1],"y":[2],"marker":{},"line":{},"xaxis":"x2","yaxis":"y2"},{"type":"scatter","mode":"markers","x":[1],"y":[2],"marker":{},"line":{},"xaxis":"x3","yaxis":"y3"},{"type":"scatter","mode":"markers","x":[1],"y":[2],"marker":{},"line":{},"xaxis":"x4","yaxis":"y4"}]""" } test "cartesian 2x2 grid layout" { """var layout = {"xaxis":{},"yaxis":{},"xaxis2":{},"yaxis2":{},"xaxis3":{},"yaxis3":{},"xaxis4":{},"yaxis4":{},"annotations":[{"x":0.22222222222222224,"y":1.0,"showarrow":false,"text":"1,1","xanchor":"center","xref":"paper","yanchor":"bottom","yref":"paper"},{"x":0.7777777777777778,"y":1.0,"showarrow":false,"text":"1,2","xanchor":"center","xref":"paper","yanchor":"bottom","yref":"paper"},{"x":0.22222222222222224,"y":0.4117647058823529,"showarrow":false,"text":"2,1","xanchor":"center","xref":"paper","yanchor":"bottom","yref":"paper"},{"x":0.7777777777777778,"y":0.4117647058823529,"showarrow":false,"text":"2,2","xanchor":"center","xref":"paper","yanchor":"bottom","yref":"paper"}],"grid":{"rows":2,"columns":2,"roworder":"top to bottom","pattern":"independent"}};""" diff --git a/tests/CoreTests/CoreTests/HTMLCodegen/ChartDomain.fs b/tests/CoreTests/CoreTests/HTMLCodegen/ChartDomain.fs index 27a5ee801..61c1a03b7 100644 --- a/tests/CoreTests/CoreTests/HTMLCodegen/ChartDomain.fs +++ b/tests/CoreTests/CoreTests/HTMLCodegen/ChartDomain.fs @@ -6,6 +6,7 @@ open Plotly.NET.LayoutObjects open Plotly.NET.TraceObjects +open TestUtils open TestUtils.HtmlCodegen open ChartDomainTestCharts @@ -155,8 +156,8 @@ module Sankey = testList "HTMLCodegen.ChartDomain" [ testList "Sankey" [ testCase "Sankey data" ( fun () -> - """var data = [{"type":"sankey","node":{"label":["A1","A2","B1","B2","C1","C2","D1"],"line":{"color":"rgba(0, 0, 0, 1.0)","width":1.0}},"link":{"color":["rgba(130, 139, 251, 1.0)","rgba(130, 139, 251, 1.0)","rgba(242, 119, 98, 1.0)","rgba(51, 214, 171, 1.0)","rgba(188, 130, 251, 1.0)","rgba(188, 130, 251, 1.0)","rgba(255, 180, 123, 1.0)","rgba(71, 220, 245, 1.0)"],"line":{"color":"rgba(0, 0, 0, 1.0)","width":1.0},"source":[0,0,1,2,3,3,4,5],"target":[2,3,3,4,4,5,6,6],"value":[8,4,2,7,3,2,5,2]}}];""" - |> chartGeneratedContains Sankey.``Styled sankey chart`` + Sankey.``Styled sankey chart`` + |> JsonGen.tracesJsonIs """[{"type":"sankey","node":{"label":["A1","A2","B1","B2","C1","C2","D1"],"line":{"color":"rgba(0, 0, 0, 1.0)","width":1.0}},"link":{"color":["rgba(130, 139, 251, 1.0)","rgba(130, 139, 251, 1.0)","rgba(242, 119, 98, 1.0)","rgba(51, 214, 171, 1.0)","rgba(188, 130, 251, 1.0)","rgba(188, 130, 251, 1.0)","rgba(255, 180, 123, 1.0)","rgba(71, 220, 245, 1.0)"],"line":{"color":"rgba(0, 0, 0, 1.0)","width":1.0},"source":[0,0,1,2,3,3,4,5],"target":[2,3,3,4,4,5,6,6],"value":[8,4,2,7,3,2,5,2]}}]""" ) testCase "Sankey layout" ( fun () -> emptyLayout Sankey.``Styled sankey chart`` diff --git a/tests/CoreTests/CoreTests/Traces/TraceStaticMembers.fs b/tests/CoreTests/CoreTests/Traces/TraceStaticMembers.fs index 2693b4c20..fbc0b9756 100644 --- a/tests/CoreTests/CoreTests/Traces/TraceStaticMembers.fs +++ b/tests/CoreTests/CoreTests/Traces/TraceStaticMembers.fs @@ -87,7 +87,7 @@ let ``TraceStyle tests`` = ) let colorAxisAnchor = StyleParam.SubPlotId.ColorAxis 69 - let colorAxisAnchorTrace = Trace2D.initScatter(Trace2DStyle.Heatmap(ColorAxis = colorAxisAnchor)) + let colorAxisAnchorTrace = Trace2D.initHeatmap(Trace2DStyle.Heatmap(ColorAxis = colorAxisAnchor)) testCase "getColorAxisAnchor" (fun _ -> Expect.equal From 35f08971d9917f54f8fca028aa3db8e945ea242c Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Thu, 17 Oct 2024 09:02:34 +0200 Subject: [PATCH 20/36] #457: Remove C# interop from core library --- Plotly.NET.sln | 9 - build/ProjectInfo.fs | 2 - src/Plotly.NET.CSharp/ChartAPI/Chart3D.cs | 72 +- .../CSharpLayer/GenericChartExtensions.fs | 1044 ------ src/Plotly.NET/ChartAPI/Chart.fs | 1140 +++---- src/Plotly.NET/ChartAPI/Chart2D.fs | 2864 ++++++++--------- src/Plotly.NET/ChartAPI/Chart3D.fs | 688 ++-- src/Plotly.NET/ChartAPI/ChartCarpet.fs | 512 +-- src/Plotly.NET/ChartAPI/ChartDomain.fs | 902 +++--- src/Plotly.NET/ChartAPI/ChartMap.fs | 934 +++--- src/Plotly.NET/ChartAPI/ChartPolar.fs | 460 +-- src/Plotly.NET/ChartAPI/ChartSmith.fs | 320 +- src/Plotly.NET/ChartAPI/ChartTernary.fs | 340 +- .../CommonAbstractions/AutoRangeOptions.fs | 20 +- src/Plotly.NET/CommonAbstractions/ColorBar.fs | 184 +- src/Plotly.NET/CommonAbstractions/Font.fs | 12 +- src/Plotly.NET/CommonAbstractions/Line.fs | 80 +- src/Plotly.NET/CommonAbstractions/Padding.fs | 16 +- .../CommonAbstractions/TickFormatStop.fs | 20 +- src/Plotly.NET/CommonAbstractions/Title.fs | 48 +- src/Plotly.NET/Config/Config.fs | 156 +- .../Config/ObjectAbstractions/Edits.fs | 40 +- .../ToImageButtonOptions.fs | 20 +- .../DisplayOptions/DisplayOptions.fs | 28 +- src/Plotly.NET/Layout/Layout.fs | 296 +- .../ObjectAbstractions/3D/AspectRatio.fs | 12 +- .../Layout/ObjectAbstractions/3D/Camera.fs | 56 +- .../Layout/ObjectAbstractions/3D/Scene.fs | 48 +- .../Common/ActiveSelection.fs | 8 +- .../ObjectAbstractions/Common/ActiveShape.fs | 8 +- .../ObjectAbstractions/Common/Annotation.fs | 168 +- .../ObjectAbstractions/Common/Button.fs | 28 +- .../ObjectAbstractions/Common/ColorAxis.fs | 36 +- .../Common/DefaultColorScales.fs | 12 +- .../ObjectAbstractions/Common/Domain.fs | 16 +- .../ObjectAbstractions/Common/Hoverlabel.fs | 24 +- .../ObjectAbstractions/Common/LayoutGrid.fs | 48 +- .../ObjectAbstractions/Common/LayoutImage.fs | 60 +- .../ObjectAbstractions/Common/Legend.fs | 100 +- .../ObjectAbstractions/Common/LinearAxis.fs | 700 ++-- .../ObjectAbstractions/Common/Margin.fs | 24 +- .../Layout/ObjectAbstractions/Common/Minor.fs | 52 +- .../ObjectAbstractions/Common/ModeBar.fs | 28 +- .../ObjectAbstractions/Common/NewSelection.fs | 16 +- .../ObjectAbstractions/Common/NewShape.fs | 56 +- .../Common/RangeSelector.fs | 44 +- .../ObjectAbstractions/Common/RangeSlider.fs | 36 +- .../ObjectAbstractions/Common/Rangebreak.fs | 28 +- .../ObjectAbstractions/Common/Selection.fs | 48 +- .../Layout/ObjectAbstractions/Common/Shape.fs | 112 +- .../ObjectAbstractions/Common/ShapeLabel.fs | 32 +- .../ObjectAbstractions/Common/Transition.fs | 12 +- .../ObjectAbstractions/Common/UniformText.fs | 8 +- .../ObjectAbstractions/Common/UpdateMenu.fs | 96 +- .../Layout/ObjectAbstractions/Map/Geo.fs | 124 +- .../ObjectAbstractions/Map/GeoProjection.fs | 24 +- .../Layout/ObjectAbstractions/Map/Mapbox.fs | 36 +- .../ObjectAbstractions/Map/MapboxBounds.fs | 16 +- .../ObjectAbstractions/Map/MapboxCluster.fs | 32 +- .../ObjectAbstractions/Map/MapboxLayer.fs | 68 +- .../Map/MapboxLayerSymbol.fs | 24 +- .../ObjectAbstractions/Polar/AngularAxis.fs | 180 +- .../Layout/ObjectAbstractions/Polar/Polar.fs | 36 +- .../ObjectAbstractions/Polar/RadialAxis.fs | 204 +- .../ObjectAbstractions/Smith/ImaginaryAxis.fs | 96 +- .../ObjectAbstractions/Smith/RealAxis.fs | 104 +- .../Layout/ObjectAbstractions/Smith/Smith.fs | 16 +- .../ObjectAbstractions/Ternary/Ternary.fs | 24 +- src/Plotly.NET/Plotly.NET.fsproj | 1 - src/Plotly.NET/Templates/Template.fs | 4 +- .../Traces/ObjectAbstractions/Bins.fs | 12 +- .../Traces/ObjectAbstractions/Box.fs | 20 +- .../Traces/ObjectAbstractions/Caps.fs | 20 +- .../Traces/ObjectAbstractions/Contours.fs | 156 +- .../Traces/ObjectAbstractions/Cumulative.fs | 12 +- .../Traces/ObjectAbstractions/Dimensions.fs | 62 +- .../Traces/ObjectAbstractions/Error.fs | 52 +- .../ObjectAbstractions/FinanceMarker.fs | 16 +- .../ObjectAbstractions/FunnelConnector.fs | 12 +- .../Traces/ObjectAbstractions/Gradient.fs | 12 +- .../Traces/ObjectAbstractions/Icicle.fs | 20 +- .../Traces/ObjectAbstractions/Indicator.fs | 140 +- .../Traces/ObjectAbstractions/Lighting.fs | 40 +- .../Traces/ObjectAbstractions/Marker.fs | 136 +- .../Traces/ObjectAbstractions/MeanLine.fs | 12 +- .../Traces/ObjectAbstractions/Pathbar.fs | 20 +- .../Traces/ObjectAbstractions/Pattern.fs | 36 +- .../Traces/ObjectAbstractions/Projection.fs | 24 +- .../Traces/ObjectAbstractions/Sankey.fs | 128 +- .../Traces/ObjectAbstractions/Slices.fs | 24 +- .../Traces/ObjectAbstractions/SpaceFrame.fs | 8 +- .../ObjectAbstractions/SplomDiagonal.fs | 4 +- .../ObjectAbstractions/StreamTubeStarts.fs | 12 +- .../Traces/ObjectAbstractions/Sunburst.fs | 8 +- .../Traces/ObjectAbstractions/Surface.fs | 16 +- .../Traces/ObjectAbstractions/Table.fs | 52 +- .../ObjectAbstractions/TraceSelection.fs | 36 +- .../Traces/ObjectAbstractions/Treemap.fs | 24 +- .../ObjectAbstractions/WaterfallConnector.fs | 12 +- src/Plotly.NET/Traces/Trace.fs | 236 +- src/Plotly.NET/Traces/Trace2D.fs | 1640 +++++----- src/Plotly.NET/Traces/Trace3D.fs | 686 ++-- src/Plotly.NET/Traces/TraceCarpet.fs | 234 +- src/Plotly.NET/Traces/TraceDomain.fs | 596 ++-- src/Plotly.NET/Traces/TraceGeo.fs | 162 +- src/Plotly.NET/Traces/TraceMapbox.fs | 232 +- src/Plotly.NET/Traces/TracePolar.fs | 164 +- src/Plotly.NET/Traces/TraceSmith.fs | 80 +- src/Plotly.NET/Traces/TraceTernary.fs | 84 +- .../APITest/Chart2DAPITest.cs | 34 - .../APITest/Chart3DAPITest.cs | 20 - .../APITest/ChartDomainAPITest.cs | 20 - .../APITest/ChartMapAPITest.cs | 22 - .../APITest/ChartPolarAPITest.cs | 22 - .../CSharpInteroperabilityTests.csproj | 25 - .../LayoutObjectTests.cs | 23 - .../StyleParamTests.cs | 23 - .../TraceObjectTests.cs | 11 - 118 files changed, 8679 insertions(+), 9873 deletions(-) delete mode 100644 src/Plotly.NET/CSharpLayer/GenericChartExtensions.fs delete mode 100644 tests/CoreTests/CSharpInteroperabilityTests/APITest/Chart2DAPITest.cs delete mode 100644 tests/CoreTests/CSharpInteroperabilityTests/APITest/Chart3DAPITest.cs delete mode 100644 tests/CoreTests/CSharpInteroperabilityTests/APITest/ChartDomainAPITest.cs delete mode 100644 tests/CoreTests/CSharpInteroperabilityTests/APITest/ChartMapAPITest.cs delete mode 100644 tests/CoreTests/CSharpInteroperabilityTests/APITest/ChartPolarAPITest.cs delete mode 100644 tests/CoreTests/CSharpInteroperabilityTests/CSharpInteroperabilityTests.csproj delete mode 100644 tests/CoreTests/CSharpInteroperabilityTests/LayoutObjectTests.cs delete mode 100644 tests/CoreTests/CSharpInteroperabilityTests/StyleParamTests.cs delete mode 100644 tests/CoreTests/CSharpInteroperabilityTests/TraceObjectTests.cs diff --git a/Plotly.NET.sln b/Plotly.NET.sln index 4b4a91931..df437dbcd 100644 --- a/Plotly.NET.sln +++ b/Plotly.NET.sln @@ -86,8 +86,6 @@ Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "FSharpConsole", "tests\Cons EndProject Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "CoreTests", "tests\CoreTests\CoreTests\CoreTests.fsproj", "{DA7BC908-7DC9-4BA7-8100-17D3FD2901EA}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CSharpInteroperabilityTests", "tests\CoreTests\CSharpInteroperabilityTests\CSharpInteroperabilityTests.csproj", "{C10C0225-FBBA-4E3C-99FD-FA4A2BCBB3B1}" -EndProject Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "StrongNameTests", "tests\CoreTests\StrongNameTests\StrongNameTests.fsproj", "{32E187BB-D1D4-4864-A021-55A7A08E17EC}" EndProject Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "ImageExportTests", "tests\ExtensionLibsTests\ImageExportTests\ImageExportTests.fsproj", "{A3693DD1-4D34-4B10-B310-07A4C7433F7D}" @@ -288,12 +286,6 @@ Global {DA7BC908-7DC9-4BA7-8100-17D3FD2901EA}.Dotnet|Any CPU.Build.0 = Debug|Any CPU {DA7BC908-7DC9-4BA7-8100-17D3FD2901EA}.Release|Any CPU.ActiveCfg = Release|Any CPU {DA7BC908-7DC9-4BA7-8100-17D3FD2901EA}.Release|Any CPU.Build.0 = Release|Any CPU - {C10C0225-FBBA-4E3C-99FD-FA4A2BCBB3B1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C10C0225-FBBA-4E3C-99FD-FA4A2BCBB3B1}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C10C0225-FBBA-4E3C-99FD-FA4A2BCBB3B1}.Dotnet|Any CPU.ActiveCfg = Debug|Any CPU - {C10C0225-FBBA-4E3C-99FD-FA4A2BCBB3B1}.Dotnet|Any CPU.Build.0 = Debug|Any CPU - {C10C0225-FBBA-4E3C-99FD-FA4A2BCBB3B1}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C10C0225-FBBA-4E3C-99FD-FA4A2BCBB3B1}.Release|Any CPU.Build.0 = Release|Any CPU {32E187BB-D1D4-4864-A021-55A7A08E17EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {32E187BB-D1D4-4864-A021-55A7A08E17EC}.Debug|Any CPU.Build.0 = Debug|Any CPU {32E187BB-D1D4-4864-A021-55A7A08E17EC}.Dotnet|Any CPU.ActiveCfg = Debug|Any CPU @@ -344,7 +336,6 @@ Global {029EBCB4-0E8B-40F8-B7AA-61B814FAE5A6} = {E8897848-2EF4-4126-9315-ADE0BA92D951} {598AB47B-EFE7-414A-B6EA-8C96B4AA7A4C} = {E8897848-2EF4-4126-9315-ADE0BA92D951} {DA7BC908-7DC9-4BA7-8100-17D3FD2901EA} = {023425D8-B375-45ED-A29A-A3ED00C0E2BC} - {C10C0225-FBBA-4E3C-99FD-FA4A2BCBB3B1} = {023425D8-B375-45ED-A29A-A3ED00C0E2BC} {32E187BB-D1D4-4864-A021-55A7A08E17EC} = {023425D8-B375-45ED-A29A-A3ED00C0E2BC} {A3693DD1-4D34-4B10-B310-07A4C7433F7D} = {02886FBB-DB32-4BBB-A93C-E13EBF453ACC} {1170E3A9-D83E-40B0-8D51-20485C76BE88} = {02886FBB-DB32-4BBB-A93C-E13EBF453ACC} diff --git a/build/ProjectInfo.fs b/build/ProjectInfo.fs index 089644062..4aa18309a 100644 --- a/build/ProjectInfo.fs +++ b/build/ProjectInfo.fs @@ -73,12 +73,10 @@ let testBaseProjects = [ // test projects (.NET) let CoreTestProject = ProjectInfo.create("CoreTests", "tests/CoreTests/CoreTests/CoreTests.fsproj") -let CSharpInteroperabilityTestProject = ProjectInfo.create("CSharpInteroperabilityTests", "tests/CoreTests/CSharpInteroperabilityTests/CSharpInteroperabilityTests.csproj") /// contains project info about the core test projects let testProjectsCore = [ CoreTestProject - CSharpInteroperabilityTestProject ] let ImageExportTestProject = ProjectInfo.create("ImageExportTests", "tests/ExtensionLibsTests/ImageExportTests/ImageExportTests.fsproj") diff --git a/src/Plotly.NET.CSharp/ChartAPI/Chart3D.cs b/src/Plotly.NET.CSharp/ChartAPI/Chart3D.cs index add74c53b..bd3015593 100644 --- a/src/Plotly.NET.CSharp/ChartAPI/Chart3D.cs +++ b/src/Plotly.NET.CSharp/ChartAPI/Chart3D.cs @@ -7,6 +7,7 @@ using Plotly.NET.LayoutObjects; using Plotly.NET.TraceObjects; using System.Runtime.InteropServices; +using static Plotly.NET.StyleParam; namespace Plotly.NET.CSharp @@ -43,6 +44,8 @@ public static partial class Chart /// Sets the width of the line /// sets the drawing style of the line /// Sets the line (use this for more finegrained control than the other line-associated arguments) + /// Sets the camera projection type of this trace. + /// Sets the camera of this trace. /// Sets the projection of this trace. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Scatter3D( @@ -69,6 +72,8 @@ public static GenericChart Scatter3D( Optional LineWidth = default, Optional LineDash = default, Optional Line = default, + Optional CameraProjectionType = default , + Optional Camera = default, Optional Projection = default, Optional UseDefaults = default ) @@ -102,6 +107,8 @@ public static GenericChart Scatter3D( LineDash: LineDash.ToOption(), Line: Line.ToOption(), Projection: Projection.ToOption(), + CameraProjectionType: CameraProjectionType.ToOption(), + Camera: Camera.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -127,6 +134,8 @@ public static GenericChart Scatter3D( /// Sets the marker symbol for each datum /// Sets the marker symbol for each individual datum /// Sets the marker (use this for more finegrained control than the other marker-associated arguments) + /// Sets the camera projection type of this trace. + /// Sets the camera of this trace. /// Sets the projection of this trace. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Point3D( @@ -147,6 +156,8 @@ public static GenericChart Point3D( Optional MarkerSymbol = default, Optional> MultiMarkerSymbol = default, Optional Marker = default, + Optional CameraProjectionType = default, + Optional Camera = default, Optional Projection = default, Optional UseDefaults = default ) @@ -173,6 +184,8 @@ public static GenericChart Point3D( MarkerSymbol: MarkerSymbol.ToOption(), MultiMarkerSymbol: MultiMarkerSymbol.ToOption(), Marker: Marker.ToOption(), + CameraProjectionType: CameraProjectionType.ToOption(), + Camera: Camera.ToOption(), Projection: Projection.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -205,6 +218,8 @@ public static GenericChart Point3D( /// Sets the width of the line /// sets the drawing style of the line /// Sets the line (use this for more finegrained control than the other line-associated arguments) + /// Sets the camera projection type of this trace. + /// Sets the camera of this trace. /// Sets the projection of this trace. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Line3D( @@ -231,6 +246,8 @@ public static GenericChart Line3D( Optional LineWidth = default, Optional LineDash = default, Optional Line = default, + Optional CameraProjectionType = default, + Optional Camera = default, Optional Projection = default, Optional UseDefaults = default ) @@ -263,6 +280,8 @@ public static GenericChart Line3D( LineWidth: LineWidth.ToOption(), LineDash: LineDash.ToOption(), Line: Line.ToOption(), + CameraProjectionType: CameraProjectionType.ToOption(), + Camera: Camera.ToOption(), Projection: Projection.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -290,6 +309,8 @@ public static GenericChart Line3D( /// Sets the marker symbol for each datum /// Sets the marker symbol for each individual datum /// Sets the marker (use this for more finegrained control than the other marker-associated arguments) + /// Sets the camera projection type of this trace. + /// Sets the camera of this trace. /// Sets the projection of this trace. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Bubble3D( @@ -311,6 +332,8 @@ public static GenericChart Bubble3D( Optional MarkerSymbol = default, Optional> MultiMarkerSymbol = default, Optional Marker = default, + Optional CameraProjectionType = default, + Optional Camera = default, Optional Projection = default, Optional UseDefaults = default ) @@ -338,6 +361,8 @@ public static GenericChart Bubble3D( MarkerSymbol: MarkerSymbol.ToOption(), MultiMarkerSymbol: MultiMarkerSymbol.ToOption(), Marker: Marker.ToOption(), + CameraProjectionType: CameraProjectionType.ToOption(), + Camera: Camera.ToOption(), Projection: Projection.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -362,6 +387,8 @@ public static GenericChart Bubble3D( /// Sets the contours on the surface /// Sets the colorscale of the surface /// Whether or not to show the colorbar/colorscale + /// Sets the camera projection type of this trace. + /// Sets the camera of this trace. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Surface( IEnumerable> zData, @@ -373,8 +400,11 @@ public static GenericChart Surface( Optional Text = default, Optional> MultiText = default, Optional Contours = default, - Optional ColorScale = default, + Optional ColorScale = default, + Optional CameraProjectionType = default, + Optional Camera = default, Optional ShowScale = default, + Optional UseDefaults = default ) where ZType : IConvertible @@ -394,6 +424,8 @@ public static GenericChart Surface( Contours: Contours.ToOption(), ColorScale: ColorScale.ToOption(), ShowScale: ShowScale.ToOption(), + CameraProjectionType: CameraProjectionType.ToOption(), + Camera: Camera.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -428,6 +460,8 @@ public static GenericChart Surface( /// Sets the colorbar /// Determines whether or not normal smoothing is applied to the meshes, creating meshes with an angular, low-poly look via flat reflections. /// Determines how the mesh surface triangles are derived from the set of vertices (points) represented by the `x`, `y` and `z` arrays, if the `i`, `j`, `k` arrays are not supplied. + /// Sets the camera projection type of this trace. + /// Sets the camera of this trace. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Mesh3D( IEnumerable x, @@ -447,7 +481,9 @@ public static GenericChart Mesh3D ShowScale = default, Optional ColorBar = default, Optional FlatShading = default, - Optional TriangulationAlgorithm = default, + Optional TriangulationAlgorithm = default, + Optional CameraProjectionType = default, + Optional Camera = default, Optional UseDefaults = default ) where XType : IConvertible @@ -477,6 +513,8 @@ public static GenericChart Mesh3DSets the colorbar /// Determines whether `sizeref` is set as a "scaled" (i.e unitless) scalar (normalized by the max u/v/w norm in the vector field) or as "absolute" value (in the same units as the vector field). /// Sets the cones' anchor with respect to their x/y/z positions. Note that "cm" denote the cone's center of mass which corresponds to 1/4 from the tail to tip. + /// Sets the camera projection type of this trace. + /// Sets the camera of this trace. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Cone( IEnumerable x, @@ -524,7 +564,9 @@ public static GenericChart Cone ShowScale = default, Optional ColorBar = default, Optional SizeMode = default, - Optional ConeAnchor = default, + Optional ConeAnchor = default, + Optional CameraProjectionType = default, + Optional Camera = default, Optional UseDefaults = default ) where XType : IConvertible @@ -552,6 +594,8 @@ public static GenericChart ConeSets the colorbar /// The maximum number of displayed segments in a streamtube. /// Use this object to specify custom tube start positions + /// Sets the camera projection type of this trace. + /// Sets the camera of this trace. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart StreamTube( IEnumerable x, @@ -601,7 +647,9 @@ public static GenericChart StreamTube ShowScale = default, Optional ColorBar = default, Optional MaxDisplayed = default, - Optional TubeStarts = default, + Optional TubeStarts = default, + Optional CameraProjectionType = default, + Optional Camera = default, Optional UseDefaults = default ) where XType : IConvertible @@ -629,6 +677,8 @@ public static GenericChart StreamTubeAdds Slices through the volume /// Sets the surface. /// Sets the opacityscale. The opacityscale must be an array containing arrays mapping a normalized value to an opacity value. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 1], [0.5, 0.2], [1, 1]]` means that higher/lower values would have higher opacity values and those in the middle would be more transparent Alternatively, `opacityscale` may be a palette name string of the following list: 'min', 'max', 'extremes' and 'uniform'. The default is 'uniform'. + /// Sets the camera projection type of this trace. + /// Sets the camera of this trace. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Volume( IEnumerable x, @@ -677,7 +729,9 @@ public static GenericChart Volume Caps = default, Optional Slices = default, Optional Surface = default, - Optional>> OpacityScale = default, + Optional>> OpacityScale = default, + Optional CameraProjectionType = default, + Optional Camera = default, Optional UseDefaults = default ) where XType : IConvertible @@ -706,6 +760,8 @@ public static GenericChart VolumeSets the caps (color-coded surfaces on the sides of the visualization domain) /// Adds Slices through the volume /// Sets the surface. + /// Sets the camera projection type of this trace. + /// Sets the camera of this trace. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart IsoSurface( IEnumerable x, @@ -755,6 +813,8 @@ public static GenericChart IsoSurface( Optional Caps = default, Optional Slices = default, Optional Surface = default, + Optional CameraProjectionType = default, + Optional Camera = default, Optional UseDefaults = default ) where XType : IConvertible @@ -781,6 +841,8 @@ public static GenericChart IsoSurface( Caps: Caps.ToOption(), Slices: Slices.ToOption(), Surface: Surface.ToOption(), + CameraProjectionType: CameraProjectionType.ToOption(), + Camera: Camera.ToOption(), UseDefaults: UseDefaults.ToOption() ); } diff --git a/src/Plotly.NET/CSharpLayer/GenericChartExtensions.fs b/src/Plotly.NET/CSharpLayer/GenericChartExtensions.fs deleted file mode 100644 index aadeb6dd0..000000000 --- a/src/Plotly.NET/CSharpLayer/GenericChartExtensions.fs +++ /dev/null @@ -1,1044 +0,0 @@ -ïğżnamespace Plotly.NET - -open Plotly.NET.LayoutObjects -open Plotly.NET.TraceObjects -open System -open System.IO -open Giraffe.ViewEngine - -open DynamicObj -open System.Runtime.InteropServices -open System.Runtime.CompilerServices - -///Extension methods for providing a Plotly.NET fluent interface pattern for C# -[] -module GenericChartExtensions = - - type GenericChart with - - [] - [] - member this.WithTraceInfo - ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title - ) = - this - |> Chart.withTraceInfo ( - ?Name = Name, - ?Visible = Visible, - ?ShowLegend = ShowLegend, - ?LegendRank = LegendRank, - ?LegendGroup = LegendGroup, - ?LegendGroupTitle = LegendGroupTitle - ) - - /// Set the axis anchor id the trace is belonging to - [] - [] - member this.WithAxisAnchor - ( - [] ?X, - [] ?Y - ) = - this |> Chart.withAxisAnchor (?X = X, ?Y = Y) - - /// Apply styling to the Marker(s) of the chart as Object. - [] - [] - member this.WithMarker(marker: Marker) = this |> Chart.withMarker marker - - /// Apply styling to the Marker(s) of the chart. - [] - [] - member this.WithMarkerStyle - ( - [] ?AutoColorScale: bool, - [] ?CAuto: bool, - [] ?CMax: float, - [] ?CMid: float, - [] ?CMin: float, - [] ?Color: Color, - [] ?Colors: seq, - [] ?ColorAxis: StyleParam.SubPlotId, - [] ?ColorBar: ColorBar, - [] ?Colorscale: StyleParam.Colorscale, - [] ?Gradient: Gradient, - [] ?Outline: Line, - [] ?MaxDisplayed: int, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Pattern: Pattern, - [] ?ReverseScale: bool, - [] ?ShowScale: bool, - [] ?Size: int, - [] ?MultiSize: seq, - [] ?SizeMin: int, - [] ?SizeMode: StyleParam.MarkerSizeMode, - [] ?SizeRef: int, - [] ?Symbol: StyleParam.MarkerSymbol, - [] ?MultiSymbol: seq, - [] ?Symbol3D: StyleParam.MarkerSymbol3D, - [] ?MultiSymbol3D: seq, - [] ?OutlierColor: Color, - [] ?OutlierWidth: int - ) = - this - |> Chart.withMarkerStyle ( - ?AutoColorScale = AutoColorScale, - ?CAuto = CAuto, - ?CMax = CMax, - ?CMid = CMid, - ?CMin = CMin, - ?Color = Color, - ?Colors = Colors, - ?ColorAxis = ColorAxis, - ?ColorBar = ColorBar, - ?Colorscale = Colorscale, - ?Gradient = Gradient, - ?Outline = Outline, - ?Size = Size, - ?MultiSize = MultiSize, - ?Opacity = Opacity, - ?Pattern = Pattern, - ?MultiOpacity = MultiOpacity, - ?Symbol = Symbol, - ?MultiSymbol = MultiSymbol, - ?Symbol3D = Symbol3D, - ?MultiSymbol3D = MultiSymbol3D, - ?OutlierColor = OutlierColor, - ?OutlierWidth = OutlierWidth, - ?MaxDisplayed = MaxDisplayed, - ?ReverseScale = ReverseScale, - ?ShowScale = ShowScale, - ?SizeMin = SizeMin, - ?SizeMode = SizeMode, - ?SizeRef = SizeRef - ) - - /// Apply styling to the Line(s) of the chart as Object. - [] - [] - member this.WithLine(line: Line) = this |> Chart.withLine line - - /// Apply styling to the Line(s) of the chart. - [] - [] - member this.WithLineStyle - ( - [] ?AutoColorScale: bool, - [] ?CAuto: bool, - [] ?CMax: float, - [] ?CMid: float, - [] ?CMin: float, - [] ?Color: Color, - [] ?ColorAxis: StyleParam.SubPlotId, - [] ?Colorscale: StyleParam.Colorscale, - [] ?ReverseScale: bool, - [] ?ShowScale: bool, - [] ?ColorBar: ColorBar, - [] ?Dash: StyleParam.DrawingStyle, - [] ?Shape: StyleParam.Shape, - [] ?Simplify: bool, - [] ?Smoothing: float, - [] ?Width: float, - [] ?MultiWidth: seq, - [] ?OutlierColor: Color, - [] ?OutlierWidth: float - ) = - this - |> Chart.withLineStyle ( - ?AutoColorScale = AutoColorScale, - ?CAuto = CAuto, - ?CMax = CMax, - ?CMid = CMid, - ?CMin = CMin, - ?Color = Color, - ?ColorAxis = ColorAxis, - ?Colorscale = Colorscale, - ?ReverseScale = ReverseScale, - ?ShowScale = ShowScale, - ?ColorBar = ColorBar, - ?Dash = Dash, - ?Shape = Shape, - ?Simplify = Simplify, - ?Smoothing = Smoothing, - ?Width = Width, - ?MultiWidth = MultiWidth, - ?OutlierColor = OutlierColor, - ?OutlierWidth = OutlierWidth - ) - - /// Apply styling to the xError(s) of the chart as Object - [] - [] - member this.WithXError(xError: Error) = this |> Chart.withXError xError - - /// Apply styling to the xError(s) of the chart as Object - [] - [] - member this.WithXErrorStyle - ( - [] ?Array, - [] ?Arrayminus, - [] ?Symmetric, - [] ?Color, - [] ?Thickness, - [] ?Width - ) = - let error = - Error.init ( - ?Array = Array, - ?Arrayminus = Arrayminus, - ?Symmetric = Symmetric, - ?Color = Color, - ?Thickness = Thickness, - ?Width = Width - ) - - this |> Chart.withXError error - - /// Apply styling to the yError(s) of the chart as Object - [] - [] - member this.WithYError(yError: Error) = this |> Chart.withYError (yError) - - /// Apply styling to the yError(s) of the chart as Object - [] - [] - member this.WithYErrorStyle - ( - [] ?Array, - [] ?Arrayminus, - [] ?Symmetric, - [] ?Color, - [] ?Thickness, - [] ?Width - ) = - let error = - Error.init ( - ?Array = Array, - ?Arrayminus = Arrayminus, - ?Symmetric = Symmetric, - ?Color = Color, - ?Thickness = Thickness, - ?Width = Width - ) - - this |> Chart.withYError error - - /// Apply styling to the zError(s) of the chart as Object - [] - [] - member this.WithZError(zError: Error) = this |> Chart.withZError (zError) - - - /// Apply styling to the zError(s) of the chart as Object - [] - [] - member this.WithZErrorStyle - ( - [] ?Array, - [] ?Arrayminus, - [] ?Symmetric, - [] ?Color, - [] ?Thickness, - [] ?Width - ) = - let error = - Error.init ( - ?Array = Array, - ?Arrayminus = Arrayminus, - ?Symmetric = Symmetric, - ?Color = Color, - ?Thickness = Thickness, - ?Width = Width - ) - - this |> Chart.withZError error - - - // ############################################################ - // ####################### Apply to layout - - // Sets x-Axis of 2d and 3d- Charts - [] - [] - member this.WithXAxis(xAxis: LinearAxis, [] ?Id: StyleParam.SubPlotId) = - this |> Chart.withXAxis (xAxis, ?Id = Id) - - // Sets x-Axis of 2d and 3d- Charts - [] - [] - member this.WithXAxisStyle - ( - title, - [] ?MinMax, - [] ?ShowGrid, - [] ?ShowLine, - [] ?Side, - [] ?Overlaying, - [] ?Id, - [] ?Domain, - [] ?Position, - [] ?ZeroLine, - [] ?Anchor - ) = - let range = - if MinMax.IsSome then - Some(StyleParam.Range.MinMax(MinMax.Value)) - else - None - - let domain = - if Domain.IsSome then - Some(StyleParam.Range.MinMax(Domain.Value)) - else - None - - let xaxis = - LinearAxis.init ( - Title = title, - ?Range = range, - ?ShowGrid = ShowGrid, - ?ShowLine = ShowLine, - ?Anchor = Anchor, - ?Side = Side, - ?Domain = domain, - ?Overlaying = Overlaying, - ?Position = Position, - ?ZeroLine = ZeroLine - ) - - this |> Chart.withXAxis (xaxis, ?Id = Id) - - /// Sets the range slider for the xAxis - [] - [] - member this.WithXAxisRangeSlider(rangeSlider: RangeSlider, [] ?Id) = - let xaxis = - LinearAxis.init (RangeSlider = rangeSlider) - - this |> Chart.withXAxis (xaxis, ?Id = Id) - - // Sets y-Axis of 2d and 3d- Charts - [] - [] - member this.WithYAxis(yAxis: LinearAxis, [] ?Id: StyleParam.SubPlotId) = - this |> Chart.withYAxis (yAxis, ?Id = Id) - - // Sets y-Axis of 3d- Charts - [] - [] - member this.WithYAxisStyle - ( - title, - [] ?MinMax, - [] ?ShowGrid, - [] ?ShowLine, - [] ?Side, - [] ?Overlaying, - [] ?Id, - [] ?Domain, - [] ?Position, - [] ?ZeroLine, - [] ?Anchor - ) = - let range = - if MinMax.IsSome then - Some(StyleParam.Range.MinMax(MinMax.Value)) - else - None - - let domain = - if Domain.IsSome then - Some(StyleParam.Range.MinMax(Domain.Value)) - else - None - - let yaxis = - LinearAxis.init ( - Title = title, - ?Range = range, - ?ShowGrid = ShowGrid, - ?ShowLine = ShowLine, - ?Anchor = Anchor, - ?Side = Side, - ?Domain = domain, - ?Overlaying = Overlaying, - ?Position = Position, - ?ZeroLine = ZeroLine - ) - - this |> Chart.withYAxis (yaxis, ?Id = Id) - - - // Sets z-Axis of 3d- Charts - [] - [] - member this.WithZAxis(zAxis: LinearAxis, [] ?Id: int) = - this |> Chart.withZAxis (zAxis, ?Id = Id) - - - - // Sets z-Axis style with ... - [] - [] - member this.WithZAxisStyle - ( - title, - [] ?MinMax, - [] ?ShowGrid, - [] ?ShowLine, - [] ?Domain, - [] ?Anchor - ) = - let range = - if MinMax.IsSome then - Some(StyleParam.Range.MinMax(MinMax.Value)) - else - None - - let domain = - if Domain.IsSome then - Some(StyleParam.Range.MinMax(Domain.Value)) - else - None - - let zaxis = - LinearAxis.init ( - Title = title, - ?Range = range, - ?ShowGrid = ShowGrid, - ?ShowLine = ShowLine, - ?Anchor = Anchor, - ?Domain = domain - ) - - this |> Chart.withZAxis (zaxis) - - [] - [] - member this.withColorBar(colorbar: ColorBar) = - this - |> GenericChart.mapTrace (fun t -> - t |> DynObj.withProperty "colorbar" colorbar - ) - - [] - [] - member this.WithColorBarStyle - ( - title, - [] ?Length, - [] ?OutlineColor, - [] ?BorderColor, - [] ?BGColor - ) = - let colorbar = - ColorBar.init ( - Title = title, - ?Len = Length, - ?OutlineColor = OutlineColor, - ?BGColor = BGColor, - ?BorderColor = BorderColor - ) - - this |> Chart.withColorBar (colorbar) - - // Set the Layout options of a Chart - [] - [] - member this.WithLayout(layout: Layout) = GenericChart.addLayout layout this - - // Set the Layout style of a Chart - [] - member this.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, - [] ?HoverDistance: int, - [] ?SpikeDistance: int, - [] ?Hoverlabel: Hoverlabel, - [] ?Transition: Transition, - [] ?DataRevision: string, - [] ?UIRevision: string, - [] ?EditRevision: string, - [] ?SelectRevision: string, - [] ?Template: DynamicObj, - [] ?Meta: string, - [] ?Computed: string, - [] ?Grid: LayoutGrid, - [] ?Calendar: StyleParam.Calendar, - [] ?NewShape: NewShape, - [] ?ActiveShape: ActiveShape, - [] ?HideSources: bool, - [] ?BarGap: float, - [] ?BarGroupGap: float, - [] ?BarMode: StyleParam.BarMode, - [] ?BarNorm: StyleParam.BarNorm, - [] ?ExtendPieColors: bool, - [] ?HiddenLabels: seq<#IConvertible>, - [] ?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: seq, - [] ?Shapes: seq, - [] ?Images: seq, - [] ?Sliders: seq, - [] ?UpdateMenus: seq - ) = - this - |> Chart.withLayoutStyle ( - ?Title = Title, - ?ShowLegend = ShowLegend, - ?Margin = Margin, - ?AutoSize = AutoSize, - ?Width = Width, - ?Height = Height, - ?Font = Font, - ?UniformText = UniformText, - ?Separators = Separators, - ?PaperBGColor = PaperBGColor, - ?PlotBGColor = PlotBGColor, - ?AutoTypeNumbers = AutoTypeNumbers, - ?Colorscale = Colorscale, - ?Colorway = Colorway, - ?ModeBar = ModeBar, - ?HoverMode = HoverMode, - ?ClickMode = ClickMode, - ?DragMode = DragMode, - ?SelectDirection = SelectDirection, - ?HoverDistance = HoverDistance, - ?SpikeDistance = SpikeDistance, - ?Hoverlabel = Hoverlabel, - ?Transition = Transition, - ?DataRevision = DataRevision, - ?UIRevision = UIRevision, - ?EditRevision = EditRevision, - ?SelectRevision = SelectRevision, - ?Template = Template, - ?Meta = Meta, - ?Computed = Computed, - ?Grid = Grid, - ?Calendar = Calendar, - ?NewShape = NewShape, - ?ActiveShape = ActiveShape, - ?HideSources = HideSources, - ?BarGap = BarGap, - ?BarGroupGap = BarGroupGap, - ?BarMode = BarMode, - ?BarNorm = BarNorm, - ?ExtendPieColors = ExtendPieColors, - ?HiddenLabels = HiddenLabels, - ?PieColorWay = PieColorWay, - ?BoxGap = BoxGap, - ?BoxGroupGap = BoxGroupGap, - ?BoxMode = BoxMode, - ?ViolinGap = ViolinGap, - ?ViolinGroupGap = ViolinGroupGap, - ?ViolinMode = ViolinMode, - ?WaterfallGap = WaterfallGap, - ?WaterfallGroupGap = WaterfallGroupGap, - ?WaterfallMode = WaterfallMode, - ?FunnelGap = FunnelGap, - ?FunnelGroupGap = FunnelGroupGap, - ?FunnelMode = FunnelMode, - ?ExtendFunnelAreaColors = ExtendFunnelAreaColors, - ?FunnelAreaColorWay = FunnelAreaColorWay, - ?ExtendSunBurstColors = ExtendSunBurstColors, - ?SunBurstColorWay = SunBurstColorWay, - ?ExtendTreeMapColors = ExtendTreeMapColors, - ?TreeMapColorWay = TreeMapColorWay, - ?ExtendIcicleColors = ExtendIcicleColors, - ?IcicleColorWay = IcicleColorWay, - ?Annotations = Annotations, - ?Shapes = Shapes, - ?Images = Images, - ?Sliders = Sliders, - ?UpdateMenus = UpdateMenus - ) - - // Set the LayoutGrid options of a Chart - [] - [] - member this.WithLayoutGrid(layoutGrid: LayoutGrid) = - let layout = - GenericChart.getLayout this |> Layout.setLayoutGrid layoutGrid - - GenericChart.setLayout layout this - - // Set the LayoutGrid options of a Chart - [] - member this.WithLegend(legend: Legend, [] ?Id: int) = - this |> Chart.withLegend (legend, ?Id = Id) - - /// Sets a map for the given chart (will only work with traces supporting geo, e.g. choropleth, scattergeo) - [] - [] - member this.WithGeo(geo: Geo, [] ?Id: int) = - this |> Chart.withGeo (geo, ?Id = Id) - - /// Sets a mapbox for the given chart (will only work with traces supporting mapboxes, e.g. choroplethmapbox, scattermapbox) - [] - [] - member this.withMapbox(mapBox: Mapbox, [] ?Id: int) = - this |> Chart.withMapbox (mapBox, ?Id = Id) - - - /// Sets the map style for the given chart (will only work with traces supporting geo, e.g. choropleth, scattergeo) - /// - /// Parameters : - /// - /// FitBounds : Determines if and how this subplot's view settings are auto-computed to fit trace data - /// - /// Resolution : Sets the resolution of the base layers - /// - /// Scope : Set the scope of the map. - /// - /// Projection : Determines the type of projection used to display the map - /// - /// Center : Sets the (lon,lat) coordinates of the map's center. By default, the map's longitude center lies at the middle of the longitude range for scoped projection and above `projection.rotation.lon` otherwise. For all projection types, the map's latitude center lies at the middle of the latitude range by default. - /// - /// Visible : Whether or not the base layers are visible - /// - /// Domain : The domain of this geo subplot - /// - /// ShowCoastLine : Sets whether or not the coastlines are drawn. - /// - /// CoastLineColor : Sets the coastline color. - /// - /// CoastLineWidth : Sets the coastline stroke width (in px). - /// - /// ShowLand : Sets whether or not land masses are filled in color. - /// - /// LandColor : Sets the land mass color. - /// - /// ShowOcean : Sets whether or not oceans are filled in color. - /// - /// OceanColor : Sets the ocean color - /// - /// ShowLakes : Sets whether or not lakes are drawn. - /// - /// LakeColor : Sets the color of the lakes. - /// - /// ShowRivers : Sets whether or not rivers are drawn. - /// - /// RiverColor : Sets color of the rivers. - /// - /// RiverWidth : Sets the stroke width (in px) of the rivers. - /// - /// ShowCountries : Sets whether or not country boundaries are drawn. - /// - /// CountryColor : Sets line color of the country boundaries. - /// - /// CountryWidth : Sets line width (in px) of the country boundaries. - /// - /// ShowSubunits : Sets whether or not boundaries of subunits within countries (e.g. states, provinces) are drawn. - /// - /// SubunitColor : Sets the color of the subunits boundaries. - /// - /// SubunitWidth : Sets the stroke width (in px) of the subunits boundaries. - /// - /// ShowFrame : Sets whether or not a frame is drawn around the map. - /// - /// FrameColor : Sets the color the frame. - /// - /// FrameWidth : Sets the stroke width (in px) of the frame. - /// - /// BgColor : Set the background color of the map - /// - /// LatAxis : Sets the latitudinal axis for this geo trace - /// - /// LonAxis : Sets the longitudinal axis for this geo trace - [] - [] - member this.WithGeoStyle - ( - [] ?Id: StyleParam.SubPlotId, - [] ?FitBounds: StyleParam.GeoFitBounds, - [] ?Resolution: StyleParam.GeoResolution, - [] ?Scope: StyleParam.GeoScope, - [] ?Projection: GeoProjection, - [] ?Center: (float * float), - [] ?Visible: bool, - [] ?Domain: Domain, - [] ?ShowCoastLines: bool, - [] ?CoastLineColor, - [] ?CoastLineWidth: float, - [] ?ShowLand: bool, - [] ?LandColor, - [] ?ShowOcean: bool, - [] ?OceanColor, - [] ?ShowLakes: bool, - [] ?LakeColor, - [] ?ShowRivers: bool, - [] ?RiverColor, - [] ?RiverWidth: float, - [] ?ShowCountries: bool, - [] ?CountryColor, - [] ?CountryWidth: float, - [] ?ShowSubunits: bool, - [] ?SubunitColor, - [] ?SubunitWidth: float, - [] ?ShowFrame: bool, - [] ?FrameColor, - [] ?FrameWidth: float, - [] ?BgColor, - [] ?LatAxis: LinearAxis, - [] ?LonAxis: LinearAxis - ) = - this - |> Chart.withGeoStyle ( - ?FitBounds = FitBounds, - ?Resolution = Resolution, - ?Scope = Scope, - ?Projection = Projection, - ?Center = Center, - ?Visible = Visible, - ?Domain = Domain, - ?ShowCoastLines = ShowCoastLines, - ?CoastLineColor = CoastLineColor, - ?CoastLineWidth = CoastLineWidth, - ?ShowLand = ShowLand, - ?LandColor = LandColor, - ?ShowOcean = ShowOcean, - ?OceanColor = OceanColor, - ?ShowLakes = ShowLakes, - ?LakeColor = LakeColor, - ?ShowRivers = ShowRivers, - ?RiverColor = RiverColor, - ?RiverWidth = RiverWidth, - ?ShowCountries = ShowCountries, - ?CountryColor = CountryColor, - ?CountryWidth = CountryWidth, - ?ShowSubunits = ShowSubunits, - ?SubunitColor = SubunitColor, - ?SubunitWidth = SubunitWidth, - ?ShowFrame = ShowFrame, - ?FrameColor = FrameColor, - ?FrameWidth = FrameWidth, - ?BgColor = BgColor, - ?LatAxis = LatAxis, - ?LonAxis = LonAxis - ) - - [] - [] - member this.WithMapProjection - ( - projectionType: StyleParam.GeoProjectionType, - [] ?Rotation, - [] ?Parallels, - [] ?Scale, - [] ?Id - ) = - this - |> Chart.withGeoProjection ( - projectionType = projectionType, - ?Rotation = Rotation, - ?Parallels = Parallels, - ?Scale = Scale - ) - - - // Set the LayoutGrid options of a Chart - [] - [] - member this.WithLayoutGridStyle - ( - [] ?SubPlots: - (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], - [] ?XAxes: StyleParam.LinearAxisId[], - [] ?YAxes: StyleParam.LinearAxisId[], - [] ?Rows: int, - [] ?Columns: int, - [] ?RowOrder: StyleParam.LayoutGridRowOrder, - [] ?Pattern: StyleParam.LayoutGridPattern, - [] ?XGap: float, - [] ?YGap: float, - [] ?Domain: Domain, - [] ?XSide: StyleParam.LayoutGridXSide, - [] ?YSide: StyleParam.LayoutGridYSide - ) = - - let layout = GenericChart.getLayout this in - - let updatedGrid = - let currentGrid = - match layout.TryGetTypedPropertyValue "grid" with - | Some grid -> grid - | None -> LayoutGrid() - - currentGrid - |> LayoutGrid.style ( - ?SubPlots = SubPlots, - ?XAxes = XAxes, - ?YAxes = YAxes, - ?Rows = Rows, - ?Columns = Columns, - ?RowOrder = RowOrder, - ?Pattern = Pattern, - ?XGap = XGap, - ?YGap = YGap, - ?Domain = Domain, - ?XSide = XSide, - ?YSide = YSide - ) in - - let updatedLayout = - layout |> Layout.setLayoutGrid updatedGrid in - - GenericChart.setLayout updatedLayout this - - [] - [] - member this.WithConfig(config: Config) = GenericChart.setConfig config this - - [] - [] - member this.WithAnnotation(annotation: Annotation, [] ?Append: bool) = - this |> Chart.withAnnotation (annotation, ?Append = Append) - - [] - [] - member this.WithAnnotations - ( - annotations: Annotation seq, - [] ?Append: bool - ) = - this |> Chart.withAnnotations (annotations, ?Append = Append) - - // Set the title of a Chart - [] - [] - member this.WithTitle(title, [] ?TitleFont) = - let layout = - Layout() |> Layout.style (Title = Title.init (Text = title, ?Font = TitleFont)) - - GenericChart.addLayout layout this - - // Set showLegend of a Chart - [] - [] - member this.WithLegend(showlegend) = - let layout = - Layout() |> Layout.style (ShowLegend = showlegend) - - GenericChart.addLayout layout this - - // Set the size of a Chart - [] - [] - member this.WithSize(width, height) = - let layout = - GenericChart.getLayout this |> Layout.style (Width = width, Height = height) - - GenericChart.setLayout layout this - - // Set the margin of a Chart - [] - [] - member this.WithMargin(margin: Margin) = - let layout = - GenericChart.getLayout this |> Layout.style (Margin = margin) - - GenericChart.setLayout layout this - - // Set the margin of a Chart - [] - [] - member this.WithMarginSize - ( - [] ?Left, - [] ?Right, - [] ?Top, - [] ?Bottom, - [] ?Pad, - [] ?Autoexpand - ) = - let margin = - Margin.init ( - ?Left = Left, - ?Right = Right, - ?Top = Top, - ?Bottom = Bottom, - ?Pad = Pad, - ?Autoexpand = Autoexpand - ) - - this |> Chart.withMargin (margin) - - [] - [] - member this.WithTemplate(template: Template) = - this - |> GenericChart.mapLayout (fun l -> - l |> DynObj.withProperty "template" template - ) - - // TODO: Include withLegend & withLegendStyle - - //Specifies the shape type to be drawn. If "line", a line is drawn from (`x0`,`y0`) to (`x1`,`y1`) If "circle", a circle is drawn from - //((`x0`+`x1`)/2, (`y0`+`y1`)/2)) with radius (|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 -`y0`)|) If "rect", a rectangle is drawn linking - //(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`), (`x0`,`y1`), (`x0`,`y0`) - [] - [] - member this.WithShape(shape: Shape, [] ?Append: bool) = - this |> Chart.withShape (shape, ?Append = Append) - - [] - [] - member this.WithShapes(shapes: Shape seq, [] ?Append: bool) = - this |> Chart.withShapes (shapes, ?Append = Append) - - // ############################################################ - // ####################### Apply to DisplayOptions - - /// Show chart in browser - [] - [] - member this.WithDescription(description: XmlNode list) = - this |> Chart.withDescription description - - /// Adds the given additional script tags on the chart's DisplayOptions. They will be included in the document's - [] - [] - member this.WithAdditionalHeadTags(additionalHeadTags: XmlNode list) = - this |> Chart.withAdditionalHeadTags additionalHeadTags - - /// Sets the given additional script tags on the chart's DisplayOptions. They will be included in the document's - [] - [] - member this.WithHeadTags(headTags: XmlNode list) = this |> Chart.withHeadTags headTags - - /// Adds the necessary script tags to render tex strings to the chart's DisplayOptions - [] - [] - member this.WithMathTex - ( - [] ?AppendTags: bool, - [] ?MathJaxVersion: int - ) = - let append = - Option.defaultValue true AppendTags - - this |> Chart.withMathTex (AppendTags = append, ?MathJaxVersion = MathJaxVersion) - - - /// Save chart as html single page - [] - [] - member this.SaveHtml(path: string, [] ?OpenInBrowser: bool) = - this |> Chart.saveHtml (path, ?OpenInBrowser = OpenInBrowser) - - /// Show chart in browser - [] - [] - member this.Show() = this |> Chart.show - - /// Sets the polar object with the given id on the chart layout - [] - member this.WithPolar(polar: Polar, [] ?Id) = - this |> Chart.withPolar (polar, ?Id = Id) - - /// Sets the angular axis of the polar object with the given id on the chart layout - [] - member this.WithAngularAxis(angularAxis: AngularAxis, [] ?Id) = - this |> Chart.withAngularAxis (angularAxis, ?Id = Id) - - /// Sets the radial axis of the polar object with the given id on the chart layout - [] - member this.WithRadialAxis(radialAxis: RadialAxis, [] ?Id) = - this |> Chart.withRadialAxis (radialAxis, ?Id = Id) - - /// Sets the color axis of the color axis with the given id on the chart layout - [] - member this.WithColorAxis(colorAxis: ColorAxis, [] ?Id) = - this |> Chart.withColorAxis (colorAxis, ?Id = Id) - - /// Sets the scene object with the given id on the chart layout - [] - member this.WithScene(scene: Scene, [] ?Id) = - this |> Chart.withScene (scene, ?Id = Id) - - /// Sets the scene object with the given id on the chart layout - [] - member this.WithTernary(ternary: Ternary, [] ?Id) = - this |> Chart.withTernary (ternary, ?Id = Id) - - - [] - [] - member this.WithLayoutImage(image: LayoutImage, [] ?Append: bool) = - this |> Chart.withLayoutImage (image, ?Append = Append) - - [] - [] - member this.WithLayoutImages - ( - images: seq, - [] ?Append: bool - ) = - this |> Chart.withLayoutImages (images, ?Append = Append) - - [] - [] - member this.WithUpdateMenu(updateMenu: UpdateMenu, [] ?Append: bool) = - this |> Chart.withUpdateMenu (updateMenu, ?Append = Append) - - [] - [] - member this.WithUpdateMenus - ( - updateMenus: seq, - [] ?Append: bool - ) = - this |> Chart.withUpdateMenus (updateMenus, ?Append = Append) - - [] - [] - member this.WithSlider(slider: Slider) = this |> Chart.withSlider (slider) - - [] - [] - member this.WithSliders(sliders: seq) = this |> Chart.withSliders sliders diff --git a/src/Plotly.NET/ChartAPI/Chart.fs b/src/Plotly.NET/ChartAPI/Chart.fs index 0eef89cd0..a84a10993 100644 --- a/src/Plotly.NET/ChartAPI/Chart.fs +++ b/src/Plotly.NET/ChartAPI/Chart.fs @@ -24,7 +24,7 @@ type Chart = /// The path to save the chart html at. /// Whether or not to open the generated file in the browser (default: false) [] - static member saveHtml(path: string, [] ?OpenInBrowser: bool) = + static member saveHtml(path: string, ?OpenInBrowser: bool) = fun (ch: GenericChart) -> let show = defaultArg OpenInBrowser false @@ -92,12 +92,12 @@ type Chart = [] static member withTraceInfo ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title ) = fun (ch: GenericChart) -> ch @@ -126,8 +126,8 @@ type Chart = [] static member withAxisAnchor ( - [] ?X, - [] ?Y + ?X, + ?Y ) = let idx = X |> Option.map StyleParam.LinearAxisId.X @@ -227,40 +227,40 @@ type Chart = [] static member withMarkerStyle ( - [] ?Angle: float, - [] ?AngleRef: StyleParam.AngleRef, - [] ?AutoColorScale: bool, - [] ?CAuto: bool, - [] ?CMax: float, - [] ?CMid: float, - [] ?CMin: float, - [] ?Color: Color, - [] ?Colors: seq, - [] ?ColorAxis: StyleParam.SubPlotId, - [] ?ColorBar: ColorBar, - [] ?Colorscale: StyleParam.Colorscale, - [] ?CornerRadius: int, - [] ?Gradient: Gradient, - [] ?Outline: Line, - [] ?MaxDisplayed: int, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Pattern: Pattern, - [] ?ReverseScale: bool, - [] ?ShowScale: bool, - [] ?Size: int, - [] ?MultiSize: seq, - [] ?SizeMin: int, - [] ?SizeMode: StyleParam.MarkerSizeMode, - [] ?SizeRef: int, - [] ?StandOff: float, - [] ?MultiStandOff: seq, - [] ?Symbol: StyleParam.MarkerSymbol, - [] ?MultiSymbol: seq, - [] ?Symbol3D: StyleParam.MarkerSymbol3D, - [] ?MultiSymbol3D: seq, - [] ?OutlierColor: Color, - [] ?OutlierWidth: int + ?Angle: float, + ?AngleRef: StyleParam.AngleRef, + ?AutoColorScale: bool, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?Color: Color, + ?Colors: seq, + ?ColorAxis: StyleParam.SubPlotId, + ?ColorBar: ColorBar, + ?Colorscale: StyleParam.Colorscale, + ?CornerRadius: int, + ?Gradient: Gradient, + ?Outline: Line, + ?MaxDisplayed: int, + ?Opacity: float, + ?MultiOpacity: seq, + ?Pattern: Pattern, + ?ReverseScale: bool, + ?ShowScale: bool, + ?Size: int, + ?MultiSize: seq, + ?SizeMin: int, + ?SizeMode: StyleParam.MarkerSizeMode, + ?SizeRef: int, + ?StandOff: float, + ?MultiStandOff: seq, + ?Symbol: StyleParam.MarkerSymbol, + ?MultiSymbol: seq, + ?Symbol3D: StyleParam.MarkerSymbol3D, + ?MultiSymbol3D: seq, + ?OutlierColor: Color, + ?OutlierWidth: int ) = fun (ch: GenericChart) -> ch @@ -354,26 +354,26 @@ type Chart = [] static member withLineStyle ( - [] ?BackOff: StyleParam.BackOff, - [] ?AutoColorScale: bool, - [] ?CAuto: bool, - [] ?CMax: float, - [] ?CMid: float, - [] ?CMin: float, - [] ?Color: Color, - [] ?ColorAxis: StyleParam.SubPlotId, - [] ?Colorscale: StyleParam.Colorscale, - [] ?ReverseScale: bool, - [] ?ShowScale: bool, - [] ?ColorBar: ColorBar, - [] ?Dash: StyleParam.DrawingStyle, - [] ?Shape: StyleParam.Shape, - [] ?Simplify: bool, - [] ?Smoothing: float, - [] ?Width: float, - [] ?MultiWidth: seq, - [] ?OutlierColor: Color, - [] ?OutlierWidth: float + ?BackOff: StyleParam.BackOff, + ?AutoColorScale: bool, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?Color: Color, + ?ColorAxis: StyleParam.SubPlotId, + ?Colorscale: StyleParam.Colorscale, + ?ReverseScale: bool, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?Dash: StyleParam.DrawingStyle, + ?Shape: StyleParam.Shape, + ?Simplify: bool, + ?Smoothing: float, + ?Width: float, + ?MultiWidth: seq, + ?OutlierColor: Color, + ?OutlierWidth: float ) = fun (ch: GenericChart) -> ch @@ -446,19 +446,19 @@ type Chart = [] static member withXErrorStyle ( - [] ?Visible: bool, - [] ?Type: StyleParam.ErrorType, - [] ?Symmetric: bool, - [] ?Array: seq<#IConvertible>, - [] ?Arrayminus: seq<#IConvertible>, - [] ?Value: float, - [] ?Valueminus: float, - [] ?Traceref: int, - [] ?Tracerefminus: int, - [] ?Copy_ystyle: bool, - [] ?Color: Color, - [] ?Thickness: float, - [] ?Width: float + ?Visible: bool, + ?Type: StyleParam.ErrorType, + ?Symmetric: bool, + ?Array: seq<#IConvertible>, + ?Arrayminus: seq<#IConvertible>, + ?Value: float, + ?Valueminus: float, + ?Traceref: int, + ?Tracerefminus: int, + ?Copy_ystyle: bool, + ?Color: Color, + ?Thickness: float, + ?Width: float ) = fun (ch: GenericChart) -> ch @@ -524,19 +524,19 @@ type Chart = [] static member withYErrorStyle ( - [] ?Visible: bool, - [] ?Type: StyleParam.ErrorType, - [] ?Symmetric: bool, - [] ?Array: seq<#IConvertible>, - [] ?Arrayminus: seq<#IConvertible>, - [] ?Value: float, - [] ?Valueminus: float, - [] ?Traceref: int, - [] ?Tracerefminus: int, - [] ?Copy_ystyle: bool, - [] ?Color: Color, - [] ?Thickness: float, - [] ?Width: float + ?Visible: bool, + ?Type: StyleParam.ErrorType, + ?Symmetric: bool, + ?Array: seq<#IConvertible>, + ?Arrayminus: seq<#IConvertible>, + ?Value: float, + ?Valueminus: float, + ?Traceref: int, + ?Tracerefminus: int, + ?Copy_ystyle: bool, + ?Color: Color, + ?Thickness: float, + ?Width: float ) = fun (ch: GenericChart) -> ch @@ -602,19 +602,19 @@ type Chart = [] static member withZErrorStyle ( - [] ?Visible: bool, - [] ?Type: StyleParam.ErrorType, - [] ?Symmetric: bool, - [] ?Array: seq<#IConvertible>, - [] ?Arrayminus: seq<#IConvertible>, - [] ?Value: float, - [] ?Valueminus: float, - [] ?Traceref: int, - [] ?Tracerefminus: int, - [] ?Copy_ystyle: bool, - [] ?Color: Color, - [] ?Thickness: float, - [] ?Width: float + ?Visible: bool, + ?Type: StyleParam.ErrorType, + ?Symmetric: bool, + ?Array: seq<#IConvertible>, + ?Arrayminus: seq<#IConvertible>, + ?Value: float, + ?Valueminus: float, + ?Traceref: int, + ?Tracerefminus: int, + ?Copy_ystyle: bool, + ?Color: Color, + ?Thickness: float, + ?Width: float ) = fun (ch: GenericChart) -> ch @@ -712,55 +712,55 @@ type Chart = [] static member withColorBarStyle ( - [] ?TitleText: string, - [] ?TitleFont: Font, - [] ?TitleStandoff: int, - [] ?Title: Title, - [] ?BGColor: Color, - [] ?BorderColor: Color, - [] ?BorderWidth: float, - [] ?DTick: IConvertible, - [] ?ExponentFormat: StyleParam.ExponentFormat, - [] ?LabelAlias: DynamicObj, - [] ?Len: float, - [] ?LenMode: StyleParam.UnitMode, - [] ?MinExponent: float, - [] ?NTicks: int, - [] ?Orientation: StyleParam.Orientation, - [] ?OutlineColor: Color, - [] ?OutlineWidth: float, - [] ?SeparateThousands: bool, - [] ?ShowExponent: StyleParam.ShowExponent, - [] ?ShowTickLabels: bool, - [] ?ShowTickPrefix: StyleParam.ShowTickOption, - [] ?ShowTickSuffix: StyleParam.ShowTickOption, - [] ?Thickness: float, - [] ?ThicknessMode: StyleParam.UnitMode, - [] ?Tick0: IConvertible, - [] ?TickAngle: int, - [] ?TickColor: Color, - [] ?TickFont: Font, - [] ?TickFormat: string, - [] ?TickFormatStops: seq, - [] ?TickLabelOverflow: StyleParam.TickLabelOverflow, - [] ?TickLabelPosition: StyleParam.TickLabelPosition, - [] ?TickLabelStep: int, - [] ?TickLen: float, - [] ?TickMode: StyleParam.TickMode, - [] ?TickPrefix: string, - [] ?Ticks: StyleParam.TickOptions, - [] ?TickSuffix: string, - [] ?TickText: seq<#IConvertible>, - [] ?TickVals: seq<#IConvertible>, - [] ?TickWidth: float, - [] ?X: float, - [] ?XAnchor: StyleParam.HorizontalAlign, - [] ?XPad: float, - [] ?XRef: string, - [] ?Y: float, - [] ?YAnchor: StyleParam.VerticalAlign, - [] ?YPad: float, - [] ?YRef: string + ?TitleText: string, + ?TitleFont: Font, + ?TitleStandoff: int, + ?Title: Title, + ?BGColor: Color, + ?BorderColor: Color, + ?BorderWidth: float, + ?DTick: IConvertible, + ?ExponentFormat: StyleParam.ExponentFormat, + ?LabelAlias: DynamicObj, + ?Len: float, + ?LenMode: StyleParam.UnitMode, + ?MinExponent: float, + ?NTicks: int, + ?Orientation: StyleParam.Orientation, + ?OutlineColor: Color, + ?OutlineWidth: float, + ?SeparateThousands: bool, + ?ShowExponent: StyleParam.ShowExponent, + ?ShowTickLabels: bool, + ?ShowTickPrefix: StyleParam.ShowTickOption, + ?ShowTickSuffix: StyleParam.ShowTickOption, + ?Thickness: float, + ?ThicknessMode: StyleParam.UnitMode, + ?Tick0: IConvertible, + ?TickAngle: int, + ?TickColor: Color, + ?TickFont: Font, + ?TickFormat: string, + ?TickFormatStops: seq, + ?TickLabelOverflow: StyleParam.TickLabelOverflow, + ?TickLabelPosition: StyleParam.TickLabelPosition, + ?TickLabelStep: int, + ?TickLen: float, + ?TickMode: StyleParam.TickMode, + ?TickPrefix: string, + ?Ticks: StyleParam.TickOptions, + ?TickSuffix: string, + ?TickText: seq<#IConvertible>, + ?TickVals: seq<#IConvertible>, + ?TickWidth: float, + ?X: float, + ?XAnchor: StyleParam.HorizontalAlign, + ?XPad: float, + ?XRef: string, + ?Y: float, + ?YAnchor: StyleParam.VerticalAlign, + ?YPad: float, + ?YRef: string ) = let title = @@ -922,80 +922,80 @@ type Chart = [] static member 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, - [] ?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: seq<#IConvertible>, - [] ?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: seq, - [] ?Shapes: seq, - [] ?Selections: seq, - [] ?Images: seq, - [] ?Sliders: seq, - [] ?UpdateMenus: seq + ?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, + ?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: seq<#IConvertible>, + ?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: seq, + ?Shapes: seq, + ?Selections: seq, + ?Images: seq, + ?Sliders: seq, + ?UpdateMenus: seq ) = (fun (ch: GenericChart) -> @@ -1091,8 +1091,8 @@ type Chart = ( axis: LinearAxis, id: StyleParam.SubPlotId, - [] ?SceneAxis: StyleParam.SubPlotId, - [] ?Combine: bool + ?SceneAxis: StyleParam.SubPlotId, + ?Combine: bool ) = fun (ch: GenericChart) -> @@ -1167,7 +1167,7 @@ type Chart = /// The x axis to set on the chart's layout /// The target axis id with which the axis should be set. Default is 1. [] - static member withXAxis(xAxis: LinearAxis, [] ?Id: StyleParam.SubPlotId) = + static member withXAxis(xAxis: LinearAxis, ?Id: StyleParam.SubPlotId) = let id = defaultArg Id (StyleParam.SubPlotId.XAxis 1) @@ -1212,36 +1212,36 @@ type Chart = [] static member withXAxisStyle ( - [] ?TitleText: string, - [] ?TitleFont: Font, - [] ?TitleStandoff: int, - [] ?Title: Title, - [] ?Color: Color, - [] ?AxisType: StyleParam.AxisType, - [] ?MinMax: #IConvertible * #IConvertible, - [] ?Mirror: StyleParam.Mirror, - [] ?ShowSpikes: bool, - [] ?SpikeColor: Color, - [] ?SpikeThickness: int, - [] ?ShowLine: bool, - [] ?LineColor: Color, - [] ?ShowGrid: bool, - [] ?GridColor: Color, - [] ?GridDash: StyleParam.DrawingStyle, - [] ?ZeroLine: bool, - [] ?ZeroLineColor: Color, - [] ?Anchor: StyleParam.LinearAxisId, - [] ?Side: StyleParam.Side, - [] ?Overlaying: StyleParam.LinearAxisId, - [] ?Domain: float * float, - [] ?Position: float, - [] ?CategoryOrder: StyleParam.CategoryOrder, - [] ?CategoryArray: seq<#IConvertible>, - [] ?RangeSlider: RangeSlider, - [] ?RangeSelector: RangeSelector, - [] ?BackgroundColor: Color, - [] ?ShowBackground: bool, - [] ?Id: StyleParam.SubPlotId + ?TitleText: string, + ?TitleFont: Font, + ?TitleStandoff: int, + ?Title: Title, + ?Color: Color, + ?AxisType: StyleParam.AxisType, + ?MinMax: #IConvertible * #IConvertible, + ?Mirror: StyleParam.Mirror, + ?ShowSpikes: bool, + ?SpikeColor: Color, + ?SpikeThickness: int, + ?ShowLine: bool, + ?LineColor: Color, + ?ShowGrid: bool, + ?GridColor: Color, + ?GridDash: StyleParam.DrawingStyle, + ?ZeroLine: bool, + ?ZeroLineColor: Color, + ?Anchor: StyleParam.LinearAxisId, + ?Side: StyleParam.Side, + ?Overlaying: StyleParam.LinearAxisId, + ?Domain: float * float, + ?Position: float, + ?CategoryOrder: StyleParam.CategoryOrder, + ?CategoryArray: seq<#IConvertible>, + ?RangeSlider: RangeSlider, + ?RangeSelector: RangeSelector, + ?BackgroundColor: Color, + ?ShowBackground: bool, + ?Id: StyleParam.SubPlotId ) = let range = MinMax |> Option.map StyleParam.Range.ofMinMax @@ -1289,7 +1289,7 @@ type Chart = /// Sets the range slider for the xAxis [] - static member withXAxisRangeSlider(rangeSlider: RangeSlider, [] ?Id) = + static member withXAxisRangeSlider(rangeSlider: RangeSlider, ?Id) = let xaxis = LinearAxis.init (RangeSlider = rangeSlider) @@ -1303,7 +1303,7 @@ type Chart = /// The y axis to set on the chart's layout /// The target axis id with which the axis should be set. Default is 1. [] - static member withYAxis(yAxis: LinearAxis, [] ?Id: StyleParam.SubPlotId) = + static member withYAxis(yAxis: LinearAxis, ?Id: StyleParam.SubPlotId) = let id = defaultArg Id (StyleParam.SubPlotId.YAxis 1) @@ -1350,38 +1350,38 @@ type Chart = [] static member withYAxisStyle ( - [] ?TitleText: string, - [] ?TitleFont: Font, - [] ?TitleStandoff: int, - [] ?Title: Title, - [] ?Color: Color, - [] ?AxisType: StyleParam.AxisType, - [] ?MinMax: #IConvertible * #IConvertible, - [] ?Mirror: StyleParam.Mirror, - [] ?ShowSpikes: bool, - [] ?SpikeColor: Color, - [] ?SpikeThickness: int, - [] ?ShowLine: bool, - [] ?LineColor: Color, - [] ?ShowGrid: bool, - [] ?GridColor: Color, - [] ?GridDash: StyleParam.DrawingStyle, - [] ?ZeroLine: bool, - [] ?ZeroLineColor: Color, - [] ?Anchor: StyleParam.LinearAxisId, - [] ?Side: StyleParam.Side, - [] ?Overlaying: StyleParam.LinearAxisId, - [] ?AutoShift: bool, - [] ?Shift: int, - [] ?Domain: float * float, - [] ?Position: float, - [] ?CategoryOrder: StyleParam.CategoryOrder, - [] ?CategoryArray: seq<#IConvertible>, - [] ?RangeSlider: RangeSlider, - [] ?RangeSelector: RangeSelector, - [] ?BackgroundColor: Color, - [] ?ShowBackground: bool, - [] ?Id: StyleParam.SubPlotId + ?TitleText: string, + ?TitleFont: Font, + ?TitleStandoff: int, + ?Title: Title, + ?Color: Color, + ?AxisType: StyleParam.AxisType, + ?MinMax: #IConvertible * #IConvertible, + ?Mirror: StyleParam.Mirror, + ?ShowSpikes: bool, + ?SpikeColor: Color, + ?SpikeThickness: int, + ?ShowLine: bool, + ?LineColor: Color, + ?ShowGrid: bool, + ?GridColor: Color, + ?GridDash: StyleParam.DrawingStyle, + ?ZeroLine: bool, + ?ZeroLineColor: Color, + ?Anchor: StyleParam.LinearAxisId, + ?Side: StyleParam.Side, + ?Overlaying: StyleParam.LinearAxisId, + ?AutoShift: bool, + ?Shift: int, + ?Domain: float * float, + ?Position: float, + ?CategoryOrder: StyleParam.CategoryOrder, + ?CategoryArray: seq<#IConvertible>, + ?RangeSlider: RangeSlider, + ?RangeSelector: RangeSelector, + ?BackgroundColor: Color, + ?ShowBackground: bool, + ?Id: StyleParam.SubPlotId ) = let range = MinMax |> Option.map StyleParam.Range.ofMinMax @@ -1437,7 +1437,7 @@ type Chart = /// The z axis to set on the chart's layout /// The target scene id on which the axis should be set. Default is 1. [] - static member withZAxis(zAxis: LinearAxis, [] ?Id: int) = + static member withZAxis(zAxis: LinearAxis, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Scene @@ -1481,35 +1481,35 @@ type Chart = [] static member withZAxisStyle ( - [] ?TitleText: string, - [] ?TitleFont: Font, - [] ?TitleStandoff: int, - [] ?Title: Title, - [] ?Color: Color, - [] ?AxisType: StyleParam.AxisType, - [] ?MinMax: #IConvertible * #IConvertible, - [] ?Mirror: StyleParam.Mirror, - [] ?ShowSpikes: bool, - [] ?SpikeColor: Color, - [] ?SpikeThickness: int, - [] ?ShowLine: bool, - [] ?LineColor: Color, - [] ?ShowGrid: bool, - [] ?GridColor: Color, - [] ?ZeroLine: bool, - [] ?ZeroLineColor: Color, - [] ?Anchor: StyleParam.LinearAxisId, - [] ?Side: StyleParam.Side, - [] ?Overlaying: StyleParam.LinearAxisId, - [] ?Domain: float * float, - [] ?Position: float, - [] ?CategoryOrder: StyleParam.CategoryOrder, - [] ?CategoryArray: seq<#IConvertible>, - [] ?RangeSlider: RangeSlider, - [] ?RangeSelector: RangeSelector, - [] ?BackgroundColor: Color, - [] ?ShowBackground: bool, - [] ?Id: int + ?TitleText: string, + ?TitleFont: Font, + ?TitleStandoff: int, + ?Title: Title, + ?Color: Color, + ?AxisType: StyleParam.AxisType, + ?MinMax: #IConvertible * #IConvertible, + ?Mirror: StyleParam.Mirror, + ?ShowSpikes: bool, + ?SpikeColor: Color, + ?SpikeThickness: int, + ?ShowLine: bool, + ?LineColor: Color, + ?ShowGrid: bool, + ?GridColor: Color, + ?ZeroLine: bool, + ?ZeroLineColor: Color, + ?Anchor: StyleParam.LinearAxisId, + ?Side: StyleParam.Side, + ?Overlaying: StyleParam.LinearAxisId, + ?Domain: float * float, + ?Position: float, + ?CategoryOrder: StyleParam.CategoryOrder, + ?CategoryArray: seq<#IConvertible>, + ?RangeSlider: RangeSlider, + ?RangeSelector: RangeSelector, + ?BackgroundColor: Color, + ?ShowBackground: bool, + ?Id: int ) = let range = MinMax |> Option.map StyleParam.Range.ofMinMax @@ -1565,7 +1565,7 @@ type Chart = ( scene: Scene, id: StyleParam.SubPlotId, - [] ?Combine: bool + ?Combine: bool ) = let combine = defaultArg Combine false @@ -1584,7 +1584,7 @@ type Chart = /// The Scene to set on the chart's layout /// The target scene id on which the scene should be set. Default is 1. [] - static member withScene(scene: Scene, [] ?Id: int) = + static member withScene(scene: Scene, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Scene @@ -1611,19 +1611,19 @@ type Chart = [] static member withSceneStyle ( - [] ?Annotations: 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, - [] ?Id: int + ?Annotations: 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, + ?Id: int ) = (fun (ch: GenericChart) -> let scene = @@ -1655,7 +1655,7 @@ type Chart = ( polar: Polar, id: StyleParam.SubPlotId, - [] ?Combine: bool + ?Combine: bool ) = let combine = defaultArg Combine false @@ -1674,7 +1674,7 @@ type Chart = /// The new Polar for the chart's layout /// The target polar id on which the polar object should be set. Default is 1. [] - static member withPolar(polar: Polar, [] ?Id: int) = + static member withPolar(polar: Polar, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Polar @@ -1697,15 +1697,15 @@ type Chart = [] static member withPolarStyle ( - [] ?Domain: Domain, - [] ?Sector: float * float, - [] ?Hole: float, - [] ?BGColor: Color, - [] ?RadialAxis: RadialAxis, - [] ?AngularAxis: AngularAxis, - [] ?GridShape: StyleParam.PolarGridShape, - [] ?UIRevision: string, - [] ?Id: int + ?Domain: Domain, + ?Sector: float * float, + ?Hole: float, + ?BGColor: Color, + ?RadialAxis: RadialAxis, + ?AngularAxis: AngularAxis, + ?GridShape: StyleParam.PolarGridShape, + ?UIRevision: string, + ?Id: int ) = (fun (ch: GenericChart) -> let polar = @@ -1733,7 +1733,7 @@ type Chart = ( angularAxis: AngularAxis, id: StyleParam.SubPlotId, - [] ?Combine: bool + ?Combine: bool ) = fun (ch: GenericChart) -> @@ -1774,7 +1774,7 @@ type Chart = /// The new AngularAxis for the chart layout's polar object /// The target polar id on which the AngularAxis should be set. Default is 1. [] - static member withAngularAxis(angularAxis: AngularAxis, [] ?Id: int) = + static member withAngularAxis(angularAxis: AngularAxis, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Polar @@ -1791,7 +1791,7 @@ type Chart = ( radialAxis: RadialAxis, id: StyleParam.SubPlotId, - [] ?Combine: bool + ?Combine: bool ) = fun (ch: GenericChart) -> @@ -1833,7 +1833,7 @@ type Chart = /// The new RadialAxis for the chart layout's polar object /// The target polar id on which the RadialAxis should be set. Default is 1. [] - static member withRadialAxis(radialAxis: RadialAxis, [] ?Id: int) = + static member withRadialAxis(radialAxis: RadialAxis, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Polar @@ -1850,7 +1850,7 @@ type Chart = ( smith: Smith, id: StyleParam.SubPlotId, - [] ?Combine: bool + ?Combine: bool ) = let combine = defaultArg Combine false @@ -1869,7 +1869,7 @@ type Chart = /// The new Smith for the chart's layout /// The target smith id on which the smith object should be set. Default is 1. [] - static member withSmith(smith: Smith, [] ?Id: int) = + static member withSmith(smith: Smith, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Smith @@ -1884,11 +1884,11 @@ type Chart = [] static member withSmithStyle ( - [] ?BGColor: Color, - [] ?Domain: Domain, - [] ?ImaginaryAxis: ImaginaryAxis, - [] ?RealAxis: RealAxis, - [] ?Id: int + ?BGColor: Color, + ?Domain: Domain, + ?ImaginaryAxis: ImaginaryAxis, + ?RealAxis: RealAxis, + ?Id: int ) = (fun (ch: GenericChart) -> let smith = @@ -1907,7 +1907,7 @@ type Chart = ( imaginaryAxis: ImaginaryAxis, id: StyleParam.SubPlotId, - [] ?Combine: bool + ?Combine: bool ) = fun (ch: GenericChart) -> @@ -1948,7 +1948,7 @@ type Chart = /// The new ImaginaryAxis for the chart layout's smith object /// The target smith id on which the ImaginaryAxis should be set. Default is 1. [] - static member withImaginaryAxis(imaginaryAxis: ImaginaryAxis, [] ?Id: int) = + static member withImaginaryAxis(imaginaryAxis: ImaginaryAxis, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Smith @@ -1965,7 +1965,7 @@ type Chart = ( realAxis: RealAxis, id: StyleParam.SubPlotId, - [] ?Combine: bool + ?Combine: bool ) = fun (ch: GenericChart) -> @@ -2005,7 +2005,7 @@ type Chart = /// The new RealAxis for the chart layout's smith object /// The target smith id on which the RealAxis should be set. Default is 1. [] - static member withRealAxis(realAxis: RealAxis, [] ?Id: int) = + static member withRealAxis(realAxis: RealAxis, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Smith @@ -2018,7 +2018,7 @@ type Chart = /// The target Geo id with which the Geo object should be set. /// Whether or not to combine the objects if there is already an Geo set (default is false) [] - static member setGeo(geo: Geo, id: StyleParam.SubPlotId, [] ?Combine: bool) = + static member setGeo(geo: Geo, id: StyleParam.SubPlotId, ?Combine: bool) = let combine = defaultArg Combine false @@ -2036,7 +2036,7 @@ type Chart = /// The new Geo for the chart's layout /// The target geo id on which the Geo should be set. Default is 1. [] - static member withGeo(geo: Geo, [] ?Id: int) = + static member withGeo(geo: Geo, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Geo @@ -2082,38 +2082,38 @@ type Chart = [] static member withGeoStyle ( - [] ?FitBounds: StyleParam.GeoFitBounds, - [] ?Resolution: StyleParam.GeoResolution, - [] ?Scope: StyleParam.GeoScope, - [] ?Projection: GeoProjection, - [] ?Center: (float * float), - [] ?Visible: bool, - [] ?Domain: Domain, - [] ?ShowCoastLines: bool, - [] ?CoastLineColor: Color, - [] ?CoastLineWidth: float, - [] ?ShowLand: bool, - [] ?LandColor: Color, - [] ?ShowOcean: bool, - [] ?OceanColor: Color, - [] ?ShowLakes: bool, - [] ?LakeColor: Color, - [] ?ShowRivers: bool, - [] ?RiverColor: Color, - [] ?RiverWidth: float, - [] ?ShowCountries: bool, - [] ?CountryColor: Color, - [] ?CountryWidth: float, - [] ?ShowSubunits: bool, - [] ?SubunitColor: Color, - [] ?SubunitWidth: float, - [] ?ShowFrame: bool, - [] ?FrameColor: Color, - [] ?FrameWidth: float, - [] ?BgColor: Color, - [] ?LatAxis: LinearAxis, - [] ?LonAxis: LinearAxis, - [] ?Id: int + ?FitBounds: StyleParam.GeoFitBounds, + ?Resolution: StyleParam.GeoResolution, + ?Scope: StyleParam.GeoScope, + ?Projection: GeoProjection, + ?Center: (float * float), + ?Visible: bool, + ?Domain: Domain, + ?ShowCoastLines: bool, + ?CoastLineColor: Color, + ?CoastLineWidth: float, + ?ShowLand: bool, + ?LandColor: Color, + ?ShowOcean: bool, + ?OceanColor: Color, + ?ShowLakes: bool, + ?LakeColor: Color, + ?ShowRivers: bool, + ?RiverColor: Color, + ?RiverWidth: float, + ?ShowCountries: bool, + ?CountryColor: Color, + ?CountryWidth: float, + ?ShowSubunits: bool, + ?SubunitColor: Color, + ?SubunitWidth: float, + ?ShowFrame: bool, + ?FrameColor: Color, + ?FrameWidth: float, + ?BgColor: Color, + ?LatAxis: LinearAxis, + ?LonAxis: LinearAxis, + ?Id: int ) = (fun (ch: GenericChart) -> let geo = @@ -2167,10 +2167,10 @@ type Chart = static member withGeoProjection ( projectionType: StyleParam.GeoProjectionType, - [] ?Rotation, - [] ?Parallels, - [] ?Scale, - [] ?Id: int + ?Rotation, + ?Parallels, + ?Scale, + ?Id: int ) = (fun (ch: GenericChart) -> @@ -2197,7 +2197,7 @@ type Chart = ( mapbox: Mapbox, id: StyleParam.SubPlotId, - [] ?Combine: bool + ?Combine: bool ) = let combine = defaultArg Combine false @@ -2216,7 +2216,7 @@ type Chart = /// The Mapbox to set on the chart's layout /// The target mapbox id on which the Mapbox should be set. Default is 1. [] - static member withMapbox(mapbox: Mapbox, [] ?Id: int) = + static member withMapbox(mapbox: Mapbox, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Mapbox @@ -2238,15 +2238,15 @@ type Chart = /// The target mapbox id static member withMapboxStyle ( - [] ?Domain: Domain, - [] ?AccessToken: string, - [] ?Style: StyleParam.MapboxStyle, - [] ?Center: (float * float), - [] ?Zoom: float, - [] ?Bearing: float, - [] ?Pitch: float, - [] ?Layers: seq, - [] ?Id: int + ?Domain: Domain, + ?AccessToken: string, + ?Style: StyleParam.MapboxStyle, + ?Center: (float * float), + ?Zoom: float, + ?Bearing: float, + ?Pitch: float, + ?Layers: seq, + ?Id: int ) = (fun (ch: GenericChart) -> let mapbox = @@ -2274,7 +2274,7 @@ type Chart = ( ternary: Ternary, id: StyleParam.SubPlotId, - [] ?Combine: bool + ?Combine: bool ) = let combine = defaultArg Combine false @@ -2293,7 +2293,7 @@ type Chart = /// The Ternary to set on the chart's layout /// The target ternary id on which the Ternary should be set. Default is 1. [] - static member withTernary(ternary: Ternary, [] ?Id: int) = + static member withTernary(ternary: Ternary, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Ternary @@ -2313,13 +2313,13 @@ type Chart = /// The target Ternary id static member withTernaryStyle ( - [] ?AAxis: LinearAxis, - [] ?BAxis: LinearAxis, - [] ?CAxis: LinearAxis, - [] ?Domain: Domain, - [] ?Sum: #IConvertible, - [] ?BGColor: Color, - [] ?Id: int + ?AAxis: LinearAxis, + ?BAxis: LinearAxis, + ?CAxis: LinearAxis, + ?Domain: Domain, + ?Sum: #IConvertible, + ?BGColor: Color, + ?Id: int ) = (fun (ch: GenericChart) -> let ternary = @@ -2345,7 +2345,7 @@ type Chart = ( aAxis: LinearAxis, id: StyleParam.SubPlotId, - [] ?Combine: bool + ?Combine: bool ) = fun (ch: GenericChart) -> @@ -2387,7 +2387,7 @@ type Chart = /// The new a axis for the chart layout's ternary object /// The target ternary id on which the a axis should be set. Default is 1. [] - static member withAAxis(aAxis: LinearAxis, [] ?Id: int) = + static member withAAxis(aAxis: LinearAxis, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Ternary @@ -2404,7 +2404,7 @@ type Chart = ( bAxis: LinearAxis, id: StyleParam.SubPlotId, - [] ?Combine: bool + ?Combine: bool ) = fun (ch: GenericChart) -> @@ -2446,7 +2446,7 @@ type Chart = /// The new b axis for the chart layout's ternary object /// The target ternary id on which the b axis should be set. Default is 1. [] - static member withBAxis(bAxis: LinearAxis, [] ?Id: int) = + static member withBAxis(bAxis: LinearAxis, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Ternary @@ -2463,7 +2463,7 @@ type Chart = ( cAxis: LinearAxis, id: StyleParam.SubPlotId, - [] ?Combine: bool + ?Combine: bool ) = fun (ch: GenericChart) -> @@ -2505,7 +2505,7 @@ type Chart = /// The new c axis for the chart layout's ternary object /// The target ternary id on which the c axis should be set. Default is 1. [] - static member withCAxis(cAxis: LinearAxis, [] ?Id: int) = + static member withCAxis(cAxis: LinearAxis, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Ternary @@ -2556,18 +2556,18 @@ type Chart = [] static member withLayoutGridStyle ( - [] ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], - [] ?XAxes: StyleParam.LinearAxisId[], - [] ?YAxes: StyleParam.LinearAxisId[], - [] ?Rows: int, - [] ?Columns: int, - [] ?RowOrder: StyleParam.LayoutGridRowOrder, - [] ?Pattern: StyleParam.LayoutGridPattern, - [] ?XGap: float, - [] ?YGap: float, - [] ?Domain: Domain, - [] ?XSide: StyleParam.LayoutGridXSide, - [] ?YSide: StyleParam.LayoutGridYSide + ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], + ?XAxes: StyleParam.LinearAxisId[], + ?YAxes: StyleParam.LinearAxisId[], + ?Rows: int, + ?Columns: int, + ?RowOrder: StyleParam.LayoutGridRowOrder, + ?Pattern: StyleParam.LayoutGridPattern, + ?XGap: float, + ?YGap: float, + ?Domain: Domain, + ?XSide: StyleParam.LayoutGridXSide, + ?YSide: StyleParam.LayoutGridYSide ) = (fun (ch: GenericChart) -> let grid = @@ -2600,7 +2600,7 @@ type Chart = ( legend: Legend, id: StyleParam.SubPlotId, - [] ?Combine: bool + ?Combine: bool ) = let combine = defaultArg Combine false @@ -2619,7 +2619,7 @@ type Chart = /// The Legend to set on the chart's layout /// The target Legend id with which the Legend should be set. Default is 1. [] - static member withLegend(legend: Legend, [] ?Id: int) = + static member withLegend(legend: Legend, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Legend @@ -2659,32 +2659,32 @@ type Chart = [] static member withLegendStyle ( - [] ?BGColor: Color, - [] ?BorderColor: Color, - [] ?BorderWidth: float, - [] ?EntryWidth: float, - [] ?EntryWidthMode: StyleParam.EntryWidthMode, - [] ?Font: Font, - [] ?GroupClick: StyleParam.TraceGroupClickOptions, - [] ?GroupTitleFont: Font, - [] ?ItemClick: StyleParam.TraceItemClickOptions, - [] ?ItemDoubleClick: StyleParam.TraceItemClickOptions, - [] ?ItemSizing: StyleParam.TraceItemSizing, - [] ?ItemWidth: int, - [] ?Orientation: StyleParam.Orientation, - [] ?Title: Title, - [] ?TraceGroupGap: float, - [] ?TraceOrder: StyleParam.TraceOrder, - [] ?UIRevision: string, - [] ?VerticalAlign: StyleParam.VerticalAlign, - [] ?Visible: bool, - [] ?X: float, - [] ?XAnchor: StyleParam.XAnchorPosition, - [] ?XRef: string, - [] ?Y: float, - [] ?YAnchor: StyleParam.YAnchorPosition, - [] ?YRef: string, - [] ?Id: int + ?BGColor: Color, + ?BorderColor: Color, + ?BorderWidth: float, + ?EntryWidth: float, + ?EntryWidthMode: StyleParam.EntryWidthMode, + ?Font: Font, + ?GroupClick: StyleParam.TraceGroupClickOptions, + ?GroupTitleFont: Font, + ?ItemClick: StyleParam.TraceItemClickOptions, + ?ItemDoubleClick: StyleParam.TraceItemClickOptions, + ?ItemSizing: StyleParam.TraceItemSizing, + ?ItemWidth: int, + ?Orientation: StyleParam.Orientation, + ?Title: Title, + ?TraceGroupGap: float, + ?TraceOrder: StyleParam.TraceOrder, + ?UIRevision: string, + ?VerticalAlign: StyleParam.VerticalAlign, + ?Visible: bool, + ?X: float, + ?XAnchor: StyleParam.XAnchorPosition, + ?XRef: string, + ?Y: float, + ?YAnchor: StyleParam.YAnchorPosition, + ?YRef: string, + ?Id: int ) = (fun (ch: GenericChart) -> let legend = @@ -2727,7 +2727,7 @@ type Chart = static member withAnnotations ( annotations: seq, - [] ?Append: bool + ?Append: bool ) = let append = defaultArg Append true @@ -2749,12 +2749,12 @@ type Chart = ch |> GenericChart.mapLayout (Layout.style (Annotations = annotations')) [] - static member withAnnotation(annotation: Annotation, [] ?Append: bool) = + static member withAnnotation(annotation: Annotation, ?Append: bool) = Chart.withAnnotations ([ annotation ], ?Append = Append) // Set the title of a Chart [] - static member withTitle(title, [] ?TitleFont) = + static member withTitle(title, ?TitleFont) = (fun (ch: GenericChart) -> let layout = Layout() |> Layout.style (Title = Title.init (Text = title, ?Font = TitleFont)) @@ -2774,8 +2774,8 @@ type Chart = [] static member withSize ( - [] ?Width: int, - [] ?Height: int + ?Width: int, + ?Height: int ) = fun (ch: GenericChart) -> @@ -2804,12 +2804,12 @@ type Chart = [] static member withMarginSize ( - [] ?Left, - [] ?Right, - [] ?Top, - [] ?Bottom, - [] ?Pad, - [] ?Autoexpand + ?Left, + ?Right, + ?Top, + ?Bottom, + ?Pad, + ?Autoexpand ) = let margin = Margin.init ( @@ -2839,7 +2839,7 @@ type Chart = /// The shapes to add to the input charts layout /// If true, the input annotations will be appended to existing annotations, otherwise existing annotations will be removed (default: true) [] - static member withShapes(shapes: seq, [] ?Append: bool) = + static member withShapes(shapes: seq, ?Append: bool) = let append = defaultArg Append true fun (ch: GenericChart) -> @@ -2858,7 +2858,7 @@ type Chart = ch |> GenericChart.mapLayout (Layout.style (Shapes = shapes')) [] - static member withShape(shape: Shape, [] ?Append: bool) = + static member withShape(shape: Shape, ?Append: bool) = Chart.withShapes ([ shape ], ?Append = Append) /// @@ -2867,7 +2867,7 @@ type Chart = /// The selections to add to the input charts layout /// If true, the input selections will be appended to existing annotations, otherwise existing annotations will be removed (default: true) [] - static member withSelections(selections: seq, [] ?Append: bool) = + static member withSelections(selections: seq, ?Append: bool) = let append = defaultArg Append true fun (ch: GenericChart) -> @@ -2888,7 +2888,7 @@ type Chart = ch |> GenericChart.mapLayout (Layout.style (Selections = selections')) [] - static member withSelection(selection: Selection, [] ?Append: bool) = + static member withSelection(selection: Selection, ?Append: bool) = Chart.withSelections ([ selection ], ?Append = Append) //============================================================================================================== @@ -2978,45 +2978,45 @@ type Chart = [] static member withConfigStyle ( - [] ?StaticPlot: bool, - [] ?TypesetMath: bool, - [] ?PlotlyServerUrl: string, - [] ?Editable: bool, - [] ?Edits: Edits, - [] ?EditSelection: bool, - [] ?Autosizable: bool, - [] ?Responsive: bool, - [] ?FillFrame: bool, - [] ?FrameMargins: float, - [] ?ScrollZoom: StyleParam.ScrollZoom, - [] ?DoubleClick: StyleParam.DoubleClick, - [] ?DoubleClickDelay: int, - [] ?ShowAxisDragHandles: bool, - [] ?ShowAxisRangeEntryBoxes: bool, - [] ?ShowTips: bool, - [] ?ShowLink: bool, - [] ?LinkText: string, - [] ?SendData: bool, - [] ?ShowSources: obj, - [] ?DisplayModeBar: bool, - [] ?ShowSendToCloud: bool, - [] ?ShowEditInChartStudio: bool, - [] ?ModeBarButtonsToRemove: seq, - [] ?ModeBarButtonsToAdd: seq, - [] ?ModeBarButtons: seq>, - [] ?ToImageButtonOptions: ToImageButtonOptions, - [] ?Displaylogo: bool, - [] ?Watermark: bool, - [] ?plotGlPixelRatio: float, - [] ?SetBackground: obj, - [] ?TopojsonURL: string, - [] ?MapboxAccessToken: string, - [] ?Logging: int, - [] ?NotifyOnLogging: int, - [] ?QueueLength: int, - [] ?GlobalTransforms: obj, - [] ?Locale: string, - [] ?Locales: obj + ?StaticPlot: bool, + ?TypesetMath: bool, + ?PlotlyServerUrl: string, + ?Editable: bool, + ?Edits: Edits, + ?EditSelection: bool, + ?Autosizable: bool, + ?Responsive: bool, + ?FillFrame: bool, + ?FrameMargins: float, + ?ScrollZoom: StyleParam.ScrollZoom, + ?DoubleClick: StyleParam.DoubleClick, + ?DoubleClickDelay: int, + ?ShowAxisDragHandles: bool, + ?ShowAxisRangeEntryBoxes: bool, + ?ShowTips: bool, + ?ShowLink: bool, + ?LinkText: string, + ?SendData: bool, + ?ShowSources: obj, + ?DisplayModeBar: bool, + ?ShowSendToCloud: bool, + ?ShowEditInChartStudio: bool, + ?ModeBarButtonsToRemove: seq, + ?ModeBarButtonsToAdd: seq, + ?ModeBarButtons: seq>, + ?ToImageButtonOptions: ToImageButtonOptions, + ?Displaylogo: bool, + ?Watermark: bool, + ?plotGlPixelRatio: float, + ?SetBackground: obj, + ?TopojsonURL: string, + ?MapboxAccessToken: string, + ?Logging: int, + ?NotifyOnLogging: int, + ?QueueLength: int, + ?GlobalTransforms: obj, + ?Locale: string, + ?Locales: obj ) = (fun (ch: GenericChart) -> @@ -3106,19 +3106,19 @@ type Chart = ( nRows: int, nCols: int, - [] ?SubPlotTitles: #seq, - [] ?SubPlotTitleFont: Font, - [] ?SubPlotTitleOffset: float, - [] ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], - [] ?XAxes: StyleParam.LinearAxisId[], - [] ?YAxes: StyleParam.LinearAxisId[], - [] ?RowOrder: StyleParam.LayoutGridRowOrder, - [] ?Pattern: StyleParam.LayoutGridPattern, - [] ?XGap: float, - [] ?YGap: float, - [] ?Domain: Domain, - [] ?XSide: StyleParam.LayoutGridXSide, - [] ?YSide: StyleParam.LayoutGridYSide + ?SubPlotTitles: #seq, + ?SubPlotTitleFont: Font, + ?SubPlotTitleOffset: float, + ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], + ?XAxes: StyleParam.LinearAxisId[], + ?YAxes: StyleParam.LinearAxisId[], + ?RowOrder: StyleParam.LayoutGridRowOrder, + ?Pattern: StyleParam.LayoutGridPattern, + ?XGap: float, + ?YGap: float, + ?Domain: Domain, + ?XSide: StyleParam.LayoutGridXSide, + ?YSide: StyleParam.LayoutGridYSide ) = fun (gCharts: #seq) -> @@ -3425,19 +3425,19 @@ type Chart = [] static member Grid ( - [] ?SubPlotTitles: #seq, - [] ?SubPlotTitleFont: Font, - [] ?SubPlotTitleOffset: float, - [] ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], - [] ?XAxes: StyleParam.LinearAxisId[], - [] ?YAxes: StyleParam.LinearAxisId[], - [] ?RowOrder: StyleParam.LayoutGridRowOrder, - [] ?Pattern: StyleParam.LayoutGridPattern, - [] ?XGap: float, - [] ?YGap: float, - [] ?Domain: Domain, - [] ?XSide: StyleParam.LayoutGridXSide, - [] ?YSide: StyleParam.LayoutGridYSide + ?SubPlotTitles: #seq, + ?SubPlotTitleFont: Font, + ?SubPlotTitleOffset: float, + ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], + ?XAxes: StyleParam.LinearAxisId[], + ?YAxes: StyleParam.LinearAxisId[], + ?RowOrder: StyleParam.LayoutGridRowOrder, + ?Pattern: StyleParam.LayoutGridPattern, + ?XGap: float, + ?YGap: float, + ?Domain: Domain, + ?XSide: StyleParam.LayoutGridXSide, + ?YSide: StyleParam.LayoutGridYSide ) = fun (gCharts: #seq<#seq>) -> @@ -3542,19 +3542,19 @@ type Chart = [] static member SingleStack ( - [] ?SubPlotTitles: #seq, - [] ?SubPlotTitleFont: Font, - [] ?SubPlotTitleOffset: float, - [] ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], - [] ?XAxes: StyleParam.LinearAxisId[], - [] ?YAxes: StyleParam.LinearAxisId[], - [] ?RowOrder: StyleParam.LayoutGridRowOrder, - [] ?Pattern: StyleParam.LayoutGridPattern, - [] ?XGap: float, - [] ?YGap: float, - [] ?Domain: Domain, - [] ?XSide: StyleParam.LayoutGridXSide, - [] ?YSide: StyleParam.LayoutGridYSide + ?SubPlotTitles: #seq, + ?SubPlotTitleFont: Font, + ?SubPlotTitleOffset: float, + ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], + ?XAxes: StyleParam.LinearAxisId[], + ?YAxes: StyleParam.LinearAxisId[], + ?RowOrder: StyleParam.LayoutGridRowOrder, + ?Pattern: StyleParam.LayoutGridPattern, + ?XGap: float, + ?YGap: float, + ?Domain: Domain, + ?XSide: StyleParam.LayoutGridXSide, + ?YSide: StyleParam.LayoutGridYSide ) = fun (gCharts: #seq) -> @@ -3581,7 +3581,7 @@ type Chart = /// Sets the color axis with the given id on the chart layout [] - static member withColorAxis(colorAxis: ColorAxis, [] ?Id) = + static member withColorAxis(colorAxis: ColorAxis, ?Id) = (fun (ch: GenericChart) -> let layout = let id = @@ -3597,7 +3597,7 @@ type Chart = /// The images to add to the input charts layout /// If true, the input images will be appended to existing annotations, otherwise existing annotations will be removed (default: true) [] - static member withLayoutImages(images: seq, [] ?Append: bool) = + static member withLayoutImages(images: seq, ?Append: bool) = let append = defaultArg Append true fun (ch: GenericChart) -> @@ -3618,7 +3618,7 @@ type Chart = ch |> GenericChart.mapLayout (Layout.style (Images = images')) [] - static member withLayoutImage(image: LayoutImage, [] ?Append: bool) = + static member withLayoutImage(image: LayoutImage, ?Append: bool) = Chart.withLayoutImages ([ image ], ?Append = Append) @@ -3631,7 +3631,7 @@ type Chart = static member withUpdateMenus ( updateMenus: seq, - [] ?Append: bool + ?Append: bool ) = let append = defaultArg Append true @@ -3653,7 +3653,7 @@ type Chart = ch |> GenericChart.mapLayout (Layout.style (UpdateMenus = updateMenus')) [] - static member withUpdateMenu(updateMenu: UpdateMenu, [] ?Append: bool) = + static member withUpdateMenu(updateMenu: UpdateMenu, ?Append: bool) = Chart.withUpdateMenus ([ updateMenu ], ?Append = Append) @@ -3695,9 +3695,9 @@ type Chart = [] static member withDisplayOptionsStyle ( - [] ?AdditionalHeadTags: XmlNode list, - [] ?ChartDescription: XmlNode list, - [] ?PlotlyJSReference: PlotlyJSReference + ?AdditionalHeadTags: XmlNode list, + ?ChartDescription: XmlNode list, + ?PlotlyJSReference: PlotlyJSReference ) = (fun (ch: GenericChart) -> @@ -3735,8 +3735,8 @@ type Chart = [] static member withMathTex ( - [] ?AppendTags: bool, - [] ?MathJaxVersion: int + ?AppendTags: bool, + ?MathJaxVersion: int ) = let version = MathJaxVersion |> Option.defaultValue 3 diff --git a/src/Plotly.NET/ChartAPI/Chart2D.fs b/src/Plotly.NET/ChartAPI/Chart2D.fs index d3f56a8af..6e71c0b9a 100644 --- a/src/Plotly.NET/ChartAPI/Chart2D.fs +++ b/src/Plotly.NET/ChartAPI/Chart2D.fs @@ -70,40 +70,40 @@ module Chart2D = [] static member Scatter ( - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?Y: seq<#IConvertible>, - [] ?MultiY: seq>, - [] ?Mode: StyleParam.Mode, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?StackGroup: string, - [] ?Orientation: StyleParam.Orientation, - [] ?GroupNorm: StyleParam.GroupNorm, - [] ?Fill: StyleParam.Fill, - [] ?FillColor: Color, - [] ?FillPattern: Pattern, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?Y: seq<#IConvertible>, + ?MultiY: seq>, + ?Mode: StyleParam.Mode, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -204,35 +204,35 @@ module Chart2D = x: seq<#IConvertible>, y: seq<#IConvertible>, mode: StyleParam.Mode, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?StackGroup: string, - [] ?Orientation: StyleParam.Orientation, - [] ?GroupNorm: StyleParam.GroupNorm, - [] ?Fill: StyleParam.Fill, - [] ?FillColor: Color, - [] ?FillPattern: Pattern, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = Chart.Scatter( X = x, @@ -308,35 +308,35 @@ module Chart2D = ( xy: seq<#IConvertible * #IConvertible>, mode: StyleParam.Mode, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?StackGroup: string, - [] ?Orientation: StyleParam.Orientation, - [] ?GroupNorm: StyleParam.GroupNorm, - [] ?Fill: StyleParam.Fill, - [] ?FillColor: Color, - [] ?FillPattern: Pattern, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let x, y = Seq.unzip xy @@ -407,27 +407,27 @@ module Chart2D = ( x: seq<#IConvertible>, y: seq<#IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?StackGroup: string, - [] ?Orientation: StyleParam.Orientation, - [] ?GroupNorm: StyleParam.GroupNorm, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?UseWebGL: bool, + ?UseDefaults: bool ) = // if text position or font is set, then show labels (not only when hovering) @@ -489,27 +489,27 @@ module Chart2D = static member Point ( xy: seq<#IConvertible * #IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?StackGroup: string, - [] ?Orientation: StyleParam.Orientation, - [] ?GroupNorm: StyleParam.GroupNorm, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let x, y = Seq.unzip xy @@ -578,36 +578,36 @@ module Chart2D = ( x: seq<#IConvertible>, y: seq<#IConvertible>, - [] ?ShowMarkers: bool, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?StackGroup: string, - [] ?Orientation: StyleParam.Orientation, - [] ?GroupNorm: StyleParam.GroupNorm, - [] ?Fill: StyleParam.Fill, - [] ?FillColor: Color, - [] ?FillPattern: Pattern, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = // if text position or font is set than show labels (not only when hovering) @@ -694,36 +694,36 @@ module Chart2D = static member Line ( xy: seq<#IConvertible * #IConvertible>, - [] ?ShowMarkers: bool, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?StackGroup: string, - [] ?Orientation: StyleParam.Orientation, - [] ?GroupNorm: StyleParam.GroupNorm, - [] ?Fill: StyleParam.Fill, - [] ?FillColor: Color, - [] ?FillPattern: Pattern, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let x, y = Seq.unzip xy @@ -803,37 +803,37 @@ module Chart2D = ( x: seq<#IConvertible>, y: seq<#IConvertible>, - [] ?ShowMarkers: bool, - [] ?Smoothing: float, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?StackGroup: string, - [] ?Orientation: StyleParam.Orientation, - [] ?GroupNorm: StyleParam.GroupNorm, - [] ?Fill: StyleParam.Fill, - [] ?FillColor: Color, - [] ?FillPattern: Pattern, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Smoothing: float, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = // if text position set then show labels (not only when hovering) @@ -943,37 +943,37 @@ module Chart2D = static member Spline ( xy: seq<#IConvertible * #IConvertible>, - [] ?ShowMarkers: bool, - [] ?Smoothing: float, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?StackGroup: string, - [] ?Orientation: StyleParam.Orientation, - [] ?GroupNorm: StyleParam.GroupNorm, - [] ?Fill: StyleParam.Fill, - [] ?FillColor: Color, - [] ?FillPattern: Pattern, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Smoothing: float, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let x, y = Seq.unzip xy @@ -1051,32 +1051,32 @@ module Chart2D = x: seq<#IConvertible>, y: seq<#IConvertible>, sizes: seq, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?StackGroup: string, - [] ?Orientation: StyleParam.Orientation, - [] ?GroupNorm: StyleParam.GroupNorm, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -1166,32 +1166,32 @@ module Chart2D = static member Bubble ( xysizes: seq<#IConvertible * #IConvertible * int>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?StackGroup: string, - [] ?Orientation: StyleParam.Orientation, - [] ?GroupNorm: StyleParam.GroupNorm, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let x, y, sizes = Seq.unzip3 xysizes @@ -1279,39 +1279,39 @@ module Chart2D = upper: seq<#IConvertible>, lower: seq<#IConvertible>, mode: StyleParam.Mode, - [] ?Name: string, - [] ?GroupName: string, - [] ?ShowMarkers: bool, - [] ?ShowLegend: bool, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?UpperMarker: Marker, - [] ?LowerMarker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?UpperLine: Line, - [] ?LowerLine: Line, - [] ?RangeColor: Color, - [] ?RangePattern: Pattern, - [] ?UpperText: #IConvertible, - [] ?MultiUpperText: seq<#IConvertible>, - [] ?LowerText: #IConvertible, - [] ?MultiLowerText: seq<#IConvertible>, - [] ?TextFont: Font, - [] ?LowerName: string, - [] ?UpperName: string, - [] ?UseDefaults: bool + ?Name: string, + ?GroupName: string, + ?ShowMarkers: bool, + ?ShowLegend: bool, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?UpperMarker: Marker, + ?LowerMarker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UpperLine: Line, + ?LowerLine: Line, + ?RangeColor: Color, + ?RangePattern: Pattern, + ?UpperText: #IConvertible, + ?MultiUpperText: seq<#IConvertible>, + ?LowerText: #IConvertible, + ?MultiLowerText: seq<#IConvertible>, + ?TextFont: Font, + ?LowerName: string, + ?UpperName: string, + ?UseDefaults: bool ) = let useDefaults = @@ -1471,39 +1471,39 @@ module Chart2D = upper: seq<#IConvertible>, lower: seq<#IConvertible>, mode: StyleParam.Mode, - [] ?Name: string, - [] ?GroupName: string, - [] ?ShowMarkers: bool, - [] ?ShowLegend: bool, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?UpperMarker: Marker, - [] ?LowerMarker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?UpperLine: Line, - [] ?LowerLine: Line, - [] ?RangeColor: Color, - [] ?RangePattern: Pattern, - [] ?UpperText: #IConvertible, - [] ?MultiUpperText: seq<#IConvertible>, - [] ?LowerText: #IConvertible, - [] ?MultiLowerText: seq<#IConvertible>, - [] ?TextFont: Font, - [] ?LowerName: string, - [] ?UpperName: string, - [] ?UseDefaults: bool + ?Name: string, + ?GroupName: string, + ?ShowMarkers: bool, + ?ShowLegend: bool, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?UpperMarker: Marker, + ?LowerMarker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UpperLine: Line, + ?LowerLine: Line, + ?RangeColor: Color, + ?RangePattern: Pattern, + ?UpperText: #IConvertible, + ?MultiUpperText: seq<#IConvertible>, + ?LowerText: #IConvertible, + ?MultiLowerText: seq<#IConvertible>, + ?TextFont: Font, + ?LowerName: string, + ?UpperName: string, + ?UseDefaults: bool ) = let x, y = Seq.unzip xy @@ -1586,36 +1586,36 @@ module Chart2D = ( x: seq<#IConvertible>, y: seq<#IConvertible>, - [] ?ShowMarkers: bool, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?StackGroup: string, - [] ?Orientation: StyleParam.Orientation, - [] ?GroupNorm: StyleParam.GroupNorm, - [] ?FillColor: Color, - [] ?FillPatternShape: StyleParam.PatternShape, - [] ?FillPattern: Pattern, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?FillColor: Color, + ?FillPatternShape: StyleParam.PatternShape, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let fillpattern = @@ -1696,36 +1696,36 @@ module Chart2D = static member Area ( xy: seq<#IConvertible * #IConvertible>, - [] ?ShowMarkers: bool, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?StackGroup: string, - [] ?Orientation: StyleParam.Orientation, - [] ?GroupNorm: StyleParam.GroupNorm, - [] ?FillColor: Color, - [] ?FillPatternShape: StyleParam.PatternShape, - [] ?FillPattern: Pattern, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?FillColor: Color, + ?FillPatternShape: StyleParam.PatternShape, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let x, y = Seq.unzip xy @@ -1805,37 +1805,37 @@ module Chart2D = ( x: seq<#IConvertible>, y: seq<#IConvertible>, - [] ?ShowMarkers: bool, - [] ?Smoothing: float, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?StackGroup: string, - [] ?Orientation: StyleParam.Orientation, - [] ?GroupNorm: StyleParam.GroupNorm, - [] ?FillColor: Color, - [] ?FillPatternShape: StyleParam.PatternShape, - [] ?FillPattern: Pattern, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Smoothing: float, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?FillColor: Color, + ?FillPatternShape: StyleParam.PatternShape, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let fillpattern = @@ -1916,37 +1916,37 @@ module Chart2D = static member SplineArea ( xy: seq<#IConvertible * #IConvertible>, - [] ?ShowMarkers: bool, - [] ?Smoothing: float, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?StackGroup: string, - [] ?Orientation: StyleParam.Orientation, - [] ?GroupNorm: StyleParam.GroupNorm, - [] ?FillColor: Color, - [] ?FillPatternShape: StyleParam.PatternShape, - [] ?FillPattern: Pattern, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Smoothing: float, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?FillColor: Color, + ?FillPatternShape: StyleParam.PatternShape, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let x, y = Seq.unzip xy @@ -2022,33 +2022,33 @@ module Chart2D = ( x: seq<#IConvertible>, y: seq<#IConvertible>, - [] ?ShowMarkers: bool, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?Orientation: StyleParam.Orientation, - [] ?GroupNorm: StyleParam.GroupNorm, - [] ?FillColor: Color, - [] ?FillPatternShape: StyleParam.PatternShape, - [] ?FillPattern: Pattern, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?FillColor: Color, + ?FillPatternShape: StyleParam.PatternShape, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let fillpattern = @@ -2122,33 +2122,33 @@ module Chart2D = static member StackedArea ( xy: seq<#IConvertible * #IConvertible>, - [] ?ShowMarkers: bool, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?Orientation: StyleParam.Orientation, - [] ?GroupNorm: StyleParam.GroupNorm, - [] ?FillColor: Color, - [] ?FillPatternShape: StyleParam.PatternShape, - [] ?FillPattern: Pattern, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?FillColor: Color, + ?FillPatternShape: StyleParam.PatternShape, + ?FillPattern: Pattern, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let x, y = Seq.unzip xy @@ -2222,30 +2222,30 @@ module Chart2D = ( x: seq<#IConvertible>, y: seq<#IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Width: float, - [] ?Offset: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?Orientation: StyleParam.Orientation, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?MarkerColor: Color, - [] ?MarkerOutline: Line, - [] ?Marker: Marker, - [] ?TextInfo: StyleParam.TextInfo, - [] ?ConnectorLineColor: Color, - [] ?ConnectorLineStyle: StyleParam.DrawingStyle, - [] ?ConnectorFillColor: Color, - [] ?ConnectorLine: Line, - [] ?Connector: FunnelConnector, - [] ?InsideTextFont: Font, - [] ?OutsideTextFont: Font, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Width: float, + ?Offset: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?Orientation: StyleParam.Orientation, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?MarkerColor: Color, + ?MarkerOutline: Line, + ?Marker: Marker, + ?TextInfo: StyleParam.TextInfo, + ?ConnectorLineColor: Color, + ?ConnectorLineStyle: StyleParam.DrawingStyle, + ?ConnectorFillColor: Color, + ?ConnectorLine: Line, + ?Connector: FunnelConnector, + ?InsideTextFont: Font, + ?OutsideTextFont: Font, + ?UseDefaults: bool ) = let useDefaults = @@ -2327,30 +2327,30 @@ module Chart2D = ( x: seq<#IConvertible>, y: seq<#IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Width: float, - [] ?Offset: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?Orientation: StyleParam.Orientation, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?MarkerColor: Color, - [] ?MarkerOutline: Line, - [] ?Marker: Marker, - [] ?TextInfo: StyleParam.TextInfo, - [] ?ConnectorLineColor: Color, - [] ?ConnectorLineStyle: StyleParam.DrawingStyle, - [] ?ConnectorFillColor: Color, - [] ?ConnectorLine: Line, - [] ?Connector: FunnelConnector, - [] ?InsideTextFont: Font, - [] ?OutsideTextFont: Font, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Width: float, + ?Offset: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?Orientation: StyleParam.Orientation, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?MarkerColor: Color, + ?MarkerOutline: Line, + ?Marker: Marker, + ?TextInfo: StyleParam.TextInfo, + ?ConnectorLineColor: Color, + ?ConnectorLineStyle: StyleParam.DrawingStyle, + ?ConnectorFillColor: Color, + ?ConnectorLine: Line, + ?Connector: FunnelConnector, + ?InsideTextFont: Font, + ?OutsideTextFont: Font, + ?UseDefaults: bool ) = Chart.Funnel( x = x, @@ -2418,29 +2418,29 @@ module Chart2D = ( x: seq<#IConvertible>, y: seq<#IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?IncreasingColor: Color, - [] ?Increasing: FinanceMarker, - [] ?DecreasingColor: Color, - [] ?Decreasing: FinanceMarker, - [] ?TotalsColor: Color, - [] ?Totals: FinanceMarker, - [] ?Base: float, - [] ?Width: float, - [] ?MultiWidth: seq, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?TextFont: Font, - [] ?Connector: WaterfallConnector, - [] ?Measure: StyleParam.WaterfallMeasure seq, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?Orientation: StyleParam.Orientation, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?IncreasingColor: Color, + ?Increasing: FinanceMarker, + ?DecreasingColor: Color, + ?Decreasing: FinanceMarker, + ?TotalsColor: Color, + ?Totals: FinanceMarker, + ?Base: float, + ?Width: float, + ?MultiWidth: seq, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?TextFont: Font, + ?Connector: WaterfallConnector, + ?Measure: StyleParam.WaterfallMeasure seq, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?Orientation: StyleParam.Orientation, + ?UseDefaults: bool ) = let useDefaults = @@ -2522,29 +2522,29 @@ module Chart2D = static member Waterfall ( xy: seq<#IConvertible * #IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?IncreasingColor: Color, - [] ?Increasing: FinanceMarker, - [] ?DecreasingColor: Color, - [] ?Decreasing: FinanceMarker, - [] ?TotalsColor: Color, - [] ?Totals: FinanceMarker, - [] ?Base: float, - [] ?Width: float, - [] ?MultiWidth: seq, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?TextFont: Font, - [] ?Connector: WaterfallConnector, - [] ?Measure: StyleParam.WaterfallMeasure seq, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?Orientation: StyleParam.Orientation, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?IncreasingColor: Color, + ?Increasing: FinanceMarker, + ?DecreasingColor: Color, + ?Decreasing: FinanceMarker, + ?TotalsColor: Color, + ?Totals: FinanceMarker, + ?Base: float, + ?Width: float, + ?MultiWidth: seq, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?TextFont: Font, + ?Connector: WaterfallConnector, + ?Measure: StyleParam.WaterfallMeasure seq, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?Orientation: StyleParam.Orientation, + ?UseDefaults: bool ) = let x, y = Seq.unzip xy @@ -2609,28 +2609,28 @@ module Chart2D = static member Waterfall ( xymeasures: seq<#IConvertible * #IConvertible * StyleParam.WaterfallMeasure>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?IncreasingColor: Color, - [] ?Increasing: FinanceMarker, - [] ?DecreasingColor: Color, - [] ?Decreasing: FinanceMarker, - [] ?TotalsColor: Color, - [] ?Totals: FinanceMarker, - [] ?Base: float, - [] ?Width: float, - [] ?MultiWidth: seq, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?TextFont: Font, - [] ?Connector: WaterfallConnector, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?Orientation: StyleParam.Orientation, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?IncreasingColor: Color, + ?Increasing: FinanceMarker, + ?DecreasingColor: Color, + ?Decreasing: FinanceMarker, + ?TotalsColor: Color, + ?Totals: FinanceMarker, + ?Base: float, + ?Width: float, + ?MultiWidth: seq, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?TextFont: Font, + ?Connector: WaterfallConnector, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?Orientation: StyleParam.Orientation, + ?UseDefaults: bool ) = let x, y, measure = Seq.unzip3 xymeasures @@ -2694,27 +2694,27 @@ module Chart2D = static member Bar ( values: seq<#IConvertible>, - [] ?Keys: seq<#IConvertible>, - [] ?MultiKeys: seq>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerPatternShape: StyleParam.PatternShape, - [] ?MultiMarkerPatternShape: seq, - [] ?MarkerPattern: Pattern, - [] ?Marker: Marker, - [] ?Base: #IConvertible, - [] ?Width: #IConvertible, - [] ?MultiWidth: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?UseDefaults: bool + ?Keys: seq<#IConvertible>, + ?MultiKeys: seq>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?Base: #IConvertible, + ?Width: #IConvertible, + ?MultiWidth: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?UseDefaults: bool ) = let useDefaults = @@ -2787,25 +2787,25 @@ module Chart2D = static member Bar ( keysValues: seq<#IConvertible * #IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerPatternShape: StyleParam.PatternShape, - [] ?MultiMarkerPatternShape: seq, - [] ?MarkerPattern: Pattern, - [] ?Marker: Marker, - [] ?Base: #IConvertible, - [] ?Width: #IConvertible, - [] ?MultiWidth: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?Base: #IConvertible, + ?Width: #IConvertible, + ?MultiWidth: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?UseDefaults: bool ) = let keys, values = Seq.unzip keysValues @@ -2867,27 +2867,27 @@ module Chart2D = static member StackedBar ( values: seq<#IConvertible>, - [] ?Keys: seq<#IConvertible>, - [] ?MultiKeys: seq>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerPatternShape: StyleParam.PatternShape, - [] ?MultiMarkerPatternShape: seq, - [] ?MarkerPattern: Pattern, - [] ?Marker: Marker, - [] ?Base: #IConvertible, - [] ?Width: #IConvertible, - [] ?MultiWidth: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?UseDefaults: bool + ?Keys: seq<#IConvertible>, + ?MultiKeys: seq>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?Base: #IConvertible, + ?Width: #IConvertible, + ?MultiWidth: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?UseDefaults: bool ) = Chart.Bar( @@ -2947,25 +2947,25 @@ module Chart2D = static member StackedBar ( keysValues: seq<#IConvertible * #IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerPatternShape: StyleParam.PatternShape, - [] ?MultiMarkerPatternShape: seq, - [] ?MarkerPattern: Pattern, - [] ?Marker: Marker, - [] ?Base: #IConvertible, - [] ?Width: #IConvertible, - [] ?MultiWidth: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?Base: #IConvertible, + ?Width: #IConvertible, + ?MultiWidth: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?UseDefaults: bool ) = let keys, values = Seq.unzip keysValues @@ -3025,27 +3025,27 @@ module Chart2D = static member Column ( values: seq<#IConvertible>, - [] ?Keys: seq<#IConvertible>, - [] ?MultiKeys: seq>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerPatternShape: StyleParam.PatternShape, - [] ?MultiMarkerPatternShape: seq, - [] ?MarkerPattern: Pattern, - [] ?Marker: Marker, - [] ?Base: #IConvertible, - [] ?Width: #IConvertible, - [] ?MultiWidth: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?UseDefaults: bool + ?Keys: seq<#IConvertible>, + ?MultiKeys: seq>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?Base: #IConvertible, + ?Width: #IConvertible, + ?MultiWidth: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?UseDefaults: bool ) = let useDefaults = @@ -3119,25 +3119,25 @@ module Chart2D = static member Column ( keysValues: seq<#IConvertible * #IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerPatternShape: StyleParam.PatternShape, - [] ?MultiMarkerPatternShape: seq, - [] ?MarkerPattern: Pattern, - [] ?Marker: Marker, - [] ?Base: #IConvertible, - [] ?Width: #IConvertible, - [] ?MultiWidth: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?Base: #IConvertible, + ?Width: #IConvertible, + ?MultiWidth: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?UseDefaults: bool ) = let keys, values = Seq.unzip keysValues @@ -3199,27 +3199,27 @@ module Chart2D = static member StackedColumn ( values: seq<#IConvertible>, - [] ?Keys: seq<#IConvertible>, - [] ?MultiKeys: seq>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerPatternShape: StyleParam.PatternShape, - [] ?MultiMarkerPatternShape: seq, - [] ?MarkerPattern: Pattern, - [] ?Marker: Marker, - [] ?Base: #IConvertible, - [] ?Width: #IConvertible, - [] ?MultiWidth: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?UseDefaults: bool + ?Keys: seq<#IConvertible>, + ?MultiKeys: seq>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?Base: #IConvertible, + ?Width: #IConvertible, + ?MultiWidth: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?UseDefaults: bool ) = Chart.Column( @@ -3279,25 +3279,25 @@ module Chart2D = static member StackedColumn ( keysValues: seq<#IConvertible * #IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerPatternShape: StyleParam.PatternShape, - [] ?MultiMarkerPatternShape: seq, - [] ?MarkerPattern: Pattern, - [] ?Marker: Marker, - [] ?Base: #IConvertible, - [] ?Width: #IConvertible, - [] ?MultiWidth: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?Base: #IConvertible, + ?Width: #IConvertible, + ?MultiWidth: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?UseDefaults: bool ) = let keys, values = Seq.unzip keysValues @@ -3371,39 +3371,39 @@ module Chart2D = [] static member Histogram ( - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?Y: seq<#IConvertible>, - [] ?MultiY: seq>, - [] ?Orientation: StyleParam.Orientation, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?HistFunc: StyleParam.HistFunc, - [] ?HistNorm: StyleParam.HistNorm, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?NBinsX: int, - [] ?NBinsY: int, - [] ?BinGroup: string, - [] ?XBins: Bins, - [] ?YBins: Bins, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerPatternShape: StyleParam.PatternShape, - [] ?MultiMarkerPatternShape: seq, - [] ?MarkerPattern: Pattern, - [] ?Marker: Marker, - [] ?Line: Line, - [] ?XError: Error, - [] ?YError: Error, - [] ?Cumulative: Cumulative, - [] ?HoverLabel: Hoverlabel, - [] ?UseDefaults: bool + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?Y: seq<#IConvertible>, + ?MultiY: seq>, + ?Orientation: StyleParam.Orientation, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?HistFunc: StyleParam.HistFunc, + ?HistNorm: StyleParam.HistNorm, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?NBinsX: int, + ?NBinsY: int, + ?BinGroup: string, + ?XBins: Bins, + ?YBins: Bins, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?Line: Line, + ?XError: Error, + ?YError: Error, + ?Cumulative: Cumulative, + ?HoverLabel: Hoverlabel, + ?UseDefaults: bool ) = let useDefaults = @@ -3494,28 +3494,28 @@ module Chart2D = ( data: seq<#IConvertible>, orientation: StyleParam.Orientation, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?HistFunc: StyleParam.HistFunc, - [] ?HistNorm: StyleParam.HistNorm, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?NBinsX: int, - [] ?NBinsY: int, - [] ?BinGroup: string, - [] ?XBins: Bins, - [] ?YBins: Bins, - [] ?MarkerColor: Color, - [] ?Marker: Marker, - [] ?Line: Line, - [] ?XError: Error, - [] ?YError: Error, - [] ?Cumulative: Cumulative, - [] ?HoverLabel: Hoverlabel, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HistFunc: StyleParam.HistFunc, + ?HistNorm: StyleParam.HistNorm, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?NBinsX: int, + ?NBinsY: int, + ?BinGroup: string, + ?XBins: Bins, + ?YBins: Bins, + ?MarkerColor: Color, + ?Marker: Marker, + ?Line: Line, + ?XError: Error, + ?YError: Error, + ?Cumulative: Cumulative, + ?HoverLabel: Hoverlabel, + ?UseDefaults: bool ) = let useDefaults = @@ -3583,28 +3583,28 @@ module Chart2D = [] static member Histogram2D ( - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?Y: seq<#IConvertible>, - [] ?MultiY: seq>, - [] ?Z: seq<#seq<#IConvertible>>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?XGap: int, - [] ?YGap: int, - [] ?HistFunc: StyleParam.HistFunc, - [] ?HistNorm: StyleParam.HistNorm, - [] ?NBinsX: int, - [] ?NBinsY: int, - [] ?XBins: Bins, - [] ?YBins: Bins, - [] ?ColorBar: ColorBar, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?ZSmooth: StyleParam.SmoothAlg, - [] ?UseDefaults: bool + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?Y: seq<#IConvertible>, + ?MultiY: seq>, + ?Z: seq<#seq<#IConvertible>>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?XGap: int, + ?YGap: int, + ?HistFunc: StyleParam.HistFunc, + ?HistNorm: StyleParam.HistNorm, + ?NBinsX: int, + ?NBinsY: int, + ?XBins: Bins, + ?YBins: Bins, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZSmooth: StyleParam.SmoothAlg, + ?UseDefaults: bool ) = let useDefaults = @@ -3667,24 +3667,24 @@ module Chart2D = ( x: seq<#IConvertible>, y: seq<#IConvertible>, - [] ?Z: seq<#seq<#IConvertible>>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?XGap: int, - [] ?YGap: int, - [] ?HistFunc: StyleParam.HistFunc, - [] ?HistNorm: StyleParam.HistNorm, - [] ?NBinsX: int, - [] ?NBinsY: int, - [] ?XBins: Bins, - [] ?YBins: Bins, - [] ?ColorBar: ColorBar, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?ZSmooth: StyleParam.SmoothAlg, - [] ?UseDefaults: bool + ?Z: seq<#seq<#IConvertible>>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?XGap: int, + ?YGap: int, + ?HistFunc: StyleParam.HistFunc, + ?HistNorm: StyleParam.HistNorm, + ?NBinsX: int, + ?NBinsY: int, + ?XBins: Bins, + ?YBins: Bins, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZSmooth: StyleParam.SmoothAlg, + ?UseDefaults: bool ) = Chart.Histogram2D( @@ -3749,34 +3749,34 @@ module Chart2D = [] static member BoxPlot ( - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?Y: seq<#IConvertible>, - [] ?MultiY: seq>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?FillColor: Color, - [] ?MarkerColor: Color, - [] ?Marker: Marker, - [] ?Opacity: float, - [] ?WhiskerWidth: float, - [] ?BoxPoints: StyleParam.BoxPoints, - [] ?BoxMean: StyleParam.BoxMean, - [] ?Jitter: float, - [] ?PointPos: float, - [] ?Orientation: StyleParam.Orientation, - [] ?OutlineColor: Color, - [] ?OutlineWidth: float, - [] ?Outline: Line, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?Notched: bool, - [] ?NotchWidth: float, - [] ?QuartileMethod: StyleParam.QuartileMethod, - [] ?SizeMode: StyleParam.BoxSizeMode, - [] ?UseDefaults: bool + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?Y: seq<#IConvertible>, + ?MultiY: seq>, + ?Name: string, + ?ShowLegend: bool, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?FillColor: Color, + ?MarkerColor: Color, + ?Marker: Marker, + ?Opacity: float, + ?WhiskerWidth: float, + ?BoxPoints: StyleParam.BoxPoints, + ?BoxMean: StyleParam.BoxMean, + ?Jitter: float, + ?PointPos: float, + ?Orientation: StyleParam.Orientation, + ?OutlineColor: Color, + ?OutlineWidth: float, + ?Outline: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?Notched: bool, + ?NotchWidth: float, + ?QuartileMethod: StyleParam.QuartileMethod, + ?SizeMode: StyleParam.BoxSizeMode, + ?UseDefaults: bool ) = let useDefaults = @@ -3860,29 +3860,29 @@ module Chart2D = ( data: seq<#IConvertible>, orientation: StyleParam.Orientation, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?FillColor: Color, - [] ?MarkerColor: Color, - [] ?Marker: Marker, - [] ?Opacity: float, - [] ?WhiskerWidth: float, - [] ?BoxPoints: StyleParam.BoxPoints, - [] ?BoxMean: StyleParam.BoxMean, - [] ?Jitter: float, - [] ?PointPos: float, - [] ?OutlineColor: Color, - [] ?OutlineWidth: float, - [] ?Outline: Line, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?Notched: bool, - [] ?NotchWidth: float, - [] ?QuartileMethod: StyleParam.QuartileMethod, - [] ?SizeMode: StyleParam.BoxSizeMode, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?FillColor: Color, + ?MarkerColor: Color, + ?Marker: Marker, + ?Opacity: float, + ?WhiskerWidth: float, + ?BoxPoints: StyleParam.BoxPoints, + ?BoxMean: StyleParam.BoxMean, + ?Jitter: float, + ?PointPos: float, + ?OutlineColor: Color, + ?OutlineWidth: float, + ?Outline: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?Notched: bool, + ?NotchWidth: float, + ?QuartileMethod: StyleParam.QuartileMethod, + ?SizeMode: StyleParam.BoxSizeMode, + ?UseDefaults: bool ) = let boxplot = @@ -3953,30 +3953,30 @@ module Chart2D = static member BoxPlot ( xy: seq<#IConvertible * #IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?FillColor: Color, - [] ?MarkerColor: Color, - [] ?Marker: Marker, - [] ?Opacity: float, - [] ?WhiskerWidth: float, - [] ?BoxPoints: StyleParam.BoxPoints, - [] ?BoxMean: StyleParam.BoxMean, - [] ?Jitter: float, - [] ?PointPos: float, - [] ?Orientation: StyleParam.Orientation, - [] ?OutlineColor: Color, - [] ?OutlineWidth: float, - [] ?Outline: Line, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?Notched: bool, - [] ?NotchWidth: float, - [] ?QuartileMethod: StyleParam.QuartileMethod, - [] ?SizeMode: StyleParam.BoxSizeMode, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?FillColor: Color, + ?MarkerColor: Color, + ?Marker: Marker, + ?Opacity: float, + ?WhiskerWidth: float, + ?BoxPoints: StyleParam.BoxPoints, + ?BoxMean: StyleParam.BoxMean, + ?Jitter: float, + ?PointPos: float, + ?Orientation: StyleParam.Orientation, + ?OutlineColor: Color, + ?OutlineWidth: float, + ?Outline: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?Notched: bool, + ?NotchWidth: float, + ?QuartileMethod: StyleParam.QuartileMethod, + ?SizeMode: StyleParam.BoxSizeMode, + ?UseDefaults: bool ) = let x, y = Seq.unzip xy @@ -4055,40 +4055,40 @@ module Chart2D = [] static member Violin ( - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?Y: seq<#IConvertible>, - [] ?MultiY: seq>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?FillColor: Color, - [] ?Opacity: float, - [] ?Points: StyleParam.JitterPoints, - [] ?Jitter: float, - [] ?PointPos: float, - [] ?Orientation: StyleParam.Orientation, - [] ?Width: float, - [] ?MarkerColor: Color, - [] ?Marker: Marker, - [] ?OutlineColor: Color, - [] ?OutlineWidth: float, - [] ?Outline: Line, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?ShowBox: bool, - [] ?BoxWidth: float, - [] ?BoxFillColor: Color, - [] ?Box: Box, - [] ?BandWidth: float, - [] ?MeanLine: MeanLine, - [] ?ScaleGroup: string, - [] ?ScaleMode: StyleParam.ScaleMode, - [] ?Side: StyleParam.ViolinSide, - [] ?Span: StyleParam.Range, - [] ?SpanMode: StyleParam.SpanMode, - [] ?UseDefaults: bool + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?Y: seq<#IConvertible>, + ?MultiY: seq>, + ?Name: string, + ?ShowLegend: bool, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?FillColor: Color, + ?Opacity: float, + ?Points: StyleParam.JitterPoints, + ?Jitter: float, + ?PointPos: float, + ?Orientation: StyleParam.Orientation, + ?Width: float, + ?MarkerColor: Color, + ?Marker: Marker, + ?OutlineColor: Color, + ?OutlineWidth: float, + ?Outline: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?ShowBox: bool, + ?BoxWidth: float, + ?BoxFillColor: Color, + ?Box: Box, + ?BandWidth: float, + ?MeanLine: MeanLine, + ?ScaleGroup: string, + ?ScaleMode: StyleParam.ScaleMode, + ?Side: StyleParam.ViolinSide, + ?Span: StyleParam.Range, + ?SpanMode: StyleParam.SpanMode, + ?UseDefaults: bool ) = let useDefaults = @@ -4185,35 +4185,35 @@ module Chart2D = ( data: seq<#IConvertible>, orientation: StyleParam.Orientation, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?FillColor: Color, - [] ?Opacity: float, - [] ?Points: StyleParam.JitterPoints, - [] ?Jitter: float, - [] ?PointPos: float, - [] ?Width: float, - [] ?MarkerColor: Color, - [] ?Marker: Marker, - [] ?OutlineColor: Color, - [] ?OutlineWidth: float, - [] ?Outline: Line, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?ShowBox: bool, - [] ?BoxWidth: float, - [] ?BoxFillColor: Color, - [] ?Box: Box, - [] ?BandWidth: float, - [] ?MeanLine: MeanLine, - [] ?ScaleGroup: string, - [] ?ScaleMode: StyleParam.ScaleMode, - [] ?Side: StyleParam.ViolinSide, - [] ?Span: StyleParam.Range, - [] ?SpanMode: StyleParam.SpanMode, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?FillColor: Color, + ?Opacity: float, + ?Points: StyleParam.JitterPoints, + ?Jitter: float, + ?PointPos: float, + ?Width: float, + ?MarkerColor: Color, + ?Marker: Marker, + ?OutlineColor: Color, + ?OutlineWidth: float, + ?Outline: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?ShowBox: bool, + ?BoxWidth: float, + ?BoxFillColor: Color, + ?Box: Box, + ?BandWidth: float, + ?MeanLine: MeanLine, + ?ScaleGroup: string, + ?ScaleMode: StyleParam.ScaleMode, + ?Side: StyleParam.ViolinSide, + ?Span: StyleParam.Range, + ?SpanMode: StyleParam.SpanMode, + ?UseDefaults: bool ) = let violin = @@ -4295,36 +4295,36 @@ module Chart2D = static member Violin ( xy: seq<#IConvertible * #IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?FillColor: Color, - [] ?Opacity: float, - [] ?Points: StyleParam.JitterPoints, - [] ?Jitter: float, - [] ?PointPos: float, - [] ?Orientation: StyleParam.Orientation, - [] ?Width: float, - [] ?MarkerColor: Color, - [] ?Marker: Marker, - [] ?OutlineColor: Color, - [] ?OutlineWidth: float, - [] ?Outline: Line, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?ShowBox: bool, - [] ?BoxWidth: float, - [] ?BoxFillColor: Color, - [] ?Box: Box, - [] ?BandWidth: float, - [] ?MeanLine: MeanLine, - [] ?ScaleGroup: string, - [] ?ScaleMode: StyleParam.ScaleMode, - [] ?Side: StyleParam.ViolinSide, - [] ?Span: StyleParam.Range, - [] ?SpanMode: StyleParam.SpanMode, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?FillColor: Color, + ?Opacity: float, + ?Points: StyleParam.JitterPoints, + ?Jitter: float, + ?PointPos: float, + ?Orientation: StyleParam.Orientation, + ?Width: float, + ?MarkerColor: Color, + ?Marker: Marker, + ?OutlineColor: Color, + ?OutlineWidth: float, + ?Outline: Line, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?ShowBox: bool, + ?BoxWidth: float, + ?BoxFillColor: Color, + ?Box: Box, + ?BandWidth: float, + ?MeanLine: MeanLine, + ?ScaleGroup: string, + ?ScaleMode: StyleParam.ScaleMode, + ?Side: StyleParam.ViolinSide, + ?Span: StyleParam.Range, + ?SpanMode: StyleParam.SpanMode, + ?UseDefaults: bool ) = let x, y = Seq.unzip xy @@ -4411,44 +4411,44 @@ module Chart2D = [] static member Histogram2DContour ( - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?Y: seq<#IConvertible>, - [] ?MultiY: seq>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Z: seq<#seq<#IConvertible>>, - [] ?HistFunc: StyleParam.HistFunc, - [] ?HistNorm: StyleParam.HistNorm, - [] ?NBinsX: int, - [] ?NBinsY: int, - [] ?BinGroup: string, - [] ?XBinGroup: string, - [] ?XBins: Bins, - [] ?YBinGroup: string, - [] ?YBins: Bins, - [] ?Marker: Marker, - [] ?ContourLinesColor: Color, - [] ?ContourLinesDash: StyleParam.DrawingStyle, - [] ?ContourLinesSmoothing: float, - [] ?ContourLinesWidth: float, - [] ?ContourLines: Line, - [] ?ShowContourLines: bool, - [] ?ContoursColoring: StyleParam.ContourColoring, - [] ?ContoursOperation: StyleParam.ConstraintOperation, - [] ?ContoursType: StyleParam.ContourType, - [] ?ShowContoursLabels: bool, - [] ?ContoursLabelFont: Font, - [] ?ContoursStart: float, - [] ?ContoursEnd: float, - [] ?Contours: Contours, - [] ?ColorBar: ColorBar, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?NContours: int, - [] ?UseDefaults: bool + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?Y: seq<#IConvertible>, + ?MultiY: seq>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Z: seq<#seq<#IConvertible>>, + ?HistFunc: StyleParam.HistFunc, + ?HistNorm: StyleParam.HistNorm, + ?NBinsX: int, + ?NBinsY: int, + ?BinGroup: string, + ?XBinGroup: string, + ?XBins: Bins, + ?YBinGroup: string, + ?YBins: Bins, + ?Marker: Marker, + ?ContourLinesColor: Color, + ?ContourLinesDash: StyleParam.DrawingStyle, + ?ContourLinesSmoothing: float, + ?ContourLinesWidth: float, + ?ContourLines: Line, + ?ShowContourLines: bool, + ?ContoursColoring: StyleParam.ContourColoring, + ?ContoursOperation: StyleParam.ConstraintOperation, + ?ContoursType: StyleParam.ContourType, + ?ShowContoursLabels: bool, + ?ContoursLabelFont: Font, + ?ContoursStart: float, + ?ContoursEnd: float, + ?Contours: Contours, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?NContours: int, + ?UseDefaults: bool ) = let useDefaults = @@ -4561,40 +4561,40 @@ module Chart2D = ( x: seq<#IConvertible>, y: seq<#IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Z: seq<#seq<#IConvertible>>, - [] ?HistFunc: StyleParam.HistFunc, - [] ?HistNorm: StyleParam.HistNorm, - [] ?NBinsX: int, - [] ?NBinsY: int, - [] ?BinGroup: string, - [] ?XBinGroup: string, - [] ?XBins: Bins, - [] ?YBinGroup: string, - [] ?YBins: Bins, - [] ?Marker: Marker, - [] ?ContourLinesColor: Color, - [] ?ContourLinesDash: StyleParam.DrawingStyle, - [] ?ContourLinesSmoothing: float, - [] ?ContourLinesWidth: float, - [] ?ContourLines: Line, - [] ?ShowContourLines: bool, - [] ?ContoursColoring: StyleParam.ContourColoring, - [] ?ContoursOperation: StyleParam.ConstraintOperation, - [] ?ContoursType: StyleParam.ContourType, - [] ?ShowContoursLabels: bool, - [] ?ContoursLabelFont: Font, - [] ?ContoursStart: float, - [] ?ContoursEnd: float, - [] ?Contours: Contours, - [] ?ColorBar: ColorBar, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?NContours: int, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Z: seq<#seq<#IConvertible>>, + ?HistFunc: StyleParam.HistFunc, + ?HistNorm: StyleParam.HistNorm, + ?NBinsX: int, + ?NBinsY: int, + ?BinGroup: string, + ?XBinGroup: string, + ?XBins: Bins, + ?YBinGroup: string, + ?YBins: Bins, + ?Marker: Marker, + ?ContourLinesColor: Color, + ?ContourLinesDash: StyleParam.DrawingStyle, + ?ContourLinesSmoothing: float, + ?ContourLinesWidth: float, + ?ContourLines: Line, + ?ShowContourLines: bool, + ?ContoursColoring: StyleParam.ContourColoring, + ?ContoursOperation: StyleParam.ConstraintOperation, + ?ContoursType: StyleParam.ContourType, + ?ShowContoursLabels: bool, + ?ContoursLabelFont: Font, + ?ContoursStart: float, + ?ContoursEnd: float, + ?Contours: Contours, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?NContours: int, + ?UseDefaults: bool ) = Chart.Histogram2DContour( X = x, @@ -4665,26 +4665,26 @@ module Chart2D = static member Heatmap ( zData: seq<#seq<#IConvertible>>, - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?Y: seq<#IConvertible>, - [] ?MultiY: seq>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?XGap: int, - [] ?YGap: int, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?ColorBar: ColorBar, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?ZSmooth: StyleParam.SmoothAlg, - [] ?Transpose: bool, - [] ?UseWebGL: bool, - [] ?ReverseYAxis: bool, - [] ?UseDefaults: bool + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?Y: seq<#IConvertible>, + ?MultiY: seq>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?XGap: int, + ?YGap: int, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZSmooth: StyleParam.SmoothAlg, + ?Transpose: bool, + ?UseWebGL: bool, + ?ReverseYAxis: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -4754,22 +4754,22 @@ module Chart2D = zData: seq<#seq<#IConvertible>>, colNames: seq, rowNames: seq, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?XGap: int, - [] ?YGap: int, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?ColorBar: ColorBar, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?ZSmooth: StyleParam.SmoothAlg, - [] ?Transpose: bool, - [] ?UseWebGL: bool, - [] ?ReverseYAxis: bool, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?XGap: int, + ?YGap: int, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZSmooth: StyleParam.SmoothAlg, + ?Transpose: bool, + ?UseWebGL: bool, + ?ReverseYAxis: bool, + ?UseDefaults: bool ) = Chart.Heatmap( @@ -4828,26 +4828,26 @@ module Chart2D = ( zData: seq<#seq<#IConvertible>>, annotationText: seq<#seq>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?XGap: int, - [] ?Y: seq<#IConvertible>, - [] ?MultiY: seq>, - [] ?YGap: int, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?ColorBar: ColorBar, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?ZSmooth: StyleParam.SmoothAlg, - [] ?Transpose: bool, - [] ?UseWebGL: bool, - [] ?ReverseYAxis: bool, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?XGap: int, + ?Y: seq<#IConvertible>, + ?MultiY: seq>, + ?YGap: int, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZSmooth: StyleParam.SmoothAlg, + ?Transpose: bool, + ?UseWebGL: bool, + ?ReverseYAxis: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -4932,26 +4932,26 @@ module Chart2D = static member AnnotatedHeatmap ( dataAnnotations: seq<#seq<#IConvertible * string>>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?XGap: int, - [] ?Y: seq<#IConvertible>, - [] ?MultiY: seq>, - [] ?YGap: int, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?ColorBar: ColorBar, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?ZSmooth: StyleParam.SmoothAlg, - [] ?Transpose: bool, - [] ?UseWebGL: bool, - [] ?ReverseYAxis: bool, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?XGap: int, + ?Y: seq<#IConvertible>, + ?MultiY: seq>, + ?YGap: int, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZSmooth: StyleParam.SmoothAlg, + ?Transpose: bool, + ?UseWebGL: bool, + ?ReverseYAxis: bool, + ?UseDefaults: bool ) = let zData = @@ -5002,17 +5002,17 @@ module Chart2D = [] static member Image ( - [] ?Z: seq<#seq<#seq>>, - [] ?Source: string, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?ColorModel: StyleParam.ColorModel, - [] ?ZMax: StyleParam.ColorComponentBound, - [] ?ZMin: StyleParam.ColorComponentBound, - [] ?ZSmooth: StyleParam.SmoothAlg, - [] ?UseDefaults: bool + ?Z: seq<#seq<#seq>>, + ?Source: string, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?ColorModel: StyleParam.ColorModel, + ?ZMax: StyleParam.ColorComponentBound, + ?ZMin: StyleParam.ColorComponentBound, + ?ZSmooth: StyleParam.SmoothAlg, + ?UseDefaults: bool ) = let useDefaults = @@ -5050,14 +5050,14 @@ module Chart2D = static member Image ( z: seq<#seq>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?ZMax: StyleParam.ColorComponentBound, - [] ?ZMin: StyleParam.ColorComponentBound, - [] ?ZSmooth: StyleParam.SmoothAlg, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?ZMax: StyleParam.ColorComponentBound, + ?ZMin: StyleParam.ColorComponentBound, + ?ZSmooth: StyleParam.SmoothAlg, + ?UseDefaults: bool ) = let useDefaults = @@ -5134,37 +5134,37 @@ module Chart2D = static member Contour ( zData: seq<#seq<#IConvertible>>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?Y: seq<#IConvertible>, - [] ?MultiY: seq>, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?ColorBar: ColorBar, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?Transpose: bool, - [] ?ContourLinesColor: Color, - [] ?ContourLinesDash: StyleParam.DrawingStyle, - [] ?ContourLinesSmoothing: float, - [] ?ContourLinesWidth: float, - [] ?ContourLines: Line, - [] ?ShowContourLines: bool, - [] ?ContoursColoring: StyleParam.ContourColoring, - [] ?ContoursOperation: StyleParam.ConstraintOperation, - [] ?ContoursType: StyleParam.ContourType, - [] ?ShowContoursLabels: bool, - [] ?ContoursLabelFont: Font, - [] ?ContoursStart: float, - [] ?ContoursEnd: float, - [] ?Contours: Contours, - [] ?FillColor: Color, - [] ?NContours: int, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?Y: seq<#IConvertible>, + ?MultiY: seq>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?Transpose: bool, + ?ContourLinesColor: Color, + ?ContourLinesDash: StyleParam.DrawingStyle, + ?ContourLinesSmoothing: float, + ?ContourLinesWidth: float, + ?ContourLines: Line, + ?ShowContourLines: bool, + ?ContoursColoring: StyleParam.ContourColoring, + ?ContoursOperation: StyleParam.ConstraintOperation, + ?ContoursType: StyleParam.ContourType, + ?ShowContoursLabels: bool, + ?ContoursLabelFont: Font, + ?ContoursStart: float, + ?ContoursEnd: float, + ?Contours: Contours, + ?FillColor: Color, + ?NContours: int, + ?UseDefaults: bool ) = let useDefaults = @@ -5255,21 +5255,21 @@ module Chart2D = high: #IConvertible seq, low: #IConvertible seq, close: #IConvertible seq, - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?Line: Line, - [] ?IncreasingColor: Color, - [] ?Increasing: FinanceMarker, - [] ?DecreasingColor: Color, - [] ?Decreasing: FinanceMarker, - [] ?TickWidth: float, - [] ?ShowXAxisRangeSlider: bool, - [] ?UseDefaults: bool + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?Line: Line, + ?IncreasingColor: Color, + ?Increasing: FinanceMarker, + ?DecreasingColor: Color, + ?Decreasing: FinanceMarker, + ?TickWidth: float, + ?ShowXAxisRangeSlider: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -5344,19 +5344,19 @@ module Chart2D = low: #IConvertible seq, close: #IConvertible seq, x: #IConvertible seq, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?Line: Line, - [] ?IncreasingColor: Color, - [] ?Increasing: FinanceMarker, - [] ?DecreasingColor: Color, - [] ?Decreasing: FinanceMarker, - [] ?TickWidth: float, - [] ?ShowXAxisRangeSlider: bool, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?Line: Line, + ?IncreasingColor: Color, + ?Increasing: FinanceMarker, + ?DecreasingColor: Color, + ?Decreasing: FinanceMarker, + ?TickWidth: float, + ?ShowXAxisRangeSlider: bool, + ?UseDefaults: bool ) = Chart.OHLC( @@ -5403,19 +5403,19 @@ module Chart2D = static member OHLC ( stockTimeSeries: seq, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?Line: Line, - [] ?IncreasingColor: Color, - [] ?Increasing: FinanceMarker, - [] ?DecreasingColor: Color, - [] ?Decreasing: FinanceMarker, - [] ?TickWidth: float, - [] ?ShowXAxisRangeSlider: bool, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?Line: Line, + ?IncreasingColor: Color, + ?Increasing: FinanceMarker, + ?DecreasingColor: Color, + ?Decreasing: FinanceMarker, + ?TickWidth: float, + ?ShowXAxisRangeSlider: bool, + ?UseDefaults: bool ) = Chart.OHLC( @@ -5471,21 +5471,21 @@ module Chart2D = high: #IConvertible seq, low: #IConvertible seq, close: #IConvertible seq, - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?Line: Line, - [] ?IncreasingColor: Color, - [] ?Increasing: FinanceMarker, - [] ?DecreasingColor: Color, - [] ?Decreasing: FinanceMarker, - [] ?WhiskerWidth: float, - [] ?ShowXAxisRangeSlider: bool, - [] ?UseDefaults: bool + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?Line: Line, + ?IncreasingColor: Color, + ?Increasing: FinanceMarker, + ?DecreasingColor: Color, + ?Decreasing: FinanceMarker, + ?WhiskerWidth: float, + ?ShowXAxisRangeSlider: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -5560,19 +5560,19 @@ module Chart2D = low: #IConvertible seq, close: #IConvertible seq, x: #IConvertible seq, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?Line: Line, - [] ?IncreasingColor: Color, - [] ?Increasing: FinanceMarker, - [] ?DecreasingColor: Color, - [] ?Decreasing: FinanceMarker, - [] ?WhiskerWidth: float, - [] ?ShowXAxisRangeSlider: bool, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?Line: Line, + ?IncreasingColor: Color, + ?Increasing: FinanceMarker, + ?DecreasingColor: Color, + ?Decreasing: FinanceMarker, + ?WhiskerWidth: float, + ?ShowXAxisRangeSlider: bool, + ?UseDefaults: bool ) = Chart.Candlestick( @@ -5619,19 +5619,19 @@ module Chart2D = static member Candlestick ( stockTimeSeries: seq, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?Line: Line, - [] ?IncreasingColor: Color, - [] ?Increasing: FinanceMarker, - [] ?DecreasingColor: Color, - [] ?Decreasing: FinanceMarker, - [] ?WhiskerWidth: float, - [] ?ShowXAxisRangeSlider: bool, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?Line: Line, + ?IncreasingColor: Color, + ?Increasing: FinanceMarker, + ?DecreasingColor: Color, + ?Decreasing: FinanceMarker, + ?WhiskerWidth: float, + ?ShowXAxisRangeSlider: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -5684,22 +5684,22 @@ module Chart2D = static member Splom ( dimensions: seq, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?ShowDiagonal: bool, - [] ?Diagonal: SplomDiagonal, - [] ?ShowLowerHalf: bool, - [] ?ShowUpperHalf: bool, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?ShowDiagonal: bool, + ?Diagonal: SplomDiagonal, + ?ShowLowerHalf: bool, + ?ShowUpperHalf: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -5763,22 +5763,22 @@ module Chart2D = static member Splom ( keyValues: seq>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?ShowDiagonal: bool, - [] ?Diagonal: SplomDiagonal, - [] ?ShowLowerHalf: bool, - [] ?ShowUpperHalf: bool, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?ShowDiagonal: bool, + ?Diagonal: SplomDiagonal, + ?ShowLowerHalf: bool, + ?ShowUpperHalf: bool, + ?UseDefaults: bool ) = let dims = @@ -5842,31 +5842,31 @@ module Chart2D = ( x: seq<#IConvertible>, y: seq<#IConvertible>, - [] ?PointOpacity: float, - [] ?PointMarkerColor: Color, - [] ?PointMarkerSymbol: StyleParam.MarkerSymbol, - [] ?PointMarkerSize: int, - [] ?ContourLinesColor: Color, - [] ?ContourLinesDash: StyleParam.DrawingStyle, - [] ?ContourLinesSmoothing: float, - [] ?ContourLinesWidth: float, - [] ?ContourLines: Line, - [] ?ShowContourLines: bool, - [] ?ContoursColoring: StyleParam.ContourColoring, - [] ?ContoursOperation: StyleParam.ConstraintOperation, - [] ?ContoursType: StyleParam.ContourType, - [] ?ShowContoursLabels: bool, - [] ?ContoursLabelFont: Font, - [] ?ContoursStart: float, - [] ?ContoursEnd: float, - [] ?Contours: Contours, - [] ?NContours: int, - [] ?HistNorm: StyleParam.HistNorm, - [] ?ContourOpacity: float, - [] ?ColorBar: ColorBar, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?UseDefaults: bool + ?PointOpacity: float, + ?PointMarkerColor: Color, + ?PointMarkerSymbol: StyleParam.MarkerSymbol, + ?PointMarkerSize: int, + ?ContourLinesColor: Color, + ?ContourLinesDash: StyleParam.DrawingStyle, + ?ContourLinesSmoothing: float, + ?ContourLinesWidth: float, + ?ContourLines: Line, + ?ShowContourLines: bool, + ?ContoursColoring: StyleParam.ContourColoring, + ?ContoursOperation: StyleParam.ConstraintOperation, + ?ContoursType: StyleParam.ContourType, + ?ShowContoursLabels: bool, + ?ContoursLabelFont: Font, + ?ContoursStart: float, + ?ContoursEnd: float, + ?Contours: Contours, + ?NContours: int, + ?HistNorm: StyleParam.HistNorm, + ?ContourOpacity: float, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?UseDefaults: bool ) = let showContourLines = @@ -5952,9 +5952,9 @@ module Chart2D = static member Pareto ( keysValues: seq<#IConvertible * float> - , [] ?Name: string - , [] ?Label: string - , [] ?ShowGrid: bool + , ?Name: string + , ?Label: string + , ?ShowGrid: bool ) = let orderedLabels, orderedValues = keysValues @@ -6010,8 +6010,8 @@ module Chart2D = ( labels: seq<#IConvertible> , values: seq - , [] ?Name: string - , [] ?Label: string - , [] ?ShowGrid: bool + , ?Name: string + , ?Label: string + , ?ShowGrid: bool ) = Chart.Pareto(Seq.zip labels values, ?Name=Name, ?Label=Label, ?ShowGrid=ShowGrid) \ No newline at end of file diff --git a/src/Plotly.NET/ChartAPI/Chart3D.fs b/src/Plotly.NET/ChartAPI/Chart3D.fs index 6836add97..e08deb784 100644 --- a/src/Plotly.NET/ChartAPI/Chart3D.fs +++ b/src/Plotly.NET/ChartAPI/Chart3D.fs @@ -59,29 +59,29 @@ module Chart3D = y: seq<#IConvertible>, z: seq<#IConvertible>, mode: StyleParam.Mode, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?CameraProjectionType: StyleParam.CameraProjectionType, - [] ?Camera: Camera, - [] ?Projection: Projection, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?Projection: Projection, + ?UseDefaults: bool ) = let useDefaults = @@ -179,29 +179,29 @@ module Chart3D = ( xyz: seq<#IConvertible * #IConvertible * #IConvertible>, mode: StyleParam.Mode, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?CameraProjectionType: StyleParam.CameraProjectionType, - [] ?Camera: Camera, - [] ?Projection: Projection, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?Projection: Projection, + ?UseDefaults: bool ) = let useDefaults = @@ -271,24 +271,24 @@ module Chart3D = x: seq<#IConvertible>, y: seq<#IConvertible>, z: seq<#IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?CameraProjectionType: StyleParam.CameraProjectionType, - [] ?Camera: Camera, - [] ?Projection: Projection, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?Projection: Projection, + ?UseDefaults: bool ) = // if text position or font is set, then show labels (not only when hovering) @@ -348,24 +348,24 @@ module Chart3D = static member Point3D ( xyz: seq<#IConvertible * #IConvertible * #IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?CameraProjectionType: StyleParam.CameraProjectionType, - [] ?Camera: Camera, - [] ?Projection: Projection, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?Projection: Projection, + ?UseDefaults: bool ) = let x, y, z = Seq.unzip3 xyz @@ -433,30 +433,30 @@ module Chart3D = x: seq<#IConvertible>, y: seq<#IConvertible>, z: seq<#IConvertible>, - [] ?ShowMarkers: bool, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?CameraProjectionType: StyleParam.CameraProjectionType, - [] ?Camera: Camera, - [] ?Projection: Projection, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?Projection: Projection, + ?UseDefaults: bool ) = let changeMode = let isShowMarker = @@ -532,30 +532,30 @@ module Chart3D = static member Line3D ( xyz: seq<#IConvertible * #IConvertible * #IConvertible>, - [] ?ShowMarkers: bool, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?CameraProjectionType: StyleParam.CameraProjectionType, - [] ?Camera: Camera, - [] ?Projection: Projection, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?Projection: Projection, + ?UseDefaults: bool ) = let x, y, z = Seq.unzip3 xyz @@ -625,24 +625,24 @@ module Chart3D = y: seq<#IConvertible>, z: seq<#IConvertible>, sizes: seq, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?CameraProjectionType: StyleParam.CameraProjectionType, - [] ?Camera: Camera, - [] ?Projection: Projection, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?Projection: Projection, + ?UseDefaults: bool ) = let useDefaults = @@ -726,24 +726,24 @@ module Chart3D = ( xyz, sizes, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?CameraProjectionType: StyleParam.CameraProjectionType, - [] ?Camera: Camera, - [] ?Projection: Projection, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?Projection: Projection, + ?UseDefaults: bool ) = let x, y, z = Seq.unzip3 xyz @@ -802,24 +802,24 @@ module Chart3D = static member Bubble3D ( xyzsizes, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?CameraProjectionType: StyleParam.CameraProjectionType, - [] ?Camera: Camera, - [] ?Projection: Projection, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?Projection: Projection, + ?UseDefaults: bool ) = let x, y, z, sizes = @@ -881,19 +881,19 @@ module Chart3D = static member Surface ( zData, - [] ?X: seq<#IConvertible>, - [] ?Y: seq<#IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?Contours: Contours, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?CameraProjectionType: StyleParam.CameraProjectionType, - [] ?Camera: Camera, - [] ?UseDefaults: bool + ?X: seq<#IConvertible>, + ?Y: seq<#IConvertible>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?Contours: Contours, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?UseDefaults: bool ) = let useDefaults = @@ -968,24 +968,24 @@ module Chart3D = x: seq<#IConvertible>, y: seq<#IConvertible>, z: seq<#IConvertible>, - [] ?I: seq<#IConvertible>, - [] ?J: seq<#IConvertible>, - [] ?K: seq<#IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?Color: Color, - [] ?Contour: Contour, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ColorBar: ColorBar, - [] ?FlatShading: bool, - [] ?TriangulationAlgorithm: StyleParam.TriangulationAlgorithm, - [] ?CameraProjectionType: StyleParam.CameraProjectionType, - [] ?Camera: Camera, - [] ?UseDefaults: bool + ?I: seq<#IConvertible>, + ?J: seq<#IConvertible>, + ?K: seq<#IConvertible>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?Color: Color, + ?Contour: Contour, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?FlatShading: bool, + ?TriangulationAlgorithm: StyleParam.TriangulationAlgorithm, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?UseDefaults: bool ) = let useDefaults = @@ -1062,24 +1062,24 @@ module Chart3D = static member Mesh3D ( xyz: seq<#IConvertible * #IConvertible * #IConvertible>, - [] ?I: seq<#IConvertible>, - [] ?J: seq<#IConvertible>, - [] ?K: seq<#IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?Color: Color, - [] ?Contour: Contour, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ColorBar: ColorBar, - [] ?FlatShading: bool, - [] ?TriangulationAlgorithm: StyleParam.TriangulationAlgorithm, - [] ?CameraProjectionType: StyleParam.CameraProjectionType, - [] ?Camera: Camera, - [] ?UseDefaults: bool + ?I: seq<#IConvertible>, + ?J: seq<#IConvertible>, + ?K: seq<#IConvertible>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?Color: Color, + ?Contour: Contour, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?FlatShading: bool, + ?TriangulationAlgorithm: StyleParam.TriangulationAlgorithm, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?UseDefaults: bool ) = let x, y, z = Seq.unzip3 xyz @@ -1147,19 +1147,19 @@ module Chart3D = u: seq<#IConvertible>, v: seq<#IConvertible>, w: seq<#IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ColorBar: ColorBar, - [] ?SizeMode: StyleParam.ConeSizeMode, - [] ?ConeAnchor: StyleParam.ConeAnchor, - [] ?CameraProjectionType: StyleParam.CameraProjectionType, - [] ?Camera: Camera, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?SizeMode: StyleParam.ConeSizeMode, + ?ConeAnchor: StyleParam.ConeAnchor, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?UseDefaults: bool ) = let useDefaults = @@ -1229,19 +1229,19 @@ module Chart3D = ( coneXYZ: seq<#IConvertible * #IConvertible * #IConvertible>, coneUVW: seq<#IConvertible * #IConvertible * #IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ColorBar: ColorBar, - [] ?SizeMode: StyleParam.ConeSizeMode, - [] ?ConeAnchor: StyleParam.ConeAnchor, - [] ?CameraProjectionType: StyleParam.CameraProjectionType, - [] ?Camera: Camera, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?SizeMode: StyleParam.ConeSizeMode, + ?ConeAnchor: StyleParam.ConeAnchor, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?UseDefaults: bool ) = let x, y, z = Seq.unzip3 coneXYZ @@ -1299,19 +1299,19 @@ module Chart3D = ( xyzuvw: seq<#IConvertible * #IConvertible * #IConvertible * #IConvertible * #IConvertible * #IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ColorBar: ColorBar, - [] ?SizeMode: StyleParam.ConeSizeMode, - [] ?ConeAnchor: StyleParam.ConeAnchor, - [] ?CameraProjectionType: StyleParam.CameraProjectionType, - [] ?Camera: Camera, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?SizeMode: StyleParam.ConeSizeMode, + ?ConeAnchor: StyleParam.ConeAnchor, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?UseDefaults: bool ) = let x, y, z, u, v, w = @@ -1385,19 +1385,19 @@ module Chart3D = u, v, w, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ColorBar: ColorBar, - [] ?MaxDisplayed: int, - [] ?TubeStarts: StreamTubeStarts, - [] ?CameraProjectionType: StyleParam.CameraProjectionType, - [] ?Camera: Camera, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?MaxDisplayed: int, + ?TubeStarts: StreamTubeStarts, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?UseDefaults: bool ) = let useDefaults = @@ -1469,19 +1469,19 @@ module Chart3D = ( streamTubeXYZ: seq<#IConvertible * #IConvertible * #IConvertible>, streamTubeUVW: seq<#IConvertible * #IConvertible * #IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ColorBar: ColorBar, - [] ?MaxDisplayed: int, - [] ?TubeStarts: StreamTubeStarts, - [] ?CameraProjectionType: StyleParam.CameraProjectionType, - [] ?Camera: Camera, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?MaxDisplayed: int, + ?TubeStarts: StreamTubeStarts, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?UseDefaults: bool ) = let useDefaults = @@ -1545,19 +1545,19 @@ module Chart3D = ( xyzuvw: seq<#IConvertible * #IConvertible * #IConvertible * #IConvertible * #IConvertible * #IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ColorBar: ColorBar, - [] ?MaxDisplayed: int, - [] ?TubeStarts: StreamTubeStarts, - [] ?CameraProjectionType: StyleParam.CameraProjectionType, - [] ?Camera: Camera, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?MaxDisplayed: int, + ?TubeStarts: StreamTubeStarts, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?UseDefaults: bool ) = let x, y, z, u, v, w = @@ -1627,23 +1627,23 @@ module Chart3D = y, z, value, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ColorBar: ColorBar, - [] ?IsoMin: float, - [] ?IsoMax: float, - [] ?Caps: Caps, - [] ?Slices: Slices, - [] ?Surface: Surface, - [] ?OpacityScale: seq<#seq<#IConvertible>>, - [] ?CameraProjectionType: StyleParam.CameraProjectionType, - [] ?Camera: Camera, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?IsoMin: float, + ?IsoMax: float, + ?Caps: Caps, + ?Slices: Slices, + ?Surface: Surface, + ?OpacityScale: seq<#seq<#IConvertible>>, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?UseDefaults: bool ) = let useDefaults = @@ -1722,22 +1722,22 @@ module Chart3D = y, z, value, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ColorBar: ColorBar, - [] ?IsoMin: float, - [] ?IsoMax: float, - [] ?Caps: Caps, - [] ?Slices: Slices, - [] ?Surface: Surface, - [] ?CameraProjectionType: StyleParam.CameraProjectionType, - [] ?Camera: Camera, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?IsoMin: float, + ?IsoMax: float, + ?Caps: Caps, + ?Slices: Slices, + ?Surface: Surface, + ?CameraProjectionType: StyleParam.CameraProjectionType, + ?Camera: Camera, + ?UseDefaults: bool ) = let useDefaults = diff --git a/src/Plotly.NET/ChartAPI/ChartCarpet.fs b/src/Plotly.NET/ChartAPI/ChartCarpet.fs index a2df9c975..44bb9c21c 100644 --- a/src/Plotly.NET/ChartAPI/ChartCarpet.fs +++ b/src/Plotly.NET/ChartAPI/ChartCarpet.fs @@ -55,22 +55,22 @@ module ChartCarpet = static member Carpet ( carpetId: string, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq<#seq<#IConvertible>>, - [] ?Y: seq<#IConvertible>, - [] ?MultiY: seq<#seq<#IConvertible>>, - [] ?A: seq<#IConvertible>, - [] ?B: seq<#IConvertible>, - [] ?AAxis: LinearAxis, - [] ?BAxis: LinearAxis, - [] ?XAxis: StyleParam.LinearAxisId, - [] ?YAxis: StyleParam.LinearAxisId, - [] ?Color: Color, - [] ?CheaterSlope: float, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?X: seq<#IConvertible>, + ?MultiX: seq<#seq<#IConvertible>>, + ?Y: seq<#IConvertible>, + ?MultiY: seq<#seq<#IConvertible>>, + ?A: seq<#IConvertible>, + ?B: seq<#IConvertible>, + ?AAxis: LinearAxis, + ?BAxis: LinearAxis, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?Color: Color, + ?CheaterSlope: float, + ?UseDefaults: bool ) = let useDefaults = @@ -138,26 +138,26 @@ module ChartCarpet = b: seq<#IConvertible>, mode: StyleParam.Mode, carpetAnchorId: string, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let useDefaults = @@ -242,26 +242,26 @@ module ChartCarpet = ab: seq<#IConvertible * #IConvertible>, mode: StyleParam.Mode, carpetAnchorId: string, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let a, b = Seq.unzip ab @@ -325,21 +325,21 @@ module ChartCarpet = a: seq<#IConvertible>, b: seq<#IConvertible>, carpetAnchorId: string, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?UseDefaults: bool ) = let useDefaults = @@ -400,21 +400,21 @@ module ChartCarpet = ( ab: seq<#IConvertible * #IConvertible>, carpetAnchorId: string, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?UseDefaults: bool ) = let a, b = Seq.unzip ab @@ -477,27 +477,27 @@ module ChartCarpet = a: seq<#IConvertible>, b: seq<#IConvertible>, carpetAnchorId: string, - [] ?ShowMarkers: bool, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let changeMode = @@ -571,27 +571,27 @@ module ChartCarpet = ( ab: seq<#IConvertible * #IConvertible>, carpetAnchorId: string, - [] ?ShowMarkers: bool, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let a, b = Seq.unzip ab @@ -662,28 +662,28 @@ module ChartCarpet = a: seq<#IConvertible>, b: seq<#IConvertible>, carpetAnchorId: string, - [] ?ShowMarkers: bool, - [] ?Smoothing: float, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Smoothing: float, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let useDefaults = @@ -779,28 +779,28 @@ module ChartCarpet = ( ab: seq<#IConvertible * #IConvertible>, carpetAnchorId: string, - [] ?ShowMarkers: bool, - [] ?Smoothing: float, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Smoothing: float, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let a, b = Seq.unzip ab @@ -873,26 +873,26 @@ module ChartCarpet = b: seq<#IConvertible>, sizes: seq, carpetAnchorId: string, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let useDefaults = @@ -978,26 +978,26 @@ module ChartCarpet = ( absizes: seq<#IConvertible * #IConvertible * int>, carpetAnchorId: string, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let a, b, sizes = Seq.unzip3 absizes @@ -1064,29 +1064,29 @@ module ChartCarpet = ( z: seq<#IConvertible>, carpetAnchorId: string, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?A: seq<#IConvertible>, - [] ?B: seq<#IConvertible>, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?ColorBar: ColorBar, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?Transpose: bool, - [] ?ContourLineColor: Color, - [] ?ContourLineDash: StyleParam.DrawingStyle, - [] ?ContourLineSmoothing: float, - [] ?ContourLine: Line, - [] ?ContoursColoring: StyleParam.ContourColoring, - [] ?ContoursOperation: StyleParam.ConstraintOperation, - [] ?ContoursType: StyleParam.ContourType, - [] ?ShowContourLabels: bool, - [] ?ContourLabelFont: Font, - [] ?Contours: Contours, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?A: seq<#IConvertible>, + ?B: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?Transpose: bool, + ?ContourLineColor: Color, + ?ContourLineDash: StyleParam.DrawingStyle, + ?ContourLineSmoothing: float, + ?ContourLine: Line, + ?ContoursColoring: StyleParam.ContourColoring, + ?ContoursOperation: StyleParam.ConstraintOperation, + ?ContoursType: StyleParam.ContourType, + ?ShowContourLabels: bool, + ?ContourLabelFont: Font, + ?Contours: Contours, + ?UseDefaults: bool ) = let useDefaults = @@ -1166,27 +1166,27 @@ module ChartCarpet = ( abz: seq<#IConvertible * #IConvertible * #IConvertible>, carpetAnchorId: string, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?ColorBar: ColorBar, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?Transpose: bool, - [] ?ContourLineColor: Color, - [] ?ContourLineDash: StyleParam.DrawingStyle, - [] ?ContourLineSmoothing: float, - [] ?ContourLine: Line, - [] ?ContoursColoring: StyleParam.ContourColoring, - [] ?ContoursOperation: StyleParam.ConstraintOperation, - [] ?ContoursType: StyleParam.ContourType, - [] ?ShowContourLabels: bool, - [] ?ContourLabelFont: Font, - [] ?Contours: Contours, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?Transpose: bool, + ?ContourLineColor: Color, + ?ContourLineDash: StyleParam.DrawingStyle, + ?ContourLineSmoothing: float, + ?ContourLine: Line, + ?ContoursColoring: StyleParam.ContourColoring, + ?ContoursOperation: StyleParam.ConstraintOperation, + ?ContoursType: StyleParam.ContourType, + ?ShowContourLabels: bool, + ?ContourLabelFont: Font, + ?Contours: Contours, + ?UseDefaults: bool ) = let a, b, z = Seq.unzip3 abz diff --git a/src/Plotly.NET/ChartAPI/ChartDomain.fs b/src/Plotly.NET/ChartAPI/ChartDomain.fs index 05e13fe1d..ac041fa69 100644 --- a/src/Plotly.NET/ChartAPI/ChartDomain.fs +++ b/src/Plotly.NET/ChartAPI/ChartDomain.fs @@ -54,32 +54,32 @@ module ChartDomain = static member Pie ( values: seq<#IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Labels: seq<#IConvertible>, - [] ?Pull: float, - [] ?MultiPull: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?SectionColors: seq, - [] ?SectionOutlineColor: Color, - [] ?SectionOutlineWidth: float, - [] ?SectionOutlineMultiWidth: seq, - [] ?SectionOutline: Line, - [] ?MarkerPatternShape: StyleParam.PatternShape, - [] ?MultiMarkerPatternShape: seq, - [] ?MarkerPattern: Pattern, - [] ?Marker: Marker, - [] ?TextInfo: StyleParam.TextInfo, - [] ?Direction: StyleParam.Direction, - [] ?Hole: float, - [] ?Rotation: float, - [] ?Sort: bool, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Labels: seq<#IConvertible>, + ?Pull: float, + ?MultiPull: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?SectionColors: seq, + ?SectionOutlineColor: Color, + ?SectionOutlineWidth: float, + ?SectionOutlineMultiWidth: seq, + ?SectionOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?TextInfo: StyleParam.TextInfo, + ?Direction: StyleParam.Direction, + ?Hole: float, + ?Rotation: float, + ?Sort: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -165,31 +165,31 @@ module ChartDomain = static member Pie ( valuesLabels: seq<#IConvertible * #IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Pull: float, - [] ?MultiPull: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?SectionColors: seq, - [] ?SectionOutlineColor: Color, - [] ?SectionOutlineWidth: float, - [] ?SectionOutlineMultiWidth: seq, - [] ?SectionOutline: Line, - [] ?MarkerPatternShape: StyleParam.PatternShape, - [] ?MultiMarkerPatternShape: seq, - [] ?MarkerPattern: Pattern, - [] ?Marker: Marker, - [] ?TextInfo: StyleParam.TextInfo, - [] ?Direction: StyleParam.Direction, - [] ?Hole: float, - [] ?Rotation: float, - [] ?Sort: bool, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Pull: float, + ?MultiPull: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?SectionColors: seq, + ?SectionOutlineColor: Color, + ?SectionOutlineWidth: float, + ?SectionOutlineMultiWidth: seq, + ?SectionOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?TextInfo: StyleParam.TextInfo, + ?Direction: StyleParam.Direction, + ?Hole: float, + ?Rotation: float, + ?Sort: bool, + ?UseDefaults: bool ) = let values, labels = Seq.unzip valuesLabels @@ -261,32 +261,32 @@ module ChartDomain = static member Doughnut ( values: seq<#IConvertible>, - [] ?Name: string, - [] ?Hole: float, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Labels: seq<#IConvertible>, - [] ?Pull: float, - [] ?MultiPull: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?SectionColors: seq, - [] ?SectionOutlineColor: Color, - [] ?SectionOutlineWidth: float, - [] ?SectionOutlineMultiWidth: seq, - [] ?SectionOutline: Line, - [] ?MarkerPatternShape: StyleParam.PatternShape, - [] ?MultiMarkerPatternShape: seq, - [] ?MarkerPattern: Pattern, - [] ?Marker: Marker, - [] ?TextInfo: StyleParam.TextInfo, - [] ?Direction: StyleParam.Direction, - [] ?Rotation: float, - [] ?Sort: bool, - [] ?UseDefaults: bool + ?Name: string, + ?Hole: float, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Labels: seq<#IConvertible>, + ?Pull: float, + ?MultiPull: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?SectionColors: seq, + ?SectionOutlineColor: Color, + ?SectionOutlineWidth: float, + ?SectionOutlineMultiWidth: seq, + ?SectionOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?TextInfo: StyleParam.TextInfo, + ?Direction: StyleParam.Direction, + ?Rotation: float, + ?Sort: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -360,31 +360,31 @@ module ChartDomain = static member Doughnut ( valuesLabels: seq<#IConvertible * #IConvertible>, - [] ?Hole: float, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Pull: float, - [] ?MultiPull: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?SectionColors: seq, - [] ?SectionOutlineColor: Color, - [] ?SectionOutlineWidth: float, - [] ?SectionOutlineMultiWidth: seq, - [] ?SectionOutline: Line, - [] ?MarkerPatternShape: StyleParam.PatternShape, - [] ?MultiMarkerPatternShape: seq, - [] ?MarkerPattern: Pattern, - [] ?Marker: Marker, - [] ?TextInfo: StyleParam.TextInfo, - [] ?Direction: StyleParam.Direction, - [] ?Rotation: float, - [] ?Sort: bool, - [] ?UseDefaults: bool + ?Hole: float, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Pull: float, + ?MultiPull: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?SectionColors: seq, + ?SectionOutlineColor: Color, + ?SectionOutlineWidth: float, + ?SectionOutlineMultiWidth: seq, + ?SectionOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?TextInfo: StyleParam.TextInfo, + ?Direction: StyleParam.Direction, + ?Rotation: float, + ?Sort: bool, + ?UseDefaults: bool ) = let values, labels = Seq.unzip valuesLabels @@ -453,28 +453,28 @@ module ChartDomain = static member FunnelArea ( values: seq<#IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Labels: seq<#IConvertible>, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?SectionColors: seq, - [] ?SectionOutlineColor: Color, - [] ?SectionOutlineWidth: float, - [] ?SectionOutlineMultiWidth: seq, - [] ?SectionOutline: Line, - [] ?MarkerPatternShape: StyleParam.PatternShape, - [] ?MultiMarkerPatternShape: seq, - [] ?MarkerPattern: Pattern, - [] ?Marker: Marker, - [] ?TextInfo: StyleParam.TextInfo, - [] ?AspectRatio: float, - [] ?BaseRatio: float, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Labels: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?SectionColors: seq, + ?SectionOutlineColor: Color, + ?SectionOutlineWidth: float, + ?SectionOutlineMultiWidth: seq, + ?SectionOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?TextInfo: StyleParam.TextInfo, + ?AspectRatio: float, + ?BaseRatio: float, + ?UseDefaults: bool ) = @@ -552,27 +552,27 @@ module ChartDomain = static member FunnelArea ( valuesLabels: seq<#IConvertible * #IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?SectionColors: seq, - [] ?SectionOutlineColor: Color, - [] ?SectionOutlineWidth: float, - [] ?SectionOutlineMultiWidth: seq, - [] ?SectionOutline: Line, - [] ?MarkerPatternShape: StyleParam.PatternShape, - [] ?MultiMarkerPatternShape: seq, - [] ?MarkerPattern: Pattern, - [] ?Marker: Marker, - [] ?TextInfo: StyleParam.TextInfo, - [] ?AspectRatio: float, - [] ?BaseRatio: float, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?SectionColors: seq, + ?SectionOutlineColor: Color, + ?SectionOutlineWidth: float, + ?SectionOutlineMultiWidth: seq, + ?SectionOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?TextInfo: StyleParam.TextInfo, + ?AspectRatio: float, + ?BaseRatio: float, + ?UseDefaults: bool ) = let values, labels = Seq.unzip valuesLabels @@ -645,36 +645,36 @@ module ChartDomain = ( labels: seq<#IConvertible>, parents: seq<#IConvertible>, - [] ?Values: seq<#IConvertible>, - [] ?Ids: seq<#IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?SectionColors: seq, - [] ?SectionColorScale: StyleParam.Colorscale, - [] ?ShowSectionColorScale: bool, - [] ?ReverseSectionColorScale: bool, - [] ?SectionOutlineColor: Color, - [] ?SectionOutlineWidth: float, - [] ?SectionOutlineMultiWidth: seq, - [] ?SectionOutline: Line, - [] ?MarkerPatternShape: StyleParam.PatternShape, - [] ?MultiMarkerPatternShape: seq, - [] ?MarkerPattern: Pattern, - [] ?Marker: Marker, - [] ?TextInfo: StyleParam.TextInfo, - [] ?BranchValues: StyleParam.BranchValues, - [] ?Count: string, - [] ?Root: SunburstRoot, - [] ?Leaf: SunburstLeaf, - [] ?Level: string, - [] ?MaxDepth: int, - [] ?Rotation: int, - [] ?Sort: bool, - [] ?UseDefaults: bool + ?Values: seq<#IConvertible>, + ?Ids: seq<#IConvertible>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?SectionColors: seq, + ?SectionColorScale: StyleParam.Colorscale, + ?ShowSectionColorScale: bool, + ?ReverseSectionColorScale: bool, + ?SectionOutlineColor: Color, + ?SectionOutlineWidth: float, + ?SectionOutlineMultiWidth: seq, + ?SectionOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?TextInfo: StyleParam.TextInfo, + ?BranchValues: StyleParam.BranchValues, + ?Count: string, + ?Root: SunburstRoot, + ?Leaf: SunburstLeaf, + ?Level: string, + ?MaxDepth: int, + ?Rotation: int, + ?Sort: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -775,36 +775,36 @@ module ChartDomain = static member Sunburst ( labelsparents: seq<#IConvertible * #IConvertible>, - [] ?Values: seq<#IConvertible>, - [] ?Ids: seq<#IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?SectionColors: seq, - [] ?SectionColorScale: StyleParam.Colorscale, - [] ?ShowSectionColorScale: bool, - [] ?ReverseSectionColorScale: bool, - [] ?SectionOutlineColor: Color, - [] ?SectionOutlineWidth: float, - [] ?SectionOutlineMultiWidth: seq, - [] ?SectionOutline: Line, - [] ?MarkerPatternShape: StyleParam.PatternShape, - [] ?MultiMarkerPatternShape: seq, - [] ?MarkerPattern: Pattern, - [] ?Marker: Marker, - [] ?TextInfo: StyleParam.TextInfo, - [] ?BranchValues: StyleParam.BranchValues, - [] ?Count: string, - [] ?Root: SunburstRoot, - [] ?Leaf: SunburstLeaf, - [] ?Level: string, - [] ?MaxDepth: int, - [] ?Rotation: int, - [] ?Sort: bool, - [] ?UseDefaults: bool + ?Values: seq<#IConvertible>, + ?Ids: seq<#IConvertible>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?SectionColors: seq, + ?SectionColorScale: StyleParam.Colorscale, + ?ShowSectionColorScale: bool, + ?ReverseSectionColorScale: bool, + ?SectionOutlineColor: Color, + ?SectionOutlineWidth: float, + ?SectionOutlineMultiWidth: seq, + ?SectionOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?TextInfo: StyleParam.TextInfo, + ?BranchValues: StyleParam.BranchValues, + ?Count: string, + ?Root: SunburstRoot, + ?Leaf: SunburstLeaf, + ?Level: string, + ?MaxDepth: int, + ?Rotation: int, + ?Sort: bool, + ?UseDefaults: bool ) = let labels, parents = @@ -891,37 +891,37 @@ module ChartDomain = ( labels: seq<#IConvertible>, parents: seq<#IConvertible>, - [] ?Values: seq<#IConvertible>, - [] ?Ids: seq<#IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?SectionColors: seq, - [] ?SectionColorScale: StyleParam.Colorscale, - [] ?ShowSectionColorScale: bool, - [] ?ReverseSectionColorScale: bool, - [] ?SectionOutlineColor: Color, - [] ?SectionOutlineWidth: float, - [] ?SectionOutlineMultiWidth: seq, - [] ?SectionOutline: Line, - [] ?MarkerPatternShape: StyleParam.PatternShape, - [] ?MultiMarkerPatternShape: seq, - [] ?MarkerPattern: Pattern, - [] ?Marker: Marker, - [] ?TextInfo: StyleParam.TextInfo, - [] ?BranchValues: StyleParam.BranchValues, - [] ?Count: string, - [] ?Tiling: TreemapTiling, - [] ?PathBar: Pathbar, - [] ?Root: TreemapRoot, - [] ?Level: string, - [] ?MaxDepth: int, - [] ?UseDefaults: bool + ?Values: seq<#IConvertible>, + ?Ids: seq<#IConvertible>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?SectionColors: seq, + ?SectionColorScale: StyleParam.Colorscale, + ?ShowSectionColorScale: bool, + ?ReverseSectionColorScale: bool, + ?SectionOutlineColor: Color, + ?SectionOutlineWidth: float, + ?SectionOutlineMultiWidth: seq, + ?SectionOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?TextInfo: StyleParam.TextInfo, + ?BranchValues: StyleParam.BranchValues, + ?Count: string, + ?Tiling: TreemapTiling, + ?PathBar: Pathbar, + ?Root: TreemapRoot, + ?Level: string, + ?MaxDepth: int, + ?UseDefaults: bool ) = let useDefaults = @@ -1023,37 +1023,37 @@ module ChartDomain = static member Treemap ( labelsparents: seq<#IConvertible * #IConvertible>, - [] ?Values: seq<#IConvertible>, - [] ?Ids: seq<#IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?SectionColors: seq, - [] ?SectionColorScale: StyleParam.Colorscale, - [] ?ShowSectionColorScale: bool, - [] ?ReverseSectionColorScale: bool, - [] ?SectionOutlineColor: Color, - [] ?SectionOutlineWidth: float, - [] ?SectionOutlineMultiWidth: seq, - [] ?SectionOutline: Line, - [] ?MarkerPatternShape: StyleParam.PatternShape, - [] ?MultiMarkerPatternShape: seq, - [] ?MarkerPattern: Pattern, - [] ?Marker: Marker, - [] ?TextInfo: StyleParam.TextInfo, - [] ?BranchValues: StyleParam.BranchValues, - [] ?Count: string, - [] ?Tiling: TreemapTiling, - [] ?PathBar: Pathbar, - [] ?Root: TreemapRoot, - [] ?Level: string, - [] ?MaxDepth: int, - [] ?UseDefaults: bool + ?Values: seq<#IConvertible>, + ?Ids: seq<#IConvertible>, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?SectionColors: seq, + ?SectionColorScale: StyleParam.Colorscale, + ?ShowSectionColorScale: bool, + ?ReverseSectionColorScale: bool, + ?SectionOutlineColor: Color, + ?SectionOutlineWidth: float, + ?SectionOutlineMultiWidth: seq, + ?SectionOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?TextInfo: StyleParam.TextInfo, + ?BranchValues: StyleParam.BranchValues, + ?Count: string, + ?Tiling: TreemapTiling, + ?PathBar: Pathbar, + ?Root: TreemapRoot, + ?Level: string, + ?MaxDepth: int, + ?UseDefaults: bool ) = let labels, parents = @@ -1122,18 +1122,18 @@ module ChartDomain = static member ParallelCoord ( dimensions: seq, - [] ?Name: string, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?ShowLineColorScale: bool, - [] ?ReverseLineColorScale: bool, - [] ?Line: Line, - [] ?LabelAngle: int, - [] ?LabelFont: Font, - [] ?LabelSide: StyleParam.Side, - [] ?RangeFont: Font, - [] ?TickFont: Font, - [] ?UseDefaults: bool + ?Name: string, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?ShowLineColorScale: bool, + ?ReverseLineColorScale: bool, + ?Line: Line, + ?LabelAngle: int, + ?LabelFont: Font, + ?LabelSide: StyleParam.Side, + ?RangeFont: Font, + ?TickFont: Font, + ?UseDefaults: bool ) = let useDefaults = defaultArg UseDefaults true @@ -1188,18 +1188,18 @@ module ChartDomain = static member ParallelCoord ( keyValues: seq>, - [] ?Name: string, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?ShowLineColorScale: bool, - [] ?ReverseLineColorScale: bool, - [] ?Line: Line, - [] ?LabelAngle: int, - [] ?LabelFont: Font, - [] ?LabelSide: StyleParam.Side, - [] ?RangeFont: Font, - [] ?TickFont: Font, - [] ?UseDefaults: bool + ?Name: string, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?ShowLineColorScale: bool, + ?ReverseLineColorScale: bool, + ?Line: Line, + ?LabelAngle: int, + ?LabelFont: Font, + ?LabelSide: StyleParam.Side, + ?RangeFont: Font, + ?TickFont: Font, + ?UseDefaults: bool ) = let dims = @@ -1248,20 +1248,20 @@ module ChartDomain = static member ParallelCategories ( dimensions: seq, - [] ?Name: string, - [] ?Counts: int, - [] ?LineColor: Color, - [] ?LineShape: StyleParam.Shape, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?ShowLineColorScale: bool, - [] ?ReverseLineColorScale: bool, - [] ?Line: Line, - [] ?Arrangement: StyleParam.CategoryArrangement, - [] ?BundleColors: bool, - [] ?SortPaths: StyleParam.SortAlgorithm, - [] ?LabelFont: Font, - [] ?TickFont: Font, - [] ?UseDefaults: bool + ?Name: string, + ?Counts: int, + ?LineColor: Color, + ?LineShape: StyleParam.Shape, + ?LineColorScale: StyleParam.Colorscale, + ?ShowLineColorScale: bool, + ?ReverseLineColorScale: bool, + ?Line: Line, + ?Arrangement: StyleParam.CategoryArrangement, + ?BundleColors: bool, + ?SortPaths: StyleParam.SortAlgorithm, + ?LabelFont: Font, + ?TickFont: Font, + ?UseDefaults: bool ) = let useDefaults = @@ -1321,20 +1321,20 @@ module ChartDomain = static member ParallelCategories ( keyValues: seq>, - [] ?Name: string, - [] ?Counts: int, - [] ?LineColor: Color, - [] ?LineShape: StyleParam.Shape, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?ShowLineColorScale: bool, - [] ?ReverseLineColorScale: bool, - [] ?Line: Line, - [] ?Arrangement: StyleParam.CategoryArrangement, - [] ?BundleColors: bool, - [] ?SortPaths: StyleParam.SortAlgorithm, - [] ?LabelFont: Font, - [] ?TickFont: Font, - [] ?UseDefaults: bool + ?Name: string, + ?Counts: int, + ?LineColor: Color, + ?LineShape: StyleParam.Shape, + ?LineColorScale: StyleParam.Colorscale, + ?ShowLineColorScale: bool, + ?ReverseLineColorScale: bool, + ?Line: Line, + ?Arrangement: StyleParam.CategoryArrangement, + ?BundleColors: bool, + ?SortPaths: StyleParam.SortAlgorithm, + ?LabelFont: Font, + ?TickFont: Font, + ?UseDefaults: bool ) = let useDefaults = @@ -1391,14 +1391,14 @@ module ChartDomain = ( nodes: SankeyNodes, links: SankeyLinks, - [] ?Name: string, - [] ?Ids: seq<#IConvertible>, - [] ?Orientation: StyleParam.Orientation, - [] ?TextFont: Font, - [] ?Arrangement: StyleParam.CategoryArrangement, - [] ?ValueFormat: string, - [] ?ValueSuffix: string, - [] ?UseDefaults: bool + ?Name: string, + ?Ids: seq<#IConvertible>, + ?Orientation: StyleParam.Orientation, + ?TextFont: Font, + ?Arrangement: StyleParam.CategoryArrangement, + ?ValueFormat: string, + ?ValueSuffix: string, + ?UseDefaults: bool ) = let useDefaults = @@ -1453,24 +1453,24 @@ module ChartDomain = nodeLabels: seq, linkedNodeIds: seq, linkValues: seq<#IConvertible>, - [] ?NodeColor: Color, - [] ?NodeOutlineColor: Color, - [] ?NodeOutlineWidth: float, - [] ?NodeThickness: int, - [] ?NodeGroups: seq<#seq>, - [] ?LinkColor: Color, - [] ?LinkColorScales: seq, - [] ?LinkOutlineColor: Color, - [] ?LinkOutlineWidth: float, - [] ?LinkLabels: seq, - [] ?Name: string, - [] ?Ids: seq<#IConvertible>, - [] ?Orientation: StyleParam.Orientation, - [] ?TextFont: Font, - [] ?Arrangement: StyleParam.CategoryArrangement, - [] ?ValueFormat: string, - [] ?ValueSuffix: string, - [] ?UseDefaults: bool + ?NodeColor: Color, + ?NodeOutlineColor: Color, + ?NodeOutlineWidth: float, + ?NodeThickness: int, + ?NodeGroups: seq<#seq>, + ?LinkColor: Color, + ?LinkColorScales: seq, + ?LinkOutlineColor: Color, + ?LinkOutlineWidth: float, + ?LinkLabels: seq, + ?Name: string, + ?Ids: seq<#IConvertible>, + ?Orientation: StyleParam.Orientation, + ?TextFont: Font, + ?Arrangement: StyleParam.CategoryArrangement, + ?ValueFormat: string, + ?ValueSuffix: string, + ?UseDefaults: bool ) = let nodeOutline = @@ -1536,11 +1536,11 @@ module ChartDomain = ( header: TableHeader, cells: TableCells, - [] ?Name: string, - [] ?ColumnOrder: seq, - [] ?ColumnWidth: float, - [] ?MultiColumnWidth: seq, - [] ?UseDefaults: bool + ?Name: string, + ?ColumnOrder: seq, + ?ColumnWidth: float, + ?MultiColumnWidth: seq, + ?UseDefaults: bool ) = let useDefaults = @@ -1594,28 +1594,28 @@ module ChartDomain = ( headerValues: seq<#seq<#IConvertible>>, cellsValues: seq<#seq<#IConvertible>>, - [] ?TransposeCells: bool, - [] ?HeaderAlign: StyleParam.HorizontalAlign, - [] ?HeaderMultiAlign: seq, - [] ?HeaderFillColor: Color, - [] ?HeaderHeight: int, - [] ?HeaderOutlineColor: Color, - [] ?HeaderOutlineWidth: float, - [] ?HeaderOutlineMultiWidth: seq, - [] ?HeaderOutline: Line, - [] ?CellsAlign: StyleParam.HorizontalAlign, - [] ?CellsMultiAlign: seq, - [] ?CellsFillColor: Color, - [] ?CellsHeight: int, - [] ?CellsOutlineColor: Color, - [] ?CellsOutlineWidth: float, - [] ?CellsOutlineMultiWidth: seq, - [] ?CellsOutline: Line, - [] ?Name: string, - [] ?ColumnOrder: seq, - [] ?ColumnWidth: float, - [] ?MultiColumnWidth: seq, - [] ?UseDefaults: bool + ?TransposeCells: bool, + ?HeaderAlign: StyleParam.HorizontalAlign, + ?HeaderMultiAlign: seq, + ?HeaderFillColor: Color, + ?HeaderHeight: int, + ?HeaderOutlineColor: Color, + ?HeaderOutlineWidth: float, + ?HeaderOutlineMultiWidth: seq, + ?HeaderOutline: Line, + ?CellsAlign: StyleParam.HorizontalAlign, + ?CellsMultiAlign: seq, + ?CellsFillColor: Color, + ?CellsHeight: int, + ?CellsOutlineColor: Color, + ?CellsOutlineWidth: float, + ?CellsOutlineMultiWidth: seq, + ?CellsOutline: Line, + ?Name: string, + ?ColumnOrder: seq, + ?ColumnWidth: float, + ?MultiColumnWidth: seq, + ?UseDefaults: bool ) = let useDefaults = @@ -1712,19 +1712,19 @@ module ChartDomain = ( value: IConvertible, mode: StyleParam.IndicatorMode, - [] ?Range: StyleParam.Range, - [] ?Name: string, - [] ?Title: string, - [] ?Domain: Domain, - [] ?Align: StyleParam.IndicatorAlignment, - [] ?DeltaReference: #IConvertible, - [] ?Delta: IndicatorDelta, - [] ?Number: IndicatorNumber, - [] ?GaugeShape: StyleParam.IndicatorGaugeShape, - [] ?Gauge: IndicatorGauge, - [] ?ShowGaugeAxis: bool, - [] ?GaugeAxis: LinearAxis, - [] ?UseDefaults: bool + ?Range: StyleParam.Range, + ?Name: string, + ?Title: string, + ?Domain: Domain, + ?Align: StyleParam.IndicatorAlignment, + ?DeltaReference: #IConvertible, + ?Delta: IndicatorDelta, + ?Number: IndicatorNumber, + ?GaugeShape: StyleParam.IndicatorGaugeShape, + ?Gauge: IndicatorGauge, + ?ShowGaugeAxis: bool, + ?GaugeAxis: LinearAxis, + ?UseDefaults: bool ) = let useDefaults = @@ -1806,39 +1806,39 @@ module ChartDomain = ( labels: seq<#IConvertible>, parents: seq<#IConvertible>, - [] ?Values: seq<#IConvertible>, - [] ?Ids: seq<#IConvertible>, - [] ?Name: string, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?SectionColors: seq, - [] ?SectionColorScale: StyleParam.Colorscale, - [] ?ShowSectionColorScale: bool, - [] ?ReverseSectionColorScale: bool, - [] ?SectionOutlineColor: Color, - [] ?SectionOutlineWidth: float, - [] ?SectionOutlineMultiWidth: seq, - [] ?SectionOutline: Line, - [] ?MarkerPatternShape: StyleParam.PatternShape, - [] ?MultiMarkerPatternShape: seq, - [] ?MarkerPattern: Pattern, - [] ?Marker: Marker, - [] ?BranchValues: StyleParam.BranchValues, - [] ?Count: StyleParam.IcicleCount, - [] ?TilingOrientation: StyleParam.Orientation, - [] ?TilingFlip: StyleParam.TilingFlip, - [] ?Tiling: IcicleTiling, - [] ?PathBarEdgeShape: StyleParam.PathbarEdgeShape, - [] ?PathBar: Pathbar, - [] ?TextInfo: StyleParam.TextInfo, - [] ?Root: IcicleRoot, - [] ?Level: string, - [] ?MaxDepth: int, - [] ?UseDefaults: bool + ?Values: seq<#IConvertible>, + ?Ids: seq<#IConvertible>, + ?Name: string, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?SectionColors: seq, + ?SectionColorScale: StyleParam.Colorscale, + ?ShowSectionColorScale: bool, + ?ReverseSectionColorScale: bool, + ?SectionOutlineColor: Color, + ?SectionOutlineWidth: float, + ?SectionOutlineMultiWidth: seq, + ?SectionOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?BranchValues: StyleParam.BranchValues, + ?Count: StyleParam.IcicleCount, + ?TilingOrientation: StyleParam.Orientation, + ?TilingFlip: StyleParam.TilingFlip, + ?Tiling: IcicleTiling, + ?PathBarEdgeShape: StyleParam.PathbarEdgeShape, + ?PathBar: Pathbar, + ?TextInfo: StyleParam.TextInfo, + ?Root: IcicleRoot, + ?Level: string, + ?MaxDepth: int, + ?UseDefaults: bool ) = let useDefaults = @@ -1949,39 +1949,39 @@ module ChartDomain = static member Icicle ( labelsparents: seq<#IConvertible * #IConvertible>, - [] ?Values: seq<#IConvertible>, - [] ?Ids: seq<#IConvertible>, - [] ?Name: string, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?SectionColors: seq, - [] ?SectionColorScale: StyleParam.Colorscale, - [] ?ShowSectionColorScale: bool, - [] ?ReverseSectionColorScale: bool, - [] ?SectionOutlineColor: Color, - [] ?SectionOutlineWidth: float, - [] ?SectionOutlineMultiWidth: seq, - [] ?SectionOutline: Line, - [] ?MarkerPatternShape: StyleParam.PatternShape, - [] ?MultiMarkerPatternShape: seq, - [] ?MarkerPattern: Pattern, - [] ?Marker: Marker, - [] ?BranchValues: StyleParam.BranchValues, - [] ?Count: StyleParam.IcicleCount, - [] ?TilingOrientation: StyleParam.Orientation, - [] ?TilingFlip: StyleParam.TilingFlip, - [] ?Tiling: IcicleTiling, - [] ?PathBarEdgeShape: StyleParam.PathbarEdgeShape, - [] ?PathBar: Pathbar, - [] ?TextInfo: StyleParam.TextInfo, - [] ?Root: IcicleRoot, - [] ?Level: string, - [] ?MaxDepth: int, - [] ?UseDefaults: bool + ?Values: seq<#IConvertible>, + ?Ids: seq<#IConvertible>, + ?Name: string, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?SectionColors: seq, + ?SectionColorScale: StyleParam.Colorscale, + ?ShowSectionColorScale: bool, + ?ReverseSectionColorScale: bool, + ?SectionOutlineColor: Color, + ?SectionOutlineWidth: float, + ?SectionOutlineMultiWidth: seq, + ?SectionOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?BranchValues: StyleParam.BranchValues, + ?Count: StyleParam.IcicleCount, + ?TilingOrientation: StyleParam.Orientation, + ?TilingFlip: StyleParam.TilingFlip, + ?Tiling: IcicleTiling, + ?PathBarEdgeShape: StyleParam.PathbarEdgeShape, + ?PathBar: Pathbar, + ?TextInfo: StyleParam.TextInfo, + ?Root: IcicleRoot, + ?Level: string, + ?MaxDepth: int, + ?UseDefaults: bool ) = let labels, parents = diff --git a/src/Plotly.NET/ChartAPI/ChartMap.fs b/src/Plotly.NET/ChartAPI/ChartMap.fs index b7963ebf5..0dde1f3d8 100644 --- a/src/Plotly.NET/ChartAPI/ChartMap.fs +++ b/src/Plotly.NET/ChartAPI/ChartMap.fs @@ -41,18 +41,18 @@ module ChartMap = ( locations, z, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?GeoJson: obj, - [] ?FeatureIdKey: string, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?ColorBar: ColorBar, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?LocationMode: StyleParam.LocationFormat, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?LocationMode: StyleParam.LocationFormat, + ?UseDefaults: bool ) = let useDefaults = @@ -116,29 +116,29 @@ module ChartMap = longitudes: seq<#IConvertible>, latitudes: seq<#IConvertible>, mode: StyleParam.Mode, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?LocationMode: StyleParam.LocationFormat, - [] ?GeoJson: obj, - [] ?FeatureIdKey: string, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?LocationMode: StyleParam.LocationFormat, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?UseDefaults: bool ) = let useDefaults = @@ -228,29 +228,29 @@ module ChartMap = ( lonlat: seq<#IConvertible * #IConvertible>, mode: StyleParam.Mode, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?LocationMode: StyleParam.LocationFormat, - [] ?GeoJson: obj, - [] ?FeatureIdKey: string, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?LocationMode: StyleParam.LocationFormat, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?UseDefaults: bool ) = let longitudes, latitudes = Seq.unzip lonlat @@ -321,29 +321,29 @@ module ChartMap = ( locations: seq, mode: StyleParam.Mode, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?LocationMode: StyleParam.LocationFormat, - [] ?GeoJson: obj, - [] ?FeatureIdKey: string, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?LocationMode: StyleParam.LocationFormat, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?UseDefaults: bool ) = let useDefaults = @@ -424,24 +424,24 @@ module ChartMap = ( longitudes: seq<#IConvertible>, latitudes: seq<#IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LocationMode: StyleParam.LocationFormat, - [] ?GeoJson: obj, - [] ?FeatureIdKey: string, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LocationMode: StyleParam.LocationFormat, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?UseDefaults: bool ) = let changeMode = @@ -500,24 +500,24 @@ module ChartMap = static member PointGeo ( lonlat: seq<#IConvertible * #IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LocationMode: StyleParam.LocationFormat, - [] ?GeoJson: obj, - [] ?FeatureIdKey: string, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LocationMode: StyleParam.LocationFormat, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?UseDefaults: bool ) = let longitudes, latitudes = Seq.unzip lonlat @@ -573,24 +573,24 @@ module ChartMap = static member PointGeo ( locations: seq, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LocationMode: StyleParam.LocationFormat, - [] ?GeoJson: obj, - [] ?FeatureIdKey: string, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LocationMode: StyleParam.LocationFormat, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?UseDefaults: bool ) = let changeMode = StyleParam.ModeUtils.showText (TextPosition.IsSome || MultiTextPosition.IsSome) @@ -654,30 +654,30 @@ module ChartMap = ( longitudes: seq<#IConvertible>, latitudes: seq<#IConvertible>, - [] ?ShowMarkers: bool, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?LocationMode: StyleParam.LocationFormat, - [] ?GeoJson: obj, - [] ?FeatureIdKey: string, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?LocationMode: StyleParam.LocationFormat, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?UseDefaults: bool ) = let changeMode = @@ -752,30 +752,30 @@ module ChartMap = static member LineGeo ( lonlat: seq<#IConvertible * #IConvertible>, - [] ?ShowMarkers: bool, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?LocationMode: StyleParam.LocationFormat, - [] ?GeoJson: obj, - [] ?FeatureIdKey: string, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?LocationMode: StyleParam.LocationFormat, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?UseDefaults: bool ) = let longitudes, latitudes = Seq.unzip lonlat @@ -844,30 +844,30 @@ module ChartMap = static member LineGeo ( locations: seq, - [] ?ShowMarkers: bool, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?LocationMode: StyleParam.LocationFormat, - [] ?GeoJson: obj, - [] ?FeatureIdKey: string, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?LocationMode: StyleParam.LocationFormat, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?UseDefaults: bool ) = let changeMode = @@ -939,24 +939,24 @@ module ChartMap = longitudes: seq<#IConvertible>, latitudes: seq<#IConvertible>, sizes: seq, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LocationMode: StyleParam.LocationFormat, - [] ?GeoJson: obj, - [] ?FeatureIdKey: string, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LocationMode: StyleParam.LocationFormat, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?UseDefaults: bool ) = let changeMode = @@ -1027,24 +1027,24 @@ module ChartMap = static member BubbleGeo ( lonlatsizes: seq<#IConvertible * #IConvertible * int>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LocationMode: StyleParam.LocationFormat, - [] ?GeoJson: obj, - [] ?FeatureIdKey: string, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LocationMode: StyleParam.LocationFormat, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?UseDefaults: bool ) = let longitudes, latitudes, sizes = @@ -1104,24 +1104,24 @@ module ChartMap = ( locations: seq, sizes: seq, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LocationMode: StyleParam.LocationFormat, - [] ?GeoJson: obj, - [] ?FeatureIdKey: string, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LocationMode: StyleParam.LocationFormat, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?UseDefaults: bool ) = let changeMode = StyleParam.ModeUtils.showText (TextPosition.IsSome || MultiTextPosition.IsSome) @@ -1192,30 +1192,30 @@ module ChartMap = longitudes: seq<#IConvertible>, latitudes: seq<#IConvertible>, mode: StyleParam.Mode, - [] ?MapboxStyle: StyleParam.MapboxStyle, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?Below: string, - [] ?EnableClustering: bool, - [] ?Cluster: MapboxCluster, - [] ?UseDefaults: bool + ?MapboxStyle: StyleParam.MapboxStyle, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?Below: string, + ?EnableClustering: bool, + ?Cluster: MapboxCluster, + ?UseDefaults: bool ) = @@ -1316,30 +1316,30 @@ module ChartMap = ( lonlat: seq<#IConvertible * #IConvertible>, mode: StyleParam.Mode, - [] ?Name: string, - [] ?MapboxStyle: StyleParam.MapboxStyle, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?Below: string, - [] ?EnableClustering: bool, - [] ?Cluster: MapboxCluster, - [] ?UseDefaults: bool + ?Name: string, + ?MapboxStyle: StyleParam.MapboxStyle, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?Below: string, + ?EnableClustering: bool, + ?Cluster: MapboxCluster, + ?UseDefaults: bool ) = let longitudes, latitudes = Seq.unzip lonlat @@ -1407,25 +1407,25 @@ module ChartMap = ( longitudes: seq<#IConvertible>, latitudes: seq<#IConvertible>, - [] ?Name: string, - [] ?MapboxStyle: StyleParam.MapboxStyle, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?Below: string, - [] ?EnableClustering: bool, - [] ?Cluster: MapboxCluster, - [] ?UseDefaults: bool + ?Name: string, + ?MapboxStyle: StyleParam.MapboxStyle, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?Below: string, + ?EnableClustering: bool, + ?Cluster: MapboxCluster, + ?UseDefaults: bool ) = let changeMode = @@ -1488,25 +1488,25 @@ module ChartMap = static member PointMapbox ( lonlat: seq<#IConvertible * #IConvertible>, - [] ?Name: string, - [] ?MapboxStyle: StyleParam.MapboxStyle, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?Below: string, - [] ?EnableClustering: bool, - [] ?Cluster: MapboxCluster, - [] ?UseDefaults: bool + ?Name: string, + ?MapboxStyle: StyleParam.MapboxStyle, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?Below: string, + ?EnableClustering: bool, + ?Cluster: MapboxCluster, + ?UseDefaults: bool ) = let longitudes, latitudes = Seq.unzip lonlat @@ -1572,29 +1572,29 @@ module ChartMap = ( longitudes: seq<#IConvertible>, latitudes: seq<#IConvertible>, - [] ?ShowMarkers: bool, - [] ?Name: string, - [] ?MapboxStyle: StyleParam.MapboxStyle, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?Below: string, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?MapboxStyle: StyleParam.MapboxStyle, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?Below: string, + ?UseDefaults: bool ) = let changeMode = @@ -1669,29 +1669,29 @@ module ChartMap = static member LineMapbox ( lonlat: seq<#IConvertible * #IConvertible>, - [] ?ShowMarkers: bool, - [] ?Name: string, - [] ?MapboxStyle: StyleParam.MapboxStyle, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?Below: string, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?MapboxStyle: StyleParam.MapboxStyle, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?Below: string, + ?UseDefaults: bool ) = let longitudes, latitudes = Seq.unzip lonlat @@ -1758,23 +1758,23 @@ module ChartMap = longitudes: seq<#IConvertible>, latitudes: seq<#IConvertible>, sizes: seq, - [] ?Name: string, - [] ?MapboxStyle: StyleParam.MapboxStyle, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?Below: string, - [] ?UseDefaults: bool + ?Name: string, + ?MapboxStyle: StyleParam.MapboxStyle, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?Below: string, + ?UseDefaults: bool ) = let changeMode = @@ -1851,23 +1851,23 @@ module ChartMap = static member BubbleMapbox ( lonlatsizes: seq<#IConvertible * #IConvertible * int>, - [] ?Name: string, - [] ?MapboxStyle: StyleParam.MapboxStyle, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?Below: string, - [] ?UseDefaults: bool + ?Name: string, + ?MapboxStyle: StyleParam.MapboxStyle, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?Below: string, + ?UseDefaults: bool ) = let longitudes, latitudes, sizes = @@ -1928,18 +1928,18 @@ module ChartMap = locations: seq, z: seq<#IConvertible>, geoJson: obj, - [] ?Name: string, - [] ?MapboxStyle: StyleParam.MapboxStyle, - [] ?ShowLegend: bool, - [] ?FeatureIdKey: string, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?ColorBar: ColorBar, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?Below: string, - [] ?UseDefaults: bool + ?Name: string, + ?MapboxStyle: StyleParam.MapboxStyle, + ?ShowLegend: bool, + ?FeatureIdKey: string, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?Below: string, + ?UseDefaults: bool ) = let useDefaults = @@ -1999,20 +1999,20 @@ module ChartMap = ( longitudes: seq<#IConvertible>, latitudes: seq<#IConvertible>, - [] ?Name: string, - [] ?MapboxStyle: StyleParam.MapboxStyle, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Z: seq<#IConvertible>, - [] ?Radius: int, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?ColorBar: ColorBar, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?Below: string, - [] ?UseDefaults: bool + ?Name: string, + ?MapboxStyle: StyleParam.MapboxStyle, + ?ShowLegend: bool, + ?Opacity: float, + ?Z: seq<#IConvertible>, + ?Radius: int, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?Below: string, + ?UseDefaults: bool ) = let useDefaults = @@ -2072,20 +2072,20 @@ module ChartMap = static member DensityMapbox ( lonlat: seq<#IConvertible * #IConvertible>, - [] ?Name: string, - [] ?MapboxStyle: StyleParam.MapboxStyle, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?Z: seq<#IConvertible>, - [] ?Radius: int, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?ColorBar: ColorBar, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?Below: string, - [] ?UseDefaults: bool + ?Name: string, + ?MapboxStyle: StyleParam.MapboxStyle, + ?ShowLegend: bool, + ?Opacity: float, + ?Z: seq<#IConvertible>, + ?Radius: int, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?Below: string, + ?UseDefaults: bool ) = let longitudes, latitudes = Seq.unzip lonlat diff --git a/src/Plotly.NET/ChartAPI/ChartPolar.fs b/src/Plotly.NET/ChartAPI/ChartPolar.fs index 21082f3c6..82e788904 100644 --- a/src/Plotly.NET/ChartAPI/ChartPolar.fs +++ b/src/Plotly.NET/ChartAPI/ChartPolar.fs @@ -64,27 +64,27 @@ module ChartPolar = r: seq<#IConvertible>, theta: seq<#IConvertible>, mode: StyleParam.Mode, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -167,27 +167,27 @@ module ChartPolar = ( rTheta: seq<#IConvertible * #IConvertible>, mode: StyleParam.Mode, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let r, t = Seq.unzip rTheta @@ -247,22 +247,22 @@ module ChartPolar = ( r: seq<#IConvertible>, theta: seq<#IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -328,22 +328,22 @@ module ChartPolar = static member PointPolar ( rTheta: seq<#IConvertible * #IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let r, t = Seq.unzip rTheta @@ -404,28 +404,28 @@ module ChartPolar = ( r: seq<#IConvertible>, theta: seq<#IConvertible>, - [] ?ShowMarkers: bool, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -514,28 +514,28 @@ module ChartPolar = static member LinePolar ( rTheta: seq<#IConvertible * #IConvertible>, - [] ?ShowMarkers: bool, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let r, t = Seq.unzip rTheta @@ -603,29 +603,29 @@ module ChartPolar = ( r: seq<#IConvertible>, theta: seq<#IConvertible>, - [] ?ShowMarkers: bool, - [] ?Smoothing: float, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Smoothing: float, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -717,29 +717,29 @@ module ChartPolar = static member SplinePolar ( rTheta: seq<#IConvertible * #IConvertible>, - [] ?ShowMarkers: bool, - [] ?Smoothing: float, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Smoothing: float, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let r, t = Seq.unzip rTheta @@ -803,22 +803,22 @@ module ChartPolar = r: seq<#IConvertible>, theta: seq<#IConvertible>, sizes: seq, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let useDefaults = @@ -885,22 +885,22 @@ module ChartPolar = static member BubblePolar ( rThetaSizes: seq<#IConvertible * #IConvertible * int>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol3D, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?UseWebGL: bool, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol3D, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?UseWebGL: bool, + ?UseDefaults: bool ) = let r, t, sizes = Seq.unzip3 rThetaSizes @@ -957,23 +957,23 @@ module ChartPolar = ( r: seq<#IConvertible>, theta: seq<#IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerPatternShape: StyleParam.PatternShape, - [] ?MultiMarkerPatternShape: seq, - [] ?MarkerPattern: Pattern, - [] ?Marker: Marker, - [] ?Base: #IConvertible, - [] ?Width: #IConvertible, - [] ?MultiWidth: seq<#IConvertible>, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?Base: #IConvertible, + ?Width: #IConvertible, + ?MultiWidth: seq<#IConvertible>, + ?UseDefaults: bool ) = let useDefaults = @@ -1039,23 +1039,23 @@ module ChartPolar = static member BarPolar ( rTheta: seq<#IConvertible * #IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerPatternShape: StyleParam.PatternShape, - [] ?MultiMarkerPatternShape: seq, - [] ?MarkerPattern: Pattern, - [] ?Marker: Marker, - [] ?Base: #IConvertible, - [] ?Width: #IConvertible, - [] ?MultiWidth: seq<#IConvertible>, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerPatternShape: StyleParam.PatternShape, + ?MultiMarkerPatternShape: seq, + ?MarkerPattern: Pattern, + ?Marker: Marker, + ?Base: #IConvertible, + ?Width: #IConvertible, + ?MultiWidth: seq<#IConvertible>, + ?UseDefaults: bool ) = let r, theta = Seq.unzip rTheta diff --git a/src/Plotly.NET/ChartAPI/ChartSmith.fs b/src/Plotly.NET/ChartAPI/ChartSmith.fs index aa042a38d..6d40b6ec6 100644 --- a/src/Plotly.NET/ChartAPI/ChartSmith.fs +++ b/src/Plotly.NET/ChartAPI/ChartSmith.fs @@ -55,28 +55,28 @@ module ChartSmith = real: seq<#IConvertible>, imag: seq<#IConvertible>, mode: StyleParam.Mode, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?Fill: StyleParam.Fill, - [] ?FillColor: Color, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?UseDefaults: bool ) = let useDefaults = defaultArg UseDefaults true @@ -159,28 +159,28 @@ module ChartSmith = ( realImag: seq<#IConvertible * #IConvertible>, mode: StyleParam.Mode, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?Fill: StyleParam.Fill, - [] ?FillColor: Color, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?UseDefaults: bool ) = let real, imag = Seq.unzip realImag @@ -240,21 +240,21 @@ module ChartSmith = ( real: seq<#IConvertible>, imag: seq<#IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?UseDefaults: bool ) = // if text position or font is set, then show labels (not only when hovering) let changeMode = @@ -306,21 +306,21 @@ module ChartSmith = static member PointSmith ( realImag: seq<#IConvertible * #IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?UseDefaults: bool ) = let real, imag = Seq.unzip realImag @@ -379,29 +379,29 @@ module ChartSmith = ( real: seq<#IConvertible>, imag: seq<#IConvertible>, - [] ?ShowMarkers: bool, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?Fill: StyleParam.Fill, - [] ?FillColor: Color, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?UseDefaults: bool ) = // if text position or font is set than show labels (not only when hovering) let changeMode = @@ -474,29 +474,29 @@ module ChartSmith = static member LineSmith ( realImag: seq<#IConvertible * #IConvertible>, - [] ?ShowMarkers: bool, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?Fill: StyleParam.Fill, - [] ?FillColor: Color, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?UseDefaults: bool ) = let real, imag = Seq.unzip realImag @@ -562,26 +562,26 @@ module ChartSmith = real: seq<#IConvertible>, imag: seq<#IConvertible>, sizes: seq, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = // if text position or font is set than show labels (not only when hovering) @@ -657,26 +657,26 @@ module ChartSmith = static member BubbleSmith ( realImagSizes: seq<#IConvertible * #IConvertible * int>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let real, imag, sizes = diff --git a/src/Plotly.NET/ChartAPI/ChartTernary.fs b/src/Plotly.NET/ChartAPI/ChartTernary.fs index 427fe0123..5d8151ee6 100644 --- a/src/Plotly.NET/ChartAPI/ChartTernary.fs +++ b/src/Plotly.NET/ChartAPI/ChartTernary.fs @@ -51,31 +51,31 @@ module ChartTernary = /// If set to false, ignore the global default settings set in `Defaults` static member ScatterTernary ( - [] ?A: seq<#IConvertible>, - [] ?B: seq<#IConvertible>, - [] ?C: seq<#IConvertible>, - [] ?Sum: #IConvertible, - [] ?Mode: StyleParam.Mode, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?UseDefaults: bool + ?A: seq<#IConvertible>, + ?B: seq<#IConvertible>, + ?C: seq<#IConvertible>, + ?Sum: #IConvertible, + ?Mode: StyleParam.Mode, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let useDefaults = @@ -155,27 +155,27 @@ module ChartTernary = static member ScatterTernary ( abc, - [] ?Mode: StyleParam.Mode, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?UseDefaults: bool + ?Mode: StyleParam.Mode, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let a, b, c = Seq.unzip3 abc @@ -233,25 +233,25 @@ module ChartTernary = /// If set to false, ignore the global default settings set in `Defaults` static member PointTernary ( - [] ?A: seq<#IConvertible>, - [] ?B: seq<#IConvertible>, - [] ?C: seq<#IConvertible>, - [] ?Sum: #IConvertible, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?UseDefaults: bool + ?A: seq<#IConvertible>, + ?B: seq<#IConvertible>, + ?C: seq<#IConvertible>, + ?Sum: #IConvertible, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?UseDefaults: bool ) = let changeMode = @@ -304,21 +304,21 @@ module ChartTernary = static member PointTernary ( abc: seq<#IConvertible * #IConvertible * #IConvertible>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?UseDefaults: bool ) = let a, b, c = Seq.unzip3 abc @@ -377,31 +377,31 @@ module ChartTernary = /// If set to false, ignore the global default settings set in `Defaults` static member LineTernary ( - [] ?A: seq<#IConvertible>, - [] ?B: seq<#IConvertible>, - [] ?C: seq<#IConvertible>, - [] ?Sum: #IConvertible, - [] ?ShowMarkers: bool, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?UseDefaults: bool + ?A: seq<#IConvertible>, + ?B: seq<#IConvertible>, + ?C: seq<#IConvertible>, + ?Sum: #IConvertible, + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = @@ -472,27 +472,27 @@ module ChartTernary = static member LineTernary ( abc, - [] ?ShowMarkers: bool, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?UseDefaults: bool + ?ShowMarkers: bool, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let a, b, c = Seq.unzip3 abc @@ -560,30 +560,30 @@ module ChartTernary = static member BubbleTernary ( sizes: seq, - [] ?A: seq<#IConvertible>, - [] ?B: seq<#IConvertible>, - [] ?C: seq<#IConvertible>, - [] ?Sum: #IConvertible, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?UseDefaults: bool + ?A: seq<#IConvertible>, + ?B: seq<#IConvertible>, + ?C: seq<#IConvertible>, + ?Sum: #IConvertible, + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let useDefaults = @@ -668,26 +668,26 @@ module ChartTernary = static member BubbleTernary ( abcSizes: seq<#IConvertible * #IConvertible * #IConvertible * int>, - [] ?Name: string, - [] ?ShowLegend: bool, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?MarkerColor: Color, - [] ?MarkerColorScale: StyleParam.Colorscale, - [] ?MarkerOutline: Line, - [] ?MarkerSymbol: StyleParam.MarkerSymbol, - [] ?MultiMarkerSymbol: seq, - [] ?Marker: Marker, - [] ?LineColor: Color, - [] ?LineColorScale: StyleParam.Colorscale, - [] ?LineWidth: float, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?Line: Line, - [] ?UseDefaults: bool + ?Name: string, + ?ShowLegend: bool, + ?Opacity: float, + ?MultiOpacity: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?MarkerColor: Color, + ?MarkerColorScale: StyleParam.Colorscale, + ?MarkerOutline: Line, + ?MarkerSymbol: StyleParam.MarkerSymbol, + ?MultiMarkerSymbol: seq, + ?Marker: Marker, + ?LineColor: Color, + ?LineColorScale: StyleParam.Colorscale, + ?LineWidth: float, + ?LineDash: StyleParam.DrawingStyle, + ?Line: Line, + ?UseDefaults: bool ) = let a, b, c, sizes = diff --git a/src/Plotly.NET/CommonAbstractions/AutoRangeOptions.fs b/src/Plotly.NET/CommonAbstractions/AutoRangeOptions.fs index be571d0f2..14378a1cd 100644 --- a/src/Plotly.NET/CommonAbstractions/AutoRangeOptions.fs +++ b/src/Plotly.NET/CommonAbstractions/AutoRangeOptions.fs @@ -18,11 +18,11 @@ type AutoRangeOptions() = /// Use this value exactly as autorange minimum. static member init ( - [] ?ClipMax: #IConvertible, - [] ?ClipMin: #IConvertible, - [] ?Include: #IConvertible, - [] ?MaxAllowed: #IConvertible, - [] ?MinAllowed: #IConvertible + ?ClipMax: #IConvertible, + ?ClipMin: #IConvertible, + ?Include: #IConvertible, + ?MaxAllowed: #IConvertible, + ?MinAllowed: #IConvertible ) = AutoRangeOptions() |> AutoRangeOptions.style ( @@ -43,11 +43,11 @@ type AutoRangeOptions() = /// Use this value exactly as autorange minimum. static member style ( - [] ?ClipMax: #IConvertible, - [] ?ClipMin: #IConvertible, - [] ?Include: #IConvertible, - [] ?MaxAllowed: #IConvertible, - [] ?MinAllowed: #IConvertible + ?ClipMax: #IConvertible, + ?ClipMin: #IConvertible, + ?Include: #IConvertible, + ?MaxAllowed: #IConvertible, + ?MinAllowed: #IConvertible ) = (fun (autoRangeOptions: AutoRangeOptions) -> diff --git a/src/Plotly.NET/CommonAbstractions/ColorBar.fs b/src/Plotly.NET/CommonAbstractions/ColorBar.fs index 1451213bc..0c3eca708 100644 --- a/src/Plotly.NET/CommonAbstractions/ColorBar.fs +++ b/src/Plotly.NET/CommonAbstractions/ColorBar.fs @@ -59,52 +59,52 @@ type ColorBar() = /// Sets the container `y` refers to. "container" spans the entire `height` of the plot. "paper" refers to the height of the plotting area only. static member init ( - [] ?BGColor: Color, - [] ?BorderColor: Color, - [] ?BorderWidth: float, - [] ?DTick: IConvertible, - [] ?ExponentFormat: StyleParam.ExponentFormat, - [] ?LabelAlias: DynamicObj, - [] ?Len: float, - [] ?LenMode: StyleParam.UnitMode, - [] ?MinExponent: float, - [] ?NTicks: int, - [] ?Orientation: StyleParam.Orientation, - [] ?OutlineColor: Color, - [] ?OutlineWidth: float, - [] ?SeparateThousands: bool, - [] ?ShowExponent: StyleParam.ShowExponent, - [] ?ShowTickLabels: bool, - [] ?ShowTickPrefix: StyleParam.ShowTickOption, - [] ?ShowTickSuffix: StyleParam.ShowTickOption, - [] ?Thickness: float, - [] ?ThicknessMode: StyleParam.UnitMode, - [] ?Tick0: IConvertible, - [] ?TickAngle: int, - [] ?TickColor: Color, - [] ?TickFont: Font, - [] ?TickFormat: string, - [] ?TickFormatStops: seq, - [] ?TickLabelOverflow: StyleParam.TickLabelOverflow, - [] ?TickLabelPosition: StyleParam.TickLabelPosition, - [] ?TickLabelStep: int, - [] ?TickLen: float, - [] ?TickMode: StyleParam.TickMode, - [] ?TickPrefix: string, - [] ?Ticks: StyleParam.TickOptions, - [] ?TickSuffix: string, - [] ?TickText: seq<#IConvertible>, - [] ?TickVals: seq<#IConvertible>, - [] ?TickWidth: float, - [] ?Title: Title, - [] ?X: float, - [] ?XAnchor: StyleParam.HorizontalAlign, - [] ?XPad: float, - [] ?XRef: string, - [] ?Y: float, - [] ?YAnchor: StyleParam.VerticalAlign, - [] ?YPad: float, - [] ?YRef: string + ?BGColor: Color, + ?BorderColor: Color, + ?BorderWidth: float, + ?DTick: IConvertible, + ?ExponentFormat: StyleParam.ExponentFormat, + ?LabelAlias: DynamicObj, + ?Len: float, + ?LenMode: StyleParam.UnitMode, + ?MinExponent: float, + ?NTicks: int, + ?Orientation: StyleParam.Orientation, + ?OutlineColor: Color, + ?OutlineWidth: float, + ?SeparateThousands: bool, + ?ShowExponent: StyleParam.ShowExponent, + ?ShowTickLabels: bool, + ?ShowTickPrefix: StyleParam.ShowTickOption, + ?ShowTickSuffix: StyleParam.ShowTickOption, + ?Thickness: float, + ?ThicknessMode: StyleParam.UnitMode, + ?Tick0: IConvertible, + ?TickAngle: int, + ?TickColor: Color, + ?TickFont: Font, + ?TickFormat: string, + ?TickFormatStops: seq, + ?TickLabelOverflow: StyleParam.TickLabelOverflow, + ?TickLabelPosition: StyleParam.TickLabelPosition, + ?TickLabelStep: int, + ?TickLen: float, + ?TickMode: StyleParam.TickMode, + ?TickPrefix: string, + ?Ticks: StyleParam.TickOptions, + ?TickSuffix: string, + ?TickText: seq<#IConvertible>, + ?TickVals: seq<#IConvertible>, + ?TickWidth: float, + ?Title: Title, + ?X: float, + ?XAnchor: StyleParam.HorizontalAlign, + ?XPad: float, + ?XRef: string, + ?Y: float, + ?YAnchor: StyleParam.VerticalAlign, + ?YPad: float, + ?YRef: string ) = ColorBar() |> ColorBar.style ( @@ -205,52 +205,52 @@ type ColorBar() = /// Sets the amount of padding (in px) along the y direction. static member style ( - [] ?BGColor: Color, - [] ?BorderColor: Color, - [] ?BorderWidth: float, - [] ?DTick: IConvertible, - [] ?ExponentFormat: StyleParam.ExponentFormat, - [] ?LabelAlias: DynamicObj, - [] ?Len: float, - [] ?LenMode: StyleParam.UnitMode, - [] ?MinExponent: float, - [] ?NTicks: int, - [] ?Orientation: StyleParam.Orientation, - [] ?OutlineColor: Color, - [] ?OutlineWidth: float, - [] ?SeparateThousands: bool, - [] ?ShowExponent: StyleParam.ShowExponent, - [] ?ShowTickLabels: bool, - [] ?ShowTickPrefix: StyleParam.ShowTickOption, - [] ?ShowTickSuffix: StyleParam.ShowTickOption, - [] ?Thickness: float, - [] ?ThicknessMode: StyleParam.UnitMode, - [] ?Tick0: IConvertible, - [] ?TickAngle: int, - [] ?TickColor: Color, - [] ?TickFont: Font, - [] ?TickFormat: string, - [] ?TickFormatStops: seq, - [] ?TickLabelOverflow: StyleParam.TickLabelOverflow, - [] ?TickLabelPosition: StyleParam.TickLabelPosition, - [] ?TickLabelStep: int, - [] ?TickLen: float, - [] ?TickMode: StyleParam.TickMode, - [] ?TickPrefix: string, - [] ?Ticks: StyleParam.TickOptions, - [] ?TickSuffix: string, - [] ?TickText: seq<#IConvertible>, - [] ?TickVals: seq<#IConvertible>, - [] ?TickWidth: float, - [] ?Title: Title, - [] ?X: float, - [] ?XAnchor: StyleParam.HorizontalAlign, - [] ?XPad: float, - [] ?XRef: string, - [] ?Y: float, - [] ?YAnchor: StyleParam.VerticalAlign, - [] ?YPad: float, - [] ?YRef: string + ?BGColor: Color, + ?BorderColor: Color, + ?BorderWidth: float, + ?DTick: IConvertible, + ?ExponentFormat: StyleParam.ExponentFormat, + ?LabelAlias: DynamicObj, + ?Len: float, + ?LenMode: StyleParam.UnitMode, + ?MinExponent: float, + ?NTicks: int, + ?Orientation: StyleParam.Orientation, + ?OutlineColor: Color, + ?OutlineWidth: float, + ?SeparateThousands: bool, + ?ShowExponent: StyleParam.ShowExponent, + ?ShowTickLabels: bool, + ?ShowTickPrefix: StyleParam.ShowTickOption, + ?ShowTickSuffix: StyleParam.ShowTickOption, + ?Thickness: float, + ?ThicknessMode: StyleParam.UnitMode, + ?Tick0: IConvertible, + ?TickAngle: int, + ?TickColor: Color, + ?TickFont: Font, + ?TickFormat: string, + ?TickFormatStops: seq, + ?TickLabelOverflow: StyleParam.TickLabelOverflow, + ?TickLabelPosition: StyleParam.TickLabelPosition, + ?TickLabelStep: int, + ?TickLen: float, + ?TickMode: StyleParam.TickMode, + ?TickPrefix: string, + ?Ticks: StyleParam.TickOptions, + ?TickSuffix: string, + ?TickText: seq<#IConvertible>, + ?TickVals: seq<#IConvertible>, + ?TickWidth: float, + ?Title: Title, + ?X: float, + ?XAnchor: StyleParam.HorizontalAlign, + ?XPad: float, + ?XRef: string, + ?Y: float, + ?YAnchor: StyleParam.VerticalAlign, + ?YPad: float, + ?YRef: string ) = (fun (colorBar: ColorBar) -> diff --git a/src/Plotly.NET/CommonAbstractions/Font.fs b/src/Plotly.NET/CommonAbstractions/Font.fs index 8b208f958..9d8efb024 100644 --- a/src/Plotly.NET/CommonAbstractions/Font.fs +++ b/src/Plotly.NET/CommonAbstractions/Font.fs @@ -11,9 +11,9 @@ type Font() = /// Init Font() static member init ( - [] ?Family: StyleParam.FontFamily, - [] ?Size: float, - [] ?Color: Color + ?Family: StyleParam.FontFamily, + ?Size: float, + ?Color: Color ) = Font() |> Font.style (?Family = Family, ?Size = Size, ?Color = Color) @@ -21,9 +21,9 @@ type Font() = // Applies the styles to Font() static member style ( - [] ?Family: StyleParam.FontFamily, - [] ?Size: float, - [] ?Color: Color + ?Family: StyleParam.FontFamily, + ?Size: float, + ?Color: Color ) = (fun (font: Font) -> font diff --git a/src/Plotly.NET/CommonAbstractions/Line.fs b/src/Plotly.NET/CommonAbstractions/Line.fs index 6d5e9d257..9a010ec3f 100644 --- a/src/Plotly.NET/CommonAbstractions/Line.fs +++ b/src/Plotly.NET/CommonAbstractions/Line.fs @@ -33,26 +33,26 @@ type Line() = /// Sets the width of the outline of outliers static member init ( - [] ?BackOff: StyleParam.BackOff, - [] ?AutoColorScale: bool, - [] ?CAuto: bool, - [] ?CMax: float, - [] ?CMid: float, - [] ?CMin: float, - [] ?Color: Color, - [] ?ColorAxis: StyleParam.SubPlotId, - [] ?Colorscale: StyleParam.Colorscale, - [] ?ReverseScale: bool, - [] ?ShowScale: bool, - [] ?ColorBar: ColorBar, - [] ?Dash: StyleParam.DrawingStyle, - [] ?Shape: StyleParam.Shape, - [] ?Simplify: bool, - [] ?Smoothing: float, - [] ?Width: float, - [] ?MultiWidth: seq, - [] ?OutlierColor: Color, - [] ?OutlierWidth: float + ?BackOff: StyleParam.BackOff, + ?AutoColorScale: bool, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?Color: Color, + ?ColorAxis: StyleParam.SubPlotId, + ?Colorscale: StyleParam.Colorscale, + ?ReverseScale: bool, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?Dash: StyleParam.DrawingStyle, + ?Shape: StyleParam.Shape, + ?Simplify: bool, + ?Smoothing: float, + ?Width: float, + ?MultiWidth: seq, + ?OutlierColor: Color, + ?OutlierWidth: float ) = Line() |> Line.style ( @@ -103,26 +103,26 @@ type Line() = /// Sets the width of the outline of outliers static member style ( - [] ?BackOff: StyleParam.BackOff, - [] ?AutoColorScale: bool, - [] ?CAuto: bool, - [] ?CMax: float, - [] ?CMid: float, - [] ?CMin: float, - [] ?Color: Color, - [] ?ColorAxis: StyleParam.SubPlotId, - [] ?Colorscale: StyleParam.Colorscale, - [] ?ReverseScale: bool, - [] ?ShowScale: bool, - [] ?ColorBar: ColorBar, - [] ?Dash: StyleParam.DrawingStyle, - [] ?Shape: StyleParam.Shape, - [] ?Simplify: bool, - [] ?Smoothing: float, - [] ?Width: float, - [] ?MultiWidth: seq, - [] ?OutlierColor: Color, - [] ?OutlierWidth: float + ?BackOff: StyleParam.BackOff, + ?AutoColorScale: bool, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?Color: Color, + ?ColorAxis: StyleParam.SubPlotId, + ?Colorscale: StyleParam.Colorscale, + ?ReverseScale: bool, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?Dash: StyleParam.DrawingStyle, + ?Shape: StyleParam.Shape, + ?Simplify: bool, + ?Smoothing: float, + ?Width: float, + ?MultiWidth: seq, + ?OutlierColor: Color, + ?OutlierWidth: float ) = (fun (line: Line) -> line diff --git a/src/Plotly.NET/CommonAbstractions/Padding.fs b/src/Plotly.NET/CommonAbstractions/Padding.fs index 708d710f9..0bd36d1f3 100644 --- a/src/Plotly.NET/CommonAbstractions/Padding.fs +++ b/src/Plotly.NET/CommonAbstractions/Padding.fs @@ -15,10 +15,10 @@ type Padding() = /// The amount of padding (in px) along the top of the component static member init ( - [] ?B: int, - [] ?L: int, - [] ?R: int, - [] ?T: int + ?B: int, + ?L: int, + ?R: int, + ?T: int ) = Padding() |> Padding.style (?B = B, ?L = L, ?R = R, ?T = T) @@ -31,10 +31,10 @@ type Padding() = /// The amount of padding (in px) along the top of the component static member style ( - [] ?B: int, - [] ?L: int, - [] ?R: int, - [] ?T: int + ?B: int, + ?L: int, + ?R: int, + ?T: int ) = (fun (padding: Padding) -> padding diff --git a/src/Plotly.NET/CommonAbstractions/TickFormatStop.fs b/src/Plotly.NET/CommonAbstractions/TickFormatStop.fs index 684d7ad58..f45631786 100644 --- a/src/Plotly.NET/CommonAbstractions/TickFormatStop.fs +++ b/src/Plotly.NET/CommonAbstractions/TickFormatStop.fs @@ -10,11 +10,11 @@ type TickFormatStop() = static member init ( - [] ?Enabled: bool, - [] ?DTickRange: seq, - [] ?Value: string, - [] ?Name: string, - [] ?TemplateItemName: string + ?Enabled: bool, + ?DTickRange: seq, + ?Value: string, + ?Name: string, + ?TemplateItemName: string ) = TickFormatStop() |> TickFormatStop.style ( @@ -27,11 +27,11 @@ type TickFormatStop() = static member style ( - [] ?Enabled: bool, - [] ?DTickRange: seq, - [] ?Value: string, - [] ?Name: string, - [] ?TemplateItemName: string + ?Enabled: bool, + ?DTickRange: seq, + ?Value: string, + ?Name: string, + ?TemplateItemName: string ) = (fun (tickFormatStop: TickFormatStop) -> diff --git a/src/Plotly.NET/CommonAbstractions/Title.fs b/src/Plotly.NET/CommonAbstractions/Title.fs index d26184e68..62653fe76 100644 --- a/src/Plotly.NET/CommonAbstractions/Title.fs +++ b/src/Plotly.NET/CommonAbstractions/Title.fs @@ -24,20 +24,20 @@ type Title() = /// For colorbar titles: Determines the location of color bar's title with respect to the color bar. Defaults to "top" when `orientation` if "v" and defaults to "right" when `orientation` if "h". Note that the title's location used to be set by the now deprecated `titleside` attribute. static member init ( - [] ?Text: string, - [] ?Font: Font, - [] ?AutoMargin: bool, - [] ?Pad: Padding, - [] ?X: float, - [] ?XAnchor: StyleParam.XAnchorPosition, - [] ?XRef: string, - [] ?Y: float, - [] ?YAnchor: StyleParam.YAnchorPosition, - [] ?YRef: string, + ?Text: string, + ?Font: Font, + ?AutoMargin: bool, + ?Pad: Padding, + ?X: float, + ?XAnchor: StyleParam.XAnchorPosition, + ?XRef: string, + ?Y: float, + ?YAnchor: StyleParam.YAnchorPosition, + ?YRef: string, // For axis titles - [] ?Standoff: int, + ?Standoff: int, // For colorbar titles - [] ?Side: StyleParam.Side + ?Side: StyleParam.Side ) = Title() |> Title.style ( @@ -72,20 +72,20 @@ type Title() = /// For colorbar titles: Determines the location of color bar's title with respect to the color bar. Defaults to "top" when `orientation` if "v" and defaults to "right" when `orientation` if "h". Note that the title's location used to be set by the now deprecated `titleside` attribute. static member style ( - [] ?Text: string, - [] ?Font: Font, - [] ?AutoMargin: bool, - [] ?Pad: Padding, - [] ?X: float, - [] ?XAnchor: StyleParam.XAnchorPosition, - [] ?XRef: string, - [] ?Y: float, - [] ?YAnchor: StyleParam.YAnchorPosition, - [] ?YRef: string, + ?Text: string, + ?Font: Font, + ?AutoMargin: bool, + ?Pad: Padding, + ?X: float, + ?XAnchor: StyleParam.XAnchorPosition, + ?XRef: string, + ?Y: float, + ?YAnchor: StyleParam.YAnchorPosition, + ?YRef: string, // For axis titles - [] ?Standoff: int, + ?Standoff: int, // For colorbar titles - [] ?Side: StyleParam.Side + ?Side: StyleParam.Side ) = (fun (title: Title) -> title diff --git a/src/Plotly.NET/Config/Config.fs b/src/Plotly.NET/Config/Config.fs index c6c85d149..73ead379c 100644 --- a/src/Plotly.NET/Config/Config.fs +++ b/src/Plotly.NET/Config/Config.fs @@ -72,45 +72,45 @@ type Config() = /// static member init ( - [] ?StaticPlot: bool, - [] ?TypesetMath: bool, - [] ?PlotlyServerUrl: string, - [] ?Editable: bool, - [] ?Edits: Edits, - [] ?EditSelection: bool, - [] ?Autosizable: bool, - [] ?Responsive: bool, - [] ?FillFrame: bool, - [] ?FrameMargins: float, - [] ?ScrollZoom: StyleParam.ScrollZoom, - [] ?DoubleClick: StyleParam.DoubleClick, - [] ?DoubleClickDelay: int, - [] ?ShowAxisDragHandles: bool, - [] ?ShowAxisRangeEntryBoxes: bool, - [] ?ShowTips: bool, - [] ?ShowLink: bool, - [] ?LinkText: string, - [] ?SendData: bool, - [] ?ShowSources: obj, - [] ?DisplayModeBar: bool, - [] ?ShowSendToCloud: bool, - [] ?ShowEditInChartStudio: bool, - [] ?ModeBarButtonsToRemove: seq, - [] ?ModeBarButtonsToAdd: seq, - [] ?ModeBarButtons: seq>, - [] ?ToImageButtonOptions: ToImageButtonOptions, - [] ?Displaylogo: bool, - [] ?Watermark: bool, - [] ?plotGlPixelRatio: float, - [] ?SetBackground: obj, - [] ?TopojsonURL: string, - [] ?MapboxAccessToken: string, - [] ?Logging: int, - [] ?NotifyOnLogging: int, - [] ?QueueLength: int, - [] ?GlobalTransforms: obj, - [] ?Locale: string, - [] ?Locales: obj + ?StaticPlot: bool, + ?TypesetMath: bool, + ?PlotlyServerUrl: string, + ?Editable: bool, + ?Edits: Edits, + ?EditSelection: bool, + ?Autosizable: bool, + ?Responsive: bool, + ?FillFrame: bool, + ?FrameMargins: float, + ?ScrollZoom: StyleParam.ScrollZoom, + ?DoubleClick: StyleParam.DoubleClick, + ?DoubleClickDelay: int, + ?ShowAxisDragHandles: bool, + ?ShowAxisRangeEntryBoxes: bool, + ?ShowTips: bool, + ?ShowLink: bool, + ?LinkText: string, + ?SendData: bool, + ?ShowSources: obj, + ?DisplayModeBar: bool, + ?ShowSendToCloud: bool, + ?ShowEditInChartStudio: bool, + ?ModeBarButtonsToRemove: seq, + ?ModeBarButtonsToAdd: seq, + ?ModeBarButtons: seq>, + ?ToImageButtonOptions: ToImageButtonOptions, + ?Displaylogo: bool, + ?Watermark: bool, + ?plotGlPixelRatio: float, + ?SetBackground: obj, + ?TopojsonURL: string, + ?MapboxAccessToken: string, + ?Logging: int, + ?NotifyOnLogging: int, + ?QueueLength: int, + ?GlobalTransforms: obj, + ?Locale: string, + ?Locales: obj ) = Config() |> Config.style ( @@ -220,45 +220,45 @@ type Config() = /// static member style ( - [] ?StaticPlot: bool, - [] ?TypesetMath: bool, - [] ?PlotlyServerUrl: string, - [] ?Editable: bool, - [] ?Edits: Edits, - [] ?EditSelection: bool, - [] ?Autosizable: bool, - [] ?Responsive: bool, - [] ?FillFrame: bool, - [] ?FrameMargins: float, - [] ?ScrollZoom: StyleParam.ScrollZoom, - [] ?DoubleClick: StyleParam.DoubleClick, - [] ?DoubleClickDelay: int, - [] ?ShowAxisDragHandles: bool, - [] ?ShowAxisRangeEntryBoxes: bool, - [] ?ShowTips: bool, - [] ?ShowLink: bool, - [] ?LinkText: string, - [] ?SendData: bool, - [] ?ShowSources: obj, - [] ?DisplayModeBar: bool, - [] ?ShowSendToCloud: bool, - [] ?ShowEditInChartStudio: bool, - [] ?ModeBarButtonsToRemove: seq, - [] ?ModeBarButtonsToAdd: seq, - [] ?ModeBarButtons: seq>, - [] ?ToImageButtonOptions: ToImageButtonOptions, - [] ?Displaylogo: bool, - [] ?Watermark: bool, - [] ?plotGlPixelRatio: float, - [] ?SetBackground: obj, - [] ?TopojsonURL: string, - [] ?MapboxAccessToken: string, - [] ?Logging: int, - [] ?NotifyOnLogging: int, - [] ?QueueLength: int, - [] ?GlobalTransforms: obj, - [] ?Locale: string, - [] ?Locales: obj + ?StaticPlot: bool, + ?TypesetMath: bool, + ?PlotlyServerUrl: string, + ?Editable: bool, + ?Edits: Edits, + ?EditSelection: bool, + ?Autosizable: bool, + ?Responsive: bool, + ?FillFrame: bool, + ?FrameMargins: float, + ?ScrollZoom: StyleParam.ScrollZoom, + ?DoubleClick: StyleParam.DoubleClick, + ?DoubleClickDelay: int, + ?ShowAxisDragHandles: bool, + ?ShowAxisRangeEntryBoxes: bool, + ?ShowTips: bool, + ?ShowLink: bool, + ?LinkText: string, + ?SendData: bool, + ?ShowSources: obj, + ?DisplayModeBar: bool, + ?ShowSendToCloud: bool, + ?ShowEditInChartStudio: bool, + ?ModeBarButtonsToRemove: seq, + ?ModeBarButtonsToAdd: seq, + ?ModeBarButtons: seq>, + ?ToImageButtonOptions: ToImageButtonOptions, + ?Displaylogo: bool, + ?Watermark: bool, + ?plotGlPixelRatio: float, + ?SetBackground: obj, + ?TopojsonURL: string, + ?MapboxAccessToken: string, + ?Logging: int, + ?NotifyOnLogging: int, + ?QueueLength: int, + ?GlobalTransforms: obj, + ?Locale: string, + ?Locales: obj ) = fun (config: Config) -> diff --git a/src/Plotly.NET/Config/ObjectAbstractions/Edits.fs b/src/Plotly.NET/Config/ObjectAbstractions/Edits.fs index ba4eb9d64..005d97c52 100644 --- a/src/Plotly.NET/Config/ObjectAbstractions/Edits.fs +++ b/src/Plotly.NET/Config/ObjectAbstractions/Edits.fs @@ -25,16 +25,16 @@ type Edits() = /// Enables editing the global layout title. static member init ( - [] ?AnnotationPosition: bool, - [] ?AnnotationTail: bool, - [] ?AnnotationText: bool, - [] ?AxisTitleText: bool, - [] ?ColorbarPosition: bool, - [] ?ColorbarTitleText: bool, - [] ?LegendPosition: bool, - [] ?LegendText: bool, - [] ?ShapePosition: bool, - [] ?TitleText: bool + ?AnnotationPosition: bool, + ?AnnotationTail: bool, + ?AnnotationText: bool, + ?AxisTitleText: bool, + ?ColorbarPosition: bool, + ?ColorbarTitleText: bool, + ?LegendPosition: bool, + ?LegendText: bool, + ?ShapePosition: bool, + ?TitleText: bool ) = Edits() |> Edits.style ( @@ -66,16 +66,16 @@ type Edits() = /// Enables editing the global layout title. static member style ( - [] ?AnnotationPosition: bool, - [] ?AnnotationTail: bool, - [] ?AnnotationText: bool, - [] ?AxisTitleText: bool, - [] ?ColorbarPosition: bool, - [] ?ColorbarTitleText: bool, - [] ?LegendPosition: bool, - [] ?LegendText: bool, - [] ?ShapePosition: bool, - [] ?TitleText: bool + ?AnnotationPosition: bool, + ?AnnotationTail: bool, + ?AnnotationText: bool, + ?AxisTitleText: bool, + ?ColorbarPosition: bool, + ?ColorbarTitleText: bool, + ?LegendPosition: bool, + ?LegendText: bool, + ?ShapePosition: bool, + ?TitleText: bool ) = fun (edits: Edits) -> edits diff --git a/src/Plotly.NET/Config/ObjectAbstractions/ToImageButtonOptions.fs b/src/Plotly.NET/Config/ObjectAbstractions/ToImageButtonOptions.fs index 1e15ac826..f527fd275 100644 --- a/src/Plotly.NET/Config/ObjectAbstractions/ToImageButtonOptions.fs +++ b/src/Plotly.NET/Config/ObjectAbstractions/ToImageButtonOptions.fs @@ -11,11 +11,11 @@ type ToImageButtonOptions() = static member init ( - [] ?Format: StyleParam.ImageFormat, - [] ?Filename: string, - [] ?Width: float, - [] ?Height: float, - [] ?Scale: float + ?Format: StyleParam.ImageFormat, + ?Filename: string, + ?Width: float, + ?Height: float, + ?Scale: float ) = ToImageButtonOptions() |> ToImageButtonOptions.style ( @@ -28,11 +28,11 @@ type ToImageButtonOptions() = static member style ( - [] ?Format, - [] ?Filename, - [] ?Width, - [] ?Height, - [] ?Scale + ?Format, + ?Filename, + ?Width, + ?Height, + ?Scale ) = fun (btnConf: ToImageButtonOptions) -> btnConf diff --git a/src/Plotly.NET/DisplayOptions/DisplayOptions.fs b/src/Plotly.NET/DisplayOptions/DisplayOptions.fs index 27bf82029..c03c7215e 100644 --- a/src/Plotly.NET/DisplayOptions/DisplayOptions.fs +++ b/src/Plotly.NET/DisplayOptions/DisplayOptions.fs @@ -27,13 +27,13 @@ type DisplayOptions() = /// Sets how plotly is referenced in the head of html docs. When CDN, a script tag that references the plotly.js CDN is included in the output. When Full, a script tag containing the plotly.js source code (~3MB) is included in the output. HTML files generated with this option are fully self-contained and can be used offline static member init ( - [] ?DocumentTitle: string, - [] ?DocumentCharset: string, - [] ?DocumentDescription: string, - [] ?DocumentFavicon: XmlNode, - [] ?AdditionalHeadTags: XmlNode list, - [] ?ChartDescription: XmlNode list, - [] ?PlotlyJSReference: PlotlyJSReference + ?DocumentTitle: string, + ?DocumentCharset: string, + ?DocumentDescription: string, + ?DocumentFavicon: XmlNode, + ?AdditionalHeadTags: XmlNode list, + ?ChartDescription: XmlNode list, + ?PlotlyJSReference: PlotlyJSReference ) = DisplayOptions() |> DisplayOptions.style ( @@ -54,13 +54,13 @@ type DisplayOptions() = /// Sets how plotly is referenced in the head of html docs. When CDN, a script tag that references the plotly.js CDN is included in the output. When Full, a script tag containing the plotly.js source code (~3MB) is included in the output. HTML files generated with this option are fully self-contained and can be used offline static member style ( - [] ?DocumentTitle: string, - [] ?DocumentCharset: string, - [] ?DocumentDescription: string, - [] ?DocumentFavicon: XmlNode, - [] ?AdditionalHeadTags: XmlNode list, - [] ?ChartDescription: XmlNode list, - [] ?PlotlyJSReference: PlotlyJSReference + ?DocumentTitle: string, + ?DocumentCharset: string, + ?DocumentDescription: string, + ?DocumentFavicon: XmlNode, + ?AdditionalHeadTags: XmlNode list, + ?ChartDescription: XmlNode list, + ?PlotlyJSReference: PlotlyJSReference ) = fun (displayOpts: DisplayOptions) -> displayOpts diff --git a/src/Plotly.NET/Layout/Layout.fs b/src/Plotly.NET/Layout/Layout.fs index a0ad6ac93..1e426c394 100644 --- a/src/Plotly.NET/Layout/Layout.fs +++ b/src/Plotly.NET/Layout/Layout.fs @@ -89,80 +89,80 @@ type Layout() = /// A collection containing all UpdateMenus of this layout. static member init ( - [] ?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, - [] ?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: seq<#IConvertible>, - [] ?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: seq, - [] ?Shapes: seq, - [] ?Selections: seq, - [] ?Images: seq, - [] ?Sliders: seq, - [] ?UpdateMenus: seq + ?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, + ?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: seq<#IConvertible>, + ?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: seq, + ?Shapes: seq, + ?Selections: seq, + ?Images: seq, + ?Sliders: seq, + ?UpdateMenus: seq ) = Layout() |> Layout.style ( @@ -321,80 +321,80 @@ type Layout() = /// A collection containing all UpdateMenus of this layout. static member style ( - [] ?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, - [] ?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: seq<#IConvertible>, - [] ?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: seq, - [] ?Shapes: seq, - [] ?Selections: seq, - [] ?Images: seq, - [] ?Sliders: seq, - [] ?UpdateMenus: seq + ?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, + ?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: seq<#IConvertible>, + ?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: seq, + ?Shapes: seq, + ?Selections: seq, + ?Images: seq, + ?Sliders: seq, + ?UpdateMenus: seq ) = (fun (layout: Layout) -> layout diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/3D/AspectRatio.fs b/src/Plotly.NET/Layout/ObjectAbstractions/3D/AspectRatio.fs index 944c05037..395462965 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/3D/AspectRatio.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/3D/AspectRatio.fs @@ -11,17 +11,17 @@ type AspectRatio() = static member init ( - [] ?X: float, - [] ?Y: float, - [] ?Z: float + ?X: float, + ?Y: float, + ?Z: float ) = AspectRatio() |> AspectRatio.style (?X = X, ?Y = Y, ?Z = Z) static member style ( - [] ?X: float, - [] ?Y: float, - [] ?Z: float + ?X: float, + ?Y: float, + ?Z: float ) = fun (aspectRatio: AspectRatio) -> diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/3D/Camera.fs b/src/Plotly.NET/Layout/ObjectAbstractions/3D/Camera.fs index 640dad78a..e7e9a7cc5 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/3D/Camera.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/3D/Camera.fs @@ -12,17 +12,17 @@ type CameraCenter() = static member init ( - [] ?X: float, - [] ?Y: float, - [] ?Z: float + ?X: float, + ?Y: float, + ?Z: float ) = CameraCenter() |> CameraCenter.style (?X = X, ?Y = Y, ?Z = Z) static member style ( - [] ?X: float, - [] ?Y: float, - [] ?Z: float + ?X: float, + ?Y: float, + ?Z: float ) = fun (cameraCenter: CameraCenter) -> @@ -37,17 +37,17 @@ type CameraEye() = static member init ( - [] ?X: float, - [] ?Y: float, - [] ?Z: float + ?X: float, + ?Y: float, + ?Z: float ) = CameraEye() |> CameraEye.style (?X = X, ?Y = Y, ?Z = Z) static member style ( - [] ?X: float, - [] ?Y: float, - [] ?Z: float + ?X: float, + ?Y: float, + ?Z: float ) = fun (cameraEye: CameraEye) -> @@ -62,17 +62,17 @@ type CameraUp() = static member init ( - [] ?X: float, - [] ?Y: float, - [] ?Z: float + ?X: float, + ?Y: float, + ?Z: float ) = CameraUp() |> CameraUp.style (?X = X, ?Y = Y, ?Z = Z) static member style ( - [] ?X: float, - [] ?Y: float, - [] ?Z: float + ?X: float, + ?Y: float, + ?Z: float ) = fun (cameraUp: CameraUp) -> @@ -86,10 +86,10 @@ type CameraUp() = type CameraProjection() = inherit DynamicObj() - static member init([] ?ProjectionType: StyleParam.CameraProjectionType) = + static member init(?ProjectionType: StyleParam.CameraProjectionType) = CameraProjection() |> CameraProjection.style (?ProjectionType = ProjectionType) - static member style([] ?ProjectionType: StyleParam.CameraProjectionType) = + static member style(?ProjectionType: StyleParam.CameraProjectionType) = fun (cameraProjection: CameraProjection) -> @@ -102,19 +102,19 @@ type Camera() = static member init ( - [] ?Center: CameraCenter, - [] ?Eye: CameraEye, - [] ?Projection: CameraProjection, - [] ?Up: CameraUp + ?Center: CameraCenter, + ?Eye: CameraEye, + ?Projection: CameraProjection, + ?Up: CameraUp ) = Camera() |> Camera.style (?Center = Center, ?Eye = Eye, ?Projection = Projection, ?Up = Up) static member style ( - [] ?Center: CameraCenter, - [] ?Eye: CameraEye, - [] ?Projection: CameraProjection, - [] ?Up: CameraUp + ?Center: CameraCenter, + ?Eye: CameraEye, + ?Projection: CameraProjection, + ?Up: CameraUp ) = fun (camera: Camera) -> diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/3D/Scene.fs b/src/Plotly.NET/Layout/ObjectAbstractions/3D/Scene.fs index d4b995baf..24f684612 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/3D/Scene.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/3D/Scene.fs @@ -27,18 +27,18 @@ type Scene() = /// Sets this scene's zaxis static member init ( - [] ?Annotations: 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 + ?Annotations: 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() |> Scene.style ( @@ -73,18 +73,18 @@ type Scene() = /// Sets this scene's zaxis static member style ( - [] ?Annotations: 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 + ?Annotations: 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 ) = fun (scene: Scene) -> diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveSelection.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveSelection.fs index e07f9093a..85691189d 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveSelection.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveSelection.fs @@ -10,15 +10,15 @@ type ActiveSelection() = static member init ( - [] ?FillColor: Color, - [] ?Opacity: float + ?FillColor: Color, + ?Opacity: float ) = ActiveSelection() |> ActiveSelection.style (?FillColor = FillColor, ?Opacity = Opacity) static member style ( - [] ?FillColor: Color, - [] ?Opacity: float + ?FillColor: Color, + ?Opacity: float ) = (fun (activeSelection: ActiveSelection) -> diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveShape.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveShape.fs index 4cfea8893..16f787fcb 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveShape.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ActiveShape.fs @@ -10,15 +10,15 @@ type ActiveShape() = static member init ( - [] ?FillColor: Color, - [] ?Opacity: float + ?FillColor: Color, + ?Opacity: float ) = ActiveShape() |> ActiveShape.style (?FillColor = FillColor, ?Opacity = Opacity) static member style ( - [] ?FillColor: Color, - [] ?Opacity: float + ?FillColor: Color, + ?Opacity: float ) = (fun (activeShape: ActiveShape) -> diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Annotation.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Annotation.fs index 3f70d102e..ac231ce6e 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Annotation.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Annotation.fs @@ -12,48 +12,48 @@ type Annotation() = /// Init Annotation type static member init ( - [] ?X: #IConvertible, - [] ?Y: #IConvertible, - [] ?Align: StyleParam.AnnotationAlignment, - [] ?ArrowColor: Color, - [] ?ArrowHead: StyleParam.ArrowHead, - [] ?ArrowSide: StyleParam.ArrowSide, - [] ?ArrowSize: float, - [] ?AX: #IConvertible, - [] ?AXRef: #IConvertible, - [] ?AY: #IConvertible, - [] ?AYRef: #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: #IConvertible, - [] ?XRef: #IConvertible, - [] ?XShift: int, - [] ?YAnchor: StyleParam.YAnchorPosition, - [] ?YClick: #IConvertible, - [] ?YRef: #IConvertible, - [] ?YShift: int + ?X: #IConvertible, + ?Y: #IConvertible, + ?Align: StyleParam.AnnotationAlignment, + ?ArrowColor: Color, + ?ArrowHead: StyleParam.ArrowHead, + ?ArrowSide: StyleParam.ArrowSide, + ?ArrowSize: float, + ?AX: #IConvertible, + ?AXRef: #IConvertible, + ?AY: #IConvertible, + ?AYRef: #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: #IConvertible, + ?XRef: #IConvertible, + ?XShift: int, + ?YAnchor: StyleParam.YAnchorPosition, + ?YClick: #IConvertible, + ?YRef: #IConvertible, + ?YShift: int ) = Annotation() |> Annotation.style ( @@ -103,48 +103,48 @@ type Annotation() = static member style ( - [] ?X: #IConvertible, - [] ?Y: #IConvertible, - [] ?Align: StyleParam.AnnotationAlignment, - [] ?ArrowColor: Color, - [] ?ArrowHead: StyleParam.ArrowHead, - [] ?ArrowSide: StyleParam.ArrowSide, - [] ?ArrowSize: float, - [] ?AX: #IConvertible, - [] ?AXRef: #IConvertible, - [] ?AY: #IConvertible, - [] ?AYRef: #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: #IConvertible, - [] ?XRef: #IConvertible, - [] ?XShift: int, - [] ?YAnchor: StyleParam.YAnchorPosition, - [] ?YClick: #IConvertible, - [] ?YRef: #IConvertible, - [] ?YShift: int + ?X: #IConvertible, + ?Y: #IConvertible, + ?Align: StyleParam.AnnotationAlignment, + ?ArrowColor: Color, + ?ArrowHead: StyleParam.ArrowHead, + ?ArrowSide: StyleParam.ArrowSide, + ?ArrowSize: float, + ?AX: #IConvertible, + ?AXRef: #IConvertible, + ?AY: #IConvertible, + ?AYRef: #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: #IConvertible, + ?XRef: #IConvertible, + ?XShift: int, + ?YAnchor: StyleParam.YAnchorPosition, + ?YClick: #IConvertible, + ?YRef: #IConvertible, + ?YShift: int ) = (fun (ann: Annotation) -> diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Button.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Button.fs index 2d2e03492..a352af6ee 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Button.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Button.fs @@ -11,13 +11,13 @@ type Button() = static member init ( - [] ?Visible: bool, - [] ?Step: StyleParam.TimeStep, - [] ?StepMode: StyleParam.TimeStepMode, - [] ?Count: int, - [] ?Label: string, - [] ?Name: string, - [] ?TemplateItemName: string + ?Visible: bool, + ?Step: StyleParam.TimeStep, + ?StepMode: StyleParam.TimeStepMode, + ?Count: int, + ?Label: string, + ?Name: string, + ?TemplateItemName: string ) = Button() |> Button.style ( @@ -32,13 +32,13 @@ type Button() = static member style ( - [] ?Visible: bool, - [] ?Step: StyleParam.TimeStep, - [] ?StepMode: StyleParam.TimeStepMode, - [] ?Count: int, - [] ?Label: string, - [] ?Name: string, - [] ?TemplateItemName: string + ?Visible: bool, + ?Step: StyleParam.TimeStep, + ?StepMode: StyleParam.TimeStepMode, + ?Count: int, + ?Label: string, + ?Name: string, + ?TemplateItemName: string ) = (fun (button: Button) -> diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ColorAxis.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ColorAxis.fs index 807a82641..e0663c22e 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ColorAxis.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ColorAxis.fs @@ -22,15 +22,15 @@ type ColorAxis() = /// Determines whether or not a colorbar is displayed for this trace. static member init ( - [] ?AutoColorScale: bool, - [] ?CAuto: float, - [] ?CMin: float, - [] ?CMid: float, - [] ?CMax: float, - [] ?ColorBar: ColorBar, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool + ?AutoColorScale: bool, + ?CAuto: float, + ?CMin: float, + ?CMid: float, + ?CMax: float, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool ) = ColorAxis() @@ -60,15 +60,15 @@ type ColorAxis() = /// Determines whether or not a colorbar is displayed for this trace. static member style ( - [] ?AutoColorScale: bool, - [] ?CAuto: float, - [] ?CMin: float, - [] ?CMid: float, - [] ?CMax: float, - [] ?ColorBar: ColorBar, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool + ?AutoColorScale: bool, + ?CAuto: float, + ?CMin: float, + ?CMid: float, + ?CMax: float, + ?ColorBar: ColorBar, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool ) = fun (ca: ColorAxis) -> diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/DefaultColorScales.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/DefaultColorScales.fs index b1fee0e6a..1bc4ee028 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/DefaultColorScales.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/DefaultColorScales.fs @@ -10,9 +10,9 @@ type DefaultColorScales() = static member init ( - [] ?Diverging: StyleParam.Colorscale, - [] ?Sequential: StyleParam.Colorscale, - [] ?SequentialMinus: StyleParam.Colorscale + ?Diverging: StyleParam.Colorscale, + ?Sequential: StyleParam.Colorscale, + ?SequentialMinus: StyleParam.Colorscale ) = DefaultColorScales() |> DefaultColorScales.style ( @@ -23,9 +23,9 @@ type DefaultColorScales() = static member style ( - [] ?Diverging: StyleParam.Colorscale, - [] ?Sequential: StyleParam.Colorscale, - [] ?SequentialMinus: StyleParam.Colorscale + ?Diverging: StyleParam.Colorscale, + ?Sequential: StyleParam.Colorscale, + ?SequentialMinus: StyleParam.Colorscale ) = (fun (defaultColorScales: DefaultColorScales) -> diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Domain.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Domain.fs index 442604933..6eb5a53a2 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Domain.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Domain.fs @@ -12,10 +12,10 @@ type Domain() = /// Initialized Dimensions object static member init ( - [] ?X: StyleParam.Range, - [] ?Y: StyleParam.Range, - [] ?Row: int, - [] ?Column: int + ?X: StyleParam.Range, + ?Y: StyleParam.Range, + ?Row: int, + ?Column: int ) = Domain() |> Domain.style (?X = X, ?Y = Y, ?Row = Row, ?Column = Column) @@ -23,10 +23,10 @@ type Domain() = // Applies the styles to Dimensions() static member style ( - [] ?X: StyleParam.Range, - [] ?Y: StyleParam.Range, - [] ?Row: int, - [] ?Column: int + ?X: StyleParam.Range, + ?Y: StyleParam.Range, + ?Row: int, + ?Column: int ) = (fun (dom: Domain) -> diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Hoverlabel.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Hoverlabel.fs index 65b7e52ef..47af74d08 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Hoverlabel.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Hoverlabel.fs @@ -20,12 +20,12 @@ type Hoverlabel() = /// Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. static member init ( - [] ?Align: StyleParam.Align, - [] ?BgColor: Color, - [] ?BorderColor: Color, - [] ?Font: Font, - [] ?GroupTitleFont: Font, - [] ?Namelength: int + ?Align: StyleParam.Align, + ?BgColor: Color, + ?BorderColor: Color, + ?Font: Font, + ?GroupTitleFont: Font, + ?Namelength: int ) = Hoverlabel() |> Hoverlabel.style ( @@ -49,12 +49,12 @@ type Hoverlabel() = /// Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. static member style ( - [] ?BgColor: Color, - [] ?BorderColor: Color, - [] ?Font: Font, - [] ?GroupTitleFont: Font, - [] ?Align: StyleParam.Align, - [] ?Namelength: int + ?BgColor: Color, + ?BorderColor: Color, + ?Font: Font, + ?GroupTitleFont: Font, + ?Align: StyleParam.Align, + ?Namelength: int ) = (fun (label: Hoverlabel) -> diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutGrid.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutGrid.fs index 7105c6411..b1a6c5c3c 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutGrid.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutGrid.fs @@ -25,18 +25,18 @@ type LayoutGrid() = static member init ( - [] ?Rows: int, - [] ?Columns: int, - [] ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], - [] ?XAxes: StyleParam.LinearAxisId[], - [] ?YAxes: StyleParam.LinearAxisId[], - [] ?RowOrder: StyleParam.LayoutGridRowOrder, - [] ?Pattern: StyleParam.LayoutGridPattern, - [] ?XGap: float, - [] ?YGap: float, - [] ?Domain: Domain, - [] ?XSide: StyleParam.LayoutGridXSide, - [] ?YSide: StyleParam.LayoutGridYSide + ?Rows: int, + ?Columns: int, + ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], + ?XAxes: StyleParam.LinearAxisId[], + ?YAxes: StyleParam.LinearAxisId[], + ?RowOrder: StyleParam.LayoutGridRowOrder, + ?Pattern: StyleParam.LayoutGridPattern, + ?XGap: float, + ?YGap: float, + ?Domain: Domain, + ?XSide: StyleParam.LayoutGridXSide, + ?YSide: StyleParam.LayoutGridYSide ) = LayoutGrid() |> LayoutGrid.style ( @@ -71,18 +71,18 @@ type LayoutGrid() = static member style ( - [] ?Rows: int, - [] ?Columns: int, - [] ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], - [] ?XAxes: StyleParam.LinearAxisId[], - [] ?YAxes: StyleParam.LinearAxisId[], - [] ?RowOrder: StyleParam.LayoutGridRowOrder, - [] ?Pattern: StyleParam.LayoutGridPattern, - [] ?XGap: float, - [] ?YGap: float, - [] ?Domain: Domain, - [] ?XSide: StyleParam.LayoutGridXSide, - [] ?YSide: StyleParam.LayoutGridYSide + ?Rows: int, + ?Columns: int, + ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], + ?XAxes: StyleParam.LinearAxisId[], + ?YAxes: StyleParam.LinearAxisId[], + ?RowOrder: StyleParam.LayoutGridRowOrder, + ?Pattern: StyleParam.LayoutGridPattern, + ?XGap: float, + ?YGap: float, + ?Domain: Domain, + ?XSide: StyleParam.LayoutGridXSide, + ?YSide: StyleParam.LayoutGridYSide ) = (fun (layoutGrid: LayoutGrid) -> layoutGrid diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutImage.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutImage.fs index 1e3d70e88..a8b216ef9 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutImage.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/LayoutImage.fs @@ -11,21 +11,21 @@ type LayoutImage() = static member init ( - [] ?Layer: StyleParam.Layer, - [] ?Name: string, - [] ?Opacity: float, - [] ?SizeX: int, - [] ?SizeY: int, - [] ?Sizing: StyleParam.LayoutImageSizing, - [] ?Source: string, - [] ?TemplateItemname: string, - [] ?Visible: bool, - [] ?X: #IConvertible, - [] ?XAnchor: StyleParam.XAnchorPosition, - [] ?XRef: string, - [] ?Y: #IConvertible, - [] ?YAnchor: StyleParam.YAnchorPosition, - [] ?YRef: string + ?Layer: StyleParam.Layer, + ?Name: string, + ?Opacity: float, + ?SizeX: int, + ?SizeY: int, + ?Sizing: StyleParam.LayoutImageSizing, + ?Source: string, + ?TemplateItemname: string, + ?Visible: bool, + ?X: #IConvertible, + ?XAnchor: StyleParam.XAnchorPosition, + ?XRef: string, + ?Y: #IConvertible, + ?YAnchor: StyleParam.YAnchorPosition, + ?YRef: string ) = LayoutImage() |> LayoutImage.style ( @@ -48,21 +48,21 @@ type LayoutImage() = static member style ( - [] ?Layer: StyleParam.Layer, - [] ?Name: string, - [] ?Opacity: float, - [] ?SizeX: int, - [] ?SizeY: int, - [] ?Sizing: StyleParam.LayoutImageSizing, - [] ?Source: string, - [] ?TemplateItemname: string, - [] ?Visible: bool, - [] ?X: #IConvertible, - [] ?XAnchor: StyleParam.XAnchorPosition, - [] ?XRef: string, - [] ?Y: #IConvertible, - [] ?YAnchor: StyleParam.YAnchorPosition, - [] ?YRef: string + ?Layer: StyleParam.Layer, + ?Name: string, + ?Opacity: float, + ?SizeX: int, + ?SizeY: int, + ?Sizing: StyleParam.LayoutImageSizing, + ?Source: string, + ?TemplateItemname: string, + ?Visible: bool, + ?X: #IConvertible, + ?XAnchor: StyleParam.XAnchorPosition, + ?XRef: string, + ?Y: #IConvertible, + ?YAnchor: StyleParam.YAnchorPosition, + ?YRef: string ) = (fun (layoutImage: LayoutImage) -> layoutImage diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Legend.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Legend.fs index 4d833806d..eeb26a6ec 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Legend.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Legend.fs @@ -39,31 +39,31 @@ type Legend() = /// Sets the container `y` refers to. "container" spans the entire `height` of the plot. "paper" refers to the height of the plotting area only. static member init ( - [] ?BGColor: Color, - [] ?BorderColor: Color, - [] ?BorderWidth: float, - [] ?EntryWidth: float, - [] ?EntryWidthMode: StyleParam.EntryWidthMode, - [] ?Font: Font, - [] ?GroupClick: StyleParam.TraceGroupClickOptions, - [] ?GroupTitleFont: Font, - [] ?ItemClick: StyleParam.TraceItemClickOptions, - [] ?ItemDoubleClick: StyleParam.TraceItemClickOptions, - [] ?ItemSizing: StyleParam.TraceItemSizing, - [] ?ItemWidth: int, - [] ?Orientation: StyleParam.Orientation, - [] ?Title: Title, - [] ?TraceGroupGap: float, - [] ?TraceOrder: StyleParam.TraceOrder, - [] ?UIRevision: string, - [] ?VerticalAlign: StyleParam.VerticalAlign, - [] ?Visible: bool, - [] ?X: float, - [] ?XAnchor: StyleParam.XAnchorPosition, - [] ?XRef: string, - [] ?Y: float, - [] ?YAnchor: StyleParam.YAnchorPosition, - [] ?YRef: string + ?BGColor: Color, + ?BorderColor: Color, + ?BorderWidth: float, + ?EntryWidth: float, + ?EntryWidthMode: StyleParam.EntryWidthMode, + ?Font: Font, + ?GroupClick: StyleParam.TraceGroupClickOptions, + ?GroupTitleFont: Font, + ?ItemClick: StyleParam.TraceItemClickOptions, + ?ItemDoubleClick: StyleParam.TraceItemClickOptions, + ?ItemSizing: StyleParam.TraceItemSizing, + ?ItemWidth: int, + ?Orientation: StyleParam.Orientation, + ?Title: Title, + ?TraceGroupGap: float, + ?TraceOrder: StyleParam.TraceOrder, + ?UIRevision: string, + ?VerticalAlign: StyleParam.VerticalAlign, + ?Visible: bool, + ?X: float, + ?XAnchor: StyleParam.XAnchorPosition, + ?XRef: string, + ?Y: float, + ?YAnchor: StyleParam.YAnchorPosition, + ?YRef: string ) = Legend() |> Legend.style ( @@ -124,31 +124,31 @@ type Legend() = /// Sets the container `y` refers to. "container" spans the entire `height` of the plot. "paper" refers to the height of the plotting area only. static member style ( - [] ?BGColor: Color, - [] ?BorderColor: Color, - [] ?BorderWidth: float, - [] ?EntryWidth: float, - [] ?EntryWidthMode: StyleParam.EntryWidthMode, - [] ?Font: Font, - [] ?GroupClick: StyleParam.TraceGroupClickOptions, - [] ?GroupTitleFont: Font, - [] ?ItemClick: StyleParam.TraceItemClickOptions, - [] ?ItemDoubleClick: StyleParam.TraceItemClickOptions, - [] ?ItemSizing: StyleParam.TraceItemSizing, - [] ?ItemWidth: int, - [] ?Orientation: StyleParam.Orientation, - [] ?Title: Title, - [] ?TraceGroupGap: float, - [] ?TraceOrder: StyleParam.TraceOrder, - [] ?UIRevision: string, - [] ?VerticalAlign: StyleParam.VerticalAlign, - [] ?Visible: bool, - [] ?X: float, - [] ?XAnchor: StyleParam.XAnchorPosition, - [] ?XRef: string, - [] ?Y: float, - [] ?YAnchor: StyleParam.YAnchorPosition, - [] ?YRef: string + ?BGColor: Color, + ?BorderColor: Color, + ?BorderWidth: float, + ?EntryWidth: float, + ?EntryWidthMode: StyleParam.EntryWidthMode, + ?Font: Font, + ?GroupClick: StyleParam.TraceGroupClickOptions, + ?GroupTitleFont: Font, + ?ItemClick: StyleParam.TraceItemClickOptions, + ?ItemDoubleClick: StyleParam.TraceItemClickOptions, + ?ItemSizing: StyleParam.TraceItemSizing, + ?ItemWidth: int, + ?Orientation: StyleParam.Orientation, + ?Title: Title, + ?TraceGroupGap: float, + ?TraceOrder: StyleParam.TraceOrder, + ?UIRevision: string, + ?VerticalAlign: StyleParam.VerticalAlign, + ?Visible: bool, + ?X: float, + ?XAnchor: StyleParam.XAnchorPosition, + ?XRef: string, + ?Y: float, + ?YAnchor: StyleParam.YAnchorPosition, + ?YRef: string ) = (fun (legend: Legend) -> diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/LinearAxis.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/LinearAxis.fs index 22cc39332..1caa2f929 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/LinearAxis.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/LinearAxis.fs @@ -101,93 +101,93 @@ type LinearAxis() = /// Sets whether or not this axis' wall has a background color. (Only has an effect on 3D scenes) static member init ( - [] ?Visible: bool, - [] ?Color: Color, - [] ?Title: Title, - [] ?AxisType: StyleParam.AxisType, - [] ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, - [] ?AutoRange: StyleParam.AutoRange, - [] ?AutoRangeOptions: AutoRangeOptions, - [] ?AutoShift: bool, - [] ?RangeMode: StyleParam.RangeMode, - [] ?Range: StyleParam.Range, - [] ?FixedRange: bool, - [] ?ScaleAnchor: StyleParam.ScaleAnchor, - [] ?ScaleRatio: float, - [] ?Constrain: StyleParam.AxisConstraint, - [] ?ConstrainToward: StyleParam.AxisConstraintDirection, - [] ?Matches: StyleParam.LinearAxisId, - [] ?MaxAllowed: #IConvertible, - [] ?MinAllowed: #IConvertible, - [] ?Rangebreaks: seq, - [] ?TickMode: StyleParam.TickMode, - [] ?NTicks: int, - [] ?Tick0: #IConvertible, - [] ?DTick: #IConvertible, - [] ?TickVals: seq<#IConvertible>, - [] ?TickText: seq<#IConvertible>, - [] ?Ticks: StyleParam.TickOptions, - [] ?TicksOn: StyleParam.CategoryTickAnchor, - [] ?TickLabelMode: StyleParam.TickLabelMode, - [] ?TickLabelPosition: StyleParam.TickLabelPosition, - [] ?TickLabelStep: int, - [] ?TickLabelOverflow: StyleParam.TickLabelOverflow, - [] ?Mirror: StyleParam.Mirror, - [] ?TickLen: int, - [] ?TickWidth: int, - [] ?TickColor: Color, - [] ?ShowTickLabels: bool, - [] ?AutoMargin: StyleParam.TickAutoMargin, - [] ?ShowSpikes: bool, - [] ?SpikeColor: Color, - [] ?SpikeThickness: int, - [] ?SpikeDash: StyleParam.DrawingStyle, - [] ?SpikeMode: StyleParam.SpikeMode, - [] ?SpikeSnap: StyleParam.SpikeSnap, - [] ?TickFont: Font, - [] ?TickAngle: int, - [] ?ShowTickPrefix: StyleParam.ShowTickOption, - [] ?TickPrefix: string, - [] ?ShowTickSuffix: StyleParam.ShowTickOption, - [] ?TickSuffix: string, - [] ?ShowExponent: StyleParam.ShowExponent, - [] ?ExponentFormat: StyleParam.ExponentFormat, - [] ?MinExponent: float, - [] ?Minor: Minor, - [] ?SeparateThousands: bool, - [] ?TickFormat: string, - [] ?TickFormatStops: seq, - [] ?HoverFormat: string, - [] ?InsideRange: StyleParam.Range, - [] ?ShowLine: bool, - [] ?LineColor: Color, - [] ?LineWidth: float, - [] ?ShowGrid: bool, - [] ?GridColor: Color, - [] ?GridDash: StyleParam.DrawingStyle, - [] ?GridWidth: float, - [] ?ZeroLine: bool, - [] ?ZeroLineColor: Color, - [] ?ZeroLineWidth: float, - [] ?Shift: int, - [] ?ShowDividers: bool, - [] ?DividerColor: Color, - [] ?DividerWidth: int, - [] ?Anchor: StyleParam.LinearAxisId, - [] ?Side: StyleParam.Side, - [] ?Overlaying: StyleParam.LinearAxisId, - [] ?LabelAlias: DynamicObj, - [] ?Layer: StyleParam.Layer, - [] ?Domain: StyleParam.Range, - [] ?Position: float, - [] ?CategoryOrder: StyleParam.CategoryOrder, - [] ?CategoryArray: seq<#IConvertible>, - [] ?UIRevision: #IConvertible, - [] ?RangeSlider: RangeSlider, - [] ?RangeSelector: RangeSelector, - [] ?Calendar: StyleParam.Calendar, - [] ?BackgroundColor: Color, - [] ?ShowBackground: bool + ?Visible: bool, + ?Color: Color, + ?Title: Title, + ?AxisType: StyleParam.AxisType, + ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, + ?AutoRange: StyleParam.AutoRange, + ?AutoRangeOptions: AutoRangeOptions, + ?AutoShift: bool, + ?RangeMode: StyleParam.RangeMode, + ?Range: StyleParam.Range, + ?FixedRange: bool, + ?ScaleAnchor: StyleParam.ScaleAnchor, + ?ScaleRatio: float, + ?Constrain: StyleParam.AxisConstraint, + ?ConstrainToward: StyleParam.AxisConstraintDirection, + ?Matches: StyleParam.LinearAxisId, + ?MaxAllowed: #IConvertible, + ?MinAllowed: #IConvertible, + ?Rangebreaks: seq, + ?TickMode: StyleParam.TickMode, + ?NTicks: int, + ?Tick0: #IConvertible, + ?DTick: #IConvertible, + ?TickVals: seq<#IConvertible>, + ?TickText: seq<#IConvertible>, + ?Ticks: StyleParam.TickOptions, + ?TicksOn: StyleParam.CategoryTickAnchor, + ?TickLabelMode: StyleParam.TickLabelMode, + ?TickLabelPosition: StyleParam.TickLabelPosition, + ?TickLabelStep: int, + ?TickLabelOverflow: StyleParam.TickLabelOverflow, + ?Mirror: StyleParam.Mirror, + ?TickLen: int, + ?TickWidth: int, + ?TickColor: Color, + ?ShowTickLabels: bool, + ?AutoMargin: StyleParam.TickAutoMargin, + ?ShowSpikes: bool, + ?SpikeColor: Color, + ?SpikeThickness: int, + ?SpikeDash: StyleParam.DrawingStyle, + ?SpikeMode: StyleParam.SpikeMode, + ?SpikeSnap: StyleParam.SpikeSnap, + ?TickFont: Font, + ?TickAngle: int, + ?ShowTickPrefix: StyleParam.ShowTickOption, + ?TickPrefix: string, + ?ShowTickSuffix: StyleParam.ShowTickOption, + ?TickSuffix: string, + ?ShowExponent: StyleParam.ShowExponent, + ?ExponentFormat: StyleParam.ExponentFormat, + ?MinExponent: float, + ?Minor: Minor, + ?SeparateThousands: bool, + ?TickFormat: string, + ?TickFormatStops: seq, + ?HoverFormat: string, + ?InsideRange: StyleParam.Range, + ?ShowLine: bool, + ?LineColor: Color, + ?LineWidth: float, + ?ShowGrid: bool, + ?GridColor: Color, + ?GridDash: StyleParam.DrawingStyle, + ?GridWidth: float, + ?ZeroLine: bool, + ?ZeroLineColor: Color, + ?ZeroLineWidth: float, + ?Shift: int, + ?ShowDividers: bool, + ?DividerColor: Color, + ?DividerWidth: int, + ?Anchor: StyleParam.LinearAxisId, + ?Side: StyleParam.Side, + ?Overlaying: StyleParam.LinearAxisId, + ?LabelAlias: DynamicObj, + ?Layer: StyleParam.Layer, + ?Domain: StyleParam.Range, + ?Position: float, + ?CategoryOrder: StyleParam.CategoryOrder, + ?CategoryArray: seq<#IConvertible>, + ?UIRevision: #IConvertible, + ?RangeSlider: RangeSlider, + ?RangeSelector: RangeSelector, + ?Calendar: StyleParam.Calendar, + ?BackgroundColor: Color, + ?ShowBackground: bool ) = LinearAxis() |> LinearAxis.style ( @@ -365,84 +365,84 @@ type LinearAxis() = static member initCategorical ( categoryOrder: StyleParam.CategoryOrder, - [] ?Visible: bool, - [] ?Color: Color, - [] ?Title: Title, - [] ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, - [] ?AutoRange: StyleParam.AutoRange, - [] ?AutoShift: bool, - [] ?RangeMode: StyleParam.RangeMode, - [] ?Range: StyleParam.Range, - [] ?FixedRange: bool, - [] ?ScaleAnchor: StyleParam.ScaleAnchor, - [] ?ScaleRatio: float, - [] ?Constrain: StyleParam.AxisConstraint, - [] ?ConstrainToward: StyleParam.AxisConstraintDirection, - [] ?Matches: StyleParam.LinearAxisId, - [] ?Rangebreaks: seq, - [] ?TickMode: StyleParam.TickMode, - [] ?NTicks: int, - [] ?Tick0: #IConvertible, - [] ?DTick: #IConvertible, - [] ?TickVals: seq<#IConvertible>, - [] ?TickText: seq<#IConvertible>, - [] ?Ticks: StyleParam.TickOptions, - [] ?TicksOn: StyleParam.CategoryTickAnchor, - [] ?TickLabelMode: StyleParam.TickLabelMode, - [] ?TickLabelPosition: StyleParam.TickLabelPosition, - [] ?TickLabelOverflow: StyleParam.TickLabelOverflow, - [] ?Mirror: StyleParam.Mirror, - [] ?TickLen: int, - [] ?TickWidth: int, - [] ?TickColor: Color, - [] ?ShowTickLabels: bool, - [] ?AutoMargin: StyleParam.TickAutoMargin, - [] ?ShowSpikes: bool, - [] ?SpikeColor: Color, - [] ?SpikeThickness: int, - [] ?SpikeDash: StyleParam.DrawingStyle, - [] ?SpikeMode: StyleParam.SpikeMode, - [] ?SpikeSnap: StyleParam.SpikeSnap, - [] ?TickFont: Font, - [] ?TickAngle: int, - [] ?ShowTickPrefix: StyleParam.ShowTickOption, - [] ?TickPrefix: string, - [] ?ShowTickSuffix: StyleParam.ShowTickOption, - [] ?TickSuffix: string, - [] ?ShowExponent: StyleParam.ShowExponent, - [] ?ExponentFormat: StyleParam.ExponentFormat, - [] ?MinExponent: float, - [] ?Minor: Minor, - [] ?SeparateThousands: bool, - [] ?TickFormat: string, - [] ?TickFormatStops: seq, - [] ?HoverFormat: string, - [] ?ShowLine: bool, - [] ?LineColor: Color, - [] ?LineWidth: float, - [] ?ShowGrid: bool, - [] ?GridColor: Color, - [] ?GridDash: StyleParam.DrawingStyle, - [] ?GridWidth: float, - [] ?ZeroLine: bool, - [] ?ZeroLineColor: Color, - [] ?ZeroLineWidth: float, - [] ?Shift: int, - [] ?ShowDividers: bool, - [] ?DividerColor: Color, - [] ?DividerWidth: int, - [] ?Anchor: StyleParam.LinearAxisId, - [] ?Side: StyleParam.Side, - [] ?Overlaying: StyleParam.LinearAxisId, - [] ?LabelAlias: DynamicObj, - [] ?Layer: StyleParam.Layer, - [] ?Domain: StyleParam.Range, - [] ?Position: float, - [] ?CategoryArray: seq<#IConvertible>, - [] ?UIRevision: #IConvertible, - [] ?RangeSlider: RangeSlider, - [] ?RangeSelector: RangeSelector, - [] ?Calendar: StyleParam.Calendar + ?Visible: bool, + ?Color: Color, + ?Title: Title, + ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, + ?AutoRange: StyleParam.AutoRange, + ?AutoShift: bool, + ?RangeMode: StyleParam.RangeMode, + ?Range: StyleParam.Range, + ?FixedRange: bool, + ?ScaleAnchor: StyleParam.ScaleAnchor, + ?ScaleRatio: float, + ?Constrain: StyleParam.AxisConstraint, + ?ConstrainToward: StyleParam.AxisConstraintDirection, + ?Matches: StyleParam.LinearAxisId, + ?Rangebreaks: seq, + ?TickMode: StyleParam.TickMode, + ?NTicks: int, + ?Tick0: #IConvertible, + ?DTick: #IConvertible, + ?TickVals: seq<#IConvertible>, + ?TickText: seq<#IConvertible>, + ?Ticks: StyleParam.TickOptions, + ?TicksOn: StyleParam.CategoryTickAnchor, + ?TickLabelMode: StyleParam.TickLabelMode, + ?TickLabelPosition: StyleParam.TickLabelPosition, + ?TickLabelOverflow: StyleParam.TickLabelOverflow, + ?Mirror: StyleParam.Mirror, + ?TickLen: int, + ?TickWidth: int, + ?TickColor: Color, + ?ShowTickLabels: bool, + ?AutoMargin: StyleParam.TickAutoMargin, + ?ShowSpikes: bool, + ?SpikeColor: Color, + ?SpikeThickness: int, + ?SpikeDash: StyleParam.DrawingStyle, + ?SpikeMode: StyleParam.SpikeMode, + ?SpikeSnap: StyleParam.SpikeSnap, + ?TickFont: Font, + ?TickAngle: int, + ?ShowTickPrefix: StyleParam.ShowTickOption, + ?TickPrefix: string, + ?ShowTickSuffix: StyleParam.ShowTickOption, + ?TickSuffix: string, + ?ShowExponent: StyleParam.ShowExponent, + ?ExponentFormat: StyleParam.ExponentFormat, + ?MinExponent: float, + ?Minor: Minor, + ?SeparateThousands: bool, + ?TickFormat: string, + ?TickFormatStops: seq, + ?HoverFormat: string, + ?ShowLine: bool, + ?LineColor: Color, + ?LineWidth: float, + ?ShowGrid: bool, + ?GridColor: Color, + ?GridDash: StyleParam.DrawingStyle, + ?GridWidth: float, + ?ZeroLine: bool, + ?ZeroLineColor: Color, + ?ZeroLineWidth: float, + ?Shift: int, + ?ShowDividers: bool, + ?DividerColor: Color, + ?DividerWidth: int, + ?Anchor: StyleParam.LinearAxisId, + ?Side: StyleParam.Side, + ?Overlaying: StyleParam.LinearAxisId, + ?LabelAlias: DynamicObj, + ?Layer: StyleParam.Layer, + ?Domain: StyleParam.Range, + ?Position: float, + ?CategoryArray: seq<#IConvertible>, + ?UIRevision: #IConvertible, + ?RangeSlider: RangeSlider, + ?RangeSelector: RangeSelector, + ?Calendar: StyleParam.Calendar ) = LinearAxis() |> LinearAxis.style ( @@ -588,61 +588,61 @@ type LinearAxis() = /// Sets the width (in px) of the start line. static member initCarpet ( - [] ?Color: Color, - [] ?Title: Title, - [] ?AxisType: StyleParam.AxisType, - [] ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, - [] ?AutoRange: StyleParam.AutoRange, - [] ?RangeMode: StyleParam.RangeMode, - [] ?Range: StyleParam.Range, - [] ?FixedRange: bool, - [] ?TickMode: StyleParam.TickMode, - [] ?NTicks: int, - [] ?Tick0: #IConvertible, - [] ?DTick: #IConvertible, - [] ?TickVals: seq<#IConvertible>, - [] ?TickText: seq<#IConvertible>, - [] ?Ticks: StyleParam.TickOptions, - [] ?ShowTickLabels: bool, - [] ?TickFont: Font, - [] ?TickAngle: int, - [] ?ShowTickPrefix: StyleParam.ShowTickOption, - [] ?TickPrefix: string, - [] ?ShowTickSuffix: StyleParam.ShowTickOption, - [] ?TickSuffix: string, - [] ?ShowExponent: StyleParam.ShowExponent, - [] ?ExponentFormat: StyleParam.ExponentFormat, - [] ?MinExponent: float, - [] ?SeparateThousands: bool, - [] ?TickFormat: string, - [] ?TickFormatStops: seq, - [] ?ShowLine: bool, - [] ?LineColor: Color, - [] ?LineWidth: float, - [] ?ShowGrid: bool, - [] ?GridColor: Color, - [] ?GridDash: StyleParam.DrawingStyle, - [] ?GridWidth: float, - [] ?CategoryOrder: StyleParam.CategoryOrder, - [] ?CategoryArray: seq<#IConvertible>, - [] ?ArrayDTick: int, - [] ?ArrayTick0: int, - [] ?CheaterType: StyleParam.CheaterType, - [] ?EndLine: bool, - [] ?EndLineColor: Color, - [] ?EndLineWidth: int, - [] ?LabelAlias: DynamicObj, - [] ?LabelPadding: int, - [] ?LabelPrefix: string, - [] ?LabelSuffix: string, - [] ?MinorGridColor: Color, - [] ?MinorGridDash: StyleParam.DrawingStyle, - [] ?MinorGridCount: int, - [] ?MinorGridWidth: int, - [] ?Smoothing: float, - [] ?StartLine: bool, - [] ?StartLineColor: Color, - [] ?StartLineWidth: int + ?Color: Color, + ?Title: Title, + ?AxisType: StyleParam.AxisType, + ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, + ?AutoRange: StyleParam.AutoRange, + ?RangeMode: StyleParam.RangeMode, + ?Range: StyleParam.Range, + ?FixedRange: bool, + ?TickMode: StyleParam.TickMode, + ?NTicks: int, + ?Tick0: #IConvertible, + ?DTick: #IConvertible, + ?TickVals: seq<#IConvertible>, + ?TickText: seq<#IConvertible>, + ?Ticks: StyleParam.TickOptions, + ?ShowTickLabels: bool, + ?TickFont: Font, + ?TickAngle: int, + ?ShowTickPrefix: StyleParam.ShowTickOption, + ?TickPrefix: string, + ?ShowTickSuffix: StyleParam.ShowTickOption, + ?TickSuffix: string, + ?ShowExponent: StyleParam.ShowExponent, + ?ExponentFormat: StyleParam.ExponentFormat, + ?MinExponent: float, + ?SeparateThousands: bool, + ?TickFormat: string, + ?TickFormatStops: seq, + ?ShowLine: bool, + ?LineColor: Color, + ?LineWidth: float, + ?ShowGrid: bool, + ?GridColor: Color, + ?GridDash: StyleParam.DrawingStyle, + ?GridWidth: float, + ?CategoryOrder: StyleParam.CategoryOrder, + ?CategoryArray: seq<#IConvertible>, + ?ArrayDTick: int, + ?ArrayTick0: int, + ?CheaterType: StyleParam.CheaterType, + ?EndLine: bool, + ?EndLineColor: Color, + ?EndLineWidth: int, + ?LabelAlias: DynamicObj, + ?LabelPadding: int, + ?LabelPrefix: string, + ?LabelSuffix: string, + ?MinorGridColor: Color, + ?MinorGridDash: StyleParam.DrawingStyle, + ?MinorGridCount: int, + ?MinorGridWidth: int, + ?Smoothing: float, + ?StartLine: bool, + ?StartLineColor: Color, + ?StartLineWidth: int ) = LinearAxis() |> LinearAxis.style ( @@ -734,32 +734,32 @@ type LinearAxis() = /// A single toggle to hide the axis while preserving interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false static member initIndicatorGauge ( - [] ?DTick: #IConvertible, - [] ?LabelAlias: DynamicObj, - [] ?ExponentFormat: StyleParam.ExponentFormat, - [] ?MinExponent: float, - [] ?NTicks: int, - [] ?Range: StyleParam.Range, - [] ?SeparateThousands: bool, - [] ?ShowExponent: StyleParam.ShowExponent, - [] ?ShowTickLabels: bool, - [] ?ShowTickPrefix: StyleParam.ShowTickOption, - [] ?ShowTickSuffix: StyleParam.ShowTickOption, - [] ?Tick0: #IConvertible, - [] ?TickAngle: int, - [] ?TickColor: Color, - [] ?TickFont: Font, - [] ?TickFormat: string, - [] ?TickFormatStops: seq, - [] ?TickLen: int, - [] ?TickMode: StyleParam.TickMode, - [] ?TickPrefix: string, - [] ?Ticks: StyleParam.TickOptions, - [] ?TickSuffix: string, - [] ?TickText: seq<#IConvertible>, - [] ?TickVals: seq<#IConvertible>, - [] ?TickWidth: int, - [] ?Visible: bool + ?DTick: #IConvertible, + ?LabelAlias: DynamicObj, + ?ExponentFormat: StyleParam.ExponentFormat, + ?MinExponent: float, + ?NTicks: int, + ?Range: StyleParam.Range, + ?SeparateThousands: bool, + ?ShowExponent: StyleParam.ShowExponent, + ?ShowTickLabels: bool, + ?ShowTickPrefix: StyleParam.ShowTickOption, + ?ShowTickSuffix: StyleParam.ShowTickOption, + ?Tick0: #IConvertible, + ?TickAngle: int, + ?TickColor: Color, + ?TickFont: Font, + ?TickFormat: string, + ?TickFormatStops: seq, + ?TickLen: int, + ?TickMode: StyleParam.TickMode, + ?TickPrefix: string, + ?Ticks: StyleParam.TickOptions, + ?TickSuffix: string, + ?TickText: seq<#IConvertible>, + ?TickVals: seq<#IConvertible>, + ?TickWidth: int, + ?Visible: bool ) = LinearAxis() |> LinearAxis.style ( @@ -900,110 +900,110 @@ type LinearAxis() = /// Sets whether or not this axis' wall has a background color. (Only has an effect on 3D scenes) static member style ( - [] ?Visible: bool, - [] ?Color: Color, - [] ?Title: Title, - [] ?AxisType: StyleParam.AxisType, - [] ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, - [] ?AutoRange: StyleParam.AutoRange, - [] ?AutoRangeOptions: AutoRangeOptions, - [] ?AutoShift: bool, - [] ?RangeMode: StyleParam.RangeMode, - [] ?Range: StyleParam.Range, - [] ?FixedRange: bool, - [] ?ScaleAnchor: StyleParam.ScaleAnchor, - [] ?ScaleRatio: float, - [] ?Constrain: StyleParam.AxisConstraint, - [] ?ConstrainToward: StyleParam.AxisConstraintDirection, - [] ?Matches: StyleParam.LinearAxisId, - [] ?MaxAllowed: #IConvertible, - [] ?MinAllowed: #IConvertible, - [] ?Rangebreaks: seq, - [] ?TickMode: StyleParam.TickMode, - [] ?NTicks: int, - [] ?Tick0: #IConvertible, - [] ?DTick: #IConvertible, - [] ?TickVals: seq<#IConvertible>, - [] ?TickText: seq<#IConvertible>, - [] ?Ticks: StyleParam.TickOptions, - [] ?TicksOn: StyleParam.CategoryTickAnchor, - [] ?TickLabelMode: StyleParam.TickLabelMode, - [] ?TickLabelPosition: StyleParam.TickLabelPosition, - [] ?TickLabelStep: int, - [] ?TickLabelOverflow: StyleParam.TickLabelOverflow, - [] ?Mirror: StyleParam.Mirror, - [] ?TickLen: int, - [] ?TickWidth: int, - [] ?TickColor: Color, - [] ?ShowTickLabels: bool, - [] ?AutoMargin: StyleParam.TickAutoMargin, - [] ?ShowSpikes: bool, - [] ?SpikeColor: Color, - [] ?SpikeThickness: int, - [] ?SpikeDash: StyleParam.DrawingStyle, - [] ?SpikeMode: StyleParam.SpikeMode, - [] ?SpikeSnap: StyleParam.SpikeSnap, - [] ?TickFont: Font, - [] ?TickAngle: int, - [] ?ShowTickPrefix: StyleParam.ShowTickOption, - [] ?TickPrefix: string, - [] ?ShowTickSuffix: StyleParam.ShowTickOption, - [] ?TickSuffix: string, - [] ?ShowExponent: StyleParam.ShowExponent, - [] ?ExponentFormat: StyleParam.ExponentFormat, - [] ?MinExponent: float, - [] ?Minor: Minor, - [] ?SeparateThousands: bool, - [] ?TickFormat: string, - [] ?TickFormatStops: seq, - [] ?HoverFormat: string, - [] ?InsideRange: StyleParam.Range, - [] ?ShowLine: bool, - [] ?LineColor: Color, - [] ?LineWidth: float, - [] ?ShowGrid: bool, - [] ?GridColor: Color, - [] ?GridDash: StyleParam.DrawingStyle, - [] ?GridWidth: float, - [] ?ZeroLine: bool, - [] ?ZeroLineColor: Color, - [] ?ZeroLineWidth: float, - [] ?Shift: int, - [] ?ShowDividers: bool, - [] ?DividerColor: Color, - [] ?DividerWidth: int, - [] ?Anchor: StyleParam.LinearAxisId, - [] ?Side: StyleParam.Side, - [] ?Overlaying: StyleParam.LinearAxisId, - [] ?LabelAlias: DynamicObj, - [] ?Layer: StyleParam.Layer, - [] ?Domain: StyleParam.Range, - [] ?Position: float, - [] ?CategoryOrder: StyleParam.CategoryOrder, - [] ?CategoryArray: seq<#IConvertible>, - [] ?UIRevision: #IConvertible, - [] ?RangeSlider: RangeSlider, - [] ?RangeSelector: RangeSelector, - [] ?Calendar: StyleParam.Calendar, - [] ?ArrayDTick: int, - [] ?ArrayTick0: int, - [] ?CheaterType: StyleParam.CheaterType, - [] ?EndLine: bool, - [] ?EndLineColor: Color, - [] ?EndLineWidth: int, - [] ?LabelPadding: int, - [] ?LabelPrefix: string, - [] ?LabelSuffix: string, - [] ?MinorGridColor: Color, - [] ?MinorGridDash: StyleParam.DrawingStyle, - [] ?MinorGridCount: int, - [] ?MinorGridWidth: int, - [] ?Smoothing: float, - [] ?StartLine: bool, - [] ?StartLineColor: Color, - [] ?StartLineWidth: int, - [] ?BackgroundColor: Color, - [] ?ShowBackground: bool + ?Visible: bool, + ?Color: Color, + ?Title: Title, + ?AxisType: StyleParam.AxisType, + ?AutoTypeNumbers: StyleParam.AutoTypeNumbers, + ?AutoRange: StyleParam.AutoRange, + ?AutoRangeOptions: AutoRangeOptions, + ?AutoShift: bool, + ?RangeMode: StyleParam.RangeMode, + ?Range: StyleParam.Range, + ?FixedRange: bool, + ?ScaleAnchor: StyleParam.ScaleAnchor, + ?ScaleRatio: float, + ?Constrain: StyleParam.AxisConstraint, + ?ConstrainToward: StyleParam.AxisConstraintDirection, + ?Matches: StyleParam.LinearAxisId, + ?MaxAllowed: #IConvertible, + ?MinAllowed: #IConvertible, + ?Rangebreaks: seq, + ?TickMode: StyleParam.TickMode, + ?NTicks: int, + ?Tick0: #IConvertible, + ?DTick: #IConvertible, + ?TickVals: seq<#IConvertible>, + ?TickText: seq<#IConvertible>, + ?Ticks: StyleParam.TickOptions, + ?TicksOn: StyleParam.CategoryTickAnchor, + ?TickLabelMode: StyleParam.TickLabelMode, + ?TickLabelPosition: StyleParam.TickLabelPosition, + ?TickLabelStep: int, + ?TickLabelOverflow: StyleParam.TickLabelOverflow, + ?Mirror: StyleParam.Mirror, + ?TickLen: int, + ?TickWidth: int, + ?TickColor: Color, + ?ShowTickLabels: bool, + ?AutoMargin: StyleParam.TickAutoMargin, + ?ShowSpikes: bool, + ?SpikeColor: Color, + ?SpikeThickness: int, + ?SpikeDash: StyleParam.DrawingStyle, + ?SpikeMode: StyleParam.SpikeMode, + ?SpikeSnap: StyleParam.SpikeSnap, + ?TickFont: Font, + ?TickAngle: int, + ?ShowTickPrefix: StyleParam.ShowTickOption, + ?TickPrefix: string, + ?ShowTickSuffix: StyleParam.ShowTickOption, + ?TickSuffix: string, + ?ShowExponent: StyleParam.ShowExponent, + ?ExponentFormat: StyleParam.ExponentFormat, + ?MinExponent: float, + ?Minor: Minor, + ?SeparateThousands: bool, + ?TickFormat: string, + ?TickFormatStops: seq, + ?HoverFormat: string, + ?InsideRange: StyleParam.Range, + ?ShowLine: bool, + ?LineColor: Color, + ?LineWidth: float, + ?ShowGrid: bool, + ?GridColor: Color, + ?GridDash: StyleParam.DrawingStyle, + ?GridWidth: float, + ?ZeroLine: bool, + ?ZeroLineColor: Color, + ?ZeroLineWidth: float, + ?Shift: int, + ?ShowDividers: bool, + ?DividerColor: Color, + ?DividerWidth: int, + ?Anchor: StyleParam.LinearAxisId, + ?Side: StyleParam.Side, + ?Overlaying: StyleParam.LinearAxisId, + ?LabelAlias: DynamicObj, + ?Layer: StyleParam.Layer, + ?Domain: StyleParam.Range, + ?Position: float, + ?CategoryOrder: StyleParam.CategoryOrder, + ?CategoryArray: seq<#IConvertible>, + ?UIRevision: #IConvertible, + ?RangeSlider: RangeSlider, + ?RangeSelector: RangeSelector, + ?Calendar: StyleParam.Calendar, + ?ArrayDTick: int, + ?ArrayTick0: int, + ?CheaterType: StyleParam.CheaterType, + ?EndLine: bool, + ?EndLineColor: Color, + ?EndLineWidth: int, + ?LabelPadding: int, + ?LabelPrefix: string, + ?LabelSuffix: string, + ?MinorGridColor: Color, + ?MinorGridDash: StyleParam.DrawingStyle, + ?MinorGridCount: int, + ?MinorGridWidth: int, + ?Smoothing: float, + ?StartLine: bool, + ?StartLineColor: Color, + ?StartLineWidth: int, + ?BackgroundColor: Color, + ?ShowBackground: bool ) = (fun (axis: LinearAxis) -> diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Margin.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Margin.fs index 602c62ac2..e74beabe8 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Margin.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Margin.fs @@ -10,12 +10,12 @@ type Margin() = /// Init Margin type static member init ( - [] ?Left, - [] ?Right, - [] ?Top, - [] ?Bottom, - [] ?Pad, - [] ?Autoexpand + ?Left, + ?Right, + ?Top, + ?Bottom, + ?Pad, + ?Autoexpand ) = Margin() |> Margin.style ( @@ -31,12 +31,12 @@ type Margin() = // Applies the styles to Margin() static member style ( - [] ?Left, - [] ?Right, - [] ?Top, - [] ?Bottom, - [] ?Pad, - [] ?Autoexpand + ?Left, + ?Right, + ?Top, + ?Bottom, + ?Pad, + ?Autoexpand ) = (fun (margin: Margin) -> diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Minor.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Minor.fs index c3300345a..06737787c 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/Minor.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/Minor.fs @@ -27,19 +27,19 @@ type Minor() = /// Sets the tick width (in px). static member init ( - [] ?DTick: #IConvertible, - [] ?GridColor: Color, - [] ?GridDash: StyleParam.DrawingStyle, - [] ?GridWidth: float, - [] ?NTicks: int, - [] ?ShowGrid: bool, - [] ?Tick0: #IConvertible, - [] ?TickColor: Color, - [] ?TickLen: int, - [] ?TickMode: StyleParam.TickMode, - [] ?Ticks: StyleParam.TickOptions, - [] ?TickVals: seq<#IConvertible>, - [] ?TickWidth: int + ?DTick: #IConvertible, + ?GridColor: Color, + ?GridDash: StyleParam.DrawingStyle, + ?GridWidth: float, + ?NTicks: int, + ?ShowGrid: bool, + ?Tick0: #IConvertible, + ?TickColor: Color, + ?TickLen: int, + ?TickMode: StyleParam.TickMode, + ?Ticks: StyleParam.TickOptions, + ?TickVals: seq<#IConvertible>, + ?TickWidth: int ) = Minor() |> Minor.style ( @@ -76,19 +76,19 @@ type Minor() = /// Sets the tick width (in px). static member style ( - [] ?DTick: #IConvertible, - [] ?GridColor: Color, - [] ?GridDash: StyleParam.DrawingStyle, - [] ?GridWidth: float, - [] ?NTicks: int, - [] ?ShowGrid: bool, - [] ?Tick0: #IConvertible, - [] ?TickColor: Color, - [] ?TickLen: int, - [] ?TickMode: StyleParam.TickMode, - [] ?Ticks: StyleParam.TickOptions, - [] ?TickVals: seq<#IConvertible>, - [] ?TickWidth: int + ?DTick: #IConvertible, + ?GridColor: Color, + ?GridDash: StyleParam.DrawingStyle, + ?GridWidth: float, + ?NTicks: int, + ?ShowGrid: bool, + ?Tick0: #IConvertible, + ?TickColor: Color, + ?TickLen: int, + ?TickMode: StyleParam.TickMode, + ?Ticks: StyleParam.TickOptions, + ?TickVals: seq<#IConvertible>, + ?TickWidth: int ) = (fun (minor: Minor) -> diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ModeBar.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ModeBar.fs index 9a92096a7..6287be07b 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/ModeBar.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/ModeBar.fs @@ -10,13 +10,13 @@ type ModeBar() = static member init ( - [] ?ActiveColor: Color, - [] ?Add: seq, - [] ?BGColor: Color, - [] ?Color: Color, - [] ?Orientation: StyleParam.Orientation, - [] ?Remove: string, - [] ?UIRevision: string + ?ActiveColor: Color, + ?Add: seq, + ?BGColor: Color, + ?Color: Color, + ?Orientation: StyleParam.Orientation, + ?Remove: string, + ?UIRevision: string ) = ModeBar() |> ModeBar.style ( @@ -31,13 +31,13 @@ type ModeBar() = static member style ( - [] ?ActiveColor: Color, - [] ?Add: seq, - [] ?BGColor: Color, - [] ?Color: Color, - [] ?Orientation: StyleParam.Orientation, - [] ?Remove: string, - [] ?UIRevision: string + ?ActiveColor: Color, + ?Add: seq, + ?BGColor: Color, + ?Color: Color, + ?Orientation: StyleParam.Orientation, + ?Remove: string, + ?UIRevision: string ) = (fun (modeBar: ModeBar) -> diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewSelection.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewSelection.fs index c3f1c19f7..d342b05ed 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewSelection.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewSelection.fs @@ -17,10 +17,10 @@ type NewSelection() = /// Describes how a new selection is created. If `immediate`, a new selection is created after first mouse up. If `gradual`, a new selection is not created after first mouse. By adding to and subtracting from the initial selection, this option allows declaring extra outlines of the selection. static member init ( - [] ?LineColor: Color, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?LineWidth: float, - [] ?Mode: StyleParam.NewSelectionMode + ?LineColor: Color, + ?LineDash: StyleParam.DrawingStyle, + ?LineWidth: float, + ?Mode: StyleParam.NewSelectionMode ) = NewSelection() |> NewSelection.style (?LineColor = LineColor, ?LineDash = LineDash, ?LineWidth = LineWidth, ?Mode = Mode) @@ -34,10 +34,10 @@ type NewSelection() = /// Describes how a new selection is created. If `immediate`, a new selection is created after first mouse up. If `gradual`, a new selection is not created after first mouse. By adding to and subtracting from the initial selection, this option allows declaring extra outlines of the selection. static member style ( - [] ?LineColor: Color, - [] ?LineDash: StyleParam.DrawingStyle, - [] ?LineWidth: float, - [] ?Mode: StyleParam.NewSelectionMode + ?LineColor: Color, + ?LineDash: StyleParam.DrawingStyle, + ?LineWidth: float, + ?Mode: StyleParam.NewSelectionMode ) = (fun (newSelection: NewSelection) -> diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewShape.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewShape.fs index a3e955b6f..eff8bb910 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewShape.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/NewShape.fs @@ -59,20 +59,20 @@ type NewShape() = /// Determines whether or not new shape is visible. If "legendonly", the shape is not drawn, but can appear as a legend item (provided that the legend itself is visible). static member init ( - [] ?DrawDirection: StyleParam.DrawDirection, - [] ?FillColor: Color, - [] ?FillRule: StyleParam.FillRule, - [] ?Layer: StyleParam.Layer, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?LegendWidth: float, - [] ?Line: Line, - [] ?Name: string, - [] ?Opacity: float, - [] ?Visible: StyleParam.Visible + ?DrawDirection: StyleParam.DrawDirection, + ?FillColor: Color, + ?FillRule: StyleParam.FillRule, + ?Layer: StyleParam.Layer, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?LegendWidth: float, + ?Line: Line, + ?Name: string, + ?Opacity: float, + ?Visible: StyleParam.Visible ) = NewShape() |> NewShape.style ( @@ -111,20 +111,20 @@ type NewShape() = /// Determines whether or not new shape is visible. If "legendonly", the shape is not drawn, but can appear as a legend item (provided that the legend itself is visible). static member style ( - [] ?DrawDirection: StyleParam.DrawDirection, - [] ?FillColor: Color, - [] ?FillRule: StyleParam.FillRule, - [] ?Layer: StyleParam.Layer, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?LegendWidth: float, - [] ?Line: Line, - [] ?Name: string, - [] ?Opacity: float, - [] ?Visible: StyleParam.Visible + ?DrawDirection: StyleParam.DrawDirection, + ?FillColor: Color, + ?FillRule: StyleParam.FillRule, + ?Layer: StyleParam.Layer, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?LegendWidth: float, + ?Line: Line, + ?Name: string, + ?Opacity: float, + ?Visible: StyleParam.Visible ) = (fun (newShape: NewShape) -> diff --git a/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSelector.fs b/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSelector.fs index 1248609b8..dcce7b0b9 100644 --- a/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSelector.fs +++ b/src/Plotly.NET/Layout/ObjectAbstractions/Common/RangeSelector.fs @@ -12,17 +12,17 @@ type RangeSelector() = static member init ( - [] ?Visible: bool, - [] ?Buttons: seq /// Sets the color of the selected/unselected text - static member init([] ?Color: Color) = + static member init(?Color: Color) = FontSelectionStyle() |> FontSelectionStyle.style (?Color = Color) /// /// Returns a function that applies the given styles to a FontSelectionStyle object /// /// Sets the color of the selected/unselected text - static member style([] ?Color: Color) = + static member style(?Color: Color) = fun (fontSelectionStyle: FontSelectionStyle) -> fontSelectionStyle @@ -110,9 +110,9 @@ type TraceSelection() = /// Sets the styles of the selected/unselected texts static member init ( - [] ?MarkerSelectionStyle: MarkerSelectionStyle, - [] ?LineSelectionStyle: LineSelectionStyle, - [] ?FontSelectionStyle: FontSelectionStyle + ?MarkerSelectionStyle: MarkerSelectionStyle, + ?LineSelectionStyle: LineSelectionStyle, + ?FontSelectionStyle: FontSelectionStyle ) = TraceSelection() |> TraceSelection.style ( @@ -129,9 +129,9 @@ type TraceSelection() = /// Sets the styles of the selected/unselected texts static member style ( - [] ?MarkerSelectionStyle: MarkerSelectionStyle, - [] ?LineSelectionStyle: LineSelectionStyle, - [] ?FontSelectionStyle: FontSelectionStyle + ?MarkerSelectionStyle: MarkerSelectionStyle, + ?LineSelectionStyle: LineSelectionStyle, + ?FontSelectionStyle: FontSelectionStyle ) = fun (traceSelection: TraceSelection) -> diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Treemap.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Treemap.fs index 63762984c..55dc6dcec 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Treemap.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Treemap.fs @@ -10,11 +10,11 @@ open System.Runtime.InteropServices type TreemapRoot() = inherit DynamicObj() - static member init([] ?Color: Color) = + static member init(?Color: Color) = TreemapRoot() |> TreemapRoot.style (?Color = Color) - static member style([] ?Color: Color) = + static member style(?Color: Color) = fun (root: TreemapRoot) -> root |> DynObj.withProperty "color" Color @@ -22,11 +22,11 @@ type TreemapRoot() = type TreemapLeaf() = inherit DynamicObj() - static member init([] ?Opacity: float) = + static member init(?Opacity: float) = TreemapLeaf() |> TreemapLeaf.style (?Opacity = Opacity) - static member style([] ?Opacity: float) = + static member style(?Opacity: float) = fun (leaf: TreemapLeaf) -> leaf @@ -38,10 +38,10 @@ type TreemapTiling() = static member init ( - [] ?Packing: StyleParam.TreemapTilingPacking, - [] ?SquarifyRatio: float, - [] ?Flip: StyleParam.TilingFlip, - [] ?Pad: float + ?Packing: StyleParam.TreemapTilingPacking, + ?SquarifyRatio: float, + ?Flip: StyleParam.TilingFlip, + ?Pad: float ) = TreemapTiling() @@ -49,10 +49,10 @@ type TreemapTiling() = static member style ( - [] ?Packing: StyleParam.TreemapTilingPacking, - [] ?SquarifyRatio: float, - [] ?Flip: StyleParam.TilingFlip, - [] ?Pad: float + ?Packing: StyleParam.TreemapTilingPacking, + ?SquarifyRatio: float, + ?Flip: StyleParam.TilingFlip, + ?Pad: float ) = fun (tiling: TreemapTiling) -> diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/WaterfallConnector.fs b/src/Plotly.NET/Traces/ObjectAbstractions/WaterfallConnector.fs index 1ac0057c5..a8e878a02 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/WaterfallConnector.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/WaterfallConnector.fs @@ -20,9 +20,9 @@ type WaterfallConnector() = static member init ( - [] ?Line: Line, - [] ?Visible: bool, - [] ?ConnectorMode: StyleParam.ConnectorMode + ?Line: Line, + ?Visible: bool, + ?ConnectorMode: StyleParam.ConnectorMode ) = WaterfallConnector() @@ -30,9 +30,9 @@ type WaterfallConnector() = static member style ( - [] ?Line: Line, - [] ?Visible: bool, - [] ?ConnectorMode: StyleParam.ConnectorMode + ?Line: Line, + ?Visible: bool, + ?ConnectorMode: StyleParam.ConnectorMode ) = fun (connector: WaterfallConnector) -> diff --git a/src/Plotly.NET/Traces/Trace.fs b/src/Plotly.NET/Traces/Trace.fs index d9eb9e738..866212099 100644 --- a/src/Plotly.NET/Traces/Trace.fs +++ b/src/Plotly.NET/Traces/Trace.fs @@ -320,12 +320,12 @@ type TraceStyle() = /// Sets the title for the chart's trace legend group static member TraceInfo ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title ) = fun (trace: #Trace) -> trace @@ -375,40 +375,40 @@ type TraceStyle() = /// Sets the width of the outlier sample points. static member Marker ( - [] ?Angle: float, - [] ?AngleRef: StyleParam.AngleRef, - [] ?AutoColorScale: bool, - [] ?CAuto: bool, - [] ?CMax: float, - [] ?CMid: float, - [] ?CMin: float, - [] ?Color: Color, - [] ?Colors: seq, - [] ?ColorAxis: StyleParam.SubPlotId, - [] ?ColorBar: ColorBar, - [] ?Colorscale: StyleParam.Colorscale, - [] ?CornerRadius: int, - [] ?Gradient: Gradient, - [] ?Outline: Line, - [] ?MaxDisplayed: int, - [] ?Opacity: float, - [] ?MultiOpacity: seq, - [] ?Pattern: Pattern, - [] ?ReverseScale: bool, - [] ?ShowScale: bool, - [] ?Size: int, - [] ?MultiSize: seq, - [] ?SizeMin: int, - [] ?SizeMode: StyleParam.MarkerSizeMode, - [] ?SizeRef: int, - [] ?StandOff: float, - [] ?MultiStandOff: seq, - [] ?Symbol: StyleParam.MarkerSymbol, - [] ?MultiSymbol: seq, - [] ?Symbol3D: StyleParam.MarkerSymbol3D, - [] ?MultiSymbol3D: seq, - [] ?OutlierColor: Color, - [] ?OutlierWidth: int + ?Angle: float, + ?AngleRef: StyleParam.AngleRef, + ?AutoColorScale: bool, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?Color: Color, + ?Colors: seq, + ?ColorAxis: StyleParam.SubPlotId, + ?ColorBar: ColorBar, + ?Colorscale: StyleParam.Colorscale, + ?CornerRadius: int, + ?Gradient: Gradient, + ?Outline: Line, + ?MaxDisplayed: int, + ?Opacity: float, + ?MultiOpacity: seq, + ?Pattern: Pattern, + ?ReverseScale: bool, + ?ShowScale: bool, + ?Size: int, + ?MultiSize: seq, + ?SizeMin: int, + ?SizeMode: StyleParam.MarkerSizeMode, + ?SizeRef: int, + ?StandOff: float, + ?MultiStandOff: seq, + ?Symbol: StyleParam.MarkerSymbol, + ?MultiSymbol: seq, + ?Symbol3D: StyleParam.MarkerSymbol3D, + ?MultiSymbol3D: seq, + ?OutlierColor: Color, + ?OutlierWidth: int ) = (fun (trace: ('T :> Trace)) -> let marker = @@ -478,26 +478,26 @@ type TraceStyle() = /// Sets the width of the outline of outliers static member Line ( - [] ?BackOff: StyleParam.BackOff, - [] ?AutoColorScale: bool, - [] ?CAuto: bool, - [] ?CMax: float, - [] ?CMid: float, - [] ?CMin: float, - [] ?Color: Color, - [] ?ColorAxis: StyleParam.SubPlotId, - [] ?Colorscale: StyleParam.Colorscale, - [] ?ReverseScale: bool, - [] ?ShowScale: bool, - [] ?ColorBar: ColorBar, - [] ?Dash: StyleParam.DrawingStyle, - [] ?Shape: StyleParam.Shape, - [] ?Simplify: bool, - [] ?Smoothing: float, - [] ?Width: float, - [] ?MultiWidth: seq, - [] ?OutlierColor: Color, - [] ?OutlierWidth: float + ?BackOff: StyleParam.BackOff, + ?AutoColorScale: bool, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?Color: Color, + ?ColorAxis: StyleParam.SubPlotId, + ?Colorscale: StyleParam.Colorscale, + ?ReverseScale: bool, + ?ShowScale: bool, + ?ColorBar: ColorBar, + ?Dash: StyleParam.DrawingStyle, + ?Shape: StyleParam.Shape, + ?Simplify: bool, + ?Smoothing: float, + ?Width: float, + ?MultiWidth: seq, + ?OutlierColor: Color, + ?OutlierWidth: float ) = (fun (trace: ('T :> Trace)) -> let line = @@ -546,19 +546,19 @@ type TraceStyle() = /// Sets the width (in px) of the cross-bar at both ends of the error bars. static member XError ( - [] ?Visible: bool, - [] ?Type: StyleParam.ErrorType, - [] ?Symmetric: bool, - [] ?Array: seq<#IConvertible>, - [] ?Arrayminus: seq<#IConvertible>, - [] ?Value: float, - [] ?Valueminus: float, - [] ?Traceref: int, - [] ?Tracerefminus: int, - [] ?Copy_ystyle: bool, - [] ?Color: Color, - [] ?Thickness: float, - [] ?Width: float + ?Visible: bool, + ?Type: StyleParam.ErrorType, + ?Symmetric: bool, + ?Array: seq<#IConvertible>, + ?Arrayminus: seq<#IConvertible>, + ?Value: float, + ?Valueminus: float, + ?Traceref: int, + ?Tracerefminus: int, + ?Copy_ystyle: bool, + ?Color: Color, + ?Thickness: float, + ?Width: float ) = (fun (trace: ('T :> Trace)) -> let xerror = @@ -600,19 +600,19 @@ type TraceStyle() = /// Sets the width (in px) of the cross-bar at both ends of the error bars. static member YError ( - [] ?Visible: bool, - [] ?Type: StyleParam.ErrorType, - [] ?Symmetric: bool, - [] ?Array: seq<#IConvertible>, - [] ?Arrayminus: seq<#IConvertible>, - [] ?Value: float, - [] ?Valueminus: float, - [] ?Traceref: int, - [] ?Tracerefminus: int, - [] ?Copy_ystyle: bool, - [] ?Color: Color, - [] ?Thickness: float, - [] ?Width: float + ?Visible: bool, + ?Type: StyleParam.ErrorType, + ?Symmetric: bool, + ?Array: seq<#IConvertible>, + ?Arrayminus: seq<#IConvertible>, + ?Value: float, + ?Valueminus: float, + ?Traceref: int, + ?Tracerefminus: int, + ?Copy_ystyle: bool, + ?Color: Color, + ?Thickness: float, + ?Width: float ) = (fun (trace: ('T :> Trace)) -> let yerror = @@ -654,19 +654,19 @@ type TraceStyle() = /// Sets the width (in px) of the cross-bar at both ends of the error bars. static member ZError ( - [] ?Visible: bool, - [] ?Type: StyleParam.ErrorType, - [] ?Symmetric: bool, - [] ?Array: seq<#IConvertible>, - [] ?Arrayminus: seq<#IConvertible>, - [] ?Value: float, - [] ?Valueminus: float, - [] ?Traceref: int, - [] ?Tracerefminus: int, - [] ?Copy_ystyle: bool, - [] ?Color: Color, - [] ?Thickness: float, - [] ?Width: float + ?Visible: bool, + ?Type: StyleParam.ErrorType, + ?Symmetric: bool, + ?Array: seq<#IConvertible>, + ?Arrayminus: seq<#IConvertible>, + ?Value: float, + ?Valueminus: float, + ?Traceref: int, + ?Tracerefminus: int, + ?Copy_ystyle: bool, + ?Color: Color, + ?Thickness: float, + ?Width: float ) = (fun (trace: ('T :> Trace)) -> let zerror = @@ -698,9 +698,9 @@ type TraceStyle() = /// Sets the style of unselected points of this trace. static member Selection ( - [] ?SelectedPoints: seq<#IConvertible>, - [] ?Selected: TraceSelection, - [] ?Unselected: TraceSelection + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection ) = fun (trace: #Trace) -> trace @@ -725,18 +725,18 @@ type TraceStyle() = /// Sets the text font of this trace. static member TextLabel ( - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?TextTemplate: string, - [] ?MultiTextTemplate: seq, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?TextFont: Font + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?TextTemplate: string, + ?MultiTextTemplate: seq, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?TextFont: Font ) = fun (trace: #Trace) -> trace @@ -754,10 +754,10 @@ type TraceStyle() = /// static member Domain ( - [] ?X: StyleParam.Range, - [] ?Y: StyleParam.Range, - [] ?Row: int, - [] ?Column: int + ?X: StyleParam.Range, + ?Y: StyleParam.Range, + ?Row: int, + ?Column: int ) = (fun (trace: ('T :> Trace)) -> let domain = diff --git a/src/Plotly.NET/Traces/Trace2D.fs b/src/Plotly.NET/Traces/Trace2D.fs index aa6e7dbfe..9819a700b 100644 --- a/src/Plotly.NET/Traces/Trace2D.fs +++ b/src/Plotly.NET/Traces/Trace2D.fs @@ -100,8 +100,8 @@ type Trace2DStyle() = /// Sets the given axis anchor id(s) on a Trace object. static member SetAxisAnchor ( - [] ?X: StyleParam.LinearAxisId, - [] ?Y: StyleParam.LinearAxisId + ?X: StyleParam.LinearAxisId, + ?Y: StyleParam.LinearAxisId ) = fun (trace: Trace2D) -> trace @@ -178,71 +178,71 @@ type Trace2DStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Scatter ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Mode: StyleParam.Mode, - [] ?Ids: seq<#IConvertible>, - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?X0: #IConvertible, - [] ?DX: #IConvertible, - [] ?Y: seq<#IConvertible>, - [] ?MultiY: seq>, - [] ?Y0: #IConvertible, - [] ?DY: #IConvertible, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?TextTemplate: string, - [] ?MultiTextTemplate: seq, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?XHoverFormat: string, - [] ?YHoverFormat: string, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?XAxis: StyleParam.LinearAxisId, - [] ?YAxis: StyleParam.LinearAxisId, - [] ?Orientation: StyleParam.Orientation, - [] ?GroupNorm: StyleParam.GroupNorm, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?StackGroup: string, - [] ?XPeriod: #IConvertible, - [] ?XPeriodAlignment: StyleParam.PeriodAlignment, - [] ?XPeriod0: #IConvertible, - [] ?YPeriod: #IConvertible, - [] ?YPeriodAlignment: StyleParam.PeriodAlignment, - [] ?YPeriod0: #IConvertible, - [] ?Marker: Marker, - [] ?Line: Line, - [] ?TextFont: Font, - [] ?XError: Error, - [] ?YError: Error, - [] ?SelectedPoints: seq<#IConvertible>, - [] ?Selected: TraceSelection, - [] ?Unselected: TraceSelection, - [] ?ClipOnAxis: bool, - [] ?ConnectGaps: bool, - [] ?Fill: StyleParam.Fill, - [] ?FillColor: Color, - [] ?FillPattern: Pattern, - [] ?HoverLabel: Hoverlabel, - [] ?HoverOn: StyleParam.HoverOn, - [] ?StackGaps: StyleParam.StackGaps, - [] ?XCalendar: StyleParam.Calendar, - [] ?YCalendar: StyleParam.Calendar, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Mode: StyleParam.Mode, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?X0: #IConvertible, + ?DX: #IConvertible, + ?Y: seq<#IConvertible>, + ?MultiY: seq>, + ?Y0: #IConvertible, + ?DY: #IConvertible, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?TextTemplate: string, + ?MultiTextTemplate: seq, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?Orientation: StyleParam.Orientation, + ?GroupNorm: StyleParam.GroupNorm, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?StackGroup: string, + ?XPeriod: #IConvertible, + ?XPeriodAlignment: StyleParam.PeriodAlignment, + ?XPeriod0: #IConvertible, + ?YPeriod: #IConvertible, + ?YPeriodAlignment: StyleParam.PeriodAlignment, + ?YPeriod0: #IConvertible, + ?Marker: Marker, + ?Line: Line, + ?TextFont: Font, + ?XError: Error, + ?YError: Error, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?ClipOnAxis: bool, + ?ConnectGaps: bool, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?FillPattern: Pattern, + ?HoverLabel: Hoverlabel, + ?HoverOn: StyleParam.HoverOn, + ?StackGaps: StyleParam.StackGaps, + ?XCalendar: StyleParam.Calendar, + ?YCalendar: StyleParam.Calendar, + ?UIRevision: string ) = fun (trace: ('T :> Trace)) -> trace @@ -376,71 +376,71 @@ type Trace2DStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Bar ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?X0: #IConvertible, - [] ?DX: #IConvertible, - [] ?Y: seq<#IConvertible>, - [] ?MultiY: seq>, - [] ?Y0: #IConvertible, - [] ?DY: #IConvertible, - [] ?Base: #IConvertible, - [] ?Width: #IConvertible, - [] ?MultiWidth: seq<#IConvertible>, - [] ?Offset: #IConvertible, - [] ?MultiOffset: seq<#IConvertible>, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?TextTemplate: string, - [] ?MultiTextTemplate: seq, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?XHoverFormat: string, - [] ?YHoverFormat: string, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?XAxis: StyleParam.LinearAxisId, - [] ?YAxis: StyleParam.LinearAxisId, - [] ?Orientation: StyleParam.Orientation, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?XPeriod: #IConvertible, - [] ?XPeriodAlignment: StyleParam.PeriodAlignment, - [] ?XPeriod0: #IConvertible, - [] ?YPeriod: #IConvertible, - [] ?YPeriodAlignment: StyleParam.PeriodAlignment, - [] ?YPeriod0: #IConvertible, - [] ?Marker: Marker, - [] ?TextAngle: float, - [] ?TextFont: Font, - [] ?XError: Error, - [] ?YError: Error, - [] ?SelectedPoints: seq<#IConvertible>, - [] ?Selected: TraceSelection, - [] ?Unselected: TraceSelection, - [] ?ClipOnAxis: bool, - [] ?Constraintext: StyleParam.ConstrainText, - [] ?HoverLabel: Hoverlabel, - [] ?InsideTextAnchor: StyleParam.InsideTextAnchor, - [] ?InsideTextFont: Font, - [] ?OutsideTextFont: Font, - [] ?XCalendar: StyleParam.Calendar, - [] ?YCalendar: StyleParam.Calendar, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?X0: #IConvertible, + ?DX: #IConvertible, + ?Y: seq<#IConvertible>, + ?MultiY: seq>, + ?Y0: #IConvertible, + ?DY: #IConvertible, + ?Base: #IConvertible, + ?Width: #IConvertible, + ?MultiWidth: seq<#IConvertible>, + ?Offset: #IConvertible, + ?MultiOffset: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?TextTemplate: string, + ?MultiTextTemplate: seq, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?Orientation: StyleParam.Orientation, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?XPeriod: #IConvertible, + ?XPeriodAlignment: StyleParam.PeriodAlignment, + ?XPeriod0: #IConvertible, + ?YPeriod: #IConvertible, + ?YPeriodAlignment: StyleParam.PeriodAlignment, + ?YPeriod0: #IConvertible, + ?Marker: Marker, + ?TextAngle: float, + ?TextFont: Font, + ?XError: Error, + ?YError: Error, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?ClipOnAxis: bool, + ?Constraintext: StyleParam.ConstrainText, + ?HoverLabel: Hoverlabel, + ?InsideTextAnchor: StyleParam.InsideTextAnchor, + ?InsideTextFont: Font, + ?OutsideTextFont: Font, + ?XCalendar: StyleParam.Calendar, + ?YCalendar: StyleParam.Calendar, + ?UIRevision: string ) = fun (bar: ('T :> Trace)) -> @@ -565,64 +565,64 @@ type Trace2DStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Funnel ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?X0: #IConvertible, - [] ?DX: #IConvertible, - [] ?Y: seq<#IConvertible>, - [] ?MultiY: seq>, - [] ?Y0: #IConvertible, - [] ?DY: #IConvertible, - [] ?Width: float, - [] ?Offset: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?TextTemplate: string, - [] ?MultiTextTemplate: seq, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?XHoverFormat: string, - [] ?YHoverFormat: string, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?XAxis: StyleParam.LinearAxisId, - [] ?YAxis: StyleParam.LinearAxisId, - [] ?Orientation: StyleParam.Orientation, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?XPeriod: #IConvertible, - [] ?XPeriodAlignment: StyleParam.PeriodAlignment, - [] ?XPeriod0: #IConvertible, - [] ?YPeriod: #IConvertible, - [] ?YPeriodAlignment: StyleParam.PeriodAlignment, - [] ?YPeriod0: #IConvertible, - [] ?Marker: Marker, - [] ?TextAngle: float, - [] ?TextFont: Font, - [] ?TextInfo: StyleParam.TextInfo, - [] ?SelectedPoints: seq<#IConvertible>, - [] ?ClipOnAxis: bool, - [] ?Connector: FunnelConnector, - [] ?Constraintext: StyleParam.ConstrainText, - [] ?HoverLabel: Hoverlabel, - [] ?InsideTextAnchor: StyleParam.InsideTextAnchor, - [] ?InsideTextFont: Font, - [] ?OutsideTextFont: Font, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?X0: #IConvertible, + ?DX: #IConvertible, + ?Y: seq<#IConvertible>, + ?MultiY: seq>, + ?Y0: #IConvertible, + ?DY: #IConvertible, + ?Width: float, + ?Offset: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?TextTemplate: string, + ?MultiTextTemplate: seq, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?Orientation: StyleParam.Orientation, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?XPeriod: #IConvertible, + ?XPeriodAlignment: StyleParam.PeriodAlignment, + ?XPeriod0: #IConvertible, + ?YPeriod: #IConvertible, + ?YPeriodAlignment: StyleParam.PeriodAlignment, + ?YPeriod0: #IConvertible, + ?Marker: Marker, + ?TextAngle: float, + ?TextFont: Font, + ?TextInfo: StyleParam.TextInfo, + ?SelectedPoints: seq<#IConvertible>, + ?ClipOnAxis: bool, + ?Connector: FunnelConnector, + ?Constraintext: StyleParam.ConstrainText, + ?HoverLabel: Hoverlabel, + ?InsideTextAnchor: StyleParam.InsideTextAnchor, + ?InsideTextFont: Font, + ?OutsideTextFont: Font, + ?UIRevision: string ) = fun (funnel: #Trace) -> @@ -749,70 +749,70 @@ type Trace2DStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Waterfall ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?X0: #IConvertible, - [] ?DX: #IConvertible, - [] ?Y: seq<#IConvertible>, - [] ?MultiY: seq>, - [] ?Y0: #IConvertible, - [] ?DY: #IConvertible, - [] ?Base: #IConvertible, - [] ?Width: float, - [] ?MultiWidth: seq, - [] ?Measure: StyleParam.WaterfallMeasure seq, - [] ?Offset: #IConvertible, - [] ?MultiOffset: seq<#IConvertible>, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?TextTemplate: string, - [] ?MultiTextTemplate: seq, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?XHoverFormat: string, - [] ?YHoverFormat: string, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?XAxis: StyleParam.LinearAxisId, - [] ?YAxis: StyleParam.LinearAxisId, - [] ?Orientation: StyleParam.Orientation, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?XPeriod: #IConvertible, - [] ?XPeriodAlignment: StyleParam.PeriodAlignment, - [] ?XPeriod0: #IConvertible, - [] ?YPeriod: #IConvertible, - [] ?YPeriodAlignment: StyleParam.PeriodAlignment, - [] ?YPeriod0: #IConvertible, - [] ?TextAngle: float, - [] ?TextFont: Font, - [] ?TextInfo: StyleParam.TextInfo, - [] ?SelectedPoints: seq<#IConvertible>, - [] ?ClipOnAxis: bool, - [] ?Connector: WaterfallConnector, - [] ?Constraintext: StyleParam.ConstrainText, - [] ?Increasing: FinanceMarker, - [] ?Decreasing: FinanceMarker, - [] ?HoverLabel: Hoverlabel, - [] ?InsideTextAnchor: StyleParam.InsideTextAnchor, - [] ?InsideTextFont: Font, - [] ?OutsideTextFont: Font, - [] ?Totals: FinanceMarker, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?X0: #IConvertible, + ?DX: #IConvertible, + ?Y: seq<#IConvertible>, + ?MultiY: seq>, + ?Y0: #IConvertible, + ?DY: #IConvertible, + ?Base: #IConvertible, + ?Width: float, + ?MultiWidth: seq, + ?Measure: StyleParam.WaterfallMeasure seq, + ?Offset: #IConvertible, + ?MultiOffset: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?TextTemplate: string, + ?MultiTextTemplate: seq, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?Orientation: StyleParam.Orientation, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?XPeriod: #IConvertible, + ?XPeriodAlignment: StyleParam.PeriodAlignment, + ?XPeriod0: #IConvertible, + ?YPeriod: #IConvertible, + ?YPeriodAlignment: StyleParam.PeriodAlignment, + ?YPeriod0: #IConvertible, + ?TextAngle: float, + ?TextFont: Font, + ?TextInfo: StyleParam.TextInfo, + ?SelectedPoints: seq<#IConvertible>, + ?ClipOnAxis: bool, + ?Connector: WaterfallConnector, + ?Constraintext: StyleParam.ConstrainText, + ?Increasing: FinanceMarker, + ?Decreasing: FinanceMarker, + ?HoverLabel: Hoverlabel, + ?InsideTextAnchor: StyleParam.InsideTextAnchor, + ?InsideTextFont: Font, + ?OutsideTextFont: Font, + ?Totals: FinanceMarker, + ?UIRevision: string ) = fun (waterfall: ('T :> Trace)) -> @@ -938,66 +938,66 @@ type Trace2DStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Histogram ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?Y: seq<#IConvertible>, - [] ?MultiY: seq>, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?TextTemplate: string, - [] ?MultiTextTemplate: seq, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?XHoverFormat: string, - [] ?YHoverFormat: string, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?XAxis: StyleParam.LinearAxisId, - [] ?YAxis: StyleParam.LinearAxisId, - [] ?Orientation: StyleParam.Orientation, - [] ?HistFunc: StyleParam.HistFunc, - [] ?HistNorm: StyleParam.HistNorm, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?NBinsX: int, - [] ?NBinsY: int, - [] ?AutoBinX: bool, - [] ?AutoBinY: bool, - [] ?BinGroup: string, - [] ?XBins: Bins, - [] ?YBins: Bins, - [] ?Marker: Marker, - [] ?TextAngle: float, - [] ?TextFont: Font, - [] ?Line: Line, - [] ?XError: Error, - [] ?YError: Error, - [] ?SelectedPoints: seq<#IConvertible>, - [] ?Selected: TraceSelection, - [] ?Unselected: TraceSelection, - [] ?ClipOnAxis: bool, - [] ?Constraintext: StyleParam.ConstrainText, - [] ?Cumulative: Cumulative, - [] ?HoverLabel: Hoverlabel, - [] ?InsideTextAnchor: StyleParam.InsideTextAnchor, - [] ?InsideTextFont: Font, - [] ?OutsideTextFont: Font, - [] ?XCalendar: StyleParam.Calendar, - [] ?YCalendar: StyleParam.Calendar, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?Y: seq<#IConvertible>, + ?MultiY: seq>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?TextTemplate: string, + ?MultiTextTemplate: seq, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?Orientation: StyleParam.Orientation, + ?HistFunc: StyleParam.HistFunc, + ?HistNorm: StyleParam.HistNorm, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?NBinsX: int, + ?NBinsY: int, + ?AutoBinX: bool, + ?AutoBinY: bool, + ?BinGroup: string, + ?XBins: Bins, + ?YBins: Bins, + ?Marker: Marker, + ?TextAngle: float, + ?TextFont: Font, + ?Line: Line, + ?XError: Error, + ?YError: Error, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?ClipOnAxis: bool, + ?Constraintext: StyleParam.ConstrainText, + ?Cumulative: Cumulative, + ?HoverLabel: Hoverlabel, + ?InsideTextAnchor: StyleParam.InsideTextAnchor, + ?InsideTextFont: Font, + ?OutsideTextFont: Font, + ?XCalendar: StyleParam.Calendar, + ?YCalendar: StyleParam.Calendar, + ?UIRevision: string ) = fun (histogram: ('T :> Trace)) -> @@ -1134,77 +1134,77 @@ type Trace2DStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member BoxPlot ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?LegendWidth: float, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?X0: #IConvertible, - [] ?DX: #IConvertible, - [] ?Y: seq<#IConvertible>, - [] ?MultiY: seq>, - [] ?Y0: #IConvertible, - [] ?DY: #IConvertible, - [] ?Width: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?XHoverFormat: string, - [] ?YHoverFormat: string, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?XAxis: StyleParam.LinearAxisId, - [] ?YAxis: StyleParam.LinearAxisId, - [] ?Orientation: StyleParam.Orientation, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?XPeriod: #IConvertible, - [] ?XPeriodAlignment: StyleParam.PeriodAlignment, - [] ?XPeriod0: #IConvertible, - [] ?YPeriod: #IConvertible, - [] ?YPeriodAlignment: StyleParam.PeriodAlignment, - [] ?YPeriod0: #IConvertible, - [] ?Marker: Marker, - [] ?Line: Line, - [] ?BoxMean: StyleParam.BoxMean, - [] ?BoxPoints: StyleParam.BoxPoints, - [] ?Notched: bool, - [] ?NotchWidth: float, - [] ?ShowWhiskers: bool, - [] ?WhiskerWidth: float, - [] ?Q1: seq, - [] ?Median: seq, - [] ?Q3: seq, - [] ?LowerFence: seq, - [] ?UpperFence: seq, - [] ?NotchSpan: seq, - [] ?Mean: seq, - [] ?SD: seq, - [] ?SDMultiple: float, - [] ?QuartileMethod: StyleParam.QuartileMethod, - [] ?SelectedPoints: seq<#IConvertible>, - [] ?Selected: TraceSelection, - [] ?Unselected: TraceSelection, - [] ?FillColor: Color, - [] ?HoverLabel: Hoverlabel, - [] ?HoverOn: StyleParam.HoverOn, - [] ?PointPos: float, - [] ?Jitter: float, - [] ?SizeMode: StyleParam.BoxSizeMode, - [] ?XCalendar: StyleParam.Calendar, - [] ?YCalendar: StyleParam.Calendar, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?LegendWidth: float, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?X0: #IConvertible, + ?DX: #IConvertible, + ?Y: seq<#IConvertible>, + ?MultiY: seq>, + ?Y0: #IConvertible, + ?DY: #IConvertible, + ?Width: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?Orientation: StyleParam.Orientation, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?XPeriod: #IConvertible, + ?XPeriodAlignment: StyleParam.PeriodAlignment, + ?XPeriod0: #IConvertible, + ?YPeriod: #IConvertible, + ?YPeriodAlignment: StyleParam.PeriodAlignment, + ?YPeriod0: #IConvertible, + ?Marker: Marker, + ?Line: Line, + ?BoxMean: StyleParam.BoxMean, + ?BoxPoints: StyleParam.BoxPoints, + ?Notched: bool, + ?NotchWidth: float, + ?ShowWhiskers: bool, + ?WhiskerWidth: float, + ?Q1: seq, + ?Median: seq, + ?Q3: seq, + ?LowerFence: seq, + ?UpperFence: seq, + ?NotchSpan: seq, + ?Mean: seq, + ?SD: seq, + ?SDMultiple: float, + ?QuartileMethod: StyleParam.QuartileMethod, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?FillColor: Color, + ?HoverLabel: Hoverlabel, + ?HoverOn: StyleParam.HoverOn, + ?PointPos: float, + ?Jitter: float, + ?SizeMode: StyleParam.BoxSizeMode, + ?XCalendar: StyleParam.Calendar, + ?YCalendar: StyleParam.Calendar, + ?UIRevision: string ) = fun (boxPlot: ('T :> Trace)) -> @@ -1336,60 +1336,60 @@ type Trace2DStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Violin ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?X0: #IConvertible, - [] ?DX: #IConvertible, - [] ?Y: seq<#IConvertible>, - [] ?MultiY: seq>, - [] ?Y0: #IConvertible, - [] ?DY: #IConvertible, - [] ?Width: float, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?XHoverFormat: string, - [] ?YHoverFormat: string, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?XAxis: StyleParam.LinearAxisId, - [] ?YAxis: StyleParam.LinearAxisId, - [] ?Orientation: StyleParam.Orientation, - [] ?AlignmentGroup: string, - [] ?OffsetGroup: string, - [] ?Marker: Marker, - [] ?Line: Line, - [] ?Box: Box, - [] ?SelectedPoints: seq<#IConvertible>, - [] ?Selected: TraceSelection, - [] ?Unselected: TraceSelection, - [] ?BandWidth: float, - [] ?FillColor: Color, - [] ?HoverLabel: Hoverlabel, - [] ?HoverOn: StyleParam.HoverOn, - [] ?PointPos: float, - [] ?Jitter: float, - [] ?MeanLine: MeanLine, - [] ?Points: StyleParam.JitterPoints, - [] ?ScaleGroup: string, - [] ?ScaleMode: StyleParam.ScaleMode, - [] ?Side: StyleParam.ViolinSide, - [] ?Span: StyleParam.Range, - [] ?SpanMode: StyleParam.SpanMode, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?X0: #IConvertible, + ?DX: #IConvertible, + ?Y: seq<#IConvertible>, + ?MultiY: seq>, + ?Y0: #IConvertible, + ?DY: #IConvertible, + ?Width: float, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?Orientation: StyleParam.Orientation, + ?AlignmentGroup: string, + ?OffsetGroup: string, + ?Marker: Marker, + ?Line: Line, + ?Box: Box, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?BandWidth: float, + ?FillColor: Color, + ?HoverLabel: Hoverlabel, + ?HoverOn: StyleParam.HoverOn, + ?PointPos: float, + ?Jitter: float, + ?MeanLine: MeanLine, + ?Points: StyleParam.JitterPoints, + ?ScaleGroup: string, + ?ScaleMode: StyleParam.ScaleMode, + ?Side: StyleParam.ViolinSide, + ?Span: StyleParam.Range, + ?SpanMode: StyleParam.SpanMode, + ?UIRevision: string ) = fun (violin: ('T :> Trace)) -> @@ -1504,61 +1504,61 @@ type Trace2DStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Histogram2D ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?XGap: int, - [] ?Y: seq<#IConvertible>, - [] ?MultiY: seq>, - [] ?YGap: int, - [] ?Z: seq<#seq<#IConvertible>>, - [] ?TextTemplate: string, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?XHoverFormat: string, - [] ?YHoverFormat: string, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?XAxis: StyleParam.LinearAxisId, - [] ?YAxis: StyleParam.LinearAxisId, - [] ?ColorAxis: StyleParam.SubPlotId, - [] ?HistFunc: StyleParam.HistFunc, - [] ?HistNorm: StyleParam.HistNorm, - [] ?NBinsX: int, - [] ?NBinsY: int, - [] ?AutoBinX: bool, - [] ?AutoBinY: bool, - [] ?BinGroup: string, - [] ?XBinGroup: string, - [] ?XBins: Bins, - [] ?YBinGroup: string, - [] ?YBins: Bins, - [] ?Marker: Marker, - [] ?TextFont: Font, - [] ?ColorBar: ColorBar, - [] ?AutoColorScale: bool, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?ZAuto: bool, - [] ?ZHoverFormat: string, - [] ?ZMin: float, - [] ?ZMid: float, - [] ?ZMax: float, - [] ?ZSmooth: StyleParam.SmoothAlg, - [] ?HoverLabel: Hoverlabel, - [] ?XCalendar: StyleParam.Calendar, - [] ?YCalendar: StyleParam.Calendar, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?XGap: int, + ?Y: seq<#IConvertible>, + ?MultiY: seq>, + ?YGap: int, + ?Z: seq<#seq<#IConvertible>>, + ?TextTemplate: string, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?ColorAxis: StyleParam.SubPlotId, + ?HistFunc: StyleParam.HistFunc, + ?HistNorm: StyleParam.HistNorm, + ?NBinsX: int, + ?NBinsY: int, + ?AutoBinX: bool, + ?AutoBinY: bool, + ?BinGroup: string, + ?XBinGroup: string, + ?XBins: Bins, + ?YBinGroup: string, + ?YBins: Bins, + ?Marker: Marker, + ?TextFont: Font, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZAuto: bool, + ?ZHoverFormat: string, + ?ZMin: float, + ?ZMid: float, + ?ZMax: float, + ?ZSmooth: StyleParam.SmoothAlg, + ?HoverLabel: Hoverlabel, + ?XCalendar: StyleParam.Calendar, + ?YCalendar: StyleParam.Calendar, + ?UIRevision: string ) = fun (histogram2D: ('T :> Trace)) -> @@ -1677,62 +1677,62 @@ type Trace2DStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Histogram2DContour ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?Y: seq<#IConvertible>, - [] ?MultiY: seq>, - [] ?Z: seq<#seq<#IConvertible>>, - [] ?TextTemplate: string, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?XHoverFormat: string, - [] ?YHoverFormat: string, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?XAxis: StyleParam.LinearAxisId, - [] ?YAxis: StyleParam.LinearAxisId, - [] ?ColorAxis: StyleParam.SubPlotId, - [] ?HistFunc: StyleParam.HistFunc, - [] ?HistNorm: StyleParam.HistNorm, - [] ?NBinsX: int, - [] ?NBinsY: int, - [] ?AutoBinX: bool, - [] ?AutoBinY: bool, - [] ?BinGroup: string, - [] ?XBinGroup: string, - [] ?XBins: Bins, - [] ?YBinGroup: string, - [] ?YBins: Bins, - [] ?Marker: Marker, - [] ?Line: Line, - [] ?TextFont: Font, - [] ?ColorBar: ColorBar, - [] ?AutoColorScale: bool, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?ZAuto: bool, - [] ?ZHoverFormat: string, - [] ?Zmin: float, - [] ?Zmid: float, - [] ?Zmax: float, - [] ?AutoContour: bool, - [] ?Contours: Contours, - [] ?HoverLabel: Hoverlabel, - [] ?NContours: int, - [] ?XCalendar: StyleParam.Calendar, - [] ?YCalendar: StyleParam.Calendar, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?Y: seq<#IConvertible>, + ?MultiY: seq>, + ?Z: seq<#seq<#IConvertible>>, + ?TextTemplate: string, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?ColorAxis: StyleParam.SubPlotId, + ?HistFunc: StyleParam.HistFunc, + ?HistNorm: StyleParam.HistNorm, + ?NBinsX: int, + ?NBinsY: int, + ?AutoBinX: bool, + ?AutoBinY: bool, + ?BinGroup: string, + ?XBinGroup: string, + ?XBins: Bins, + ?YBinGroup: string, + ?YBins: Bins, + ?Marker: Marker, + ?Line: Line, + ?TextFont: Font, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZAuto: bool, + ?ZHoverFormat: string, + ?Zmin: float, + ?Zmid: float, + ?Zmax: float, + ?AutoContour: bool, + ?Contours: Contours, + ?HoverLabel: Hoverlabel, + ?NContours: int, + ?XCalendar: StyleParam.Calendar, + ?YCalendar: StyleParam.Calendar, + ?UIRevision: string ) = fun (histogram2DContour: ('T :> Trace)) -> @@ -1859,68 +1859,68 @@ type Trace2DStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Heatmap ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?X0: #IConvertible, - [] ?DX: #IConvertible, - [] ?XType: StyleParam.CoordinateType, - [] ?XGap: int, - [] ?Y: seq<#IConvertible>, - [] ?MultiY: seq>, - [] ?Y0: #IConvertible, - [] ?DY: #IConvertible, - [] ?YType: StyleParam.CoordinateType, - [] ?YGap: int, - [] ?Z: seq<#seq<#IConvertible>>, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextTemplate: string, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?XHoverFormat: string, - [] ?YHoverFormat: string, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?XAxis: StyleParam.LinearAxisId, - [] ?YAxis: StyleParam.LinearAxisId, - [] ?ColorAxis: StyleParam.SubPlotId, - [] ?XPeriod: #IConvertible, - [] ?XPeriodAlignment: StyleParam.PeriodAlignment, - [] ?XPeriod0: #IConvertible, - [] ?YPeriod: #IConvertible, - [] ?YPeriodAlignment: StyleParam.PeriodAlignment, - [] ?YPeriod0: #IConvertible, - [] ?TextFont: Font, - [] ?ColorBar: ColorBar, - [] ?AutoColorScale: bool, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?ZAuto: bool, - [] ?ZHoverFormat: string, - [] ?ZMax: #IConvertible, - [] ?ZMid: #IConvertible, - [] ?ZMin: #IConvertible, - [] ?ZSmooth: StyleParam.SmoothAlg, - [] ?ConnectGaps: bool, - [] ?HoverLabel: Hoverlabel, - [] ?HoverOnGaps: bool, - [] ?Transpose: bool, - [] ?XCalendar: StyleParam.Calendar, - [] ?YCalendar: StyleParam.Calendar, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?X0: #IConvertible, + ?DX: #IConvertible, + ?XType: StyleParam.CoordinateType, + ?XGap: int, + ?Y: seq<#IConvertible>, + ?MultiY: seq>, + ?Y0: #IConvertible, + ?DY: #IConvertible, + ?YType: StyleParam.CoordinateType, + ?YGap: int, + ?Z: seq<#seq<#IConvertible>>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextTemplate: string, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?ColorAxis: StyleParam.SubPlotId, + ?XPeriod: #IConvertible, + ?XPeriodAlignment: StyleParam.PeriodAlignment, + ?XPeriod0: #IConvertible, + ?YPeriod: #IConvertible, + ?YPeriodAlignment: StyleParam.PeriodAlignment, + ?YPeriod0: #IConvertible, + ?TextFont: Font, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZAuto: bool, + ?ZHoverFormat: string, + ?ZMax: #IConvertible, + ?ZMid: #IConvertible, + ?ZMin: #IConvertible, + ?ZSmooth: StyleParam.SmoothAlg, + ?ConnectGaps: bool, + ?HoverLabel: Hoverlabel, + ?HoverOnGaps: bool, + ?Transpose: bool, + ?XCalendar: StyleParam.Calendar, + ?YCalendar: StyleParam.Calendar, + ?UIRevision: string ) = fun (heatmap: ('T :> Trace)) -> @@ -2020,38 +2020,38 @@ type Trace2DStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Image ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?X0: #IConvertible, - [] ?DX: #IConvertible, - [] ?Y0: #IConvertible, - [] ?DY: #IConvertible, - [] ?Z: #seq<#seq<#seq>>, - [] ?Source: string, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?XAxis: StyleParam.LinearAxisId, - [] ?YAxis: StyleParam.LinearAxisId, - [] ?ColorModel: StyleParam.ColorModel, - [] ?ZMax: StyleParam.ColorComponentBound, - [] ?ZMin: StyleParam.ColorComponentBound, - [] ?ZSmooth: StyleParam.SmoothAlg, - [] ?HoverLabel: Hoverlabel, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X0: #IConvertible, + ?DX: #IConvertible, + ?Y0: #IConvertible, + ?DY: #IConvertible, + ?Z: #seq<#seq<#seq>>, + ?Source: string, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?ColorModel: StyleParam.ColorModel, + ?ZMax: StyleParam.ColorComponentBound, + ?ZMin: StyleParam.ColorComponentBound, + ?ZSmooth: StyleParam.SmoothAlg, + ?HoverLabel: Hoverlabel, + ?UIRevision: string ) = fun (image: ('T :> Trace)) -> @@ -2155,70 +2155,70 @@ type Trace2DStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Contour ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?X0: #IConvertible, - [] ?DX: #IConvertible, - [] ?XType: StyleParam.CoordinateType, - [] ?Y: seq<#IConvertible>, - [] ?MultiY: seq>, - [] ?Y0: #IConvertible, - [] ?DY: #IConvertible, - [] ?YType: StyleParam.CoordinateType, - [] ?Z: seq<#seq<#IConvertible>>, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextTemplate: string, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?XHoverFormat: string, - [] ?YHoverFormat: string, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?XAxis: StyleParam.LinearAxisId, - [] ?YAxis: StyleParam.LinearAxisId, - [] ?ColorAxis: StyleParam.SubPlotId, - [] ?XPeriod: #IConvertible, - [] ?XPeriodAlignment: StyleParam.PeriodAlignment, - [] ?XPeriod0: #IConvertible, - [] ?YPeriod: #IConvertible, - [] ?YPeriodAlignment: StyleParam.PeriodAlignment, - [] ?YPeriod0: #IConvertible, - [] ?Line: Line, - [] ?TextFont: Font, - [] ?ColorBar: ColorBar, - [] ?AutoColorScale: bool, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?ZAuto: bool, - [] ?ZHoverFormat: string, - [] ?ZMax: #IConvertible, - [] ?ZMid: #IConvertible, - [] ?ZMin: #IConvertible, - [] ?AutoContour: bool, - [] ?ConnectGaps: bool, - [] ?Contours: Contours, - [] ?FillColor: Color, - [] ?HoverLabel: Hoverlabel, - [] ?HoverOnGaps: bool, - [] ?NContours: int, - [] ?Transpose: bool, - [] ?XCalendar: StyleParam.Calendar, - [] ?YCalendar: StyleParam.Calendar, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?X0: #IConvertible, + ?DX: #IConvertible, + ?XType: StyleParam.CoordinateType, + ?Y: seq<#IConvertible>, + ?MultiY: seq>, + ?Y0: #IConvertible, + ?DY: #IConvertible, + ?YType: StyleParam.CoordinateType, + ?Z: seq<#seq<#IConvertible>>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextTemplate: string, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?ColorAxis: StyleParam.SubPlotId, + ?XPeriod: #IConvertible, + ?XPeriodAlignment: StyleParam.PeriodAlignment, + ?XPeriod0: #IConvertible, + ?YPeriod: #IConvertible, + ?YPeriodAlignment: StyleParam.PeriodAlignment, + ?YPeriod0: #IConvertible, + ?Line: Line, + ?TextFont: Font, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZAuto: bool, + ?ZHoverFormat: string, + ?ZMax: #IConvertible, + ?ZMid: #IConvertible, + ?ZMin: #IConvertible, + ?AutoContour: bool, + ?ConnectGaps: bool, + ?Contours: Contours, + ?FillColor: Color, + ?HoverLabel: Hoverlabel, + ?HoverOnGaps: bool, + ?NContours: int, + ?Transpose: bool, + ?XCalendar: StyleParam.Calendar, + ?YCalendar: StyleParam.Calendar, + ?UIRevision: string ) = fun (contour: ('T :> Trace)) -> @@ -2328,46 +2328,46 @@ type Trace2DStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member OHLC ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?Close: seq<#IConvertible>, - [] ?Open: seq<#IConvertible>, - [] ?High: seq<#IConvertible>, - [] ?Low: seq<#IConvertible>, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?XHoverFormat: string, - [] ?YHoverFormat: string, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?XAxis: StyleParam.LinearAxisId, - [] ?YAxis: StyleParam.LinearAxisId, - [] ?XPeriod: #IConvertible, - [] ?XPeriodAlignment: StyleParam.PeriodAlignment, - [] ?XPeriod0: #IConvertible, - [] ?YPeriod: #IConvertible, - [] ?YPeriodAlignment: StyleParam.PeriodAlignment, - [] ?YPeriod0: #IConvertible, - [] ?Line: Line, - [] ?SelectedPoints: seq<#IConvertible>, - [] ?Increasing: FinanceMarker, - [] ?Decreasing: FinanceMarker, - [] ?HoverLabel: Hoverlabel, - [] ?TickWidth: float, - [] ?XCalendar: StyleParam.Calendar, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?Close: seq<#IConvertible>, + ?Open: seq<#IConvertible>, + ?High: seq<#IConvertible>, + ?Low: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?XPeriod: #IConvertible, + ?XPeriodAlignment: StyleParam.PeriodAlignment, + ?XPeriod0: #IConvertible, + ?YPeriod: #IConvertible, + ?YPeriodAlignment: StyleParam.PeriodAlignment, + ?YPeriod0: #IConvertible, + ?Line: Line, + ?SelectedPoints: seq<#IConvertible>, + ?Increasing: FinanceMarker, + ?Decreasing: FinanceMarker, + ?HoverLabel: Hoverlabel, + ?TickWidth: float, + ?XCalendar: StyleParam.Calendar, + ?UIRevision: string ) = fun (ohlc: ('T :> Trace)) -> @@ -2455,46 +2455,46 @@ type Trace2DStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Candlestick ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq>, - [] ?Close: seq<#IConvertible>, - [] ?Open: seq<#IConvertible>, - [] ?High: seq<#IConvertible>, - [] ?Low: seq<#IConvertible>, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?XHoverFormat: string, - [] ?YHoverFormat: string, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?XAxis: StyleParam.LinearAxisId, - [] ?YAxis: StyleParam.LinearAxisId, - [] ?XPeriod: #IConvertible, - [] ?XPeriodAlignment: StyleParam.PeriodAlignment, - [] ?XPeriod0: #IConvertible, - [] ?YPeriod: #IConvertible, - [] ?YPeriodAlignment: StyleParam.PeriodAlignment, - [] ?YPeriod0: #IConvertible, - [] ?Line: Line, - [] ?WhiskerWidth: float, - [] ?SelectedPoints: seq<#IConvertible>, - [] ?Increasing: FinanceMarker, - [] ?Decreasing: FinanceMarker, - [] ?HoverLabel: Hoverlabel, - [] ?XCalendar: StyleParam.Calendar, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq>, + ?Close: seq<#IConvertible>, + ?Open: seq<#IConvertible>, + ?High: seq<#IConvertible>, + ?Low: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?XPeriod: #IConvertible, + ?XPeriodAlignment: StyleParam.PeriodAlignment, + ?XPeriod0: #IConvertible, + ?YPeriod: #IConvertible, + ?YPeriodAlignment: StyleParam.PeriodAlignment, + ?YPeriod0: #IConvertible, + ?Line: Line, + ?WhiskerWidth: float, + ?SelectedPoints: seq<#IConvertible>, + ?Increasing: FinanceMarker, + ?Decreasing: FinanceMarker, + ?HoverLabel: Hoverlabel, + ?XCalendar: StyleParam.Calendar, + ?UIRevision: string ) = fun (trace: ('T :> Trace)) -> @@ -2574,38 +2574,38 @@ type Trace2DStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Splom ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?Dimensions: seq, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?XHoverFormat: string, - [] ?YHoverFormat: string, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?Marker: Marker, - [] ?Diagonal: SplomDiagonal, - [] ?XAxes: seq, - [] ?YAxes: seq, - [] ?ShowLowerHalf: bool, - [] ?ShowUpperHalf: bool, - [] ?SelectedPoints: seq<#IConvertible>, - [] ?Selected: TraceSelection, - [] ?Unselected: TraceSelection, - [] ?HoverLabel: Hoverlabel, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?Dimensions: seq, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?Marker: Marker, + ?Diagonal: SplomDiagonal, + ?XAxes: seq, + ?YAxes: seq, + ?ShowLowerHalf: bool, + ?ShowUpperHalf: bool, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?HoverLabel: Hoverlabel, + ?UIRevision: string ) = fun (trace: ('T :> Trace)) -> diff --git a/src/Plotly.NET/Traces/Trace3D.fs b/src/Plotly.NET/Traces/Trace3D.fs index e87b07811..5017fe217 100644 --- a/src/Plotly.NET/Traces/Trace3D.fs +++ b/src/Plotly.NET/Traces/Trace3D.fs @@ -48,7 +48,7 @@ type Trace3DStyle() = // ######################## 3d-Charts - static member SetScene([] ?SceneId: StyleParam.SubPlotId) = + static member SetScene(?SceneId: StyleParam.SubPlotId) = fun (trace: Trace3D) -> trace |> DynObj.withOptionalPropertyBy "scene" SceneId StyleParam.SubPlotId.toString @@ -103,51 +103,51 @@ type Trace3DStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Scatter3D ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Mode: StyleParam.Mode, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?X: seq<#IConvertible>, - [] ?Y: seq<#IConvertible>, - [] ?Z: seq<#IConvertible>, - [] ?SurfaceColor: Color, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?TextTemplate: string, - [] ?MultiTextTemplate: seq, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?XHoverFormat: string, - [] ?YHoverFormat: string, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?Scene: StyleParam.SubPlotId, - [] ?Marker: Marker, - [] ?Line: Line, - [] ?TextFont: Font, - [] ?XError: Error, - [] ?YError: Error, - [] ?ZError: Error, - [] ?ZHoverFormat: string, - [] ?ConnectGaps: bool, - [] ?Hoverlabel: Hoverlabel, - [] ?Projection: Projection, - [] ?Surfaceaxis: StyleParam.SurfaceAxis, - [] ?XCalendar: StyleParam.Calendar, - [] ?YCalendar: StyleParam.Calendar, - [] ?ZCalendar: StyleParam.Calendar, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Mode: StyleParam.Mode, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?Y: seq<#IConvertible>, + ?Z: seq<#IConvertible>, + ?SurfaceColor: Color, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?TextTemplate: string, + ?MultiTextTemplate: seq, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?Scene: StyleParam.SubPlotId, + ?Marker: Marker, + ?Line: Line, + ?TextFont: Font, + ?XError: Error, + ?YError: Error, + ?ZError: Error, + ?ZHoverFormat: string, + ?ConnectGaps: bool, + ?Hoverlabel: Hoverlabel, + ?Projection: Projection, + ?Surfaceaxis: StyleParam.SurfaceAxis, + ?XCalendar: StyleParam.Calendar, + ?YCalendar: StyleParam.Calendar, + ?ZCalendar: StyleParam.Calendar, + ?UIRevision: string ) = fun (scatter: #Trace) -> @@ -246,53 +246,53 @@ type Trace3DStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Surface ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?X: seq<#IConvertible>, - [] ?Y: seq<#IConvertible>, - [] ?Z: seq<#seq<#IConvertible>>, - [] ?SurfaceColor: Color, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?XHoverFormat: string, - [] ?YHoverFormat: string, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?Scene: StyleParam.SubPlotId, - [] ?ColorAxis: StyleParam.SubPlotId, - [] ?ColorBar: ColorBar, - [] ?AutoColorScale: bool, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?ZHoverFormat: string, - [] ?CAuto: bool, - [] ?CMax: float, - [] ?CMid: float, - [] ?CMin: float, - [] ?ConnectGaps: bool, - [] ?Contours: Contours, - [] ?HideSurface: bool, - [] ?Hoverlabel: Hoverlabel, - [] ?Lighting: Lighting, - [] ?LightPosition: LightPosition, - [] ?OpacityScale: seq<#seq<#IConvertible>>, - [] ?XCalendar: StyleParam.Calendar, - [] ?YCalendar: StyleParam.Calendar, - [] ?ZCalendar: StyleParam.Calendar, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?Y: seq<#IConvertible>, + ?Z: seq<#seq<#IConvertible>>, + ?SurfaceColor: Color, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?Scene: StyleParam.SubPlotId, + ?ColorAxis: StyleParam.SubPlotId, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZHoverFormat: string, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?ConnectGaps: bool, + ?Contours: Contours, + ?HideSurface: bool, + ?Hoverlabel: Hoverlabel, + ?Lighting: Lighting, + ?LightPosition: LightPosition, + ?OpacityScale: seq<#seq<#IConvertible>>, + ?XCalendar: StyleParam.Calendar, + ?YCalendar: StyleParam.Calendar, + ?ZCalendar: StyleParam.Calendar, + ?UIRevision: string ) = fun (surface: #Trace) -> @@ -401,60 +401,60 @@ type Trace3DStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Mesh3D ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?X: seq<#IConvertible>, - [] ?Y: seq<#IConvertible>, - [] ?Z: seq<#IConvertible>, - [] ?I: seq<#IConvertible>, - [] ?J: seq<#IConvertible>, - [] ?K: seq<#IConvertible>, - [] ?FaceColor: Color, - [] ?Intensity: seq<#IConvertible>, - [] ?IntensityMode: StyleParam.IntensityMode, - [] ?VertexColor: Color, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?XHoverFormat: string, - [] ?YHoverFormat: string, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?Scene: StyleParam.SubPlotId, - [] ?Color: Color, - [] ?ColorAxis: StyleParam.SubPlotId, - [] ?ColorBar: ColorBar, - [] ?AutoColorScale: bool, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?ZHoverFormat: string, - [] ?CAuto: bool, - [] ?CMax: float, - [] ?CMid: float, - [] ?CMin: float, - [] ?AlphaHull: StyleParam.TriangulationAlgorithm, - [] ?Delaunayaxis: StyleParam.Delaunayaxis, - [] ?Contour: Contour, - [] ?FlatShading: bool, - [] ?Hoverlabel: Hoverlabel, - [] ?Lighting: Lighting, - [] ?LightPosition: LightPosition, - [] ?XCalendar: StyleParam.Calendar, - [] ?YCalendar: StyleParam.Calendar, - [] ?ZCalendar: StyleParam.Calendar, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?Y: seq<#IConvertible>, + ?Z: seq<#IConvertible>, + ?I: seq<#IConvertible>, + ?J: seq<#IConvertible>, + ?K: seq<#IConvertible>, + ?FaceColor: Color, + ?Intensity: seq<#IConvertible>, + ?IntensityMode: StyleParam.IntensityMode, + ?VertexColor: Color, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?Scene: StyleParam.SubPlotId, + ?Color: Color, + ?ColorAxis: StyleParam.SubPlotId, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZHoverFormat: string, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?AlphaHull: StyleParam.TriangulationAlgorithm, + ?Delaunayaxis: StyleParam.Delaunayaxis, + ?Contour: Contour, + ?FlatShading: bool, + ?Hoverlabel: Hoverlabel, + ?Lighting: Lighting, + ?LightPosition: LightPosition, + ?XCalendar: StyleParam.Calendar, + ?YCalendar: StyleParam.Calendar, + ?ZCalendar: StyleParam.Calendar, + ?UIRevision: string ) = fun (mesh3d: #Trace) -> @@ -566,54 +566,54 @@ type Trace3DStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Cone ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?X: seq<#IConvertible>, - [] ?Y: seq<#IConvertible>, - [] ?Z: seq<#IConvertible>, - [] ?U: seq<#IConvertible>, - [] ?V: seq<#IConvertible>, - [] ?W: seq<#IConvertible>, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?XHoverFormat: string, - [] ?YHoverFormat: string, - [] ?UHoverFormat: string, - [] ?VHoverFormat: string, - [] ?WHoverFormat: string, - [] ?Meta: seq<#IConvertible>, - [] ?CustomData: seq<#IConvertible>, - [] ?Scene: StyleParam.SubPlotId, - [] ?ColorAxis: StyleParam.SubPlotId, - [] ?ColorBar: ColorBar, - [] ?AutoColorScale: bool, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?ZHoverFormat: string, - [] ?CAuto: bool, - [] ?CMax: float, - [] ?CMid: float, - [] ?CMin: float, - [] ?Anchor: StyleParam.ConeAnchor, - [] ?HoverLabel: Hoverlabel, - [] ?Lighting: Lighting, - [] ?LightPosition: LightPosition, - [] ?SizeMode: StyleParam.ConeSizeMode, - [] ?SizeRef: float, - [] ?UIRevision: seq<#IConvertible> + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?Y: seq<#IConvertible>, + ?Z: seq<#IConvertible>, + ?U: seq<#IConvertible>, + ?V: seq<#IConvertible>, + ?W: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?UHoverFormat: string, + ?VHoverFormat: string, + ?WHoverFormat: string, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Scene: StyleParam.SubPlotId, + ?ColorAxis: StyleParam.SubPlotId, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZHoverFormat: string, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?Anchor: StyleParam.ConeAnchor, + ?HoverLabel: Hoverlabel, + ?Lighting: Lighting, + ?LightPosition: LightPosition, + ?SizeMode: StyleParam.ConeSizeMode, + ?SizeRef: float, + ?UIRevision: seq<#IConvertible> ) = fun (cone: #Trace) -> cone @@ -716,54 +716,54 @@ type Trace3DStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member StreamTube ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?X: seq<#IConvertible>, - [] ?Y: seq<#IConvertible>, - [] ?Z: seq<#IConvertible>, - [] ?U: seq<#IConvertible>, - [] ?V: seq<#IConvertible>, - [] ?W: seq<#IConvertible>, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?XHoverFormat: string, - [] ?YHoverFormat: string, - [] ?UHoverFormat: string, - [] ?VHoverFormat: string, - [] ?WHoverFormat: string, - [] ?Meta: seq<#IConvertible>, - [] ?CustomData: seq<#IConvertible>, - [] ?Scene: StyleParam.SubPlotId, - [] ?ColorAxis: StyleParam.SubPlotId, - [] ?ColorBar: ColorBar, - [] ?AutoColorScale: bool, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?ZHoverFormat: string, - [] ?CAuto: bool, - [] ?CMax: float, - [] ?CMid: float, - [] ?CMin: float, - [] ?HoverLabel: Hoverlabel, - [] ?Lighting: Lighting, - [] ?LightPosition: LightPosition, - [] ?MaxDisplayed: int, - [] ?SizeRef: float, - [] ?Starts: StreamTubeStarts, - [] ?UIRevision: seq<#IConvertible> + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?Y: seq<#IConvertible>, + ?Z: seq<#IConvertible>, + ?U: seq<#IConvertible>, + ?V: seq<#IConvertible>, + ?W: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?UHoverFormat: string, + ?VHoverFormat: string, + ?WHoverFormat: string, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Scene: StyleParam.SubPlotId, + ?ColorAxis: StyleParam.SubPlotId, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZHoverFormat: string, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?HoverLabel: Hoverlabel, + ?Lighting: Lighting, + ?LightPosition: LightPosition, + ?MaxDisplayed: int, + ?SizeRef: float, + ?Starts: StreamTubeStarts, + ?UIRevision: seq<#IConvertible> ) = fun (streamTube: #Trace) -> streamTube @@ -868,56 +868,56 @@ type Trace3DStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Volume ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?X: seq<#IConvertible>, - [] ?Y: seq<#IConvertible>, - [] ?Z: seq<#IConvertible>, - [] ?Value: seq<#IConvertible>, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?XHoverFormat: string, - [] ?YHoverFormat: string, - [] ?ValueHoverFormat: string, - [] ?Meta: seq<#IConvertible>, - [] ?CustomData: seq<#IConvertible>, - [] ?Scene: StyleParam.SubPlotId, - [] ?ColorAxis: StyleParam.SubPlotId, - [] ?ColorBar: ColorBar, - [] ?AutoColorScale: bool, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?ZHoverFormat: string, - [] ?CAuto: bool, - [] ?CMax: float, - [] ?CMid: float, - [] ?CMin: float, - [] ?Caps: Caps, - [] ?Contour: Contour, - [] ?FlatShading: bool, - [] ?HoverLabel: Hoverlabel, - [] ?IsoMax: float, - [] ?IsoMin: float, - [] ?Lighting: Lighting, - [] ?LightPosition: LightPosition, - [] ?OpacityScale: seq<#seq<#IConvertible>>, - [] ?Slices: Slices, - [] ?SpaceFrame: Spaceframe, - [] ?Surface: Surface, - [] ?UIRevision: seq<#IConvertible> + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?Y: seq<#IConvertible>, + ?Z: seq<#IConvertible>, + ?Value: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?ValueHoverFormat: string, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Scene: StyleParam.SubPlotId, + ?ColorAxis: StyleParam.SubPlotId, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZHoverFormat: string, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?Caps: Caps, + ?Contour: Contour, + ?FlatShading: bool, + ?HoverLabel: Hoverlabel, + ?IsoMax: float, + ?IsoMin: float, + ?Lighting: Lighting, + ?LightPosition: LightPosition, + ?OpacityScale: seq<#seq<#IConvertible>>, + ?Slices: Slices, + ?SpaceFrame: Spaceframe, + ?Surface: Surface, + ?UIRevision: seq<#IConvertible> ) = fun (volume: #Trace) -> @@ -1025,56 +1025,56 @@ type Trace3DStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member IsoSurface ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?X: seq<#IConvertible>, - [] ?Y: seq<#IConvertible>, - [] ?Z: seq<#IConvertible>, - [] ?Value: seq<#IConvertible>, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?XHoverFormat: string, - [] ?YHoverFormat: string, - [] ?ValueHoverFormat: string, - [] ?Meta: seq<#IConvertible>, - [] ?CustomData: seq<#IConvertible>, - [] ?Scene: StyleParam.SubPlotId, - [] ?ColorAxis: StyleParam.SubPlotId, - [] ?ColorBar: ColorBar, - [] ?AutoColorScale: bool, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?ZHoverFormat: string, - [] ?CAuto: bool, - [] ?CMax: float, - [] ?CMid: float, - [] ?CMin: float, - [] ?Caps: Caps, - [] ?Contour: Contour, - [] ?FlatShading: bool, - [] ?HoverLabel: Hoverlabel, - [] ?IsoMax: float, - [] ?IsoMin: float, - [] ?Lighting: Lighting, - [] ?LightPosition: LightPosition, - [] ?OpacityScale: seq<#seq<#IConvertible>>, - [] ?Slices: Slices, - [] ?SpaceFrame: Spaceframe, - [] ?Surface: Surface, - [] ?UIRevision: seq<#IConvertible> + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?Y: seq<#IConvertible>, + ?Z: seq<#IConvertible>, + ?Value: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?XHoverFormat: string, + ?YHoverFormat: string, + ?ValueHoverFormat: string, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Scene: StyleParam.SubPlotId, + ?ColorAxis: StyleParam.SubPlotId, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZHoverFormat: string, + ?CAuto: bool, + ?CMax: float, + ?CMid: float, + ?CMin: float, + ?Caps: Caps, + ?Contour: Contour, + ?FlatShading: bool, + ?HoverLabel: Hoverlabel, + ?IsoMax: float, + ?IsoMin: float, + ?Lighting: Lighting, + ?LightPosition: LightPosition, + ?OpacityScale: seq<#seq<#IConvertible>>, + ?Slices: Slices, + ?SpaceFrame: Spaceframe, + ?Surface: Surface, + ?UIRevision: seq<#IConvertible> ) = fun (isoSurface: #Trace) -> diff --git a/src/Plotly.NET/Traces/TraceCarpet.fs b/src/Plotly.NET/Traces/TraceCarpet.fs index f9b69cddf..b910446ea 100644 --- a/src/Plotly.NET/Traces/TraceCarpet.fs +++ b/src/Plotly.NET/Traces/TraceCarpet.fs @@ -26,8 +26,8 @@ type TraceCarpetStyle() = /// Sets the given axis anchor id(s) on a Trace object. static member SetAxisAnchor ( - [] ?X: StyleParam.LinearAxisId, - [] ?Y: StyleParam.LinearAxisId + ?X: StyleParam.LinearAxisId, + ?Y: StyleParam.LinearAxisId ) = fun (trace: TraceCarpet) -> @@ -35,7 +35,7 @@ type TraceCarpetStyle() = |> DynObj.withOptionalPropertyBy "xaxis" X StyleParam.LinearAxisId.toString |> DynObj.withOptionalPropertyBy "yaxis" Y StyleParam.LinearAxisId.toString - static member SetCarpet([] ?CarpetId: StyleParam.SubPlotId) = + static member SetCarpet(?CarpetId: StyleParam.SubPlotId) = fun (trace: TraceCarpet) -> trace |> DynObj.withOptionalPropertyBy "carpet" CarpetId StyleParam.SubPlotId.toString @@ -74,36 +74,36 @@ type TraceCarpetStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Carpet ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?X: seq<#IConvertible>, - [] ?MultiX: seq<#seq<#IConvertible>>, - [] ?Y: seq<#IConvertible>, - [] ?MultiY: seq<#seq<#IConvertible>>, - [] ?A: seq<#IConvertible>, - [] ?A0: #IConvertible, - [] ?DA: #IConvertible, - [] ?B: seq<#IConvertible>, - [] ?B0: #IConvertible, - [] ?DB: #IConvertible, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?AAxis: LinearAxis, - [] ?BAxis: LinearAxis, - [] ?XAxis: StyleParam.LinearAxisId, - [] ?YAxis: StyleParam.LinearAxisId, - [] ?Color: Color, - [] ?Carpet: StyleParam.SubPlotId, - [] ?CheaterSlope: float, - [] ?Font: Font, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?X: seq<#IConvertible>, + ?MultiX: seq<#seq<#IConvertible>>, + ?Y: seq<#IConvertible>, + ?MultiY: seq<#seq<#IConvertible>>, + ?A: seq<#IConvertible>, + ?A0: #IConvertible, + ?DA: #IConvertible, + ?B: seq<#IConvertible>, + ?B0: #IConvertible, + ?DB: #IConvertible, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?AAxis: LinearAxis, + ?BAxis: LinearAxis, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?Color: Color, + ?Carpet: StyleParam.SubPlotId, + ?CheaterSlope: float, + ?Font: Font, + ?UIRevision: string ) = fun (trace: #Trace) -> @@ -182,46 +182,46 @@ type TraceCarpetStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member ScatterCarpet ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Mode: StyleParam.Mode, - [] ?Ids: seq<#IConvertible>, - [] ?A: seq<#IConvertible>, - [] ?B: seq<#IConvertible>, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?TextTemplate: string, - [] ?MultiTextTemplate: seq, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?XAxis: StyleParam.LinearAxisId, - [] ?YAxis: StyleParam.LinearAxisId, - [] ?Marker: Marker, - [] ?Line: Line, - [] ?TextFont: Font, - [] ?SelectedPoints: seq<#IConvertible>, - [] ?Selected: TraceSelection, - [] ?Unselected: TraceSelection, - [] ?Carpet: StyleParam.SubPlotId, - [] ?ConnectGaps: bool, - [] ?Fill: StyleParam.Fill, - [] ?FillColor: Color, - [] ?HoverLabel: Hoverlabel, - [] ?HoverOn: StyleParam.HoverOn, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Mode: StyleParam.Mode, + ?Ids: seq<#IConvertible>, + ?A: seq<#IConvertible>, + ?B: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?TextTemplate: string, + ?MultiTextTemplate: seq, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?Marker: Marker, + ?Line: Line, + ?TextFont: Font, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?Carpet: StyleParam.SubPlotId, + ?ConnectGaps: bool, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?HoverLabel: Hoverlabel, + ?HoverOn: StyleParam.HoverOn, + ?UIRevision: string ) = fun (trace: #Trace) -> @@ -311,50 +311,50 @@ type TraceCarpetStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member ContourCarpet ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?Z: seq<#IConvertible>, - [] ?A: seq<#IConvertible>, - [] ?AType: StyleParam.CoordinateType, - [] ?A0: #IConvertible, - [] ?DA: #IConvertible, - [] ?B: seq<#IConvertible>, - [] ?BType: StyleParam.CoordinateType, - [] ?B0: #IConvertible, - [] ?DB: #IConvertible, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?XAxis: StyleParam.LinearAxisId, - [] ?YAxis: StyleParam.LinearAxisId, - [] ?ColorAxis: StyleParam.SubPlotId, - [] ?Line: Line, - [] ?ColorBar: ColorBar, - [] ?AutoColorScale: bool, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?ZAuto: bool, - [] ?ZMax: #IConvertible, - [] ?ZMid: #IConvertible, - [] ?ZMin: #IConvertible, - [] ?AutoContour: bool, - [] ?Carpet: StyleParam.SubPlotId, - [] ?Contours: Contours, - [] ?FillColor: Color, - [] ?NContours: int, - [] ?Transpose: bool, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?Z: seq<#IConvertible>, + ?A: seq<#IConvertible>, + ?AType: StyleParam.CoordinateType, + ?A0: #IConvertible, + ?DA: #IConvertible, + ?B: seq<#IConvertible>, + ?BType: StyleParam.CoordinateType, + ?B0: #IConvertible, + ?DB: #IConvertible, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?XAxis: StyleParam.LinearAxisId, + ?YAxis: StyleParam.LinearAxisId, + ?ColorAxis: StyleParam.SubPlotId, + ?Line: Line, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZAuto: bool, + ?ZMax: #IConvertible, + ?ZMid: #IConvertible, + ?ZMin: #IConvertible, + ?AutoContour: bool, + ?Carpet: StyleParam.SubPlotId, + ?Contours: Contours, + ?FillColor: Color, + ?NContours: int, + ?Transpose: bool, + ?UIRevision: string ) = fun (trace: #Trace) -> diff --git a/src/Plotly.NET/Traces/TraceDomain.fs b/src/Plotly.NET/Traces/TraceDomain.fs index 74659635e..73b6d63b8 100644 --- a/src/Plotly.NET/Traces/TraceDomain.fs +++ b/src/Plotly.NET/Traces/TraceDomain.fs @@ -42,7 +42,7 @@ type TraceDomain(traceTypeName) = type TraceDomainStyle() = - static member SetDomain([] ?Domain: Domain) = + static member SetDomain(?Domain: Domain) = fun (trace: TraceDomain) -> trace |> DynObj.withOptionalProperty "domain" Domain @@ -95,50 +95,50 @@ type TraceDomainStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Pie ( - [] ?Name: string, - [] ?Title: Title, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?Values: seq<#IConvertible>, - [] ?Labels: seq<#IConvertible>, - [] ?DLabel: #IConvertible, - [] ?Label0: #IConvertible, - [] ?Pull: float, - [] ?MultiPull: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?TextTemplate: string, - [] ?MultiTextTemplate: seq, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?Meta: seq<#IConvertible>, - [] ?CustomData: seq<#IConvertible>, - [] ?Domain: Domain, - [] ?AutoMargin: bool, - [] ?Marker: Marker, - [] ?TextFont: Font, - [] ?TextInfo: StyleParam.TextInfo, - [] ?Direction: StyleParam.Direction, - [] ?Hole: float, - [] ?HoverLabel: Hoverlabel, - [] ?InsideTextFont: Font, - [] ?InsideTextOrientation: StyleParam.InsideTextOrientation, - [] ?OutsideTextFont: Font, - [] ?Rotation: float, - [] ?ScaleGroup: string, - [] ?Sort: bool, - [] ?UIRevision: string + ?Name: string, + ?Title: Title, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?Values: seq<#IConvertible>, + ?Labels: seq<#IConvertible>, + ?DLabel: #IConvertible, + ?Label0: #IConvertible, + ?Pull: float, + ?MultiPull: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?TextTemplate: string, + ?MultiTextTemplate: seq, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Domain: Domain, + ?AutoMargin: bool, + ?Marker: Marker, + ?TextFont: Font, + ?TextInfo: StyleParam.TextInfo, + ?Direction: StyleParam.Direction, + ?Hole: float, + ?HoverLabel: Hoverlabel, + ?InsideTextFont: Font, + ?InsideTextOrientation: StyleParam.InsideTextOrientation, + ?OutsideTextFont: Font, + ?Rotation: float, + ?ScaleGroup: string, + ?Sort: bool, + ?UIRevision: string ) = fun (trace: ('T :> Trace)) -> trace @@ -223,43 +223,43 @@ type TraceDomainStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member FunnelArea ( - [] ?Name: string, - [] ?Title: Title, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?Values: seq<#IConvertible>, - [] ?Labels: seq<#IConvertible>, - [] ?DLabel: #IConvertible, - [] ?Label0: #IConvertible, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?TextTemplate: string, - [] ?MultiTextTemplate: seq, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?Meta: seq<#IConvertible>, - [] ?CustomData: seq<#IConvertible>, - [] ?Domain: Domain, - [] ?Marker: Marker, - [] ?TextFont: Font, - [] ?TextInfo: StyleParam.TextInfo, - [] ?AspectRatio: float, - [] ?BaseRatio: float, - [] ?HoverLabel: Hoverlabel, - [] ?InsideTextFont: Font, - [] ?ScaleGroup: string, - [] ?UIRevision: string + ?Name: string, + ?Title: Title, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?Values: seq<#IConvertible>, + ?Labels: seq<#IConvertible>, + ?DLabel: #IConvertible, + ?Label0: #IConvertible, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?TextTemplate: string, + ?MultiTextTemplate: seq, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Domain: Domain, + ?Marker: Marker, + ?TextFont: Font, + ?TextInfo: StyleParam.TextInfo, + ?AspectRatio: float, + ?BaseRatio: float, + ?HoverLabel: Hoverlabel, + ?InsideTextFont: Font, + ?ScaleGroup: string, + ?UIRevision: string ) = fun (trace: ('T :> Trace)) -> trace @@ -342,47 +342,47 @@ type TraceDomainStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Sunburst ( - [] ?Name: string, - [] ?Title: Title, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendGroup: string, - [] ?LegendRank: int, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?Parents: seq<#IConvertible>, - [] ?Values: seq<#IConvertible>, - [] ?Labels: seq<#IConvertible>, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextTemplate: string, - [] ?MultiTextTemplate: seq, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?Meta: seq<#IConvertible>, - [] ?CustomData: seq<#IConvertible>, - [] ?Domain: Domain, - [] ?Marker: Marker, - [] ?TextFont: Font, - [] ?TextInfo: StyleParam.TextInfo, - [] ?BranchValues: StyleParam.BranchValues, - [] ?Count: string, - [] ?HoverLabel: Hoverlabel, - [] ?InsideTextFont: Font, - [] ?InsideTextOrientation: StyleParam.InsideTextOrientation, - [] ?OutsideTextFont: Font, - [] ?Root: SunburstRoot, - [] ?Leaf: SunburstLeaf, - [] ?Level: string, - [] ?MaxDepth: int, - [] ?Rotation: int, - [] ?Sort: bool, - [] ?UIRevision: string + ?Name: string, + ?Title: Title, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendGroup: string, + ?LegendRank: int, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?Parents: seq<#IConvertible>, + ?Values: seq<#IConvertible>, + ?Labels: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextTemplate: string, + ?MultiTextTemplate: seq, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Domain: Domain, + ?Marker: Marker, + ?TextFont: Font, + ?TextInfo: StyleParam.TextInfo, + ?BranchValues: StyleParam.BranchValues, + ?Count: string, + ?HoverLabel: Hoverlabel, + ?InsideTextFont: Font, + ?InsideTextOrientation: StyleParam.InsideTextOrientation, + ?OutsideTextFont: Font, + ?Root: SunburstRoot, + ?Leaf: SunburstLeaf, + ?Level: string, + ?MaxDepth: int, + ?Rotation: int, + ?Sort: bool, + ?UIRevision: string ) = fun (trace: ('T :> Trace)) -> @@ -471,47 +471,47 @@ type TraceDomainStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Treemap ( - [] ?Name: string, - [] ?Title: Title, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?Parents: seq<#IConvertible>, - [] ?Values: seq<#IConvertible>, - [] ?Labels: seq<#IConvertible>, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?TextTemplate: string, - [] ?MultiTextTemplate: seq, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?Meta: seq<#IConvertible>, - [] ?CustomData: seq<#IConvertible>, - [] ?Domain: Domain, - [] ?Marker: Marker, - [] ?TextFont: Font, - [] ?TextInfo: StyleParam.TextInfo, - [] ?BranchValues: StyleParam.BranchValues, - [] ?Count: string, - [] ?Tiling: TreemapTiling, - [] ?PathBar: Pathbar, - [] ?HoverLabel: Hoverlabel, - [] ?InsideTextFont: Font, - [] ?OutsideTextFont: Font, - [] ?Root: TreemapRoot, - [] ?Level: string, - [] ?MaxDepth: int, - [] ?UIRevision: string + ?Name: string, + ?Title: Title, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?Parents: seq<#IConvertible>, + ?Values: seq<#IConvertible>, + ?Labels: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?TextTemplate: string, + ?MultiTextTemplate: seq, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Domain: Domain, + ?Marker: Marker, + ?TextFont: Font, + ?TextInfo: StyleParam.TextInfo, + ?BranchValues: StyleParam.BranchValues, + ?Count: string, + ?Tiling: TreemapTiling, + ?PathBar: Pathbar, + ?HoverLabel: Hoverlabel, + ?InsideTextFont: Font, + ?OutsideTextFont: Font, + ?Root: TreemapRoot, + ?Level: string, + ?MaxDepth: int, + ?UIRevision: string ) = fun (trace: ('T :> Trace)) -> @@ -577,25 +577,25 @@ type TraceDomainStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member ParallelCoord ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Ids: seq<#IConvertible>, - [] ?Dimensions: seq, - [] ?Meta: seq<#IConvertible>, - [] ?CustomData: seq<#IConvertible>, - [] ?Domain: Domain, - [] ?Line: Line, - [] ?Unselected: TraceSelection, - [] ?LabelAngle: int, - [] ?LabelFont: Font, - [] ?LabelSide: StyleParam.Side, - [] ?RangeFont: Font, - [] ?TickFont: Font, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Ids: seq<#IConvertible>, + ?Dimensions: seq, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Domain: Domain, + ?Line: Line, + ?Unselected: TraceSelection, + ?LabelAngle: int, + ?LabelFont: Font, + ?LabelSide: StyleParam.Side, + ?RangeFont: Font, + ?TickFont: Font, + ?UIRevision: string ) = fun (trace: ('T :> Trace)) -> trace @@ -644,26 +644,26 @@ type TraceDomainStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member ParallelCategories ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Counts: int, - [] ?Dimensions: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?Meta: seq<#IConvertible>, - [] ?Domain: Domain, - [] ?Line: Line, - [] ?Arrangement: StyleParam.CategoryArrangement, - [] ?BundleColors: bool, - [] ?SortPaths: StyleParam.SortAlgorithm, - [] ?Hoveron: StyleParam.HoverOn, - [] ?LabelFont: Font, - [] ?TickFont: Font, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?Legend: StyleParam.SubPlotId, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Counts: int, + ?Dimensions: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?Meta: seq<#IConvertible>, + ?Domain: Domain, + ?Line: Line, + ?Arrangement: StyleParam.CategoryArrangement, + ?BundleColors: bool, + ?SortPaths: StyleParam.SortAlgorithm, + ?Hoveron: StyleParam.HoverOn, + ?LabelFont: Font, + ?TickFont: Font, + ?UIRevision: string ) = fun (trace: ('T :> Trace)) -> @@ -714,27 +714,27 @@ type TraceDomainStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Sankey ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Ids: seq<#IConvertible>, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?Meta: seq<#IConvertible>, - [] ?CustomData: seq<#IConvertible>, - [] ?Domain: Domain, - [] ?Orientation: StyleParam.Orientation, - [] ?Node: SankeyNodes, - [] ?Link: SankeyLinks, - [] ?TextFont: Font, - [] ?SelectedPoints: seq<#IConvertible>, - [] ?Arrangement: StyleParam.CategoryArrangement, - [] ?HoverLabel: Hoverlabel, - [] ?ValueFormat: string, - [] ?ValueSuffix: string, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Ids: seq<#IConvertible>, + ?HoverInfo: StyleParam.HoverInfo, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Domain: Domain, + ?Orientation: StyleParam.Orientation, + ?Node: SankeyNodes, + ?Link: SankeyLinks, + ?TextFont: Font, + ?SelectedPoints: seq<#IConvertible>, + ?Arrangement: StyleParam.CategoryArrangement, + ?HoverLabel: Hoverlabel, + ?ValueFormat: string, + ?ValueSuffix: string, + ?UIRevision: string ) = fun (trace: ('T :> Trace)) -> @@ -784,23 +784,23 @@ type TraceDomainStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Table ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: bool, - [] ?LegendGroupTitle: Title, - [] ?Ids: seq<#IConvertible>, - [] ?ColumnOrder: seq, - [] ?ColumnWidth: float, - [] ?MultiColumnWidth: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?Meta: seq<#IConvertible>, - [] ?CustomData: seq<#IConvertible>, - [] ?Domain: Domain, - [] ?Cells: TableCells, - [] ?Header: TableHeader, - [] ?HoverLabel: Hoverlabel, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: bool, + ?LegendGroupTitle: Title, + ?Ids: seq<#IConvertible>, + ?ColumnOrder: seq, + ?ColumnWidth: float, + ?MultiColumnWidth: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Domain: Domain, + ?Cells: TableCells, + ?Header: TableHeader, + ?HoverLabel: Hoverlabel, + ?UIRevision: string ) = fun (trace: ('T :> Trace)) -> trace @@ -843,23 +843,23 @@ type TraceDomainStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Indicator ( - [] ?Name: string, - [] ?Title: string, - [] ?Visible: StyleParam.Visible, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroupTitle: Title, - [] ?Mode: StyleParam.IndicatorMode, - [] ?Ids: seq<#IConvertible>, - [] ?Value: #IConvertible, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?Domain: Domain, - [] ?Align: StyleParam.IndicatorAlignment, - [] ?Delta: IndicatorDelta, - [] ?Number: IndicatorNumber, - [] ?Gauge: IndicatorGauge, - [] ?UIRevision: string + ?Name: string, + ?Title: string, + ?Visible: StyleParam.Visible, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroupTitle: Title, + ?Mode: StyleParam.IndicatorMode, + ?Ids: seq<#IConvertible>, + ?Value: #IConvertible, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?Domain: Domain, + ?Align: StyleParam.IndicatorAlignment, + ?Delta: IndicatorDelta, + ?Number: IndicatorNumber, + ?Gauge: IndicatorGauge, + ?UIRevision: string ) = fun (trace: #Trace) -> @@ -927,46 +927,46 @@ type TraceDomainStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member Icicle ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?Parents: seq<#IConvertible>, - [] ?Values: seq<#IConvertible>, - [] ?Labels: seq<#IConvertible>, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?TextTemplate: string, - [] ?MultiTextTemplate: seq, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?Domain: Domain, - [] ?Marker: Marker, - [] ?TextFont: Font, - [] ?TextInfo: StyleParam.TextInfo, - [] ?BranchValues: StyleParam.BranchValues, - [] ?Count: StyleParam.IcicleCount, - [] ?Tiling: IcicleTiling, - [] ?PathBar: Pathbar, - [] ?HoverLabel: Hoverlabel, - [] ?InsideTextFont: Font, - [] ?OutsideTextFont: Font, - [] ?Root: IcicleRoot, - [] ?Leaf: IcicleLeaf, - [] ?Level: string, - [] ?MaxDepth: int, - [] ?Sort: bool, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?Parents: seq<#IConvertible>, + ?Values: seq<#IConvertible>, + ?Labels: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?TextTemplate: string, + ?MultiTextTemplate: seq, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?Domain: Domain, + ?Marker: Marker, + ?TextFont: Font, + ?TextInfo: StyleParam.TextInfo, + ?BranchValues: StyleParam.BranchValues, + ?Count: StyleParam.IcicleCount, + ?Tiling: IcicleTiling, + ?PathBar: Pathbar, + ?HoverLabel: Hoverlabel, + ?InsideTextFont: Font, + ?OutsideTextFont: Font, + ?Root: IcicleRoot, + ?Leaf: IcicleLeaf, + ?Level: string, + ?MaxDepth: int, + ?Sort: bool, + ?UIRevision: string ) = fun (trace: #Trace) -> diff --git a/src/Plotly.NET/Traces/TraceGeo.fs b/src/Plotly.NET/Traces/TraceGeo.fs index 478105431..1d2d2b10a 100644 --- a/src/Plotly.NET/Traces/TraceGeo.fs +++ b/src/Plotly.NET/Traces/TraceGeo.fs @@ -38,7 +38,7 @@ type TraceGeo(traceTypeName) = type TraceGeoStyle() = - static member SetGeo([] ?GeoId: StyleParam.SubPlotId) = + static member SetGeo(?GeoId: StyleParam.SubPlotId) = fun (trace: TraceGeo) -> trace |> DynObj.withOptionalPropertyBy "geo" GeoId StyleParam.SubPlotId.toString @@ -87,45 +87,45 @@ type TraceGeoStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member ChoroplethMap ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Ids: seq<#IConvertible>, - [] ?Z: seq<#IConvertible>, - [] ?GeoJson: obj, - [] ?FeatureIdKey: string, - [] ?Locations: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?Geo: StyleParam.SubPlotId, - [] ?ColorAxis: StyleParam.SubPlotId, - [] ?Marker: Marker, - [] ?ColorBar: ColorBar, - [] ?AutoColorScale: bool, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?ZAuto: bool, - [] ?Zmin: float, - [] ?Zmid: float, - [] ?Zmax: float, - [] ?SelectedPoints: seq<#IConvertible>, - [] ?Selected: TraceSelection, - [] ?Unselected: TraceSelection, - [] ?HoverLabel: Hoverlabel, - [] ?LocationMode: StyleParam.LocationFormat, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Ids: seq<#IConvertible>, + ?Z: seq<#IConvertible>, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?Locations: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?Geo: StyleParam.SubPlotId, + ?ColorAxis: StyleParam.SubPlotId, + ?Marker: Marker, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZAuto: bool, + ?Zmin: float, + ?Zmid: float, + ?Zmax: float, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?HoverLabel: Hoverlabel, + ?LocationMode: StyleParam.LocationFormat, + ?UIRevision: string ) = fun (trace: #Trace) -> @@ -213,47 +213,47 @@ type TraceGeoStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member ScatterGeo ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Mode: StyleParam.Mode, - [] ?Ids: seq<#IConvertible>, - [] ?Lat: #IConvertible seq, - [] ?GeoJson: obj, - [] ?FeatureIdKey: string, - [] ?Locations: seq, - [] ?Lon: #IConvertible seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?TextTemplate: string, - [] ?MultiTextTemplate: seq, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?Geo: StyleParam.SubPlotId, - [] ?Marker: Marker, - [] ?Line: Line, - [] ?TextFont: Font, - [] ?SelectedPoints: seq<#IConvertible>, - [] ?Selected: TraceSelection, - [] ?Unselected: TraceSelection, - [] ?ConnectGaps: bool, - [] ?Fill: StyleParam.Fill, - [] ?FillColor: Color, - [] ?HoverLabel: Hoverlabel, - [] ?LocationMode: StyleParam.LocationFormat, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Mode: StyleParam.Mode, + ?Ids: seq<#IConvertible>, + ?Lat: #IConvertible seq, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?Locations: seq, + ?Lon: #IConvertible seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?TextTemplate: string, + ?MultiTextTemplate: seq, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?Geo: StyleParam.SubPlotId, + ?Marker: Marker, + ?Line: Line, + ?TextFont: Font, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?ConnectGaps: bool, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?HoverLabel: Hoverlabel, + ?LocationMode: StyleParam.LocationFormat, + ?UIRevision: string ) = fun (trace: #Trace) -> diff --git a/src/Plotly.NET/Traces/TraceMapbox.fs b/src/Plotly.NET/Traces/TraceMapbox.fs index d970f6307..b976601ff 100644 --- a/src/Plotly.NET/Traces/TraceMapbox.fs +++ b/src/Plotly.NET/Traces/TraceMapbox.fs @@ -44,7 +44,7 @@ type TraceMapbox(traceTypeName) = type TraceMapboxStyle() = - static member SetMapbox([] ?MapboxId: StyleParam.SubPlotId) = + static member SetMapbox(?MapboxId: StyleParam.SubPlotId) = fun (trace: TraceMapbox) -> trace |> DynObj.withOptionalPropertyBy "subplot" MapboxId StyleParam.SubPlotId.toString @@ -93,45 +93,45 @@ type TraceMapboxStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member ScatterMapbox ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Mode: StyleParam.Mode, - [] ?Ids: seq<#IConvertible>, - [] ?Lat: #IConvertible seq, - [] ?Lon: #IConvertible seq, - [] ?Cluster: MapboxCluster, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?TextTemplate: string, - [] ?MultiTextTemplate: seq, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?SubPlot: StyleParam.SubPlotId, - [] ?Marker: Marker, - [] ?Line: Line, - [] ?TextFont: Font, - [] ?SelectedPoints: seq<#IConvertible>, - [] ?Selected: TraceSelection, - [] ?Unselected: TraceSelection, - [] ?Below: string, - [] ?ConnectGaps: bool, - [] ?Fill: StyleParam.Fill, - [] ?FillColor: Color, - [] ?HoverLabel: Hoverlabel, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Mode: StyleParam.Mode, + ?Ids: seq<#IConvertible>, + ?Lat: #IConvertible seq, + ?Lon: #IConvertible seq, + ?Cluster: MapboxCluster, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?TextTemplate: string, + ?MultiTextTemplate: seq, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?SubPlot: StyleParam.SubPlotId, + ?Marker: Marker, + ?Line: Line, + ?TextFont: Font, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?Below: string, + ?ConnectGaps: bool, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?HoverLabel: Hoverlabel, + ?UIRevision: string ) = fun (trace: #Trace) -> @@ -214,45 +214,45 @@ type TraceMapboxStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member ChoroplethMapbox ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Ids: seq<#IConvertible>, - [] ?Z: seq<#IConvertible>, - [] ?GeoJson: obj, - [] ?FeatureIdKey: string, - [] ?Locations: seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?SubPlot: StyleParam.SubPlotId, - [] ?ColorAxis: StyleParam.SubPlotId, - [] ?Marker: Marker, - [] ?ColorBar: ColorBar, - [] ?AutoColorScale: bool, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?ZAuto: bool, - [] ?Zmax: float, - [] ?Zmid: float, - [] ?Zmin: float, - [] ?SelectedPoints: seq<#IConvertible>, - [] ?Selected: TraceSelection, - [] ?Unselected: TraceSelection, - [] ?Below: string, - [] ?HoverLabel: Hoverlabel, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Ids: seq<#IConvertible>, + ?Z: seq<#IConvertible>, + ?GeoJson: obj, + ?FeatureIdKey: string, + ?Locations: seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?SubPlot: StyleParam.SubPlotId, + ?ColorAxis: StyleParam.SubPlotId, + ?Marker: Marker, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZAuto: bool, + ?Zmax: float, + ?Zmid: float, + ?Zmin: float, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?Below: string, + ?HoverLabel: Hoverlabel, + ?UIRevision: string ) = fun (trace: #Trace) -> trace @@ -334,43 +334,43 @@ type TraceMapboxStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member DensityMapbox ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?Z: seq<#IConvertible>, - [] ?Radius: int, - [] ?Lat: #IConvertible seq, - [] ?Lon: #IConvertible seq, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?SubPlot: StyleParam.SubPlotId, - [] ?ColorAxis: StyleParam.SubPlotId, - [] ?Marker: Marker, - [] ?ColorBar: ColorBar, - [] ?AutoColorScale: bool, - [] ?ColorScale: StyleParam.Colorscale, - [] ?ShowScale: bool, - [] ?ReverseScale: bool, - [] ?ZAuto: bool, - [] ?Zmin: float, - [] ?Zmid: float, - [] ?Zmax: float, - [] ?Below: string, - [] ?HoverLabel: Hoverlabel, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?Z: seq<#IConvertible>, + ?Radius: int, + ?Lat: #IConvertible seq, + ?Lon: #IConvertible seq, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?SubPlot: StyleParam.SubPlotId, + ?ColorAxis: StyleParam.SubPlotId, + ?Marker: Marker, + ?ColorBar: ColorBar, + ?AutoColorScale: bool, + ?ColorScale: StyleParam.Colorscale, + ?ShowScale: bool, + ?ReverseScale: bool, + ?ZAuto: bool, + ?Zmin: float, + ?Zmid: float, + ?Zmax: float, + ?Below: string, + ?HoverLabel: Hoverlabel, + ?UIRevision: string ) = fun (trace: #Trace) -> trace diff --git a/src/Plotly.NET/Traces/TracePolar.fs b/src/Plotly.NET/Traces/TracePolar.fs index b1f5b6502..f187bad38 100644 --- a/src/Plotly.NET/Traces/TracePolar.fs +++ b/src/Plotly.NET/Traces/TracePolar.fs @@ -33,7 +33,7 @@ type TracePolar(traceTypeName) = /// Create various functions for applying polar chart styles to traces type TracePolarStyle() = - static member SetPolar([] ?PolarId: StyleParam.SubPlotId) = + static member SetPolar(?PolarId: StyleParam.SubPlotId) = fun (trace: TracePolar) -> trace |> DynObj.withOptionalPropertyBy "subplot" PolarId StyleParam.SubPlotId.toString @@ -86,50 +86,50 @@ type TracePolarStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member ScatterPolar ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Mode: StyleParam.Mode, - [] ?Ids: seq<#IConvertible>, - [] ?R: seq<#IConvertible>, - [] ?R0: IConvertible, - [] ?DR: IConvertible, - [] ?Theta: seq<#IConvertible>, - [] ?Theta0: #IConvertible, - [] ?DTheta: #IConvertible, - [] ?ThetaUnit: StyleParam.AngularUnit, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?TextTemplate: string, - [] ?MultiTextTemplate: seq, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?Meta: seq<#IConvertible>, - [] ?CustomData: seq<#IConvertible>, - [] ?Subplot: StyleParam.SubPlotId, - [] ?Marker: Marker, - [] ?Line: Line, - [] ?TextFont: Font, - [] ?SelectedPoints: seq<#IConvertible>, - [] ?Selected: TraceSelection, - [] ?Unselected: TraceSelection, - [] ?ClipOnAxis: bool, - [] ?ConnectGaps: bool, - [] ?Fill: StyleParam.Fill, - [] ?FillColor: Color, - [] ?HoverLabel: Hoverlabel, - [] ?HoverOn: string, - [] ?UIRevision: seq<#IConvertible> + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Mode: StyleParam.Mode, + ?Ids: seq<#IConvertible>, + ?R: seq<#IConvertible>, + ?R0: IConvertible, + ?DR: IConvertible, + ?Theta: seq<#IConvertible>, + ?Theta0: #IConvertible, + ?DTheta: #IConvertible, + ?ThetaUnit: StyleParam.AngularUnit, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?TextTemplate: string, + ?MultiTextTemplate: seq, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Subplot: StyleParam.SubPlotId, + ?Marker: Marker, + ?Line: Line, + ?TextFont: Font, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?ClipOnAxis: bool, + ?ConnectGaps: bool, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?HoverLabel: Hoverlabel, + ?HoverOn: string, + ?UIRevision: seq<#IConvertible> ) = fun (trace: ('T :> Trace)) -> @@ -216,43 +216,43 @@ type TracePolarStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member BarPolar ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Ids: seq<#IConvertible>, - [] ?Base: #IConvertible, - [] ?R: seq<#IConvertible>, - [] ?R0: IConvertible, - [] ?DR: IConvertible, - [] ?Theta: seq<#IConvertible>, - [] ?Theta0: #IConvertible, - [] ?DTheta: #IConvertible, - [] ?ThetaUnit: StyleParam.AngularUnit, - [] ?Width: #IConvertible, - [] ?MultiWidth: seq<#IConvertible>, - [] ?Offset: #IConvertible, - [] ?MultiOffset: seq<#IConvertible>, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?Meta: seq<#IConvertible>, - [] ?CustomData: seq<#IConvertible>, - [] ?Subplot: StyleParam.SubPlotId, - [] ?Marker: Marker, - [] ?SelectedPoints: seq<#IConvertible>, - [] ?Selected: TraceSelection, - [] ?Unselected: TraceSelection, - [] ?HoverLabel: Hoverlabel, - [] ?UIRevision: seq<#IConvertible> + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Ids: seq<#IConvertible>, + ?Base: #IConvertible, + ?R: seq<#IConvertible>, + ?R0: IConvertible, + ?DR: IConvertible, + ?Theta: seq<#IConvertible>, + ?Theta0: #IConvertible, + ?DTheta: #IConvertible, + ?ThetaUnit: StyleParam.AngularUnit, + ?Width: #IConvertible, + ?MultiWidth: seq<#IConvertible>, + ?Offset: #IConvertible, + ?MultiOffset: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?Meta: seq<#IConvertible>, + ?CustomData: seq<#IConvertible>, + ?Subplot: StyleParam.SubPlotId, + ?Marker: Marker, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?HoverLabel: Hoverlabel, + ?UIRevision: seq<#IConvertible> ) = fun (trace: ('T :> Trace)) -> diff --git a/src/Plotly.NET/Traces/TraceSmith.fs b/src/Plotly.NET/Traces/TraceSmith.fs index 6c1d53b89..97e2b31d6 100644 --- a/src/Plotly.NET/Traces/TraceSmith.fs +++ b/src/Plotly.NET/Traces/TraceSmith.fs @@ -16,7 +16,7 @@ type TraceSmith(traceTypeName) = type TraceSmithStyle() = - static member SetSmith([] ?SmithId: StyleParam.SubPlotId) = + static member SetSmith(?SmithId: StyleParam.SubPlotId) = fun (trace: TraceSmith) -> trace |> DynObj.withOptionalPropertyBy "subplot" SmithId StyleParam.SubPlotId.toString @@ -65,45 +65,45 @@ type TraceSmithStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member ScatterSmith ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Mode: StyleParam.Mode, - [] ?Ids: seq<#IConvertible>, - [] ?Imag: seq<#IConvertible>, - [] ?Real: seq<#IConvertible>, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?TextTemplate: string, - [] ?MultiTextTemplate: seq, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?Subplot: StyleParam.SubPlotId, - [] ?Marker: Marker, - [] ?Line: Line, - [] ?TextFont: Font, - [] ?SelectedPoints: seq<#IConvertible>, - [] ?Selected: TraceSelection, - [] ?Unselected: TraceSelection, - [] ?ClipOnAxis: bool, - [] ?ConnectGaps: bool, - [] ?Fill: StyleParam.Fill, - [] ?FillColor: Color, - [] ?HoverLabel: Hoverlabel, - [] ?HoverOn: StyleParam.HoverOn, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Mode: StyleParam.Mode, + ?Ids: seq<#IConvertible>, + ?Imag: seq<#IConvertible>, + ?Real: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?TextTemplate: string, + ?MultiTextTemplate: seq, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?Subplot: StyleParam.SubPlotId, + ?Marker: Marker, + ?Line: Line, + ?TextFont: Font, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?ClipOnAxis: bool, + ?ConnectGaps: bool, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?HoverLabel: Hoverlabel, + ?HoverOn: StyleParam.HoverOn, + ?UIRevision: string ) = fun (trace: ('T :> Trace)) -> trace diff --git a/src/Plotly.NET/Traces/TraceTernary.fs b/src/Plotly.NET/Traces/TraceTernary.fs index 3d83b272a..c46106c5f 100644 --- a/src/Plotly.NET/Traces/TraceTernary.fs +++ b/src/Plotly.NET/Traces/TraceTernary.fs @@ -16,7 +16,7 @@ type TraceTernary(traceTypeName) = type TraceTernaryStyle() = - static member SetTernary([] ?TernaryId: StyleParam.SubPlotId) = + static member SetTernary(?TernaryId: StyleParam.SubPlotId) = fun (trace: TraceTernary) -> trace |> DynObj.withOptionalPropertyBy "subplot" TernaryId StyleParam.SubPlotId.toString @@ -66,47 +66,47 @@ type TraceTernaryStyle() = /// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. static member ScatterTernary ( - [] ?Name: string, - [] ?Visible: StyleParam.Visible, - [] ?ShowLegend: bool, - [] ?Legend: StyleParam.SubPlotId, - [] ?LegendRank: int, - [] ?LegendGroup: string, - [] ?LegendGroupTitle: Title, - [] ?Opacity: float, - [] ?Mode: StyleParam.Mode, - [] ?Ids: seq<#IConvertible>, - [] ?A: seq<#IConvertible>, - [] ?B: seq<#IConvertible>, - [] ?C: seq<#IConvertible>, - [] ?Text: #IConvertible, - [] ?MultiText: seq<#IConvertible>, - [] ?TextPosition: StyleParam.TextPosition, - [] ?MultiTextPosition: seq, - [] ?TextTemplate: string, - [] ?MultiTextTemplate: seq, - [] ?HoverText: string, - [] ?MultiHoverText: seq, - [] ?HoverInfo: StyleParam.HoverInfo, - [] ?HoverTemplate: string, - [] ?MultiHoverTemplate: seq, - [] ?Meta: string, - [] ?CustomData: seq<#IConvertible>, - [] ?SubPlot: StyleParam.SubPlotId, - [] ?Marker: Marker, - [] ?Line: Line, - [] ?TextFont: Font, - [] ?SelectedPoints: seq<#IConvertible>, - [] ?Selected: TraceSelection, - [] ?Unselected: TraceSelection, - [] ?ClipOnAxis: bool, - [] ?ConnectGaps: bool, - [] ?Fill: StyleParam.Fill, - [] ?FillColor: Color, - [] ?HoverLabel: Hoverlabel, - [] ?HoverOn: StyleParam.HoverOn, - [] ?Sum: #IConvertible, - [] ?UIRevision: string + ?Name: string, + ?Visible: StyleParam.Visible, + ?ShowLegend: bool, + ?Legend: StyleParam.SubPlotId, + ?LegendRank: int, + ?LegendGroup: string, + ?LegendGroupTitle: Title, + ?Opacity: float, + ?Mode: StyleParam.Mode, + ?Ids: seq<#IConvertible>, + ?A: seq<#IConvertible>, + ?B: seq<#IConvertible>, + ?C: seq<#IConvertible>, + ?Text: #IConvertible, + ?MultiText: seq<#IConvertible>, + ?TextPosition: StyleParam.TextPosition, + ?MultiTextPosition: seq, + ?TextTemplate: string, + ?MultiTextTemplate: seq, + ?HoverText: string, + ?MultiHoverText: seq, + ?HoverInfo: StyleParam.HoverInfo, + ?HoverTemplate: string, + ?MultiHoverTemplate: seq, + ?Meta: string, + ?CustomData: seq<#IConvertible>, + ?SubPlot: StyleParam.SubPlotId, + ?Marker: Marker, + ?Line: Line, + ?TextFont: Font, + ?SelectedPoints: seq<#IConvertible>, + ?Selected: TraceSelection, + ?Unselected: TraceSelection, + ?ClipOnAxis: bool, + ?ConnectGaps: bool, + ?Fill: StyleParam.Fill, + ?FillColor: Color, + ?HoverLabel: Hoverlabel, + ?HoverOn: StyleParam.HoverOn, + ?Sum: #IConvertible, + ?UIRevision: string ) = fun (trace: #Trace) -> diff --git a/tests/CoreTests/CSharpInteroperabilityTests/APITest/Chart2DAPITest.cs b/tests/CoreTests/CSharpInteroperabilityTests/APITest/Chart2DAPITest.cs deleted file mode 100644 index b779683af..000000000 --- a/tests/CoreTests/CSharpInteroperabilityTests/APITest/Chart2DAPITest.cs +++ /dev/null @@ -1,34 +0,0 @@ -ïğżusing System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Xunit; - -namespace Plotly.NET.Tests.CSharp.APITest -{ - public class Chart2DAPITest - { - private static readonly int[] x = new [] { 1, 2 }; - private static readonly int[] y = new [] { 1, 2 }; - private static readonly Tuple[] xy = x.Zip(y).Select(c => new Tuple(c.Item1, c.Item2)).ToArray(); - - [Fact] public void Scatter1() - => Chart2D.Chart.Scatter(x, y, StyleParam.Mode.Lines); - - [Fact] public void Scatter2() - => Chart2D.Chart.Scatter(xy, StyleParam.Mode.Lines); - - [Fact] public void Point1() - => Chart2D.Chart.Point(x, y); - - [Fact] public void Point2() - => Chart2D.Chart.Point(xy); - - [Fact] public void Line1() - => Chart2D.Chart.Line(x, y); - - [Fact] public void Line2() - => Chart2D.Chart.Line(xy); - } -} diff --git a/tests/CoreTests/CSharpInteroperabilityTests/APITest/Chart3DAPITest.cs b/tests/CoreTests/CSharpInteroperabilityTests/APITest/Chart3DAPITest.cs deleted file mode 100644 index 2c9520982..000000000 --- a/tests/CoreTests/CSharpInteroperabilityTests/APITest/Chart3DAPITest.cs +++ /dev/null @@ -1,20 +0,0 @@ -ïğżusing System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Xunit; - -namespace Plotly.NET.Tests.CSharp.APITest -{ - public class Chart3DAPITest - { - private static readonly int[] x = new[] { 1, 2 }; - private static readonly int[] y = new[] { 1, 2 }; - private static readonly int[] z = new[] { 1, 2 }; - private static readonly Tuple[] xyz = x.Zip(y).Zip(z).Select(c => new Tuple(c.Item1.First, c.Item1.Second, c.Item2)).ToArray(); - - [Fact] public void Scatter3d1() - => Chart3D.Chart.Scatter3D(x, y, z, StyleParam.Mode.Lines); - } -} diff --git a/tests/CoreTests/CSharpInteroperabilityTests/APITest/ChartDomainAPITest.cs b/tests/CoreTests/CSharpInteroperabilityTests/APITest/ChartDomainAPITest.cs deleted file mode 100644 index efb5d6725..000000000 --- a/tests/CoreTests/CSharpInteroperabilityTests/APITest/ChartDomainAPITest.cs +++ /dev/null @@ -1,20 +0,0 @@ -ïğżusing System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Xunit; - -namespace Plotly.NET.Tests.CSharp.APITest -{ - public class ChartDomainAPITest - { - public int[][] xofy = new [] { new [] { 1, 2 }, new [] { 1, 2 } }; - private static readonly int[] x = new[] { 1, 2 }; - private static readonly int[] y = new[] { 1, 2 }; - - [Fact] - public void Table() - => ChartDomain.Chart.Table(xofy, xofy); - } -} diff --git a/tests/CoreTests/CSharpInteroperabilityTests/APITest/ChartMapAPITest.cs b/tests/CoreTests/CSharpInteroperabilityTests/APITest/ChartMapAPITest.cs deleted file mode 100644 index f6c1d9f28..000000000 --- a/tests/CoreTests/CSharpInteroperabilityTests/APITest/ChartMapAPITest.cs +++ /dev/null @@ -1,22 +0,0 @@ -ïğżusing System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Xunit; - -namespace Plotly.NET.Tests.CSharp.APITest -{ - public class ChartMapAPITest - { - private static readonly int[] x = new[] { 1, 2 }; - private static readonly int[] y = new[] { 1, 2 }; - private static readonly int[] z = new[] { 1, 2 }; - private static readonly Tuple[] xyz = x.Zip(y).Zip(z).Select(c => new Tuple(c.Item1.First, c.Item1.Second, c.Item2)).ToArray(); - private static readonly Tuple[] xy = x.Zip(y).Select(c => new Tuple(c.Item1, c.Item2)).ToArray(); - - [Fact] - public void DensityMapBox() - => ChartMap.Chart.DensityMapbox(x, y); - } -} diff --git a/tests/CoreTests/CSharpInteroperabilityTests/APITest/ChartPolarAPITest.cs b/tests/CoreTests/CSharpInteroperabilityTests/APITest/ChartPolarAPITest.cs deleted file mode 100644 index d99fd125d..000000000 --- a/tests/CoreTests/CSharpInteroperabilityTests/APITest/ChartPolarAPITest.cs +++ /dev/null @@ -1,22 +0,0 @@ -ïğżusing System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Xunit; - -namespace Plotly.NET.Tests.CSharp.APITest -{ - public class ChartPolarAPITest - { - private static readonly int[] x = new[] { 1, 2 }; - private static readonly int[] y = new[] { 1, 2 }; - private static readonly int[] z = new[] { 1, 2 }; - private static readonly Tuple[] xyz = x.Zip(y).Zip(z).Select(c => new Tuple(c.Item1.First, c.Item1.Second, c.Item2)).ToArray(); - private static readonly Tuple[] xy = x.Zip(y).Select(c => new Tuple(c.Item1, c.Item2)).ToArray(); - - [Fact] - public void ScatterPlotter() - => ChartPolar.Chart.ScatterPolar(xy, StyleParam.Mode.Lines); - } -} diff --git a/tests/CoreTests/CSharpInteroperabilityTests/CSharpInteroperabilityTests.csproj b/tests/CoreTests/CSharpInteroperabilityTests/CSharpInteroperabilityTests.csproj deleted file mode 100644 index 04387c08b..000000000 --- a/tests/CoreTests/CSharpInteroperabilityTests/CSharpInteroperabilityTests.csproj +++ /dev/null @@ -1,25 +0,0 @@ - - - - net6.0 - false - - - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - - - - - - diff --git a/tests/CoreTests/CSharpInteroperabilityTests/LayoutObjectTests.cs b/tests/CoreTests/CSharpInteroperabilityTests/LayoutObjectTests.cs deleted file mode 100644 index 650963b9d..000000000 --- a/tests/CoreTests/CSharpInteroperabilityTests/LayoutObjectTests.cs +++ /dev/null @@ -1,23 +0,0 @@ -ïğżusing System; -using Xunit; -using Plotly.NET; -using Plotly.NET.LayoutObjects; -using Microsoft.FSharp.Core; - -namespace Plotly.NET.Tests.CSharp -{ - public class LayoutObjectTests - { - [Fact] - public void OptionalArgumentsAndDynamicSettingAreEqual() - { - var actual = LinearAxis.init(Color: Color.fromString("red"), AxisType: StyleParam.AxisType.Linear); - - var expected = new LinearAxis(); - expected.SetProperty("color", Color.fromString("red")); - expected.SetProperty("type", StyleParam.AxisType.Linear.Convert()); - - Assert.Equal(expected.GetProperties(true), actual.GetProperties(true)); - } - } -} diff --git a/tests/CoreTests/CSharpInteroperabilityTests/StyleParamTests.cs b/tests/CoreTests/CSharpInteroperabilityTests/StyleParamTests.cs deleted file mode 100644 index 41c78cd7d..000000000 --- a/tests/CoreTests/CSharpInteroperabilityTests/StyleParamTests.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using Xunit; -using Plotly.NET; - -namespace Plotly.NET.Tests.CSharp -{ - public class StyleParamTests - { - [Fact] - public void CanUseToString() - { - var actual = StyleParam.Fill.ToSelf.ToString(); - Assert.Equal("toself", actual); - } - [Fact] - public void CanUseConvert() - { - var actual = StyleParam.Fill.ToNext.Convert(); - object expected = "tonext"; - Assert.Equal(expected, actual); - } - } -} diff --git a/tests/CoreTests/CSharpInteroperabilityTests/TraceObjectTests.cs b/tests/CoreTests/CSharpInteroperabilityTests/TraceObjectTests.cs deleted file mode 100644 index 5c662292a..000000000 --- a/tests/CoreTests/CSharpInteroperabilityTests/TraceObjectTests.cs +++ /dev/null @@ -1,11 +0,0 @@ -ïğżusing System; -using Xunit; -using Plotly.NET; - - -namespace Plotly.NET.Tests.CSharp -{ - class TraceObjecttests - { - } -} From 334b4001f974fe4964ba1134230e555e79f0cf09 Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Thu, 17 Oct 2024 15:06:14 +0200 Subject: [PATCH 21/36] fix missing args in C# bindings and some xml docs --- src/Plotly.NET.CSharp/ChartAPI/Chart2D.cs | 419 ++++- src/Plotly.NET.CSharp/ChartAPI/ChartDomain.cs | 72 +- src/Plotly.NET.CSharp/ChartAPI/ChartMap.cs | 19 + .../GenericChartExtensions.cs | 43 +- src/Plotly.NET/ChartAPI/Chart.fs | 1 + src/Plotly.NET/ChartAPI/Chart2D.fs | 13 +- tests/ConsoleApps/CSharpConsole/Program.cs | 1582 ++++++++--------- .../CSharpTests/ExtensionMethodsTests.cs | 2 +- 8 files changed, 1241 insertions(+), 910 deletions(-) diff --git a/src/Plotly.NET.CSharp/ChartAPI/Chart2D.cs b/src/Plotly.NET.CSharp/ChartAPI/Chart2D.cs index 7c7145718..0ec84d91d 100644 --- a/src/Plotly.NET.CSharp/ChartAPI/Chart2D.cs +++ b/src/Plotly.NET.CSharp/ChartAPI/Chart2D.cs @@ -7,6 +7,7 @@ using Plotly.NET.LayoutObjects; using Plotly.NET.TraceObjects; using System.Runtime.InteropServices; +using static Plotly.NET.StyleParam; namespace Plotly.NET.CSharp { @@ -15,11 +16,13 @@ public static partial class Chart /// /// Creates a Scatter plot. /// - /// Scatter charts are the basis of Point, Line, and Bubble Charts, and can be customized as such. We also provide abstractions for those Chart.Line, Chart.Point, Chart.Bubble + /// Scatter charts are the basis of Point, Line, and Bubble Charts, and can be customized as such. We also provide abstractions for those: Chart.Line, Chart.Point, Chart.Bubble /// - /// Sets the x coordinates of the plotted data. - /// Sets the y coordinates of the plotted data. - /// Determines the drawing mode for this scatter trace. + /// Sets the x coordinates of the plotted data. + /// Sets the x coordinates of the plotted data. Use two inner arrays here to plot multicategorial data + /// Sets the y coordinates of the plotted data. + /// Sets the x coordinates of the plotted data. Use two inner arrays here to plot multicategorial data + /// Determines the drawing mode for this scatter trace. /// Sets the trace name. The trace name appear as the legend item and on hover /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the opactity of the trace @@ -39,11 +42,14 @@ public static partial class Chart /// Sets the width of the line /// sets the drawing style of the line /// Sets the line (use this for more finegrained control than the other line-associated arguments) + /// Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. + /// Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. /// Set several traces (on the same subplot) to the same stackgroup in order to add their y values (or their x values if `Orientation` is Horizontal). Stacking also turns `fill` on by default and sets the default `mode` to "lines" irrespective of point count. ou can only stack on a numeric (linear or log) axis. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order /// Sets the stacking direction. Only relevant when `stackgroup` is used, and only the first `orientation` found in the `stackgroup` will be used. /// Sets the normalization for the sum of this `stackgroup. Only relevant when `stackgroup` is used, and only the first `groupnorm` found in the `stackgroup` will be used /// Sets the area to fill with a solid color. Defaults to "none" unless this trace is stacked, then it gets "tonexty" ("tonextx") if `orientation` is "v" ("h") Use with `FillColor` if not "none". "tozerox" and "tozeroy" fill to x=0 and y=0 respectively. "tonextx" and "tonexty" fill between the endpoints of this trace and the endpoints of the trace before it, connecting those endpoints with straight lines (to make a stacked area graph); if there is no trace before it, they behave like "tozerox" and "tozeroy". "toself" connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. "tonext" fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like "toself" if there is no trace before it. "tonext" should not be used if one trace does not enclose the other. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order. - /// ets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. + /// Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. + /// Sets the pattern within the marker. /// If true, plotly.js will use the WebGL engine to render this chart. use this when you want to render many objects at once. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Scatter( @@ -69,11 +75,14 @@ public static GenericChart Scatter( Optional LineWidth = default, Optional LineDash = default, Optional Line = default, + Optional AlignmentGroup = default, + Optional OffsetGroup = default, Optional StackGroup = default, Optional Orientation = default, Optional GroupNorm = default, Optional Fill = default, Optional FillColor = default, + Optional FillPattern = default, Optional UseWebGL = default, Optional UseDefaults = default ) @@ -104,11 +113,14 @@ public static GenericChart Scatter( LineWidth: LineWidth.ToOption(), LineDash: LineDash.ToOption(), Line: Line.ToOption(), + AlignmentGroup: AlignmentGroup.ToOption(), + OffsetGroup: OffsetGroup.ToOption(), StackGroup: StackGroup.ToOption(), Orientation: Orientation.ToOption(), GroupNorm: GroupNorm.ToOption(), Fill: Fill.ToOption(), FillColor: FillColor.ToOption(), + FillPattern: FillPattern.ToOption(), UseWebGL: UseWebGL.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -132,6 +144,8 @@ public static GenericChart Scatter( /// Sets the marker symbol for each datum /// Sets the marker symbol for each individual datum /// Sets the marker (use this for more finegrained control than the other marker-associated arguments) + /// Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. + /// Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. /// Set several traces (on the same subplot) to the same stackgroup in order to add their y values (or their x values if `Orientation` is Horizontal). Stacking also turns `fill` on by default and sets the default `mode` to "lines" irrespective of point count. ou can only stack on a numeric (linear or log) axis. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order /// Sets the stacking direction. Only relevant when `stackgroup` is used, and only the first `orientation` found in the `stackgroup` will be used. /// Sets the normalization for the sum of this `stackgroup. Only relevant when `stackgroup` is used, and only the first `groupnorm` found in the `stackgroup` will be used @@ -154,6 +168,8 @@ public static GenericChart Point( Optional MarkerSymbol = default, Optional> MultiMarkerSymbol = default, Optional Marker = default, + Optional AlignmentGroup = default, + Optional OffsetGroup = default, Optional StackGroup = default, Optional Orientation = default, Optional GroupNorm = default, @@ -181,6 +197,8 @@ public static GenericChart Point( MarkerSymbol: MarkerSymbol.ToOption(), MultiMarkerSymbol: MultiMarkerSymbol.ToOption(), Marker: Marker.ToOption(), + AlignmentGroup: AlignmentGroup.ToOption(), + OffsetGroup: OffsetGroup.ToOption(), StackGroup: StackGroup.ToOption(), Orientation: Orientation.ToOption(), GroupNorm: GroupNorm.ToOption(), @@ -211,11 +229,14 @@ public static GenericChart Point( /// Sets the width of the line /// sets the drawing style of the line /// Sets the line (use this for more finegrained control than the other line-associated arguments) + /// Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. + /// Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. /// Set several traces (on the same subplot) to the same stackgroup in order to add their y values (or their x values if `Orientation` is Horizontal). Stacking also turns `fill` on by default and sets the default `mode` to "lines" irrespective of point count. ou can only stack on a numeric (linear or log) axis. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order /// Sets the stacking direction. Only relevant when `stackgroup` is used, and only the first `orientation` found in the `stackgroup` will be used. /// Sets the normalization for the sum of this `stackgroup. Only relevant when `stackgroup` is used, and only the first `groupnorm` found in the `stackgroup` will be used /// Sets the area to fill with a solid color. Defaults to "none" unless this trace is stacked, then it gets "tonexty" ("tonextx") if `orientation` is "v" ("h") Use with `FillColor` if not "none". "tozerox" and "tozeroy" fill to x=0 and y=0 respectively. "tonextx" and "tonexty" fill between the endpoints of this trace and the endpoints of the trace before it, connecting those endpoints with straight lines (to make a stacked area graph); if there is no trace before it, they behave like "tozerox" and "tozeroy". "toself" connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. "tonext" fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like "toself" if there is no trace before it. "tonext" should not be used if one trace does not enclose the other. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order. - /// ets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. + /// Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. + /// Sets the pattern within the marker. /// If true, plotly.js will use the WebGL engine to render this chart. use this when you want to render many objects at once. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Line( @@ -241,11 +262,14 @@ public static GenericChart Line( Optional LineWidth = default, Optional LineDash = default, Optional Line = default, + Optional AlignmentGroup = default, + Optional OffsetGroup = default, Optional StackGroup = default, Optional Orientation = default, Optional GroupNorm = default, Optional Fill = default, Optional FillColor = default, + Optional FillPattern = default, Optional UseWebGL = default, Optional UseDefaults = default ) @@ -276,11 +300,14 @@ public static GenericChart Line( LineWidth: LineWidth.ToOption(), LineDash: LineDash.ToOption(), Line: Line.ToOption(), + AlignmentGroup: AlignmentGroup.ToOption(), + OffsetGroup: OffsetGroup.ToOption(), StackGroup: StackGroup.ToOption(), Orientation: Orientation.ToOption(), GroupNorm: GroupNorm.ToOption(), Fill: Fill.ToOption(), FillColor: FillColor.ToOption(), + FillPattern: FillPattern.ToOption(), UseWebGL: UseWebGL.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -310,11 +337,14 @@ public static GenericChart Line( /// Sets the width of the line /// sets the drawing style of the line /// Sets the line (use this for more finegrained control than the other line-associated arguments) + /// Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. + /// Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. /// Set several traces (on the same subplot) to the same stackgroup in order to add their y values (or their x values if `Orientation` is Horizontal). Stacking also turns `fill` on by default and sets the default `mode` to "lines" irrespective of point count. ou can only stack on a numeric (linear or log) axis. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order /// Sets the stacking direction. Only relevant when `stackgroup` is used, and only the first `orientation` found in the `stackgroup` will be used. /// Sets the normalization for the sum of this `stackgroup. Only relevant when `stackgroup` is used, and only the first `groupnorm` found in the `stackgroup` will be used /// Sets the area to fill with a solid color. Defaults to "none" unless this trace is stacked, then it gets "tonexty" ("tonextx") if `orientation` is "v" ("h") Use with `FillColor` if not "none". "tozerox" and "tozeroy" fill to x=0 and y=0 respectively. "tonextx" and "tonexty" fill between the endpoints of this trace and the endpoints of the trace before it, connecting those endpoints with straight lines (to make a stacked area graph); if there is no trace before it, they behave like "tozerox" and "tozeroy". "toself" connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. "tonext" fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like "toself" if there is no trace before it. "tonext" should not be used if one trace does not enclose the other. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order. - /// ets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. + /// Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. + /// Sets the pattern within the marker. /// If true, plotly.js will use the WebGL engine to render this chart. use this when you want to render many objects at once. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Spline( @@ -341,11 +371,14 @@ public static GenericChart Spline( Optional LineWidth = default, Optional LineDash = default, Optional Line = default, + Optional AlignmentGroup = default, + Optional OffsetGroup = default, Optional StackGroup = default, Optional Orientation = default, Optional GroupNorm = default, Optional Fill = default, Optional FillColor = default, + Optional FillPattern = default, Optional UseWebGL = default, Optional UseDefaults = default ) @@ -377,11 +410,14 @@ public static GenericChart Spline( LineWidth: LineWidth.ToOption(), LineDash: LineDash.ToOption(), Line: Line.ToOption(), + AlignmentGroup: AlignmentGroup.ToOption(), + OffsetGroup: OffsetGroup.ToOption(), StackGroup: StackGroup.ToOption(), Orientation: Orientation.ToOption(), GroupNorm: GroupNorm.ToOption(), Fill: Fill.ToOption(), FillColor: FillColor.ToOption(), + FillPattern: FillPattern.ToOption(), UseWebGL: UseWebGL.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -409,6 +445,8 @@ public static GenericChart Spline( /// Sets the width of the line /// sets the drawing style of the line /// Sets the line (use this for more finegrained control than the other line-associated arguments) + /// Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. + /// Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. /// Set several traces (on the same subplot) to the same stackgroup in order to add their y values (or their x values if `Orientation` is Horizontal). Stacking also turns `fill` on by default and sets the default `mode` to "lines" irrespective of point count. ou can only stack on a numeric (linear or log) axis. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order /// Sets the stacking direction. Only relevant when `stackgroup` is used, and only the first `orientation` found in the `stackgroup` will be used. /// Sets the normalization for the sum of this `stackgroup. Only relevant when `stackgroup` is used, and only the first `groupnorm` found in the `stackgroup` will be used @@ -437,6 +475,8 @@ public static GenericChart Bubble( Optional LineWidth = default, Optional LineDash = default, Optional Line = default, + Optional AlignmentGroup = default, + Optional OffsetGroup = default, Optional StackGroup = default, Optional Orientation = default, Optional GroupNorm = default, @@ -470,12 +510,15 @@ public static GenericChart Bubble( LineWidth: LineWidth.ToOption(), LineDash: LineDash.ToOption(), Line: Line.ToOption(), + AlignmentGroup: AlignmentGroup.ToOption(), + OffsetGroup: OffsetGroup.ToOption(), StackGroup: StackGroup.ToOption(), Orientation: Orientation.ToOption(), GroupNorm: GroupNorm.ToOption(), UseWebGL: UseWebGL.ToOption(), UseDefaults: UseDefaults.ToOption() ); + /// /// Displays a range of data by plotting three Y values per data point (upper, mid, lower). /// @@ -506,6 +549,7 @@ public static GenericChart Bubble( /// sets the drawing style of the line for the mid Y values. /// Sets the line (use this for more finegrained control than the other line-associated arguments) for the mid Y values. /// Sets the color of the range between upper and lower Y values. + /// Sets the pattern of the range between upper and lower Y values. /// Sets a text associated with each datum for the upper Y values. /// Sets individual text for each datum for the upper Y values. /// Sets a text associated with each datum for the lower Y values. @@ -547,7 +591,8 @@ public static GenericChart Range( Optional Line = default, Optional UpperLine = default, Optional LowerLine = default, - Optional RangeColor = default, + Optional RangeColor = default, + Optional RangePattern = default, Optional UpperText = default, Optional> MultiUpperText = default, Optional LowerText = default, @@ -591,6 +636,7 @@ public static GenericChart Range( UpperLine: UpperLine.ToOption(), LowerLine: LowerLine.ToOption(), RangeColor: RangeColor.ToOption(), + RangePattern: RangePattern.ToOption(), UpperText: UpperText.ToOption(), MultiUpperText: MultiUpperText.ToOption(), LowerText: LowerText.ToOption(), @@ -666,10 +712,14 @@ IEnumerable labels /// Sets the width of the line /// sets the drawing style of the line /// Sets the line (use this for more finegrained control than the other line-associated arguments) + /// Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. + /// Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. /// Set several traces (on the same subplot) to the same stackgroup in order to add their y values (or their x values if `Orientation` is Horizontal). Stacking also turns `fill` on by default and sets the default `mode` to "lines" irrespective of point count. ou can only stack on a numeric (linear or log) axis. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order /// Sets the stacking direction. Only relevant when `stackgroup` is used, and only the first `orientation` found in the `stackgroup` will be used. /// Sets the normalization for the sum of this `stackgroup. Only relevant when `stackgroup` is used, and only the first `groupnorm` found in the `stackgroup` will be used - /// ets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. + /// Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. + /// Sets a pattern shape for the area fill + /// Sets the pattern within the area. (use this for more finegrained control than the other fillpattern-associated arguments). /// If true, plotly.js will use the WebGL engine to render this chart. use this when you want to render many objects at once. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Area( @@ -694,11 +744,15 @@ public static GenericChart Area( Optional LineColorScale = default, Optional LineWidth = default, Optional LineDash = default, - Optional Line = default, + Optional Line = default, + Optional AlignmentGroup = default, + Optional OffsetGroup = default, Optional StackGroup = default, Optional Orientation = default, Optional GroupNorm = default, - Optional FillColor = default, + Optional FillColor = default, + Optional FillPatternShape = default, + Optional FillPattern = default, Optional UseWebGL = default, Optional UseDefaults = default ) @@ -729,10 +783,14 @@ public static GenericChart Area( LineWidth: LineWidth.ToOption(), LineDash: LineDash.ToOption(), Line: Line.ToOption(), + AlignmentGroup: AlignmentGroup.ToOption(), + OffsetGroup: OffsetGroup.ToOption(), StackGroup: StackGroup.ToOption(), Orientation: Orientation.ToOption(), GroupNorm: GroupNorm.ToOption(), FillColor: FillColor.ToOption(), + FillPatternShape: FillPatternShape.ToOption(), + FillPattern: FillPattern.ToOption(), UseWebGL: UseWebGL.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -761,10 +819,14 @@ public static GenericChart Area( /// Sets the width of the line /// sets the drawing style of the line /// Sets the line (use this for more finegrained control than the other line-associated arguments) + /// Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. + /// Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. /// Set several traces (on the same subplot) to the same stackgroup in order to add their y values (or their x values if `Orientation` is Horizontal). Stacking also turns `fill` on by default and sets the default `mode` to "lines" irrespective of point count. ou can only stack on a numeric (linear or log) axis. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order /// Sets the stacking direction. Only relevant when `stackgroup` is used, and only the first `orientation` found in the `stackgroup` will be used. /// Sets the normalization for the sum of this `stackgroup. Only relevant when `stackgroup` is used, and only the first `groupnorm` found in the `stackgroup` will be used /// ets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. + /// Sets a pattern shape for the area fill + /// Sets the pattern within the area. (use this for more finegrained control than the other fillpattern-associated arguments). /// If true, plotly.js will use the WebGL engine to render this chart. use this when you want to render many objects at once. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart SplineArea( @@ -791,10 +853,14 @@ public static GenericChart SplineArea( Optional LineWidth = default, Optional LineDash = default, Optional Line = default, + Optional AlignmentGroup = default, + Optional OffsetGroup = default, Optional StackGroup = default, Optional Orientation = default, Optional GroupNorm = default, Optional FillColor = default, + Optional FillPatternShape = default, + Optional FillPattern = default, Optional UseWebGL = default, Optional UseDefaults = default ) @@ -826,10 +892,14 @@ public static GenericChart SplineArea( LineWidth: LineWidth.ToOption(), LineDash: LineDash.ToOption(), Line: Line.ToOption(), + AlignmentGroup: AlignmentGroup.ToOption(), + OffsetGroup: OffsetGroup.ToOption(), StackGroup: StackGroup.ToOption(), Orientation: Orientation.ToOption(), GroupNorm: GroupNorm.ToOption(), FillColor: FillColor.ToOption(), + FillPatternShape: FillPatternShape.ToOption(), + FillPattern: FillPattern.ToOption(), UseWebGL: UseWebGL.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -860,6 +930,8 @@ public static GenericChart SplineArea( /// Sets the stacking direction. Only relevant when `stackgroup` is used, and only the first `orientation` found in the `stackgroup` will be used. /// Sets the normalization for the sum of this `stackgroup. Only relevant when `stackgroup` is used, and only the first `groupnorm` found in the `stackgroup` will be used /// ets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. + /// Sets a pattern shape for the area fill + /// Sets the pattern within the area. (use this for more finegrained control than the other fillpattern-associated arguments). /// If true, plotly.js will use the WebGL engine to render this chart. use this when you want to render many objects at once. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart StackedArea( @@ -888,6 +960,8 @@ public static GenericChart StackedArea( Optional Orientation = default, Optional GroupNorm = default, Optional FillColor = default, + Optional FillPatternShape = default, + Optional FillPattern = default, Optional UseWebGL = default, Optional UseDefaults = default ) @@ -921,6 +995,8 @@ public static GenericChart StackedArea( Orientation: Orientation.ToOption(), GroupNorm: GroupNorm.ToOption(), FillColor: FillColor.ToOption(), + FillPatternShape: FillPatternShape.ToOption(), + FillPattern: FillPattern.ToOption(), UseWebGL: UseWebGL.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -1206,6 +1282,7 @@ public static GenericChart Waterfall( /// /// Sets the values that are plotted as the size of each bar. /// Sets the keys associated with each bar. + /// Sets the keys associated with each bar. Use two inner arrays here to plot multicategorial data /// Sets the trace name. The trace name appear as the legend item and on hover /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the Opacity of the trace. @@ -1228,6 +1305,7 @@ public static GenericChart Waterfall( public static GenericChart Bar( IEnumerable values, Optional> Keys = default, + Optional>> MultiKeys = default, Optional Name = default, Optional ShowLegend = default, Optional Opacity = default, @@ -1255,6 +1333,7 @@ public static GenericChart Bar( Plotly.NET.Chart2D.Chart.Bar( values: values, Keys: Keys.ToOption(), + MultiKeys: MultiKeys.ToOption(), Name: Name.ToOption(), ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), @@ -1284,6 +1363,7 @@ public static GenericChart Bar( /// /// Sets the values that are plotted as the size of each bar. /// Sets the keys associated with each bar. + /// Sets the keys associated with each bar. Use two inner arrays here to plot multicategorial data /// Sets the trace name. The trace name appear as the legend item and on hover /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the Opacity of the trace. @@ -1306,6 +1386,7 @@ public static GenericChart Bar( public static GenericChart StackedBar( IEnumerable values, Optional> Keys = default, + Optional>> MultiKeys = default, Optional Name = default, Optional ShowLegend = default, Optional Opacity = default, @@ -1333,6 +1414,7 @@ public static GenericChart StackedBar( Plotly.NET.Chart2D.Chart.StackedBar( values: values, Keys: Keys.ToOption(), + MultiKeys: MultiKeys.ToOption(), Name: Name.ToOption(), ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), @@ -1361,6 +1443,7 @@ public static GenericChart StackedBar( /// /// Sets the values that are plotted as the size of each bar. /// Sets the keys associated with each bar. + /// Sets the keys associated with each bar. Use two inner arrays here to plot multicategorial data /// Sets the trace name. The trace name appear as the legend item and on hover /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the Opacity of the trace. @@ -1383,6 +1466,7 @@ public static GenericChart StackedBar( public static GenericChart Column( IEnumerable values, Optional> Keys = default, + Optional>> MultiKeys = default, Optional Name = default, Optional ShowLegend = default, Optional Opacity = default, @@ -1410,6 +1494,7 @@ public static GenericChart Column( Plotly.NET.Chart2D.Chart.Column( values: values, Keys: Keys.ToOption(), + MultiKeys: MultiKeys.ToOption(), Name: Name.ToOption(), ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), @@ -1431,7 +1516,6 @@ public static GenericChart Column( UseDefaults: UseDefaults.ToOption() ); - /// /// Creates a stacked column chart, with bars plotted vertically. Values with the same key are stacked on top of each other in the Y dimension. /// To create this type of chart, combine multiple of these charts via `Chart.combine`. @@ -1440,6 +1524,7 @@ public static GenericChart Column( /// /// Sets the values that are plotted as the size of each bar. /// Sets the keys associated with each bar. + /// Sets the keys associated with each bar. Use two inner arrays here to plot multicategorial data /// Sets the trace name. The trace name appear as the legend item and on hover /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the Opacity of the trace. @@ -1461,7 +1546,8 @@ public static GenericChart Column( /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart StackedColumn( IEnumerable values, - Optional> Keys = default, + Optional> Keys = default, + Optional>> MultiKeys = default, Optional Name = default, Optional ShowLegend = default, Optional Opacity = default, @@ -1489,6 +1575,7 @@ public static GenericChart StackedColumn( Plotly.NET.Chart2D.Chart.StackedColumn( values: values, Keys: Keys.ToOption(), + MultiKeys: MultiKeys.ToOption(), Name: Name.ToOption(), ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), @@ -1519,13 +1606,16 @@ public static GenericChart StackedColumn( /// The sample data from which statistics are computed is set in `x` for vertically spanning histograms and in `y` for horizontally spanning histograms. Binning options are set `xbins` and `ybins` respectively if no aggregation data is provided. /// /// Sets the sample data to be binned on the x axis. + /// Sets the sample data to be binned on the x axis. Use two inner arrays here to plot multicategorial data /// Sets the sample data to be binned on the y axis. + /// Sets the sample data to be binned on the y axis. Use two inner arrays here to plot multicategorial data /// Sets the orientation of the bars. With "v" ("h"), the value of the each bar spans along the vertical (horizontal). /// Sets the trace name. The trace name appear as the legend item and on hover /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the Opacity of the trace. /// Sets a text associated with each datum /// Sets individual text for each datum + /// Sets the position of text associated with each datum /// Specifies the binning function used for this histogram trace. If "count", the histogram values are computed by counting the number of values lying inside each bin. If "sum", "avg", "min", "max", the histogram values are computed using the sum, the average, the minimum or the maximum of the values lying inside each bin respectively. /// Specifies the type of normalization used for this histogram trace. If "", the span of each bar corresponds to the number of occurrences (i.e. the number of data points lying inside the bins). If "percent" / "probability", the span of each bar corresponds to the percentage / fraction of occurrences with respect to the total number of sample points (here, the sum of all bin HEIGHTS equals 100% / 1). If "density", the span of each bar corresponds to the number of occurrences in a bin divided by the size of the bin interval (here, the sum of all bin AREAS equals the total number of sample points). If "probability density", the area of each bar corresponds to the probability that an event will fall into the corresponding bin (here, the sum of all bin AREAS equals 1). /// Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. @@ -1535,8 +1625,13 @@ public static GenericChart StackedColumn( /// Set a group of histogram traces which will have compatible bin settings. Note that traces on the same subplot and with the same "orientation" under `barmode` "stack", "relative" and "group" are forced into the same bingroup, Using `bingroup`, traces under `barmode` "overlay" and on different axes (of the same axis type) can have compatible bin settings. Note that histogram and histogram2d" trace can share the same `bingroup` /// Sets the binning across the x dimension /// Sets the binning across the y dimension - /// Sets the color of the histogram's bars. - /// Sets the marker for the histogram's bars (use this for more finegrained control than the other marker-associated arguments). + /// Sets the color of the bars + /// Sets the colorscale for the bars. To have an effect, `MarkerColor` must map to color scale values. + /// Sets the color of the bar outlines + /// Sets a pattern shape for all bars + /// Sets an individual pattern shape for each bar + /// Sets the marker pattern (use this for more finegrained control than the other pattern-associated arguments). + /// Sets the marker of this trace. /// Sets the outline of the histogram's bars. /// Sets the x error of this trace. /// Sets the y error of this trace. @@ -1545,13 +1640,16 @@ public static GenericChart StackedColumn( /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Histogram( Optional> X = default, + Optional>> MultiX = default, Optional> Y = default, + Optional>> MultiY = default, Optional Orientation = default, Optional Name = default, Optional ShowLegend = default, Optional Opacity = default, Optional Text = default, Optional> MultiText = default, + Optional TextPosition = default, Optional HistFunc = default, Optional HistNorm = default, Optional AlignmentGroup = default, @@ -1562,6 +1660,11 @@ public static GenericChart Histogram( Optional XBins = default, Optional YBins = default, Optional MarkerColor = default, + Optional MarkerColorScale = default, + Optional MarkerOutline = default, + Optional MarkerPatternShape = default, + Optional> MultiMarkerPatternShape = default, + Optional MarkerPattern = default, Optional Marker = default, Optional Line = default, Optional XError = default, @@ -1576,13 +1679,16 @@ public static GenericChart Histogram( => Plotly.NET.Chart2D.Chart.Histogram( X: X.ToOption(), + MultiX: MultiX.ToOption(), Y: Y.ToOption(), + MultiY: MultiY.ToOption(), Orientation: Orientation.ToOption(), Name: Name.ToOption(), ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), Text: Text.ToOption(), MultiText: MultiText.ToOption(), + TextPosition: TextPosition.ToOption(), HistFunc: HistFunc.ToOption(), HistNorm: HistNorm.ToOption(), AlignmentGroup: AlignmentGroup.ToOption(), @@ -1593,6 +1699,11 @@ public static GenericChart Histogram( XBins: XBins.ToOption(), YBins: YBins.ToOption(), MarkerColor: MarkerColor.ToOption(), + MarkerColorScale: MarkerColorScale.ToOption(), + MarkerOutline: MarkerOutline.ToOption(), + MarkerPatternShape: MarkerPatternShape.ToOption(), + MultiMarkerPatternShape: MultiMarkerPatternShape.ToOption(), + MarkerPattern: MarkerPattern.ToOption(), Marker: Marker.ToOption(), Line: Line.ToOption(), XError: XError.ToOption(), @@ -1685,7 +1796,9 @@ public static GenericChart Histogram2D( /// The sample data from which statistics are computed is set in `x` for vertically spanning boxes and in `y` for horizontally spanning boxes. /// /// Sets the x sample data or coordinates + /// Sets the x sample data or coordinates. Use two inner arrays here to plot multicategorial data /// Sets the y sample data or coordinates + /// Sets the y sample data or coordinates. Use two inner arrays here to plot multicategorial data /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets a text associated with each datum @@ -1707,10 +1820,13 @@ public static GenericChart Histogram2D( /// Determines whether or not notches are drawn. Notches displays a confidence interval around the median. We compute the confidence interval as median +/- 1.57 " IQR / sqrt(N), where IQR is the interquartile range and N is the sample size. If two boxes' notches do not overlap there is 95% confidence their medians differ. See https://sites.google.com/site/davidsstatistics/home/notched-box-plots for more info. Defaults to "false" unless `notchwidth` or `notchspan` is set. /// Sets the width of the notches relative to the box' width. For example, with 0, the notches are as wide as the box(es). /// Sets the method used to compute the sample's Q1 and Q3 quartiles. The "linear" method uses the 25th percentile for Q1 and 75th percentile for Q3 as computed using method #10 (listed on http://www.amstat.org/publications/jse/v14n3/langford.html). The "exclusive" method uses the median to divide the ordered dataset into two halves if the sample is odd, it does not include the median in either half - Q1 is then the median of the lower half and Q3 the median of the upper half. The "inclusive" method also uses the median to divide the ordered dataset into two halves but if the sample is odd, it includes the median in both halves - Q1 is then the median of the lower half and Q3 the median of the upper half. + /// Sets the upper and lower bound for the boxes quartiles means box is drawn between Q1 and Q3 SD means the box is drawn between Mean +- Standard Deviation Argument sdmultiple (default 1) to scale the box size So it could be drawn 1-stddev, 3-stddev etc /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart BoxPlot( - Optional> X = default, - Optional> Y = default, + Optional> X = default, + Optional>> MultiX = default, + Optional> Y = default, + Optional>> MultiY = default, Optional Name = default, Optional ShowLegend = default, Optional Text = default, @@ -1732,7 +1848,8 @@ public static GenericChart BoxPlot( Optional OffsetGroup = default, Optional Notched = default, Optional NotchWidth = default, - Optional QuartileMethod = default, + Optional QuartileMethod = default, + Optional SizeMode = default, Optional UseDefaults = default ) where XType : IConvertible @@ -1741,7 +1858,9 @@ public static GenericChart BoxPlot( => Plotly.NET.Chart2D.Chart.BoxPlot( X: X.ToOption(), + MultiX: MultiX.ToOption(), Y: Y.ToOption(), + MultiY: MultiY.ToOption(), Name: Name.ToOption(), ShowLegend: ShowLegend.ToOption(), Text: Text.ToOption(), @@ -1764,6 +1883,7 @@ public static GenericChart BoxPlot( Notched: Notched.ToOption(), NotchWidth: NotchWidth.ToOption(), QuartileMethod: QuartileMethod.ToOption(), + SizeMode: SizeMode.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -1774,8 +1894,10 @@ public static GenericChart BoxPlot( /// /// In vertical (horizontal) violin plots, statistics are computed using `y` (`x`) values. By supplying an `x` (`y`) array, one violin per distinct x (y) value is drawn If no `x` (`y`) array is provided, a single violin is drawn. That violin position is then positioned with with `name` or with `x0` (`y0`) if provided. /// - /// Sets the x sample data or coordinates. - /// Sets the y sample data or coordinates. + /// Sets the x sample data or coordinates + /// Sets the x sample data or coordinates. Use two inner arrays here to plot multicategorial data + /// Sets the y sample data or coordinates + /// Sets the y sample data or coordinates. Use two inner arrays here to plot multicategorial data /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets a text associated with each datum @@ -1808,7 +1930,9 @@ public static GenericChart BoxPlot( /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Violin( Optional> X = default, + Optional>> MultiX = default, Optional> Y = default, + Optional>> MultiY = default, Optional Name = default, Optional ShowLegend = default, Optional Text = default, @@ -1846,7 +1970,9 @@ public static GenericChart Violin( => Plotly.NET.Chart2D.Chart.Violin( X: X.ToOption(), + MultiX: MultiX.ToOption(), Y: Y.ToOption(), + MultiY: MultiY.ToOption(), Name: Name.ToOption(), ShowLegend: ShowLegend.ToOption(), Text: Text.ToOption(), @@ -1884,8 +2010,10 @@ public static GenericChart Violin( /// /// The sample data from which statistics are computed is set in `x` and `y` (where `x` and `y` represent marginal distributions, binning is set in `xbins` and `ybins` in this case) or `z` (where `z` represent the 2D distribution and binning set, binning is set by `x` and `y` in this case). The resulting distribution is visualized as a contour plot. /// - /// Sets the sample data to be binned on the x axis. - /// Sets the sample data to be binned on the y axis. + /// Sets the sample data to be binned on the x axis. + /// Sets the sample data to be binned on the x axis. Use two inner arrays here to plot multicategorial data + /// Sets the sample data to be binned on the y axis. + /// Sets the sample data to be binned on the y axis. Use two inner arrays here to plot multicategorial data /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the Opacity otf the trace. @@ -1900,20 +2028,31 @@ public static GenericChart Violin( /// Set a group of histogram traces which will have compatible y-bin settings. Using `ybingroup`, histogram2d and histogram2dcontour traces (on axes of the same axis type) can have compatible y-bin settings. Note that the same `ybingroup` value can be used to set (1D) histogram `bingroup` /// Sets the binning across the y dimension /// Sets the marker of this trace. - /// Sets the contour line dash style - /// Sets the contour line color - /// Sets the amount of smoothing for the contour lines, where "0" corresponds to no smoothing. - /// Sets the contour lines (use this for more finegrained control than the other contourline-associated arguments). + /// Sets the contour line dash style + /// Sets the contour line color + /// Sets the amount of smoothing for the contour lines, where "0" corresponds to no smoothing. + /// Sets the width of the contour lines + /// Sets the contour lines (use this for more finegrained control than the other contourline-associated arguments). + /// Wether or not to show the contour line + /// Determines the coloring method showing the contour values. If "fill", coloring is done evenly between each contour level If "heatmap", a heatmap gradient coloring is applied between each contour level. If "lines", coloring is done on the contour lines. If "none", no coloring is applied on this trace. + /// Sets the constraint operation. "=" keeps regions equal to `value` "<" and "<=" keep regions less than `value` ">" and ">=" keep regions greater than `value` "[]", "()", "[)", and "(]" keep regions inside `value[0]` to `value[1]` "][", ")(", "](", ")[" keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms. + /// If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters. + /// Determines whether to label the contour lines with their values. + /// Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`. + /// Sets the starting contour level value. Must be less than `contours.end` + /// Sets the end contour level value. Must be more than `contours.start` + /// Sets the styles of the contours (use this for more finegrained control than the other contour-associated arguments). /// Sets the styles of the colorbar for this trace. /// Sets the colorscale for this trace. /// Whether or not to show the colorscale/colorbar /// Reverses the color mapping if true. If true, `zmin` will correspond to the last color in the array and `zmax` will correspond to the first color. - /// Sets the style of the contours /// Sets the maximum number of contour levels. The actual number of contours will be chosen automatically to be less than or equal to the value of `ncontours`. Has an effect only if `autocontour` is "true" or if `contours.size` is missing. /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Histogram2DContour( - IEnumerable x, - IEnumerable y, + Optional> X, + Optional>> MultiX, + Optional> Y, + Optional>> MultiY, Optional Name = default, Optional ShowLegend = default, Optional Opacity = default, @@ -1928,15 +2067,24 @@ public static GenericChart Histogram2DContour( Optional YBinGroup = default, Optional YBins = default, Optional Marker = default, - Optional ContourLineColor = default, - Optional ContourLineDash = default, - Optional ContourLineSmoothing = default, - Optional ContourLine = default, + Optional ContourLinesDash = default, + Optional ContourLinesColor = default, + Optional ContourLinesSmoothing = default, + Optional ContourLinesWidth = default, + Optional ContourLines = default, + Optional ShowContourLines = default, + Optional ContoursColoring = default, + Optional ContoursOperation = default, + Optional ContoursType = default, + Optional ShowContoursLabels = default, + Optional ContourLabelFont = default, + Optional ContoursStart = default, + Optional ContoursEnd = default, + Optional Contours = default, Optional ColorBar = default, Optional ColorScale = default, Optional ShowScale = default, Optional ReverseScale = default, - Optional Contours = default, Optional NContours = default, Optional UseDefaults = default ) @@ -1945,8 +2093,10 @@ public static GenericChart Histogram2DContour( where ZType : IConvertible => Plotly.NET.Chart2D.Chart.Histogram2DContour, ZType>( - x: x, - y: y, + X: X.ToOption(), + MultiX: MultiX.ToOption(), + Y: Y.ToOption(), + MultiY: MultiY.ToOption(), Name: Name.ToOption(), ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), @@ -1961,15 +2111,24 @@ public static GenericChart Histogram2DContour( YBinGroup: YBinGroup.ToOption(), YBins: YBins.ToOption(), Marker: Marker.ToOption(), - ContourLinesColor: ContourLineColor.ToOption(), - ContourLinesDash: ContourLineDash.ToOption(), - ContourLinesSmoothing: ContourLineSmoothing.ToOption(), - ContourLines: ContourLine.ToOption(), + ContourLinesDash: ContourLinesDash.ToOption(), + ContourLinesColor: ContourLinesColor.ToOption(), + ContourLinesSmoothing: ContourLinesSmoothing.ToOption(), + ContourLinesWidth: ContourLinesWidth.ToOption(), + ContourLines: ContourLines.ToOption(), + ShowContourLines: ShowContourLines.ToOption(), + ContoursColoring: ContoursColoring.ToOption(), + ContoursOperation: ContoursOperation.ToOption(), + ContoursType: ContoursType.ToOption(), + ShowContoursLabels: ShowContoursLabels.ToOption(), + ContoursLabelFont: ContourLabelFont.ToOption(), + ContoursStart: ContoursStart.ToOption(), + ContoursEnd: ContoursEnd.ToOption(), + Contours: Contours.ToOption(), ColorBar: ColorBar.ToOption(), ColorScale: ColorScale.ToOption(), ShowScale: ShowScale.ToOption(), ReverseScale: ReverseScale.ToOption(), - Contours: Contours.ToOption(), NContours: NContours.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -1980,12 +2139,14 @@ public static GenericChart Histogram2DContour( /// A heatmap is a data visualization technique that shows magnitude of a phenomenon as color in two dimensions. /// /// Sets the 2-dimensional z data, which will be visualized with the color scale. + /// Sets the x coordinates + /// Sets the x coordinates. Use two inner arrays here to plot multicategorial data + /// Sets the y coordinates + /// Sets the y coordinates. Use two inner arrays here to plot multicategorial data /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the Opacity otf the trace. - /// Sets the x coordinates. /// Sets the horizontal gap (in pixels) between bricks. - /// Sets the y coordinates. /// Sets the vertical gap (in pixels) between bricks. /// Sets a text associated with each datum /// Sets individual text for each datum @@ -2000,12 +2161,14 @@ public static GenericChart Histogram2DContour( /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Heatmap( IEnumerable> zData, + Optional> X = default, + Optional>> MultiX = default, + Optional> Y = default, + Optional>> MultiY = default, Optional Name = default, Optional ShowLegend = default, Optional Opacity = default, - Optional> X = default, Optional XGap = default, - Optional> Y = default, Optional YGap = default, Optional Text = default, Optional> MultiText = default, @@ -2026,12 +2189,14 @@ public static GenericChart Heatmap( => Plotly.NET.Chart2D.Chart.Heatmap, ZType, XType, YType, TextType>( zData: zData, + X: X.ToOption(), + MultiX: MultiX.ToOption(), + Y: Y.ToOption(), + MultiY: MultiY.ToOption(), Name: Name.ToOption(), ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), - X: X.ToOption(), XGap: XGap.ToOption(), - Y: Y.ToOption(), YGap: YGap.ToOption(), Text: Text.ToOption(), MultiText: MultiText.ToOption(), @@ -2059,8 +2224,10 @@ public static GenericChart Heatmap( /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the Opacity otf the trace. /// Sets the x coordinates. + /// Sets the x coordinates. Use two inner arrays here to plot multicategorial data /// Sets the horizontal gap (in pixels) between bricks. /// Sets the y coordinates. + /// Sets the y coordinates. Use two inner arrays here to plot multicategorial data /// Sets the vertical gap (in pixels) between bricks. /// Sets a text associated with each datum /// Sets individual text for each datum @@ -2080,8 +2247,10 @@ public static GenericChart AnnotatedHeatmap( Optional ShowLegend = default, Optional Opacity = default, Optional> X = default, + Optional>> MultiX = default, Optional XGap = default, Optional> Y = default, + Optional>> MultiY = default, Optional YGap = default, Optional Text = default, Optional> MultiText = default, @@ -2107,8 +2276,10 @@ public static GenericChart AnnotatedHeatmap( ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), X: X.ToOption(), + MultiX: MultiX.ToOption(), XGap: XGap.ToOption(), Y: Y.ToOption(), + MultiY: MultiY.ToOption(), YGap: YGap.ToOption(), Text: Text.ToOption(), MultiText: MultiText.ToOption(), @@ -2178,7 +2349,9 @@ public static GenericChart Image( /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the Opacity otf the trace. /// Sets the x coordinates. + /// Sets the x coordinates. Use two inner arrays here to plot multicategorial data /// Sets the y coordinates. + /// Sets the y coordinates. Use two inner arrays here to plot multicategorial data /// Sets a text associated with each datum /// Sets individual text for each datum /// Sets the styles of the colorbar for this trace. @@ -2186,15 +2359,19 @@ public static GenericChart Image( /// Whether or not to show the colorscale/colorbar /// Reverses the color mapping if true. If true, `zmin` will correspond to the last color in the array and `zmax` will correspond to the first color. /// Transposes the z data. - /// Sets the contour line dash style - /// Sets the contour line color - /// Sets the amount of smoothing for the contour lines, where "0" corresponds to no smoothing. - /// Sets the contour lines (use this for more finegrained control than the other contourline-associated arguments). + /// Sets the contour line dash style + /// Sets the contour line color + /// Sets the amount of smoothing for the contour lines, where "0" corresponds to no smoothing. + /// Sets the width of the contour lines + /// Sets the contour lines (use this for more finegrained control than the other contourline-associated arguments). + /// Wether or not to show the contour line /// Determines the coloring method showing the contour values. If "fill", coloring is done evenly between each contour level If "heatmap", a heatmap gradient coloring is applied between each contour level. If "lines", coloring is done on the contour lines. If "none", no coloring is applied on this trace. /// Sets the constraint operation. "=" keeps regions equal to `value` "<" and "<=" keep regions less than `value` ">" and ">=" keep regions greater than `value` "[]", "()", "[)", and "(]" keep regions inside `value[0]` to `value[1]` "][", ")(", "](", ")[" keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms. /// If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters. - /// Determines whether to label the contour lines with their values. + /// Determines whether to label the contour lines with their values. /// Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`. + /// Sets the starting contour level value. Must be less than `contours.end` + /// Sets the end contour level value. Must be more than `contours.start` /// Sets the styles of the contours (use this for more finegrained control than the other contour-associated arguments). /// Sets the fill color if `contours.type` is "constraint". Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. /// Sets the maximum number of contour levels. The actual number of contours will be chosen automatically to be less than or equal to the value of `ncontours`. Has an effect only if `autocontour` is "true" or if `contours.size` is missing. @@ -2204,25 +2381,31 @@ public static GenericChart Contour( Optional Name = default, Optional ShowLegend = default, Optional Opacity = default, - Optional> X = default, - Optional> Y = default, + Optional> X = default, + Optional>> MultiX = default, + Optional> Y = default, + Optional>> MultiY = default, Optional Text = default, Optional> MultiText = default, Optional ColorBar = default, Optional ColorScale = default, Optional ShowScale = default, Optional ReverseScale = default, - Optional Transpose = default, - Optional ContourLineColor = default, - Optional ContourLineDash = default, - Optional ContourLineSmoothing = default, - Optional ContourLine = default, - Optional ContoursColoring = default, - Optional ContoursOperation = default, - Optional ContoursType = default, - Optional ShowContourLabels = default, - Optional ContourLabelFont = default, - Optional Contours = default, + Optional Transpose = default, + Optional ContourLinesDash = default, + Optional ContourLinesColor = default, + Optional ContourLinesSmoothing = default, + Optional ContourLinesWidth = default, + Optional ContourLines = default, + Optional ShowContourLines = default, + Optional ContoursColoring = default, + Optional ContoursOperation = default, + Optional ContoursType = default, + Optional ShowContoursLabels = default, + Optional ContourLabelFont = default, + Optional ContoursStart = default, + Optional ContoursEnd = default, + Optional Contours = default, Optional FillColor = default, Optional NContours = default, Optional UseDefaults = default @@ -2238,7 +2421,9 @@ public static GenericChart Contour( ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), X: X.ToOption(), + MultiX: MultiX.ToOption(), Y: Y.ToOption(), + MultiY: MultiY.ToOption(), Text: Text.ToOption(), MultiText: MultiText.ToOption(), ColorBar: ColorBar.ToOption(), @@ -2246,15 +2431,19 @@ public static GenericChart Contour( ShowScale: ShowScale.ToOption(), ReverseScale: ReverseScale.ToOption(), Transpose: Transpose.ToOption(), - ContourLinesColor: ContourLineColor.ToOption(), - ContourLinesDash: ContourLineDash.ToOption(), - ContourLinesSmoothing: ContourLineSmoothing.ToOption(), - ContourLines: ContourLine.ToOption(), + ContourLinesDash: ContourLinesDash.ToOption(), + ContourLinesColor: ContourLinesColor.ToOption(), + ContourLinesSmoothing: ContourLinesSmoothing.ToOption(), + ContourLinesWidth: ContourLinesWidth.ToOption(), + ContourLines: ContourLines.ToOption(), + ShowContourLines: ShowContourLines.ToOption(), ContoursColoring: ContoursColoring.ToOption(), ContoursOperation: ContoursOperation.ToOption(), ContoursType: ContoursType.ToOption(), - ShowContoursLabels: ShowContourLabels.ToOption(), + ShowContoursLabels: ShowContoursLabels.ToOption(), ContoursLabelFont: ContourLabelFont.ToOption(), + ContoursStart: ContoursStart.ToOption(), + ContoursEnd: ContoursEnd.ToOption(), Contours: Contours.ToOption(), FillColor: FillColor.ToOption(), NContours: NContours.ToOption(), @@ -2271,7 +2460,8 @@ public static GenericChart Contour( /// Sets the high values. /// Sets the low values. /// Sets the close values. - /// Sets the x coordinates. If absent, linear coordinate will be generated. + /// Sets the x coordinates. If absent, linear coordinate will be generated. + /// Sets the x coordinates. If absent, linear coordinate will be generated. Use two inner arrays here to plot multicategorial data /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the Opacity otf the trace. @@ -2283,13 +2473,15 @@ public static GenericChart Contour( /// Sets the color of decreasing values /// Sets the style options of decreasing values (use this for more finegrained control than the other increasing-associated arguments). /// Sets the width of the open/close tick marks relative to the "x" minimal interval. + /// Whether or not to show a rangeslider for the xaxis /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart OHLC( IEnumerable open, IEnumerable high, IEnumerable low, IEnumerable close, - IEnumerable x, + Optional> X, + Optional>> MultiX, Optional Name = default, Optional ShowLegend = default, Optional Opacity = default, @@ -2301,6 +2493,7 @@ public static GenericChart OHLC( Optional DecreasingColor = default, Optional Decreasing = default, Optional TickWidth = default, + Optional ShowXAxisRangeSlider = default, Optional UseDefaults = default ) where OHLCType : IConvertible @@ -2312,7 +2505,8 @@ public static GenericChart OHLC( high: high, low: low, close: close, - x: x, + X: X.ToOption(), + MultiX: MultiX.ToOption(), Name: Name.ToOption(), ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), @@ -2324,6 +2518,7 @@ public static GenericChart OHLC( DecreasingColor: DecreasingColor.ToOption(), Decreasing: Decreasing.ToOption(), TickWidth: TickWidth.ToOption(), + ShowXAxisRangeSlider: ShowXAxisRangeSlider.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -2336,7 +2531,8 @@ public static GenericChart OHLC( /// Sets the high values. /// Sets the low values. /// Sets the close values. - /// Sets the x coordinates. If absent, linear coordinate will be generated. + /// Sets the x coordinates. If absent, linear coordinate will be generated. + /// Sets the x coordinates. If absent, linear coordinate will be generated. Use two inner arrays here to plot multicategorial data /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the Opacity otf the trace. @@ -2348,13 +2544,15 @@ public static GenericChart OHLC( /// Sets the color of decreasing values /// Sets the style options of decreasing values (use this for more finegrained control than the other increasing-associated arguments). /// Sets the width of the whiskers relative to the box' width. For example, with 1, the whiskers are as wide as the box(es). + /// Whether or not to show a rangeslider for the xaxis /// If set to false, ignore the global default settings set in `Defaults` public static GenericChart Candlestick( IEnumerable open, IEnumerable high, IEnumerable low, IEnumerable close, - IEnumerable x, + Optional> X, + Optional>> MultiX, Optional Name = default, Optional ShowLegend = default, Optional Opacity = default, @@ -2366,6 +2564,7 @@ public static GenericChart Candlestick( Optional DecreasingColor = default, Optional Decreasing = default, Optional WhiskerWidth = default, + Optional ShowXAxisRangeSlider = default, Optional UseDefaults = default ) where OHLCType : IConvertible @@ -2377,7 +2576,8 @@ public static GenericChart Candlestick( high: high, low: low, close: close, - x: x, + X: X.ToOption(), + MultiX: MultiX.ToOption(), Name: Name.ToOption(), ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), @@ -2389,6 +2589,7 @@ public static GenericChart Candlestick( DecreasingColor: DecreasingColor.ToOption(), Decreasing: Decreasing.ToOption(), WhiskerWidth: WhiskerWidth.ToOption(), + ShowXAxisRangeSlider: ShowXAxisRangeSlider.ToOption(), UseDefaults: UseDefaults.ToOption() ); @@ -2468,12 +2669,20 @@ public static GenericChart Splom( /// Sets the marker color of the point trace. /// Sets the marker symbol of the point trace. /// Sets the marker size of the point trace. - /// Sets the color of the contour lines of the histogram2dcontour trace. - /// Sets the smoothing of the contour lines of the histogram2dcontour trace. - /// Sets the width of the contour lines of the histogram2dcontour trace. - /// Whether or not to show contour lines - /// Whether or not to show contour labels - /// Determines the coloring method showing the contour values. If "fill", coloring is done evenly between each contour level If "heatmap", a heatmap gradient coloring is applied between each contour level. If "lines", coloring is done on the contour lines. If "none", no coloring is applied on this trace. + /// Sets the contour line dash style + /// Sets the contour line color + /// Sets the amount of smoothing for the contour lines, where "0" corresponds to no smoothing. + /// Sets the width of the contour lines + /// Sets the contour lines (use this for more finegrained control than the other contourline-associated arguments). + /// Wether or not to show the contour line + /// Determines the coloring method showing the contour values. If "fill", coloring is done evenly between each contour level If "heatmap", a heatmap gradient coloring is applied between each contour level. If "lines", coloring is done on the contour lines. If "none", no coloring is applied on this trace. + /// Sets the constraint operation. "=" keeps regions equal to `value` "<" and "<=" keep regions less than `value` ">" and ">=" keep regions greater than `value` "[]", "()", "[)", and "(]" keep regions inside `value[0]` to `value[1]` "][", ")(", "](", ")[" keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms. + /// If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters. + /// Determines whether to label the contour lines with their values. + /// Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`. + /// Sets the starting contour level value. Must be less than `contours.end` + /// Sets the end contour level value. Must be more than `contours.start` + /// Sets the styles of the contours (use this for more finegrained control than the other contour-associated arguments). /// Sets the maximum number of contour levels. The actual number of contours will be chosen automatically to be less than or equal to the value of `ncontours`. Has an effect only if `autocontour` is "true" or if `contours.size` is missing. /// Specifies the type of normalization used for this histogram trace. If "", the span of each bar corresponds to the number of occurrences (i.e. the number of data points lying inside the bins). If "percent" / "probability", the span of each bar corresponds to the percentage / fraction of occurrences with respect to the total number of sample points (here, the sum of all bin HEIGHTS equals 100% / 1). If "density", the span of each bar corresponds to the number of occurrences in a bin divided by the size of the bin interval (here, the sum of all bin AREAS equals the total number of sample points). If "probability density", the area of each bar corresponds to the probability that an event will fall into the corresponding bin (here, the sum of all bin AREAS equals 1). /// Sets the opacity of the histogram2dcontour trace. @@ -2487,16 +2696,24 @@ public static GenericChart PointDensity( Optional PointOpacity = default, Optional PointMarkerColor = default, Optional PointMarkerSymbol = default, - Optional PointMarkerSize = default, - Optional ContourLineColor = default, - Optional ContourLineSmoothing = default, - Optional ContourLineWidth = default, - Optional ShowContourLines = default, - Optional ShowContourLabels = default, - Optional ContourColoring = default, - Optional NContours = default, - Optional HistNorm = default, - Optional ContourOpacity = default, + Optional PointMarkerSize = default, + Optional ContourLinesDash = default, + Optional ContourLinesColor = default, + Optional ContourLinesSmoothing = default, + Optional ContourLinesWidth = default, + Optional ContourLines = default, + Optional ShowContourLines = default, + Optional ContoursColoring = default, + Optional ContoursOperation = default, + Optional ContoursType = default, + Optional ShowContoursLabels = default, + Optional ContourLabelFont = default, + Optional ContoursStart = default, + Optional ContoursEnd = default, + Optional Contours = default, + Optional NContours = default, + Optional HistNorm = default, + Optional ContourOpacity = default, Optional ColorBar = default, Optional ColorScale = default, Optional ShowScale = default, @@ -2512,12 +2729,20 @@ public static GenericChart PointDensity( PointMarkerColor: PointMarkerColor.ToOption(), PointMarkerSymbol: PointMarkerSymbol.ToOption(), PointMarkerSize: PointMarkerSize.ToOption(), - ContourLinesColor: ContourLineColor.ToOption(), - ContourLinesSmoothing: ContourLineSmoothing.ToOption(), - ContourLinesWidth: ContourLineWidth.ToOption(), + ContourLinesDash: ContourLinesDash.ToOption(), + ContourLinesColor: ContourLinesColor.ToOption(), + ContourLinesSmoothing: ContourLinesSmoothing.ToOption(), + ContourLinesWidth: ContourLinesWidth.ToOption(), + ContourLines: ContourLines.ToOption(), ShowContourLines: ShowContourLines.ToOption(), - ShowContoursLabels: ShowContourLabels.ToOption(), - ContoursColoring: ContourColoring.ToOption(), + ContoursColoring: ContoursColoring.ToOption(), + ContoursOperation: ContoursOperation.ToOption(), + ContoursType: ContoursType.ToOption(), + ShowContoursLabels: ShowContoursLabels.ToOption(), + ContoursLabelFont: ContourLabelFont.ToOption(), + ContoursStart: ContoursStart.ToOption(), + ContoursEnd: ContoursEnd.ToOption(), + Contours: Contours.ToOption(), NContours: NContours.ToOption(), HistNorm: HistNorm.ToOption(), ContourOpacity: ContourOpacity.ToOption(), diff --git a/src/Plotly.NET.CSharp/ChartAPI/ChartDomain.cs b/src/Plotly.NET.CSharp/ChartAPI/ChartDomain.cs index 354e756ef..1d3a0e2b7 100644 --- a/src/Plotly.NET.CSharp/ChartAPI/ChartDomain.cs +++ b/src/Plotly.NET.CSharp/ChartAPI/ChartDomain.cs @@ -34,7 +34,10 @@ public static partial class Chart /// Sets the width of the section outline. /// Sets the width of each individual section outline. /// Sets the section outline (use this for more finegrained control than the other section outline-associated arguments). - /// Sets the marker of this trace. + /// Sets a pattern shape for all sections + /// Sets an individual pattern shape for each bar + /// Sets the marker pattern (use this for more finegrained control than the other pattern-associated arguments). + /// Sets the marker for the sections (use this for more finegrained control than the other marker-associated arguments). /// Determines which trace information appear on the graph. /// Specifies the direction at which succeeding sectors follow one another. /// Sets the fraction of the radius to cut out of the pie. Use this to make a donut chart. @@ -59,6 +62,9 @@ public static GenericChart Pie( Optional SectionOutlineWidth = default, Optional> SectionOutlineMultiWidth = default, Optional SectionOutline = default, + Optional MarkerPatternShape = default, + Optional> MultiMarkerPatternShape = default, + Optional MarkerPattern = default, Optional Marker = default, Optional TextInfo = default, Optional Direction = default, @@ -89,6 +95,9 @@ public static GenericChart Pie( SectionOutlineWidth: SectionOutlineWidth.ToOption(), SectionOutlineMultiWidth: SectionOutlineMultiWidth.ToOption(), SectionOutline: SectionOutline.ToOption(), + MarkerPatternShape: MarkerPatternShape.ToOption(), + MultiMarkerPatternShape: MultiMarkerPatternShape.ToOption(), + MarkerPattern: MarkerPattern.ToOption(), Marker: Marker.ToOption(), TextInfo: TextInfo.ToOption(), Direction: Direction.ToOption(), @@ -121,7 +130,10 @@ public static GenericChart Pie( /// Sets the width of the section outline. /// Sets the width of each individual section outline. /// Sets the section outline (use this for more finegrained control than the other section outline-associated arguments). - /// Sets the marker of this trace. + /// Sets a pattern shape for all sections + /// Sets an individual pattern shape for each section + /// Sets the marker pattern (use this for more finegrained control than the other pattern-associated arguments). + /// Sets the marker for the sections (use this for more finegrained control than the other marker-associated arguments). /// Determines which trace information appear on the graph. /// Specifies the direction at which succeeding sectors follow one another. /// Instead of the first slice starting at 12 o'clock, rotate to some other angle. @@ -145,6 +157,9 @@ public static GenericChart Doughnut( Optional SectionOutlineWidth = default, Optional> SectionOutlineMultiWidth = default, Optional SectionOutline = default, + Optional MarkerPatternShape = default, + Optional> MultiMarkerPatternShape = default, + Optional MarkerPattern = default, Optional Marker = default, Optional TextInfo = default, Optional Direction = default, @@ -175,6 +190,9 @@ public static GenericChart Doughnut( SectionOutlineWidth: SectionOutlineWidth.ToOption(), SectionOutlineMultiWidth: SectionOutlineMultiWidth.ToOption(), SectionOutline: SectionOutline.ToOption(), + MarkerPatternShape: MarkerPatternShape.ToOption(), + MultiMarkerPatternShape: MultiMarkerPatternShape.ToOption(), + MarkerPattern: MarkerPattern.ToOption(), Marker: Marker.ToOption(), TextInfo: TextInfo.ToOption(), Direction: Direction.ToOption(), @@ -205,7 +223,10 @@ public static GenericChart Doughnut( /// Sets the width of the section outline. /// Sets the width of each individual section outline. /// Sets the section outline (use this for more finegrained control than the other section outline-associated arguments). - /// Sets the marker of this trace. + /// Sets a pattern shape for all sections + /// Sets an individual pattern shape for each section + /// Sets the marker pattern (use this for more finegrained control than the other pattern-associated arguments). + /// Sets the marker for the sections (use this for more finegrained control than the other marker-associated arguments). /// Determines which trace information appear on the graph. /// /// @@ -225,7 +246,10 @@ public static GenericChart FunnelArea( Optional SectionOutlineColor = default, Optional SectionOutlineWidth = default, Optional> SectionOutlineMultiWidth = default, - Optional SectionOutline = default, + Optional SectionOutline = default, + Optional MarkerPatternShape = default, + Optional> MultiMarkerPatternShape = default, + Optional MarkerPattern = default, Optional Marker = default, Optional TextInfo = default, Optional AspectRatio = default, @@ -252,6 +276,9 @@ public static GenericChart FunnelArea( SectionOutlineWidth: SectionOutlineWidth.ToOption(), SectionOutlineMultiWidth: SectionOutlineMultiWidth.ToOption(), SectionOutline: SectionOutline.ToOption(), + MarkerPatternShape: MarkerPatternShape.ToOption(), + MultiMarkerPatternShape: MultiMarkerPatternShape.ToOption(), + MarkerPattern: MarkerPattern.ToOption(), Marker: Marker.ToOption(), TextInfo: TextInfo.ToOption(), AspectRatio: AspectRatio.ToOption(), @@ -282,7 +309,10 @@ public static GenericChart FunnelArea( /// Sets the width of the section outline. /// Sets the width of each individual section outline. /// Sets the section outline (use this for more finegrained control than the other section outline-associated arguments). - /// Sets the marker of this trace. + /// Sets a pattern shape for all sections + /// Sets an individual pattern shape for each section + /// Sets the marker pattern (use this for more finegrained control than the other pattern-associated arguments). + /// Sets the marker for the sections (use this for more finegrained control than the other marker-associated arguments). /// Determines which trace information appear on the graph. /// Determines how the items in `values` are summed. When set to "total", items in `values` are taken to be value of all its descendants. When set to "remainder", items in `values` corresponding to the root and the branches sectors are taken to be the extra part not part of the sum of the values at their leaves. /// Determines default for `values` when it is not provided, by inferring a 1 for each of the "leaves" and/or "branches", otherwise 0. @@ -312,6 +342,9 @@ public static GenericChart Sunburst SectionOutlineWidth = default, Optional> SectionOutlineMultiWidth = default, Optional SectionOutline = default, + Optional MarkerPatternShape = default, + Optional> MultiMarkerPatternShape = default, + Optional MarkerPattern = default, Optional Marker = default, Optional TextInfo = default, Optional BranchValues = default, @@ -349,6 +382,9 @@ public static GenericChart SunburstSets the width of the section outline. /// Sets the width of each individual section outline. /// Sets the section outline (use this for more finegrained control than the other section outline-associated arguments). - /// Sets the marker of this trace. + /// Sets a pattern shape for all sections + /// Sets an individual pattern shape for each section + /// Sets the marker pattern (use this for more finegrained control than the other pattern-associated arguments). + /// Sets the marker for the sections (use this for more finegrained control than the other marker-associated arguments). /// Determines which trace information appear on the graph. /// Determines how the items in `values` are summed. When set to "total", items in `values` are taken to be value of all its descendants. When set to "remainder", items in `values` corresponding to the root and the branches sectors are taken to be the extra part not part of the sum of the values at their leaves. /// Determines default for `values` when it is not provided, by inferring a 1 for each of the "leaves" and/or "branches", otherwise 0. @@ -420,6 +459,9 @@ public static GenericChart Treemap SectionOutlineWidth = default, Optional> SectionOutlineMultiWidth = default, Optional SectionOutline = default, + Optional MarkerPatternShape = default, + Optional> MultiMarkerPatternShape = default, + Optional MarkerPattern = default, Optional Marker = default, Optional TextInfo = default, Optional BranchValues = default, @@ -448,6 +490,8 @@ public static GenericChart Treemap( /// Sets the width of the section outline. /// Sets the width of each individual section outline. /// Sets the section outline (use this for more finegrained control than the other section outline-associated arguments). - /// Sets the marker of this trace. + /// Sets a pattern shape for all sections + /// Sets an individual pattern shape for each section + /// Sets the marker pattern (use this for more finegrained control than the other pattern-associated arguments). + /// Sets the marker for the sections (use this for more finegrained control than the other marker-associated arguments). /// Determines how the items in `values` are summed. When set to "total", items in `values` are taken to be value of all its descendants. When set to "remainder", items in `values` corresponding to the root and the branches sectors are taken to be the extra part not part of the sum of the values at their leaves. /// Determines default for `values` when it is not provided, by inferring a 1 for each of the "leaves" and/or "branches", otherwise 0. /// Sets the orientation of the tiling. @@ -774,6 +824,9 @@ public static GenericChart Icicle SectionOutlineWidth = default, Optional> SectionOutlineMultiWidth = default, Optional SectionOutline = default, + Optional MarkerPatternShape = default, + Optional> MultiMarkerPatternShape = default, + Optional MarkerPattern = default, Optional Marker = default, Optional TextInfo = default, Optional BranchValues = default, @@ -804,6 +857,8 @@ public static GenericChart Icicle( /// Sets the longitude coordinates (in degrees East). /// Sets the latitude coordinates (in degrees North). /// Determines the drawing mode for this scatter trace. + /// Sets the base mapbox layer. Default is `OpenStreetMap`. Note that you will need an access token for some Mapbox presets. /// Sets the trace name. The trace name appear as the legend item and on hover /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the opactity of the trace @@ -443,6 +445,7 @@ public static GenericChart ScatterMapbox longitudes, IEnumerable latitudes, StyleParam.Mode mode, + Optional MapboxStyle = default, Optional Name = default, Optional ShowLegend = default, Optional Opacity = default, @@ -475,6 +478,7 @@ public static GenericChart ScatterMapboxSets the longitude coordinates (in degrees East). /// Sets the latitude coordinates (in degrees North). /// Sets the trace name. The trace name appear as the legend item and on hover + /// Sets the base mapbox layer. Default is `OpenStreetMap`. Note that you will need an access token for some Mapbox presets. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the opactity of the trace /// Sets the opactity of individual datum markers @@ -531,6 +536,7 @@ public static GenericChart PointMapbox( IEnumerable longitudes, IEnumerable latitudes, Optional Name = default, + Optional MapboxStyle = default, Optional ShowLegend = default, Optional Opacity = default, Optional> MultiOpacity = default, @@ -557,6 +563,7 @@ public static GenericChart PointMapbox( longitudes: longitudes, latitudes: latitudes, Name: Name.ToOption(), + MapboxStyle: MapboxStyle.ToOption(), ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), MultiOpacity: MultiOpacity.ToOption(), @@ -587,6 +594,7 @@ public static GenericChart PointMapbox( /// Sets the latitude coordinates (in degrees North). /// /// Sets the trace name. The trace name appear as the legend item and on hover + /// Sets the base mapbox layer. Default is `OpenStreetMap`. Note that you will need an access token for some Mapbox presets. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the opactity of the trace /// Sets the opactity of individual datum markers @@ -612,6 +620,7 @@ public static GenericChart LineMapbox( IEnumerable latitudes, Optional ShowMarkers = default, Optional Name = default, + Optional MapboxStyle = default, Optional ShowLegend = default, Optional Opacity = default, Optional> MultiOpacity = default, @@ -642,6 +651,7 @@ public static GenericChart LineMapbox( latitudes: latitudes, ShowMarkers: ShowMarkers.ToOption(), Name: Name.ToOption(), + MapboxStyle: MapboxStyle.ToOption(), ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), MultiOpacity: MultiOpacity.ToOption(), @@ -675,6 +685,7 @@ public static GenericChart LineMapbox( /// Sets the latitude coordinates (in degrees North). /// Sets the size of the points. /// Sets the trace name. The trace name appear as the legend item and on hover + /// Sets the base mapbox layer. Default is `OpenStreetMap`. Note that you will need an access token for some Mapbox presets. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the opactity of the trace /// Sets the opactity of individual datum markers @@ -695,6 +706,7 @@ public static GenericChart BubbleMapbox IEnumerable latitudes, IEnumerable sizes, Optional Name = default, + Optional MapboxStyle = default, Optional ShowLegend = default, Optional Opacity = default, Optional> MultiOpacity = default, @@ -720,6 +732,7 @@ public static GenericChart BubbleMapbox latitudes: latitudes, sizes: sizes, Name: Name.ToOption(), + MapboxStyle: MapboxStyle.ToOption(), ShowLegend: ShowLegend.ToOption(), Opacity: Opacity.ToOption(), MultiOpacity: MultiOpacity.ToOption(), @@ -752,6 +765,7 @@ public static GenericChart BubbleMapbox /// The color values for each location /// Sets the GeoJSON data associated with this trace. It can be set as a valid GeoJSON object or as a URL string. Note that we only accept GeoJSONs of type "FeatureCollection" or "Feature" with geometries of type "Polygon" or "MultiPolygon". /// Sets the trace name. The trace name appear as the legend item and on hover. + /// Sets the base mapbox layer. Default is `OpenStreetMap`. Note that you will need an access token for some Mapbox presets. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the key in GeoJSON features which is used as id to match the items included in the `locations` array. Support nested property, for example "properties.name". /// Sets a text associated with each datum @@ -767,6 +781,7 @@ public static GenericChart ChoroplethMapbox( IEnumerable z, object geoJson, Optional Name = default, + Optional MapboxStyle = default, Optional ShowLegend = default, Optional FeatureIdKey = default, Optional Text = default, @@ -785,6 +800,7 @@ public static GenericChart ChoroplethMapbox( locations: locations, z: z, Name: Name.ToOption(), + MapboxStyle: MapboxStyle.ToOption(), ShowLegend: ShowLegend.ToOption(), geoJson: geoJson, FeatureIdKey: FeatureIdKey.ToOption(), @@ -808,6 +824,7 @@ public static GenericChart ChoroplethMapbox( /// Sets the longitude coordinates (in degrees East). /// Sets the latitude coordinates (in degrees North). /// Sets the trace name. The trace name appear as the legend item and on hover. + /// Sets the base mapbox layer. Default is `OpenStreetMap`. Note that you will need an access token for some Mapbox presets. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the opacity of the trace /// Sets the points' weight. For example, a value of 10 would be equivalent to having 10 points of weight 1 in the same spot @@ -824,6 +841,7 @@ public static GenericChart DensityMapbox longitudes, IEnumerable latitudes, Optional Name = default, + Optional MapboxStyle = default, Optional ShowLegend = default, Optional Opacity = default, Optional> Z = default, @@ -846,6 +864,7 @@ public static GenericChart DensityMapboxSets the axis line color. /// Determines whether or not grid lines are drawn. If "true", the grid lines are drawn at every tick mark. /// Sets the color of the grid lines. + /// Sets the dash style of lines. Set to a dash type string ("solid", "dot", "dash", "longdash", "dashdot", or "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). /// Determines whether or not a line is drawn at along the 0 value of this axis. If "true", the zero line is drawn on top of the grid lines. /// Sets the line color of the zero line. /// If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to the corresponding opposite-letter axis. If set to "free", this axis' position is determined by `position`. @@ -134,6 +135,7 @@ public static GenericChart WithXAxisStyle( Optional LineColor = default, Optional ShowGrid = default, Optional GridColor = default, + Optional GridDash = default, Optional ZeroLine = default, Optional ZeroLineColor = default, Optional Anchor = default, @@ -169,6 +171,7 @@ public static GenericChart WithXAxisStyle( LineColor: LineColor.ToOption(), ShowGrid: ShowGrid.ToOption(), GridColor: GridColor.ToOption(), + GridDash: GridDash.ToOption(), ZeroLine: ZeroLine.ToOption(), ZeroLineColor: ZeroLineColor.ToOption(), Anchor: Anchor.ToOption(), @@ -191,7 +194,7 @@ public static GenericChart WithXAxisStyle( /// /// If there is already an axis set at the given id, the styles are applied to it. If there is no axis present, a new LinearAxis object with the given styles will be set. /// - /// The chart in which to change the Y axis style + /// The chart in which to change the X axis style /// Sets the text of the axis title. /// Sets the font of the axis title. /// Sets the standoff distance (in px) between the axis labels and the title text. @@ -207,11 +210,14 @@ public static GenericChart WithXAxisStyle( /// Sets the axis line color. /// Determines whether or not grid lines are drawn. If "true", the grid lines are drawn at every tick mark. /// Sets the color of the grid lines. + /// Sets the dash style of lines. Set to a dash type string ("solid", "dot", "dash", "longdash", "dashdot", or "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). /// Determines whether or not a line is drawn at along the 0 value of this axis. If "true", the zero line is drawn on top of the grid lines. /// Sets the line color of the zero line. /// If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to the corresponding opposite-letter axis. If set to "free", this axis' position is determined by `position`. /// Determines whether a x (y) axis is positioned at the "bottom" ("left") or "top" ("right") of the plotting area. /// If set a same-letter axis id, this axis is overlaid on top of the corresponding same-letter axis, with traces and axes visible for both axes. If "false", this axis does not overlay any same-letter axes. In this case, for axes with overlapping domains only the highest-numbered axis will be visible. + /// Automatically reposition the axis to avoid overlap with other axes with the same `overlaying` value. This repositioning will account for any `shift` amount applied to other axes on the same side with `autoshift` is set to true. Only has an effect if `anchor` is set to "free". + /// Moves the axis a given number of pixels from where it would have been otherwise. Accepts both positive and negative values, which will shift the axis either right or left, respectively. If `autoshift` is set to true, then this defaults to a padding of -3 if `side` is set to "left". and defaults to +3 if `side` is set to "right". Defaults to 0 if `autoshift` is set to false. Only has an effect if `anchor` is set to "free". /// Tuple of (X*Y fractions). Sets the domain of this axis (in plot fraction). /// Sets the position of this axis in the plotting space (in normalized coordinates). Only has an effect if `anchor` is set to "free". /// Specifies the ordering logic for the case of categorical variables. By default, plotly uses "trace", which specifies the order that is present in the data supplied. Set `categoryorder` to "category ascending" or "category descending" if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to "array" to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the "trace" mode. The unspecified categories will follow the categories in `categoryarray`. Set `categoryorder` to "total ascending" or "total descending" if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values. @@ -238,11 +244,14 @@ public static GenericChart WithYAxisStyle( Optional LineColor = default, Optional ShowGrid = default, Optional GridColor = default, + Optional GridDash = default, Optional ZeroLine = default, Optional ZeroLineColor = default, Optional Anchor = default, Optional Side = default, Optional Overlaying = default, + Optional AutoShift = default, + Optional Shift = default, Optional> Domain = default, Optional Position = default, Optional CategoryOrder = default, @@ -273,11 +282,14 @@ public static GenericChart WithYAxisStyle( LineColor: LineColor.ToOption(), ShowGrid: ShowGrid.ToOption(), GridColor: GridColor.ToOption(), + GridDash: GridDash.ToOption(), ZeroLine: ZeroLine.ToOption(), ZeroLineColor: ZeroLineColor.ToOption(), Anchor: Anchor.ToOption(), Side: Side.ToOption(), Overlaying: Overlaying.ToOption(), + AutoShift: AutoShift.ToOption(), + Shift: Shift.ToOption(), Domain: Domain.ToOption(), Position: Position.ToOption(), CategoryOrder: CategoryOrder.ToOption(), @@ -374,21 +386,24 @@ public static GenericChart WithXAxisRangeSlider( /// /// The chart for which to set the legend /// The new Legend for the chart's layout + /// The target Legend id with which the Legend should be set. Default is 1. public static GenericChart WithLegend( this GenericChart gChart, - Legend legend + Legend legend, + Optional Id ) => Plotly.NET.Chart.WithLegend( - legend: legend + legend: legend, + Id: Id.ToOption() ).Invoke(gChart); /// - /// Sets the given Legend styles on the input chart's Legend. + /// Sets the given Legend styles on the input chart's Legend, optionally passing a target Legend id. /// /// If there is already a Legend set , the styles are applied to it. If there is no Legend present, a new Legend object with the given styles will be set. /// - /// The chart for which to set the legend styles + /// The chart for which to set the legend /// Sets the legend background color. Defaults to `layout.paper_bgcolor`. /// Sets the color of the border enclosing the legend. /// Sets the width (in px) of the border enclosing the legend. @@ -407,10 +422,14 @@ Legend legend /// Determines the order at which the legend items are displayed. If "normal", the items are displayed top-to-bottom in the same order as the input data. If "reversed", the items are displayed in the opposite order as "normal". If "grouped", the items are displayed in groups (when a trace `legendgroup` is provided). if "grouped+reversed", the items are displayed in the opposite order as "grouped". /// Controls persistence of legend-driven changes in trace and pie label visibility. Defaults to `layout.uirevision`. /// Sets the vertical alignment of the symbols with respect to their associated text. + /// Determines whether or not this legend is visible. /// Sets the x position (in normalized coordinates) of the legend. Defaults to "1.02" for vertical legends and defaults to "0" for horizontal legends. /// Sets the legend's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the legend. Value "auto" anchors legends to the right for `x` values greater than or equal to 2/3, anchors legends to the left for `x` values less than or equal to 1/3 and anchors legends with respect to their center otherwise. + /// Sets the container `x` refers to. "container" spans the entire `width` of the plot. "paper" refers to the width of the plotting area only. /// Sets the y position (in normalized coordinates) of the legend. Defaults to "1" for vertical legends, defaults to "-0.1" for horizontal legends on graphs w/o range sliders and defaults to "1.1" for horizontal legends on graph with one or multiple range sliders. /// Sets the legend's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the legend. Value "auto" anchors legends at their bottom for `y` values less than or equal to 1/3, anchors legends to at their top for `y` values greater than or equal to 2/3 and anchors legends with respect to their middle otherwise. + /// Sets the container `y` refers to. "container" spans the entire `height` of the plot. "paper" refers to the height of the plotting area only. + /// The target Legend id. Default is 1. public static GenericChart WithLegendStyle( this GenericChart gChart, Optional BGColor = default, @@ -431,10 +450,14 @@ public static GenericChart WithLegendStyle( Optional TraceOrder = default, Optional UIRevision = default, Optional VerticalAlign = default, + Optional Visible = default, Optional X = default, - Optional XAnchor = default, + Optional XAnchor = default, + Optional XRef = default, Optional Y = default, - Optional YAnchor = default + Optional YAnchor = default, + Optional YRef = default, + Optional Id = default ) => Plotly.NET.Chart.WithLegendStyle( @@ -456,10 +479,14 @@ public static GenericChart WithLegendStyle( TraceOrder: TraceOrder.ToOption(), UIRevision: UIRevision.ToOption(), VerticalAlign: VerticalAlign.ToOption(), + Visible: Visible.ToOption(), X: X.ToOption(), XAnchor: XAnchor.ToOption(), + XRef: XRef.ToOption(), Y: Y.ToOption(), - YAnchor: YAnchor.ToOption() + YAnchor: YAnchor.ToOption(), + YRef: YRef.ToOption(), + Id: Id.ToOption() ).Invoke(gChart); } diff --git a/src/Plotly.NET/ChartAPI/Chart.fs b/src/Plotly.NET/ChartAPI/Chart.fs index a84a10993..428773a39 100644 --- a/src/Plotly.NET/ChartAPI/Chart.fs +++ b/src/Plotly.NET/ChartAPI/Chart.fs @@ -2656,6 +2656,7 @@ type Chart = /// Sets the y position (in normalized coordinates) of the legend. Defaults to "1" for vertical legends, defaults to "-0.1" for horizontal legends on graphs w/o range sliders and defaults to "1.1" for horizontal legends on graph with one or multiple range sliders. /// Sets the legend's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the legend. Value "auto" anchors legends at their bottom for `y` values less than or equal to 1/3, anchors legends to at their top for `y` values greater than or equal to 2/3 and anchors legends with respect to their middle otherwise. /// Sets the container `y` refers to. "container" spans the entire `height` of the plot. "paper" refers to the height of the plotting area only. + /// The target Legend id. Default is 1. [] static member withLegendStyle ( diff --git a/src/Plotly.NET/ChartAPI/Chart2D.fs b/src/Plotly.NET/ChartAPI/Chart2D.fs index 6e71c0b9a..2347cf727 100644 --- a/src/Plotly.NET/ChartAPI/Chart2D.fs +++ b/src/Plotly.NET/ChartAPI/Chart2D.fs @@ -4397,7 +4397,7 @@ module Chart2D = /// Determines the coloring method showing the contour values. If "fill", coloring is done evenly between each contour level If "heatmap", a heatmap gradient coloring is applied between each contour level. If "lines", coloring is done on the contour lines. If "none", no coloring is applied on this trace. /// Sets the constraint operation. "=" keeps regions equal to `value` "<" and "<=" keep regions less than `value` ">" and ">=" keep regions greater than `value` "[]", "()", "[)", and "(]" keep regions inside `value[0]` to `value[1]` "][", ")(", "](", ")[" keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms. /// If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters. - /// Determines whether to label the contour lines with their values. + /// Determines whether to label the contour lines with their values. /// Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`. /// Sets the starting contour level value. Must be less than `contours.end` /// Sets the end contour level value. Must be more than `contours.start` @@ -4544,7 +4544,7 @@ module Chart2D = /// Determines the coloring method showing the contour values. If "fill", coloring is done evenly between each contour level If "heatmap", a heatmap gradient coloring is applied between each contour level. If "lines", coloring is done on the contour lines. If "none", no coloring is applied on this trace. /// Sets the constraint operation. "=" keeps regions equal to `value` "<" and "<=" keep regions less than `value` ">" and ">=" keep regions greater than `value` "[]", "()", "[)", and "(]" keep regions inside `value[0]` to `value[1]` "][", ")(", "](", ")[" keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms. /// If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters. - /// Determines whether to label the contour lines with their values. + /// Determines whether to label the contour lines with their values. /// Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`. /// Sets the starting contour level value. Must be less than `contours.end` /// Sets the end contour level value. Must be more than `contours.start` @@ -5122,7 +5122,7 @@ module Chart2D = /// Determines the coloring method showing the contour values. If "fill", coloring is done evenly between each contour level If "heatmap", a heatmap gradient coloring is applied between each contour level. If "lines", coloring is done on the contour lines. If "none", no coloring is applied on this trace. /// Sets the constraint operation. "=" keeps regions equal to `value` "<" and "<=" keep regions less than `value` ">" and ">=" keep regions greater than `value` "[]", "()", "[)", and "(]" keep regions inside `value[0]` to `value[1]` "][", ")(", "](", ")[" keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms. /// If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters. - /// Determines whether to label the contour lines with their values. + /// Determines whether to label the contour lines with their values. /// Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`. /// Sets the starting contour level value. Must be less than `contours.end` /// Sets the end contour level value. Must be more than `contours.start` @@ -5817,7 +5817,6 @@ module Chart2D = /// Sets the marker color of the point trace. /// Sets the marker symbol of the point trace. /// Sets the marker size of the point trace. - /// Sets the contour line dash style /// Sets the contour line color /// Sets the amount of smoothing for the contour lines, where "0" corresponds to no smoothing. @@ -5827,12 +5826,14 @@ module Chart2D = /// Determines the coloring method showing the contour values. If "fill", coloring is done evenly between each contour level If "heatmap", a heatmap gradient coloring is applied between each contour level. If "lines", coloring is done on the contour lines. If "none", no coloring is applied on this trace. /// Sets the constraint operation. "=" keeps regions equal to `value` "<" and "<=" keep regions less than `value` ">" and ">=" keep regions greater than `value` "[]", "()", "[)", and "(]" keep regions inside `value[0]` to `value[1]` "][", ")(", "](", ")[" keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms. /// If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters. - /// Determines whether to label the contour lines with their values. + /// Determines whether to label the contour lines with their values. /// Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`. /// Sets the starting contour level value. Must be less than `contours.end` /// Sets the end contour level value. Must be more than `contours.start` /// Sets the styles of the contours (use this for more finegrained control than the other contour-associated arguments). - + /// Sets the maximum number of contour levels. The actual number of contours will be chosen automatically to be less than or equal to the value of `ncontours`. Has an effect only if `autocontour` is "true" or if `contours.size` is missing. + /// Specifies the type of normalization used for this histogram trace. If "", the span of each bar corresponds to the number of occurrences (i.e. the number of data points lying inside the bins). If "percent" / "probability", the span of each bar corresponds to the percentage / fraction of occurrences with respect to the total number of sample points (here, the sum of all bin HEIGHTS equals 100% / 1). If "density", the span of each bar corresponds to the number of occurrences in a bin divided by the size of the bin interval (here, the sum of all bin AREAS equals the total number of sample points). If "probability density", the area of each bar corresponds to the probability that an event will fall into the corresponding bin (here, the sum of all bin AREAS equals 1). + /// Sets the opacity of the histogram2dcontour trace. /// Sets the color bar. /// Sets the colorscale of the histogram2dcontour trace. /// whether or not to show the colorbar diff --git a/tests/ConsoleApps/CSharpConsole/Program.cs b/tests/ConsoleApps/CSharpConsole/Program.cs index 20ae982f9..c363b57e5 100644 --- a/tests/ConsoleApps/CSharpConsole/Program.cs +++ b/tests/ConsoleApps/CSharpConsole/Program.cs @@ -8,808 +8,808 @@ class Program { static void Main(string[] args) { - Chart.Grid( - nRows: 10, - nCols: 7, - gCharts: - new Plotly.NET.GenericChart[] - { - //2D basic traces + //Chart.Grid( + // nRows: 10, + // nCols: 7, + // gCharts: + // new Plotly.NET.GenericChart[] + // { + // //2D basic traces - //simple scatter derived - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.Scatter( - x: new int [] { 1, 2, 3 }, - y: new int [] { 5, 3, 4 }, - mode: Mode.Markers, - Name: "scatter", - MultiText: new int [] { 3, 4 } - ), - Chart.Point( - x: new int [] { 1, 2, 3 }, - y: new int [] { 6, 4, 5 }, - Name: "point", - Text: "hi" - ), - Chart.Line( - x: new int [] { 1, 2, 3 }, - y: new int [] { 7, 5, 6 }, - Name: "line" - ), - Chart.Spline( - x: new int [] { 1, 2, 3}, - y: new int [] { 8, 6, 7 }, - Name: "spline" - ), - Chart.Bubble( - x: new int [] { 1, 2, 3 }, - y: new int [] { 9, 7, 8 }, - sizes: new int [] { 10, 20, 30 }, - Name: "bubble" - ) - } - ).WithTraceInfo( - LegendGroup: "simple-scatter-derived", - LegendGroupTitle: Plotly.NET.Title.init("simple scatter-derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), + // //simple scatter derived + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.Scatter( + // x: new int [] { 1, 2, 3 }, + // y: new int [] { 5, 3, 4 }, + // mode: Mode.Markers, + // Name: "scatter", + // MultiText: new int [] { 3, 4 } + // ), + // Chart.Point( + // x: new int [] { 1, 2, 3 }, + // y: new int [] { 6, 4, 5 }, + // Name: "point", + // Text: "hi" + // ), + // Chart.Line( + // x: new int [] { 1, 2, 3 }, + // y: new int [] { 7, 5, 6 }, + // Name: "line" + // ), + // Chart.Spline( + // x: new int [] { 1, 2, 3}, + // y: new int [] { 8, 6, 7 }, + // Name: "spline" + // ), + // Chart.Bubble( + // x: new int [] { 1, 2, 3 }, + // y: new int [] { 9, 7, 8 }, + // sizes: new int [] { 10, 20, 30 }, + // Name: "bubble" + // ) + // } + // ).WithTraceInfo( + // LegendGroup: "simple-scatter-derived", + // LegendGroupTitle: Plotly.NET.Title.init("simple scatter-derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), - //extended scatter derived - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.Range( - x: new int [] { 1, 2, 3 }, - y: new int [] { 5, 3, 4 }, - upper: new int [] { 6, 4, 5 }, - lower: new int [] { 4, 2, 3 }, - mode: Mode.Lines, - Name: "range" - ), - Chart.Area( - x: new int [] { 1, 2}, - y: new int [] { 3, 1}, - Name: "area" - ), - Chart.SplineArea( - x: new int [] { 3, 4, 5}, - y: new int [] { 3, 1, 4}, - Name: "splinearea" - ), - Chart.StackedArea( - x: new int [] { 6, 7}, - y: new int [] { 3, 1}, - Name: "stacked area 1" - ), - Chart.StackedArea( - x: new int [] { 6, 7}, - y: new int [] { 3, 2}, - Name: "stacked area 2" - ) - } - ).WithTraceInfo( - LegendGroup: "extended-scatter-derived", - LegendGroupTitle: Plotly.NET.Title.init("extended scatter-derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.Bar( - values: new int [] { 1,2 }, - Keys: new string [] { "first", "second"}, - Name: "bar" - ), - Chart.StackedBar( - values: new int [] { 1,2 }, - Keys: new string [] { "third", "4th"}, - Name: "stacked bar 1" - ), - Chart.StackedBar( - values: new int [] { 1,2 }, - Keys: new string [] { "third", "4th"}, - Name: "stacked bar 2" - ), - } - ).WithTraceInfo( - LegendGroup: "bar-and-derived-traces", - LegendGroupTitle: Plotly.NET.Title.init("bar and derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.Column( - values: new int [] { 3,4 }, - Keys: new string [] { "first", "second"}, - Name: "column" - ), - Chart.StackedColumn( - values: new int [] { 1,2 }, - Keys: new string [] { "third", "4th"}, - Name: "stacked column 1" - ), - Chart.StackedColumn( - values: new int [] { 1,2 }, - Keys: new string [] { "third", "4th"}, - Name: "stacked column 2" - ), - } - ).WithTraceInfo( - LegendGroup: "bar-and-derived-traces", - LegendGroupTitle: Plotly.NET.Title.init("bar and derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Heatmap( - zData: new int [] [] - { - new int [] { 1,2,3}, - new int [] { 2,1,2}, - new int [] { 3,2,1} - }, - ShowScale: false, - Name: "heatmap", - ShowLegend: true - ).WithTraceInfo( - LegendGroup: "other-simple-2D", - LegendGroupTitle: Plotly.NET.Title.init("other simple 2D traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Image( - Source: @"data:image/gif;base64,R0lGODdhEAAQAMwAAPj7+FmhUYjNfGuxYYDJdYTIeanOpT+DOTuANXi/bGOrWj6CONzv2sPjv2CmV1unU4zPgI/Sg6DJnJ3ImTh8Mtbs00aNP1CZSGy0YqLEn47RgXW8amasW7XWsmmvX2iuXiwAAAAAEAAQAAAFVyAgjmRpnihqGCkpDQPbGkNUOFk6DZqgHCNGg2T4QAQBoIiRSAwBE4VA4FACKgkB5NGReASFZEmxsQ0whPDi9BiACYQAInXhwOUtgCUQoORFCGt/g4QAIQA7" - ).WithTraceInfo( - LegendGroup: "other-simple-2D", - LegendGroupTitle: Plotly.NET.Title.init("other simple 2D traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Invisible(), + // //extended scatter derived + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.Range( + // x: new int [] { 1, 2, 3 }, + // y: new int [] { 5, 3, 4 }, + // upper: new int [] { 6, 4, 5 }, + // lower: new int [] { 4, 2, 3 }, + // mode: Mode.Lines, + // Name: "range" + // ), + // Chart.Area( + // x: new int [] { 1, 2}, + // y: new int [] { 3, 1}, + // Name: "area" + // ), + // Chart.SplineArea( + // x: new int [] { 3, 4, 5}, + // y: new int [] { 3, 1, 4}, + // Name: "splinearea" + // ), + // Chart.StackedArea( + // x: new int [] { 6, 7}, + // y: new int [] { 3, 1}, + // Name: "stacked area 1" + // ), + // Chart.StackedArea( + // x: new int [] { 6, 7}, + // y: new int [] { 3, 2}, + // Name: "stacked area 2" + // ) + // } + // ).WithTraceInfo( + // LegendGroup: "extended-scatter-derived", + // LegendGroupTitle: Plotly.NET.Title.init("extended scatter-derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.Bar( + // values: new int [] { 1,2 }, + // Keys: new string [] { "first", "second"}, + // Name: "bar" + // ), + // Chart.StackedBar( + // values: new int [] { 1,2 }, + // Keys: new string [] { "third", "4th"}, + // Name: "stacked bar 1" + // ), + // Chart.StackedBar( + // values: new int [] { 1,2 }, + // Keys: new string [] { "third", "4th"}, + // Name: "stacked bar 2" + // ), + // } + // ).WithTraceInfo( + // LegendGroup: "bar-and-derived-traces", + // LegendGroupTitle: Plotly.NET.Title.init("bar and derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.Column( + // values: new int [] { 3,4 }, + // Keys: new string [] { "first", "second"}, + // Name: "column" + // ), + // Chart.StackedColumn( + // values: new int [] { 1,2 }, + // Keys: new string [] { "third", "4th"}, + // Name: "stacked column 1" + // ), + // Chart.StackedColumn( + // values: new int [] { 1,2 }, + // Keys: new string [] { "third", "4th"}, + // Name: "stacked column 2" + // ), + // } + // ).WithTraceInfo( + // LegendGroup: "bar-and-derived-traces", + // LegendGroupTitle: Plotly.NET.Title.init("bar and derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Heatmap( + // zData: new int [] [] + // { + // new int [] { 1,2,3}, + // new int [] { 2,1,2}, + // new int [] { 3,2,1} + // }, + // ShowScale: false, + // Name: "heatmap", + // ShowLegend: true + // ).WithTraceInfo( + // LegendGroup: "other-simple-2D", + // LegendGroupTitle: Plotly.NET.Title.init("other simple 2D traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Image( + // Source: @"data:image/gif;base64,R0lGODdhEAAQAMwAAPj7+FmhUYjNfGuxYYDJdYTIeanOpT+DOTuANXi/bGOrWj6CONzv2sPjv2CmV1unU4zPgI/Sg6DJnJ3ImTh8Mtbs00aNP1CZSGy0YqLEn47RgXW8amasW7XWsmmvX2iuXiwAAAAAEAAQAAAFVyAgjmRpnihqGCkpDQPbGkNUOFk6DZqgHCNGg2T4QAQBoIiRSAwBE4VA4FACKgkB5NGReASFZEmxsQ0whPDi9BiACYQAInXhwOUtgCUQoORFCGt/g4QAIQA7" + // ).WithTraceInfo( + // LegendGroup: "other-simple-2D", + // LegendGroupTitle: Plotly.NET.Title.init("other simple 2D traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Invisible(), - //2D distributions - Chart.Histogram( - X: new int [] { 1,2,2,2,3,4,5,5 }, - MultiText: new int [] { 1,2,3,4,5,6,7}, - Name: "histogram" - ).WithTraceInfo( - LegendGroup: "scientific", - LegendGroupTitle: Plotly.NET.Title.init("scientific/2D distributions", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Histogram2D( - x: new int [] { 1,2,2,2,3,4,5,5 }, - y: new int [] { 1,2,2,2,3,4,5,5 }, - ShowScale: false, - ShowLegend: true, - Name: "histogram2D" - ).WithTraceInfo( - LegendGroup: "scientific", - LegendGroupTitle: Plotly.NET.Title.init("scientific/2D distributions", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.BoxPlot( - X: new int [] { 1,2,2,2,3,4,5,5 }, - Name: "Boxplot" - ), - Chart.Violin( - X: new int [] { 1,2,2,2,3,4,5,5 }, - Name: "Violin" - ), - } - ).WithTraceInfo( - LegendGroup: "scientific", - LegendGroupTitle: Plotly.NET.Title.init("scientific/2D distributions", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Contour( - zData: new int [] [] - { - new int [] { 1,2,3}, - new int [] { 2,1,2}, - new int [] { 3,2,1} - }, - ShowScale: false, - ShowLegend: true, - Name: "contour" - ).WithTraceInfo( - LegendGroup: "scientific", - LegendGroupTitle: Plotly.NET.Title.init("scientific/2D distributions", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Histogram2DContour( - x: new int [] { 1,2,2,2,3,4,5,5 }, - y: new int [] { 1,2,2,2,3,4,5,5 }, - ShowScale: false, - ShowLegend: true, - Name: "histogram2Dcontour" - ).WithTraceInfo( - LegendGroup: "scientific", - LegendGroupTitle: Plotly.NET.Title.init("scientific/2D distributions", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.PointDensity( - x: new int [] { 1,2,2,2,3,4,5,5 }, - y: new int [] { 1,2,2,2,3,4,5,5 }, - ShowScale: false - ).WithTraceInfo( - LegendGroup: "scientific", - LegendGroupTitle: Plotly.NET.Title.init("scientific/2D distributions", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Invisible(), + // //2D distributions + // Chart.Histogram( + // X: new int [] { 1,2,2,2,3,4,5,5 }, + // MultiText: new int [] { 1,2,3,4,5,6,7}, + // Name: "histogram" + // ).WithTraceInfo( + // LegendGroup: "scientific", + // LegendGroupTitle: Plotly.NET.Title.init("scientific/2D distributions", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Histogram2D( + // x: new int [] { 1,2,2,2,3,4,5,5 }, + // y: new int [] { 1,2,2,2,3,4,5,5 }, + // ShowScale: false, + // ShowLegend: true, + // Name: "histogram2D" + // ).WithTraceInfo( + // LegendGroup: "scientific", + // LegendGroupTitle: Plotly.NET.Title.init("scientific/2D distributions", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.BoxPlot( + // X: new int [] { 1,2,2,2,3,4,5,5 }, + // Name: "Boxplot" + // ), + // Chart.Violin( + // X: new int [] { 1,2,2,2,3,4,5,5 }, + // Name: "Violin" + // ), + // } + // ).WithTraceInfo( + // LegendGroup: "scientific", + // LegendGroupTitle: Plotly.NET.Title.init("scientific/2D distributions", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Contour( + // zData: new int [] [] + // { + // new int [] { 1,2,3}, + // new int [] { 2,1,2}, + // new int [] { 3,2,1} + // }, + // ShowScale: false, + // ShowLegend: true, + // Name: "contour" + // ).WithTraceInfo( + // LegendGroup: "scientific", + // LegendGroupTitle: Plotly.NET.Title.init("scientific/2D distributions", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Histogram2DContour( + // x: new int [] { 1,2,2,2,3,4,5,5 }, + // y: new int [] { 1,2,2,2,3,4,5,5 }, + // ShowScale: false, + // ShowLegend: true, + // Name: "histogram2Dcontour" + // ).WithTraceInfo( + // LegendGroup: "scientific", + // LegendGroupTitle: Plotly.NET.Title.init("scientific/2D distributions", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.PointDensity( + // x: new int [] { 1,2,2,2,3,4,5,5 }, + // y: new int [] { 1,2,2,2,3,4,5,5 }, + // ShowScale: false + // ).WithTraceInfo( + // LegendGroup: "scientific", + // LegendGroupTitle: Plotly.NET.Title.init("scientific/2D distributions", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Invisible(), - //2D Finance traces - Chart.OHLC( - open: new double [] {1.2, 2.7}, - high: new double [] {1.8, 8.5}, - low: new double [] {0.5, 0.1}, - close: new double [] {1.1, 2.9}, - x: new DateTime [] {DateTime.Parse("07/07/2021"), DateTime.Parse("07/07/2022") }, - Name: "ohlc" - ).WithXAxisRangeSlider( - rangeSlider: Plotly.NET.LayoutObjects.RangeSlider.init( - Visible: false - )).WithTraceInfo( - LegendGroup: "finance", - LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Candlestick( - open: new double [] {1.2, 2.7}, - high: new double [] {1.8, 8.5}, - low: new double [] {0.5, 0.1}, - close: new double [] {1.1, 2.9}, - x: new DateTime [] {DateTime.Parse("07/07/2021"), DateTime.Parse("07/07/2022") }, - Name: "candlestick" - ).WithXAxisRangeSlider( - rangeSlider: Plotly.NET.LayoutObjects.RangeSlider.init( - Visible: false - )).WithTraceInfo( - LegendGroup: "finance", - LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Waterfall( - x: new string [] {"A", "B", "Net", "Purch", "Other", "Profit"}, - y: new int [] {60, 80, 0, -40, -20, 0}, - Measure: new Plotly.NET.StyleParam.WaterfallMeasure [] { - Plotly.NET.StyleParam.WaterfallMeasure.Relative, - Plotly.NET.StyleParam.WaterfallMeasure.Relative, - Plotly.NET.StyleParam.WaterfallMeasure.Total, - Plotly.NET.StyleParam.WaterfallMeasure.Relative, - Plotly.NET.StyleParam.WaterfallMeasure.Relative, - Plotly.NET.StyleParam.WaterfallMeasure.Total - }, - Name: "waterfall" - ).WithTraceInfo( - LegendGroup: "finance", - LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Funnel( - x: new double [] { 1200, 909.4, 600.6, 300, 80 }, - y: new string[] { "A", "B", "C", "D", "E"}, - Name: "funnel" - ).WithTraceInfo( - LegendGroup: "finance", - LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.StackedFunnel( - x: new double [] { 1200, 909.4}, - y: new string[] { "A", "B"}, - Name: "stackedfunnel 1" - ), - Chart.StackedFunnel( - x: new double [] { 1200, 100.4,}, - y: new string[] { "A", "B"}, - Name: "stackedfunnel 2" - ), - } - ).WithTraceInfo( - LegendGroup: "finance", - LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.FunnelArea( - values: new int [] { 5, 4}, - MultiText: new string[] { "A", "B"}, - Name: "funnelarea" - ).WithTraceInfo( - LegendGroup: "finance", - LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Indicator( - value: 200, - mode: Plotly.NET.StyleParam.IndicatorMode.NumberDeltaGauge, - DeltaReference: 160, - Name: "indicator" - ).WithTraceInfo( - LegendGroup: "finance", - LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) - ), + // //2D Finance traces + // Chart.OHLC( + // open: new double [] {1.2, 2.7}, + // high: new double [] {1.8, 8.5}, + // low: new double [] {0.5, 0.1}, + // close: new double [] {1.1, 2.9}, + // x: new DateTime [] {DateTime.Parse("07/07/2021"), DateTime.Parse("07/07/2022") }, + // Name: "ohlc" + // ).WithXAxisRangeSlider( + // rangeSlider: Plotly.NET.LayoutObjects.RangeSlider.init( + // Visible: false + // )).WithTraceInfo( + // LegendGroup: "finance", + // LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Candlestick( + // open: new double [] {1.2, 2.7}, + // high: new double [] {1.8, 8.5}, + // low: new double [] {0.5, 0.1}, + // close: new double [] {1.1, 2.9}, + // x: new DateTime [] {DateTime.Parse("07/07/2021"), DateTime.Parse("07/07/2022") }, + // Name: "candlestick" + // ).WithXAxisRangeSlider( + // rangeSlider: Plotly.NET.LayoutObjects.RangeSlider.init( + // Visible: false + // )).WithTraceInfo( + // LegendGroup: "finance", + // LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Waterfall( + // x: new string [] {"A", "B", "Net", "Purch", "Other", "Profit"}, + // y: new int [] {60, 80, 0, -40, -20, 0}, + // Measure: new Plotly.NET.StyleParam.WaterfallMeasure [] { + // Plotly.NET.StyleParam.WaterfallMeasure.Relative, + // Plotly.NET.StyleParam.WaterfallMeasure.Relative, + // Plotly.NET.StyleParam.WaterfallMeasure.Total, + // Plotly.NET.StyleParam.WaterfallMeasure.Relative, + // Plotly.NET.StyleParam.WaterfallMeasure.Relative, + // Plotly.NET.StyleParam.WaterfallMeasure.Total + // }, + // Name: "waterfall" + // ).WithTraceInfo( + // LegendGroup: "finance", + // LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Funnel( + // x: new double [] { 1200, 909.4, 600.6, 300, 80 }, + // y: new string[] { "A", "B", "C", "D", "E"}, + // Name: "funnel" + // ).WithTraceInfo( + // LegendGroup: "finance", + // LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.StackedFunnel( + // x: new double [] { 1200, 909.4}, + // y: new string[] { "A", "B"}, + // Name: "stackedfunnel 1" + // ), + // Chart.StackedFunnel( + // x: new double [] { 1200, 100.4,}, + // y: new string[] { "A", "B"}, + // Name: "stackedfunnel 2" + // ), + // } + // ).WithTraceInfo( + // LegendGroup: "finance", + // LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.FunnelArea( + // values: new int [] { 5, 4}, + // MultiText: new string[] { "A", "B"}, + // Name: "funnelarea" + // ).WithTraceInfo( + // LegendGroup: "finance", + // LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Indicator( + // value: 200, + // mode: Plotly.NET.StyleParam.IndicatorMode.NumberDeltaGauge, + // DeltaReference: 160, + // Name: "indicator" + // ).WithTraceInfo( + // LegendGroup: "finance", + // LegendGroupTitle: Plotly.NET.Title.init("finance charts", Font: Plotly.NET.Font.init(Size: 20)) + // ), - //3D traces - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.Scatter3D( - x: new int[] { 1, 2 }, - y: new int [] { 13, 14 }, - z: new int [] { 14, 15 }, - mode: Mode.Markers, - Name: "scatter3D" - ), - Chart.Point3D( - x: new int[] { 3, 4 }, - y: new int [] { 13, 14 }, - z: new int [] { 14, 15 }, - Name: "point3D" - ), - Chart.Line3D( - x: new int[] { 5, 6 }, - y: new int [] { 13, 14 }, - z: new int [] { 14, 15 }, - Name: "line3D" - ), - Chart.Bubble3D( - x: new int[] { 7, 8 }, - y: new int [] { 13, 14 }, - z: new int [] { 14, 15 }, - sizes: new int [] {30, 40}, - Name: "bubble3D" - ), - } - ).WithTraceInfo( - LegendGroup: "3D-scatter-derived", - LegendGroupTitle: Plotly.NET.Title.init("3D scatter-derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Surface( - zData: new int [] [] - { - new int [] { 1, 2, 1 }, - new int [] { 1, 5, 1 }, - new int [] { 1, 2, 1 } - }, - ShowScale: false, - Name: "surface", - ShowLegend: true - ).WithTraceInfo( - LegendGroup: "3D-other", - LegendGroupTitle: Plotly.NET.Title.init("other 3D charts", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Mesh3D( - x: new int [] { 0, 1, 2, 0 }, - y: new int [] { 0, 0, 1, 2 }, - z: new int [] { 0, 2, 0, 1 }, - ShowScale: false, - Name: "mesh3D", - ShowLegend: true - ), - Chart.Cone( - x: new int [] { 0, 1, 2, 0 }, - y: new int [] { 0, 0, 1, 2 }, - z: new int [] { 0, 2, 0, 1 }, - u: new int [] { 0, 1, 2, 0 }, - v: new int [] { 0, 0, 1, 2 }, - w: new int [] { 0, 2, 0, 1 }, - ShowScale: false, - Name: "cone", - ShowLegend: true - ), - Chart.StreamTube( - x: new int [] { 0, 0, 0 }, - y: new int [] { 0, 1, 2}, - z: new int [] { 0, 0, 0}, - u: new int [] { 0, 0, 0}, - v: new int [] { 1, 1, 1}, - w: new int [] { 0, 0, 0}, - ShowScale: false, - Name: "streamtube", - ShowLegend: true - ), - Chart.Volume( - x: new double [] { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 2, 2, 2, 2, 2, 2, 2, 2, 2 }, - y: new double [] { 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2, 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2, 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2 }, - z: new double [] { 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2}, - value: new double [] { 0.8414709848, 0.6649966577, 0.4546487134, 0.6649966577, 0.3458103097,04704000269, 0.4546487134, 04704000269, -0.1892006238, 0.6649966577, 0.3458103097, 04704000269, 0.3458103097, -06853149997, -0.217228915,04704000269, -0.217228915, -0465692497, 0.4546487134, 04704000269,-0.1892006238, 04704000269, -0.217228915, -0465692497, -0.1892006238,-0465692497, 0.1236697808}, - ShowScale: false, - Name: "volume", - ShowLegend: true - ), - Chart.IsoSurface( - x: new double [] { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 2, 2, 2, 2, 2, 2, 2, 2, 2 }, - y: new double [] { 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2, 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2, 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2 }, - z: new double [] { 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2}, - value: new double [] { 0.8414709848, 0.6649966577, 0.4546487134, 0.6649966577, 0.3458103097,04704000269, 0.4546487134, 04704000269, -0.1892006238, 0.6649966577, 0.3458103097, 04704000269, 0.3458103097, -06853149997, -0.217228915,04704000269, -0.217228915, -0465692497, 0.4546487134, 04704000269,-0.1892006238, 04704000269, -0.217228915, -0465692497, -0.1892006238,-0465692497, 0.1236697808}, - ShowScale: false, - Name: "isosurface", - ShowLegend: true - ), + // //3D traces + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.Scatter3D( + // x: new int[] { 1, 2 }, + // y: new int [] { 13, 14 }, + // z: new int [] { 14, 15 }, + // mode: Mode.Markers, + // Name: "scatter3D" + // ), + // Chart.Point3D( + // x: new int[] { 3, 4 }, + // y: new int [] { 13, 14 }, + // z: new int [] { 14, 15 }, + // Name: "point3D" + // ), + // Chart.Line3D( + // x: new int[] { 5, 6 }, + // y: new int [] { 13, 14 }, + // z: new int [] { 14, 15 }, + // Name: "line3D" + // ), + // Chart.Bubble3D( + // x: new int[] { 7, 8 }, + // y: new int [] { 13, 14 }, + // z: new int [] { 14, 15 }, + // sizes: new int [] {30, 40}, + // Name: "bubble3D" + // ), + // } + // ).WithTraceInfo( + // LegendGroup: "3D-scatter-derived", + // LegendGroupTitle: Plotly.NET.Title.init("3D scatter-derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Surface( + // zData: new int [] [] + // { + // new int [] { 1, 2, 1 }, + // new int [] { 1, 5, 1 }, + // new int [] { 1, 2, 1 } + // }, + // ShowScale: false, + // Name: "surface", + // ShowLegend: true + // ).WithTraceInfo( + // LegendGroup: "3D-other", + // LegendGroupTitle: Plotly.NET.Title.init("other 3D charts", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Mesh3D( + // x: new int [] { 0, 1, 2, 0 }, + // y: new int [] { 0, 0, 1, 2 }, + // z: new int [] { 0, 2, 0, 1 }, + // ShowScale: false, + // Name: "mesh3D", + // ShowLegend: true + // ), + // Chart.Cone( + // x: new int [] { 0, 1, 2, 0 }, + // y: new int [] { 0, 0, 1, 2 }, + // z: new int [] { 0, 2, 0, 1 }, + // u: new int [] { 0, 1, 2, 0 }, + // v: new int [] { 0, 0, 1, 2 }, + // w: new int [] { 0, 2, 0, 1 }, + // ShowScale: false, + // Name: "cone", + // ShowLegend: true + // ), + // Chart.StreamTube( + // x: new int [] { 0, 0, 0 }, + // y: new int [] { 0, 1, 2}, + // z: new int [] { 0, 0, 0}, + // u: new int [] { 0, 0, 0}, + // v: new int [] { 1, 1, 1}, + // w: new int [] { 0, 0, 0}, + // ShowScale: false, + // Name: "streamtube", + // ShowLegend: true + // ), + // Chart.Volume( + // x: new double [] { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 2, 2, 2, 2, 2, 2, 2, 2, 2 }, + // y: new double [] { 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2, 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2, 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2 }, + // z: new double [] { 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2}, + // value: new double [] { 0.8414709848, 0.6649966577, 0.4546487134, 0.6649966577, 0.3458103097,04704000269, 0.4546487134, 04704000269, -0.1892006238, 0.6649966577, 0.3458103097, 04704000269, 0.3458103097, -06853149997, -0.217228915,04704000269, -0.217228915, -0465692497, 0.4546487134, 04704000269,-0.1892006238, 04704000269, -0.217228915, -0465692497, -0.1892006238,-0465692497, 0.1236697808}, + // ShowScale: false, + // Name: "volume", + // ShowLegend: true + // ), + // Chart.IsoSurface( + // x: new double [] { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 2, 2, 2, 2, 2, 2, 2, 2, 2 }, + // y: new double [] { 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2, 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2, 1, 1, 1, 1.5, 1.5, 1.5, 2, 2, 2 }, + // z: new double [] { 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2, 1, 1.5, 2}, + // value: new double [] { 0.8414709848, 0.6649966577, 0.4546487134, 0.6649966577, 0.3458103097,04704000269, 0.4546487134, 04704000269, -0.1892006238, 0.6649966577, 0.3458103097, 04704000269, 0.3458103097, -06853149997, -0.217228915,04704000269, -0.217228915, -0465692497, 0.4546487134, 04704000269,-0.1892006238, 04704000269, -0.217228915, -0465692497, -0.1892006238,-0465692497, 0.1236697808}, + // ShowScale: false, + // Name: "isosurface", + // ShowLegend: true + // ), - //polar traces - Chart.ScatterPolar( - theta: new int [] { 0, 90, 180, 270 }, - r: new int [] { 10, 20, 15, 20 }, - mode: Mode.Markers, - Name: "scatterpolar" - ), - Chart.PointPolar( - theta: new int [] { 0, 90, 180, 270 }, - r: new int [] { 10, 20, 15, 20 }, - Name: "pointpolar" - ), - Chart.LinePolar( - theta: new int [] { 0, 90, 180, 270 }, - r: new int [] { 10, 20, 15, 20 }, - Name: "linepolar" - ), - Chart.SplinePolar( - theta: new int [] { 0, 90, 180, 270 }, - r: new int [] { 10, 20, 15, 20 }, - Name: "splinepolar" - ), - Chart.BubblePolar( - theta: new int [] { 0, 90, 180, 270 }, - r: new int [] { 10, 20, 15, 20 }, - sizes: new int [] { 10, 30, 15, 40 }, - Name: "bubblepolar" - ), - Chart.BarPolar( - theta: new int [] { 0, 90, 180, 270 }, - r: new int [] { 10, 20, 15, 20 }, - Name: "barpolar" - ), - Chart.Invisible(), + // //polar traces + // Chart.ScatterPolar( + // theta: new int [] { 0, 90, 180, 270 }, + // r: new int [] { 10, 20, 15, 20 }, + // mode: Mode.Markers, + // Name: "scatterpolar" + // ), + // Chart.PointPolar( + // theta: new int [] { 0, 90, 180, 270 }, + // r: new int [] { 10, 20, 15, 20 }, + // Name: "pointpolar" + // ), + // Chart.LinePolar( + // theta: new int [] { 0, 90, 180, 270 }, + // r: new int [] { 10, 20, 15, 20 }, + // Name: "linepolar" + // ), + // Chart.SplinePolar( + // theta: new int [] { 0, 90, 180, 270 }, + // r: new int [] { 10, 20, 15, 20 }, + // Name: "splinepolar" + // ), + // Chart.BubblePolar( + // theta: new int [] { 0, 90, 180, 270 }, + // r: new int [] { 10, 20, 15, 20 }, + // sizes: new int [] { 10, 30, 15, 40 }, + // Name: "bubblepolar" + // ), + // Chart.BarPolar( + // theta: new int [] { 0, 90, 180, 270 }, + // r: new int [] { 10, 20, 15, 20 }, + // Name: "barpolar" + // ), + // Chart.Invisible(), - //geo/mapbox traces - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.ScatterGeo( - longitudes: new int [] { 1, 20 }, - latitudes: new int [] { 1, 40 }, - mode: Mode.Markers, - Name: "scattergeo" - ), - Chart.PointGeo( - longitudes: new int [] { 40, 50 }, - latitudes: new int [] { 60, 70 }, - Name: "pointgeo" - ), - Chart.LineGeo( - longitudes: new int [] { 10, -100}, - latitudes: new int [] { 50, 50 }, - Name: "linegeo" - ), - Chart.BubbleGeo( - longitudes: new int [] { 80, -80}, - latitudes: new int [] { 20, -20 }, - sizes: new int [] { 10, 20 }, - Name: "bubblegeo" - ), - } - ).WithTraceInfo( - LegendGroup: "scattergeo-derived", - LegendGroupTitle: Plotly.NET.Title.init("scattergeo derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.ChoroplethMap( - locations: new string [] {"USA", "Germany", "Australia"}, - z: new int [] {1, 2, 3}, - LocationMode: LocationFormat.CountryNames, - ShowScale: false, - ShowLegend: true, - Name: "choropleth" - ).WithTraceInfo( - LegendGroup: "other-geo", - LegendGroupTitle: Plotly.NET.Title.init("other geo charts", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.ScatterMapbox( - longitudes: new int [] { 1, 2 }, - latitudes: new int [] { 1, 2 }, - mode: Mode.Markers, - Name: "scattermapbox" - ), - Chart.PointMapbox( - longitudes: new int [] { 10, 11 }, - latitudes: new int [] { 10, 11 }, - Name: "pointmapbox" - ), - Chart.LineMapbox( - longitudes: new int [] { -1, 11}, - latitudes: new int [] { 11, 1 }, - Name: "linemapbox" - ), - Chart.BubbleMapbox( - longitudes: new int [] { 22, -11}, - latitudes: new int [] { 5, 5 }, - sizes: new int [] { 10, 20 }, - Name: "bubblemapbox" - ), - } - ).WithMapboxStyle( - Style: MapboxStyle.OpenStreetMap, - Id: 38 - ).WithTraceInfo( - LegendGroup: "scattermapbox-derived", - LegendGroupTitle: Plotly.NET.Title.init("scattermapbox derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.DensityMapbox( - longitudes: new int [] { 1,2,2,2,3,4,5,5 }, - latitudes: new int [] { 1,2,2,2,3,4,5,5 }, - ShowScale: false - ).WithMapboxStyle( - Style: MapboxStyle.OpenStreetMap, - Id: 39 - ).WithTraceInfo( - LegendGroup: "other-mapbox", - LegendGroupTitle: Plotly.NET.Title.init("other mapbox charts", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Invisible(), - Chart.Invisible(), - Chart.Invisible(), + // //geo/mapbox traces + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.ScatterGeo( + // longitudes: new int [] { 1, 20 }, + // latitudes: new int [] { 1, 40 }, + // mode: Mode.Markers, + // Name: "scattergeo" + // ), + // Chart.PointGeo( + // longitudes: new int [] { 40, 50 }, + // latitudes: new int [] { 60, 70 }, + // Name: "pointgeo" + // ), + // Chart.LineGeo( + // longitudes: new int [] { 10, -100}, + // latitudes: new int [] { 50, 50 }, + // Name: "linegeo" + // ), + // Chart.BubbleGeo( + // longitudes: new int [] { 80, -80}, + // latitudes: new int [] { 20, -20 }, + // sizes: new int [] { 10, 20 }, + // Name: "bubblegeo" + // ), + // } + // ).WithTraceInfo( + // LegendGroup: "scattergeo-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scattergeo derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.ChoroplethMap( + // locations: new string [] {"USA", "Germany", "Australia"}, + // z: new int [] {1, 2, 3}, + // LocationMode: LocationFormat.CountryNames, + // ShowScale: false, + // ShowLegend: true, + // Name: "choropleth" + // ).WithTraceInfo( + // LegendGroup: "other-geo", + // LegendGroupTitle: Plotly.NET.Title.init("other geo charts", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.ScatterMapbox( + // longitudes: new int [] { 1, 2 }, + // latitudes: new int [] { 1, 2 }, + // mode: Mode.Markers, + // Name: "scattermapbox" + // ), + // Chart.PointMapbox( + // longitudes: new int [] { 10, 11 }, + // latitudes: new int [] { 10, 11 }, + // Name: "pointmapbox" + // ), + // Chart.LineMapbox( + // longitudes: new int [] { -1, 11}, + // latitudes: new int [] { 11, 1 }, + // Name: "linemapbox" + // ), + // Chart.BubbleMapbox( + // longitudes: new int [] { 22, -11}, + // latitudes: new int [] { 5, 5 }, + // sizes: new int [] { 10, 20 }, + // Name: "bubblemapbox" + // ), + // } + // ).WithMapboxStyle( + // Style: MapboxStyle.OpenStreetMap, + // Id: 38 + // ).WithTraceInfo( + // LegendGroup: "scattermapbox-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scattermapbox derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.DensityMapbox( + // longitudes: new int [] { 1,2,2,2,3,4,5,5 }, + // latitudes: new int [] { 1,2,2,2,3,4,5,5 }, + // ShowScale: false + // ).WithMapboxStyle( + // Style: MapboxStyle.OpenStreetMap, + // Id: 39 + // ).WithTraceInfo( + // LegendGroup: "other-mapbox", + // LegendGroupTitle: Plotly.NET.Title.init("other mapbox charts", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Invisible(), + // Chart.Invisible(), + // Chart.Invisible(), - //ternary traces - Chart.ScatterTernary( - A: new int [] { 1, 2 }, - B: new int [] { 3, 4 }, - C: new int [] { 10, 2 }, - Name: "scatterternary" - ).WithTraceInfo( - LegendGroup: "scatterternary-derived", - LegendGroupTitle: Plotly.NET.Title.init("scatterternary derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.PointTernary( - A: new int [] { 1, 2 }, - B: new int [] { 3, 4 }, - C: new int [] { 10, 2 }, - Name: "pointternary" - ).WithTraceInfo( - LegendGroup: "scatterternary-derived", - LegendGroupTitle: Plotly.NET.Title.init("scatterternary derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.LineTernary( - A: new int [] { 1, 2 }, - B: new int [] { 3, 4 }, - C: new int [] { 10, 2 }, - Name: "lineternary" - ).WithTraceInfo( - LegendGroup: "scatterternary-derived", - LegendGroupTitle: Plotly.NET.Title.init("scatterternary derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.BubbleTernary( - sizes: new int [] {30, 40}, - A: new int [] { 1, 2 }, - B: new int [] { 3, 4 }, - C: new int [] { 10, 2 }, - Name: "bubbleternary" - ).WithTraceInfo( - LegendGroup: "scatterternary-derived", - LegendGroupTitle: Plotly.NET.Title.init("scatterternary derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Invisible(), - Chart.Invisible(), - Chart.Invisible(), + // //ternary traces + // Chart.ScatterTernary( + // A: new int [] { 1, 2 }, + // B: new int [] { 3, 4 }, + // C: new int [] { 10, 2 }, + // Name: "scatterternary" + // ).WithTraceInfo( + // LegendGroup: "scatterternary-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scatterternary derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.PointTernary( + // A: new int [] { 1, 2 }, + // B: new int [] { 3, 4 }, + // C: new int [] { 10, 2 }, + // Name: "pointternary" + // ).WithTraceInfo( + // LegendGroup: "scatterternary-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scatterternary derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.LineTernary( + // A: new int [] { 1, 2 }, + // B: new int [] { 3, 4 }, + // C: new int [] { 10, 2 }, + // Name: "lineternary" + // ).WithTraceInfo( + // LegendGroup: "scatterternary-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scatterternary derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.BubbleTernary( + // sizes: new int [] {30, 40}, + // A: new int [] { 1, 2 }, + // B: new int [] { 3, 4 }, + // C: new int [] { 10, 2 }, + // Name: "bubbleternary" + // ).WithTraceInfo( + // LegendGroup: "scatterternary-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scatterternary derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Invisible(), + // Chart.Invisible(), + // Chart.Invisible(), - //carpet traces - Chart.Carpet( - carpetId: "carpet1", - A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0}, - B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0}, - Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0}, - Name:"carpet", - ShowLegend: true - ), - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.Carpet( - carpetId: "carpet2", - A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0}, - B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0}, - Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0} - ), - Chart.ScatterCarpet( - a: new int [] {4,5,5,6}, - b: new int [] {1,1,2,3}, - carpetAnchorId: "carpet2", - mode: Mode.Markers, - Name: "scattercarpet" - ) - } - ).WithTraceInfo( - LegendGroup: "scattercarpet-derived", - LegendGroupTitle: Plotly.NET.Title.init("scattercarpet derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.Carpet( - carpetId: "carpet3", - A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0}, - B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0}, - Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0} - ), - Chart.PointCarpet( - a: new int [] {4,5,5,6}, - b: new int [] {1,1,2,3}, - carpetAnchorId: "carpet3", - Name: "pointcarpet" - ) - } - ).WithTraceInfo( - LegendGroup: "scattercarpet-derived", - LegendGroupTitle: Plotly.NET.Title.init("scattercarpet derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.Carpet( - carpetId: "carpet4", - A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0}, - B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0}, - Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0} - ), - Chart.LineCarpet( - a: new int [] {4,5,5,6}, - b: new int [] {1,1,2,3}, - carpetAnchorId: "carpet4", - Name: "linecarpet" - ) - } - ).WithTraceInfo( - LegendGroup: "scattercarpet-derived", - LegendGroupTitle: Plotly.NET.Title.init("scattercarpet derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.Carpet( - carpetId: "carpet5", - A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0}, - B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0}, - Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0} - ), - Chart.SplineCarpet( - a: new int [] {4,5,5,6}, - b: new int [] {1,1,2,3}, - carpetAnchorId: "carpet5", - Name: "splinecarpet" - ) - } - ).WithTraceInfo( - LegendGroup: "scattercarpet-derived", - LegendGroupTitle: Plotly.NET.Title.init("scattercarpet derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.Carpet( - carpetId: "carpet6", - A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0}, - B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0}, - Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0} - ), - Chart.BubbleCarpet( - sizes: new int [] {10, 20, 30, 40}, - a: new int [] {4,5,5,6}, - b: new int [] {1,1,2,3}, - carpetAnchorId: "carpet6", - Name: "bubblecarpet" - ) - } - ).WithTraceInfo( - LegendGroup: "scattercarpet-derived", - LegendGroupTitle: Plotly.NET.Title.init("scattercarpet derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Combine( - new Plotly.NET.GenericChart [] - { - Chart.Carpet( - carpetId: "carpet7", - A: new double [] { 0.0, 1.0, 2.0, 3.0, 0.0, 1.0, 2.0, 3.0, 0.0, 1.0, 2.0, 3.0}, - B: new double[] { 4.0, 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0, 6.0}, - X: new double[] { 2.0, 3.0, 4.0, 5.0, 2.2, 3.1, 4.1, 5.1, 1.5, 2.5, 3.5, 4.5}, - Y: new double [] { 1.0, 1.4, 1.6, 1.75, 2.0, 2.5, 2.7, 2.75, 3.0, 3.5, 3.7, 3.75} - ), - Chart.ContourCarpet( - z: new double [] { 1.0, 1.96, 2.56, 3.0625, 4.0, 5.0625, 1.0, 7.5625, 9.0, 12.25, 15.21, 14.0625 }, - carpetAnchorId: "carpet7", - A: new int [] { 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3}, - B: new int[] { 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6}, - ShowScale: false, - ShowLegend: true, - Name: "contourcarpet" - ) - } - ).WithTraceInfo( - LegendGroup: "carpet-other", - LegendGroupTitle: Plotly.NET.Title.init("other carpet traces", Font: Plotly.NET.Font.init(Size: 20)) - ), + // //carpet traces + // Chart.Carpet( + // carpetId: "carpet1", + // A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0}, + // B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0}, + // Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0}, + // Name:"carpet", + // ShowLegend: true + // ), + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.Carpet( + // carpetId: "carpet2", + // A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0}, + // B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0}, + // Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0} + // ), + // Chart.ScatterCarpet( + // a: new int [] {4,5,5,6}, + // b: new int [] {1,1,2,3}, + // carpetAnchorId: "carpet2", + // mode: Mode.Markers, + // Name: "scattercarpet" + // ) + // } + // ).WithTraceInfo( + // LegendGroup: "scattercarpet-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scattercarpet derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.Carpet( + // carpetId: "carpet3", + // A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0}, + // B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0}, + // Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0} + // ), + // Chart.PointCarpet( + // a: new int [] {4,5,5,6}, + // b: new int [] {1,1,2,3}, + // carpetAnchorId: "carpet3", + // Name: "pointcarpet" + // ) + // } + // ).WithTraceInfo( + // LegendGroup: "scattercarpet-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scattercarpet derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.Carpet( + // carpetId: "carpet4", + // A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0}, + // B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0}, + // Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0} + // ), + // Chart.LineCarpet( + // a: new int [] {4,5,5,6}, + // b: new int [] {1,1,2,3}, + // carpetAnchorId: "carpet4", + // Name: "linecarpet" + // ) + // } + // ).WithTraceInfo( + // LegendGroup: "scattercarpet-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scattercarpet derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.Carpet( + // carpetId: "carpet5", + // A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0}, + // B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0}, + // Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0} + // ), + // Chart.SplineCarpet( + // a: new int [] {4,5,5,6}, + // b: new int [] {1,1,2,3}, + // carpetAnchorId: "carpet5", + // Name: "splinecarpet" + // ) + // } + // ).WithTraceInfo( + // LegendGroup: "scattercarpet-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scattercarpet derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.Carpet( + // carpetId: "carpet6", + // A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0}, + // B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0}, + // Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0} + // ), + // Chart.BubbleCarpet( + // sizes: new int [] {10, 20, 30, 40}, + // a: new int [] {4,5,5,6}, + // b: new int [] {1,1,2,3}, + // carpetAnchorId: "carpet6", + // Name: "bubblecarpet" + // ) + // } + // ).WithTraceInfo( + // LegendGroup: "scattercarpet-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scattercarpet derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Combine( + // new Plotly.NET.GenericChart [] + // { + // Chart.Carpet( + // carpetId: "carpet7", + // A: new double [] { 0.0, 1.0, 2.0, 3.0, 0.0, 1.0, 2.0, 3.0, 0.0, 1.0, 2.0, 3.0}, + // B: new double[] { 4.0, 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0, 6.0}, + // X: new double[] { 2.0, 3.0, 4.0, 5.0, 2.2, 3.1, 4.1, 5.1, 1.5, 2.5, 3.5, 4.5}, + // Y: new double [] { 1.0, 1.4, 1.6, 1.75, 2.0, 2.5, 2.7, 2.75, 3.0, 3.5, 3.7, 3.75} + // ), + // Chart.ContourCarpet( + // z: new double [] { 1.0, 1.96, 2.56, 3.0625, 4.0, 5.0625, 1.0, 7.5625, 9.0, 12.25, 15.21, 14.0625 }, + // carpetAnchorId: "carpet7", + // A: new int [] { 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3}, + // B: new int[] { 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6}, + // ShowScale: false, + // ShowLegend: true, + // Name: "contourcarpet" + // ) + // } + // ).WithTraceInfo( + // LegendGroup: "carpet-other", + // LegendGroupTitle: Plotly.NET.Title.init("other carpet traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), - //domain traces - Chart.Pie( - values: new double [] {69, 420}, - Labels: new string [] {"A", "B"}, - Name: "pie" - ), - Chart.Sunburst( - Values: new int [] {19, 26, 55}, - labels: new string [] {"A", "B", "C"}, - parents: new string [] {"", "", "B"}, - Name: "sunburst" - ), - Chart.Treemap( - Values: new int [] {19, 26, 55}, - labels: new string [] {"A", "B", "C"}, - parents: new string [] {"", "", "B"}, - Name: "treemap" - ), - Chart.ParallelCoord( - dimensions: new Plotly.NET.TraceObjects.Dimension [] { - Plotly.NET.TraceObjects.Dimension.initParallel(Label: "A", Values: new int [] {1, 4, 3}), - Plotly.NET.TraceObjects.Dimension.initParallel(Label: "B", Values: new int [] {3, 1, 2}) - }, - Name: "parcoords" - ), - Chart.ParallelCategories( - dimensions: new Plotly.NET.TraceObjects.Dimension [] { - Plotly.NET.TraceObjects.Dimension.initParallel(Label: "A", Values: new int [] {1, 1, 2}), - Plotly.NET.TraceObjects.Dimension.initParallel(Label: "B", Values: new int [] {3, 3, 3}) - }, - Name: "parcats" - ), - Chart.Sankey( - nodes: Plotly.NET.TraceObjects.SankeyNodes.init( - Label: new string [] {"A", "B", "C", "D"} - ), - links: Plotly.NET.TraceObjects.SankeyLinks.init( - Source: new int [] {0, 1, 1 }, - Target: new int [] {2, 2, 3 }, - Value: new int [] {1, 2, 5} - ) - ), - Chart.Icicle( - Values: new int [] {19, 26, 55}, - labels: new string [] {"A", "B", "C"}, - parents: new string [] {"", "", "B"}, - Name: "icicle" - ), + // //domain traces + // Chart.Pie( + // values: new double [] {69, 420}, + // Labels: new string [] {"A", "B"}, + // Name: "pie" + // ), + // Chart.Sunburst( + // Values: new int [] {19, 26, 55}, + // labels: new string [] {"A", "B", "C"}, + // parents: new string [] {"", "", "B"}, + // Name: "sunburst" + // ), + // Chart.Treemap( + // Values: new int [] {19, 26, 55}, + // labels: new string [] {"A", "B", "C"}, + // parents: new string [] {"", "", "B"}, + // Name: "treemap" + // ), + // Chart.ParallelCoord( + // dimensions: new Plotly.NET.TraceObjects.Dimension [] { + // Plotly.NET.TraceObjects.Dimension.initParallel(Label: "A", Values: new int [] {1, 4, 3}), + // Plotly.NET.TraceObjects.Dimension.initParallel(Label: "B", Values: new int [] {3, 1, 2}) + // }, + // Name: "parcoords" + // ), + // Chart.ParallelCategories( + // dimensions: new Plotly.NET.TraceObjects.Dimension [] { + // Plotly.NET.TraceObjects.Dimension.initParallel(Label: "A", Values: new int [] {1, 1, 2}), + // Plotly.NET.TraceObjects.Dimension.initParallel(Label: "B", Values: new int [] {3, 3, 3}) + // }, + // Name: "parcats" + // ), + // Chart.Sankey( + // nodes: Plotly.NET.TraceObjects.SankeyNodes.init( + // Label: new string [] {"A", "B", "C", "D"} + // ), + // links: Plotly.NET.TraceObjects.SankeyLinks.init( + // Source: new int [] {0, 1, 1 }, + // Target: new int [] {2, 2, 3 }, + // Value: new int [] {1, 2, 5} + // ) + // ), + // Chart.Icicle( + // Values: new int [] {19, 26, 55}, + // labels: new string [] {"A", "B", "C"}, + // parents: new string [] {"", "", "B"}, + // Name: "icicle" + // ), - //smith traces - Chart.ScatterSmith( - real: new double [] {1,2,3,4}, - imag: new double [] {1,2,3,4}, - mode: Mode.Markers, - Name: "scattersmith" - ).WithTraceInfo( - LegendGroup: "scattersmith-derived", - LegendGroupTitle: Plotly.NET.Title.init("scattersmith derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.PointSmith( - real: new double [] {1,2,3,4}, - imag: new double [] {1,2,3,4}, - Name: "pointsmith" - ).WithTraceInfo( - LegendGroup: "scattersmith-derived", - LegendGroupTitle: Plotly.NET.Title.init("scattersmith derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.LineSmith( - real: new double [] {1,2,3,4}, - imag: new double [] {1,2,3,4}, - Name: "linesmith" - ).WithTraceInfo( - LegendGroup: "scattersmith-derived", - LegendGroupTitle: Plotly.NET.Title.init("scattersmith derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.BubbleSmith( - sizes: new int [] {10, 20, 30, 40}, - real: new double [] {1,2,3,4}, - imag: new double [] {1,2,3,4}, - Name: "bubblesmith" - ).WithTraceInfo( - LegendGroup: "scattersmith-derived", - LegendGroupTitle: Plotly.NET.Title.init("scattersmith derived traces", Font: Plotly.NET.Font.init(Size: 20)) - ), - Chart.Invisible(), - Chart.Invisible(), - Chart.Invisible() - } - ) - .WithSize(1600, 2200) - .Show(); + // //smith traces + // Chart.ScatterSmith( + // real: new double [] {1,2,3,4}, + // imag: new double [] {1,2,3,4}, + // mode: Mode.Markers, + // Name: "scattersmith" + // ).WithTraceInfo( + // LegendGroup: "scattersmith-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scattersmith derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.PointSmith( + // real: new double [] {1,2,3,4}, + // imag: new double [] {1,2,3,4}, + // Name: "pointsmith" + // ).WithTraceInfo( + // LegendGroup: "scattersmith-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scattersmith derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.LineSmith( + // real: new double [] {1,2,3,4}, + // imag: new double [] {1,2,3,4}, + // Name: "linesmith" + // ).WithTraceInfo( + // LegendGroup: "scattersmith-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scattersmith derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.BubbleSmith( + // sizes: new int [] {10, 20, 30, 40}, + // real: new double [] {1,2,3,4}, + // imag: new double [] {1,2,3,4}, + // Name: "bubblesmith" + // ).WithTraceInfo( + // LegendGroup: "scattersmith-derived", + // LegendGroupTitle: Plotly.NET.Title.init("scattersmith derived traces", Font: Plotly.NET.Font.init(Size: 20)) + // ), + // Chart.Invisible(), + // Chart.Invisible(), + // Chart.Invisible() + // } + //) + //.WithSize(1600, 2200) + //.Show(); } } } diff --git a/tests/ExtensionLibsTests/CSharpTests/ExtensionMethodsTests.cs b/tests/ExtensionLibsTests/CSharpTests/ExtensionMethodsTests.cs index 5167d6a05..108789a1f 100644 --- a/tests/ExtensionLibsTests/CSharpTests/ExtensionMethodsTests.cs +++ b/tests/ExtensionLibsTests/CSharpTests/ExtensionMethodsTests.cs @@ -7,7 +7,7 @@ namespace Plotly.NET.CSharp.Tests { public class ExtensionMethodsTests { - internal GenericChart chart = Chart2D.Chart.Point(x: new double[] { 1, 2 }, y: new double[] { 5, 10 }, UseDefaults: false); + internal GenericChart chart = Chart.Point(x: new double[] { 1, 2 }, y: new double[] { 5, 10 }, UseDefaults: false); [Fact] public void CanUseCSharpExtensionMethod() From 04e3813d7137dc5a0735babd16923f67bfaf9685 Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Thu, 17 Oct 2024 15:28:29 +0200 Subject: [PATCH 22/36] fix all xml doc warnings --- src/Plotly.NET.CSharp/ChartAPI/Chart.cs | 13 ++++++++++++- src/Plotly.NET.CSharp/ChartAPI/Chart2D.cs | 8 +++----- src/Plotly.NET/ChartAPI/Chart.fs | 19 +++++++++++++++++-- src/Plotly.NET/ChartAPI/Chart2D.fs | 9 ++++----- src/Plotly.NET/ChartAPI/GenericChart.fs | 2 +- src/Plotly.NET/CommonAbstractions/ColorBar.fs | 2 ++ .../DisplayOptions/DisplayOptions.fs | 12 ++++++++++-- 7 files changed, 49 insertions(+), 16 deletions(-) diff --git a/src/Plotly.NET.CSharp/ChartAPI/Chart.cs b/src/Plotly.NET.CSharp/ChartAPI/Chart.cs index 8a335e920..10cbdd274 100644 --- a/src/Plotly.NET.CSharp/ChartAPI/Chart.cs +++ b/src/Plotly.NET.CSharp/ChartAPI/Chart.cs @@ -10,11 +10,22 @@ namespace Plotly.NET.CSharp { + /// + /// + /// public static partial class Chart { + /// + /// Create a combined chart with the given charts merged + /// + /// the charts to combine + /// public static GenericChart Combine(IEnumerable gCharts) => Plotly.NET.Chart.Combine(gCharts); - + /// + /// Creates a chart that is completely invisible when rendered. The Chart object however is NOT empty! Combining this chart with other charts will have unforseen consequences (it has for example invisible axes that can override other axes if used in Chart.Combine) + /// + /// public static GenericChart Invisible() => Plotly.NET.Chart.Invisible(); /// diff --git a/src/Plotly.NET.CSharp/ChartAPI/Chart2D.cs b/src/Plotly.NET.CSharp/ChartAPI/Chart2D.cs index 0ec84d91d..f5d9f0e69 100644 --- a/src/Plotly.NET.CSharp/ChartAPI/Chart2D.cs +++ b/src/Plotly.NET.CSharp/ChartAPI/Chart2D.cs @@ -18,11 +18,9 @@ public static partial class Chart /// /// Scatter charts are the basis of Point, Line, and Bubble Charts, and can be customized as such. We also provide abstractions for those: Chart.Line, Chart.Point, Chart.Bubble /// - /// Sets the x coordinates of the plotted data. - /// Sets the x coordinates of the plotted data. Use two inner arrays here to plot multicategorial data - /// Sets the y coordinates of the plotted data. - /// Sets the x coordinates of the plotted data. Use two inner arrays here to plot multicategorial data - /// Determines the drawing mode for this scatter trace. + /// Sets the x coordinates of the plotted data. + /// Sets the y coordinates of the plotted data. + /// Determines the drawing mode for this scatter trace. /// Sets the trace name. The trace name appear as the legend item and on hover /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the opactity of the trace diff --git a/src/Plotly.NET/ChartAPI/Chart.fs b/src/Plotly.NET/ChartAPI/Chart.fs index 428773a39..dc8ab847d 100644 --- a/src/Plotly.NET/ChartAPI/Chart.fs +++ b/src/Plotly.NET/ChartAPI/Chart.fs @@ -664,6 +664,10 @@ type Chart = /// /// Applies the given styles to the ColorBar object(s) of the chart's trace(s). Overwrites attributes with the same name that are already set. /// + /// Sets the colorbar's title + /// Sets the title font. + /// Sets the standoff distance (in px) between the axis labels and the title text The default value is a function of the axis tick labels, the title `font.size` and the axis `linewidth`. Note that the axis title position is always constrained within the margins, so the actual standoff distance is always less than the set or default value. By setting `standoff` and turning on `automargin`, plotly.js will push the margins to fit the axis title at given standoff distance. + /// Sets the Title object (use this for more finegrained control than the other title-associated arguments) /// Sets the color of padded area. /// Sets the axis line color. /// Sets the width (in px) or the border enclosing this color bar. @@ -700,7 +704,6 @@ type Chart = /// Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`. /// Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. /// Sets the tick width (in px). - /// Sets the ColorBar title. /// Sets the x position of the color bar (in plot fraction). /// Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar. /// Sets the amount of padding (in px) along the x direction. @@ -3690,12 +3693,20 @@ type Chart = /// /// Applies the given styles to the chart's DisplayOptions object. Overwrites attributes with the same name that are already set. /// + /// The title metadata for the document + /// The document charset + /// The description metadata for the document + /// base64 encoded favicon image /// Additional tags that will be included in the document's head - /// HTML tags that appear below the chart in HTML docs + /// HTML tags that appear below the chart in HTML docs /// Sets how plotly is referenced in the head of html docs. When CDN, a script tag that references the plotly.js CDN is included in the output. When Full, a script tag containing the plotly.js source code (~3MB) is included in the output. HTML files generated with this option are fully self-contained and can be used offline [] static member withDisplayOptionsStyle ( + ?DocumentTitle: string, + ?DocumentCharset: string, + ?DocumentDescription: string, + ?DocumentFavicon: XmlNode, ?AdditionalHeadTags: XmlNode list, ?ChartDescription: XmlNode list, ?PlotlyJSReference: PlotlyJSReference @@ -3704,6 +3715,10 @@ type Chart = let displayOpts' = DisplayOptions.init ( + ?DocumentTitle = DocumentTitle, + ?DocumentCharset = DocumentCharset, + ?DocumentDescription = DocumentDescription, + ?DocumentFavicon = DocumentFavicon, ?AdditionalHeadTags = AdditionalHeadTags, ?ChartDescription = ChartDescription, ?PlotlyJSReference = PlotlyJSReference diff --git a/src/Plotly.NET/ChartAPI/Chart2D.fs b/src/Plotly.NET/ChartAPI/Chart2D.fs index 2347cf727..3be2daff7 100644 --- a/src/Plotly.NET/ChartAPI/Chart2D.fs +++ b/src/Plotly.NET/ChartAPI/Chart2D.fs @@ -4398,7 +4398,7 @@ module Chart2D = /// Sets the constraint operation. "=" keeps regions equal to `value` "<" and "<=" keep regions less than `value` ">" and ">=" keep regions greater than `value` "[]", "()", "[)", and "(]" keep regions inside `value[0]` to `value[1]` "][", ")(", "](", ")[" keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms. /// If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters. /// Determines whether to label the contour lines with their values. - /// Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`. + /// Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`. /// Sets the starting contour level value. Must be less than `contours.end` /// Sets the end contour level value. Must be more than `contours.start` /// Sets the styles of the contours (use this for more finegrained control than the other contour-associated arguments). @@ -4545,7 +4545,7 @@ module Chart2D = /// Sets the constraint operation. "=" keeps regions equal to `value` "<" and "<=" keep regions less than `value` ">" and ">=" keep regions greater than `value` "[]", "()", "[)", and "(]" keep regions inside `value[0]` to `value[1]` "][", ")(", "](", ")[" keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms. /// If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters. /// Determines whether to label the contour lines with their values. - /// Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`. + /// Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`. /// Sets the starting contour level value. Must be less than `contours.end` /// Sets the end contour level value. Must be more than `contours.start` /// Sets the styles of the contours (use this for more finegrained control than the other contour-associated arguments). @@ -4553,7 +4553,6 @@ module Chart2D = /// Sets the colorscale for this trace. /// Whether or not to show the colorscale/colorbar /// Reverses the color mapping if true. If true, `zmin` will correspond to the last color in the array and `zmax` will correspond to the first color. - /// Sets the style of the contours /// Sets the maximum number of contour levels. The actual number of contours will be chosen automatically to be less than or equal to the value of `ncontours`. Has an effect only if `autocontour` is "true" or if `contours.size` is missing. /// If set to false, ignore the global default settings set in `Defaults` [] @@ -5123,7 +5122,7 @@ module Chart2D = /// Sets the constraint operation. "=" keeps regions equal to `value` "<" and "<=" keep regions less than `value` ">" and ">=" keep regions greater than `value` "[]", "()", "[)", and "(]" keep regions inside `value[0]` to `value[1]` "][", ")(", "](", ")[" keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms. /// If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters. /// Determines whether to label the contour lines with their values. - /// Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`. + /// Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`. /// Sets the starting contour level value. Must be less than `contours.end` /// Sets the end contour level value. Must be more than `contours.start` /// Sets the styles of the contours (use this for more finegrained control than the other contour-associated arguments). @@ -5827,7 +5826,7 @@ module Chart2D = /// Sets the constraint operation. "=" keeps regions equal to `value` "<" and "<=" keep regions less than `value` ">" and ">=" keep regions greater than `value` "[]", "()", "[)", and "(]" keep regions inside `value[0]` to `value[1]` "][", ")(", "](", ")[" keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms. /// If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters. /// Determines whether to label the contour lines with their values. - /// Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`. + /// Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`. /// Sets the starting contour level value. Must be less than `contours.end` /// Sets the end contour level value. Must be more than `contours.start` /// Sets the styles of the contours (use this for more finegrained control than the other contour-associated arguments). diff --git a/src/Plotly.NET/ChartAPI/GenericChart.fs b/src/Plotly.NET/ChartAPI/GenericChart.fs index e8c9ad6bc..ba6336b4d 100644 --- a/src/Plotly.NET/ChartAPI/GenericChart.fs +++ b/src/Plotly.NET/ChartAPI/GenericChart.fs @@ -534,7 +534,7 @@ type GenericChart = /// If false, empty objects are used. /// /// wether or not to set default objects for Layout, Config and DisplayOptions - /// the input Trace collection + /// the input Trace static member ofTraceObject (useDefaults: bool) (trace: Trace) = GenericChart.ofTraceObjects useDefaults (Seq.singleton trace) /// diff --git a/src/Plotly.NET/CommonAbstractions/ColorBar.fs b/src/Plotly.NET/CommonAbstractions/ColorBar.fs index 0c3eca708..d4ccffb3a 100644 --- a/src/Plotly.NET/CommonAbstractions/ColorBar.fs +++ b/src/Plotly.NET/CommonAbstractions/ColorBar.fs @@ -200,9 +200,11 @@ type ColorBar() = /// Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*. /// 'Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center*, or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. /// Sets the amount of padding (in px) along the x direction. + /// Sets the container `x` refers to. "container" spans the entire `width` of the plot. "paper" refers to the width of the plotting area only. /// Sets the y position of the color bar (in plot fraction).Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.' /// 'Sets this color bar\'s vertical position anchor. This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*.' /// Sets the amount of padding (in px) along the y direction. + /// Sets the container `y` refers to. "container" spans the entire `height` of the plot. "paper" refers to the height of the plotting area only. static member style ( ?BGColor: Color, diff --git a/src/Plotly.NET/DisplayOptions/DisplayOptions.fs b/src/Plotly.NET/DisplayOptions/DisplayOptions.fs index c03c7215e..c1a04ffe4 100644 --- a/src/Plotly.NET/DisplayOptions/DisplayOptions.fs +++ b/src/Plotly.NET/DisplayOptions/DisplayOptions.fs @@ -22,8 +22,12 @@ type DisplayOptions() = /// /// Returns a new DisplayOptions object with the given styles /// + /// The title metadata for the document + /// The document charset + /// The description metadata for the document + /// base64 encoded favicon image /// Additional tags that will be included in the document's head - /// HTML tags that appear below the chart in HTML docs + /// HTML tags that appear below the chart in HTML docs /// Sets how plotly is referenced in the head of html docs. When CDN, a script tag that references the plotly.js CDN is included in the output. When Full, a script tag containing the plotly.js source code (~3MB) is included in the output. HTML files generated with this option are fully self-contained and can be used offline static member init ( @@ -49,8 +53,12 @@ type DisplayOptions() = /// /// Returns a function sthat applies the given styles to a DisplayOptions object /// + /// The title metadata for the document + /// The document charset + /// The description metadata for the document + /// base64 encoded favicon image /// Additional tags that will be included in the document's head - /// HTML tags that appear below the chart in HTML docs + /// HTML tags that appear below the chart in HTML docs /// Sets how plotly is referenced in the head of html docs. When CDN, a script tag that references the plotly.js CDN is included in the output. When Full, a script tag containing the plotly.js source code (~3MB) is included in the output. HTML files generated with this option are fully self-contained and can be used offline static member style ( From ceb2a4b0701db695386007a6bcb625dd3c444474 Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Thu, 17 Oct 2024 15:36:48 +0200 Subject: [PATCH 23/36] make core internals visible to all other projects --- src/Plotly.NET/Plotly.NET.fsproj | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Plotly.NET/Plotly.NET.fsproj b/src/Plotly.NET/Plotly.NET.fsproj index 52690bd3b..839ee387d 100644 --- a/src/Plotly.NET/Plotly.NET.fsproj +++ b/src/Plotly.NET/Plotly.NET.fsproj @@ -36,6 +36,13 @@ + + + + + + + From b6df9ea079b984fdefbe5dd72cbf5670d6a22b35 Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Wed, 23 Oct 2024 09:42:57 +0200 Subject: [PATCH 24/36] Remove CompiledName attributes, fix some xml docs, fix Chart.withSlider/s not having an append argument --- src/Plotly.NET.CSharp/ChartAPI/Chart.cs | 2 +- .../GenericChartExtensions.cs | 20 +- src/Plotly.NET/ChartAPI/Chart.fs | 192 ++++++------------ src/Plotly.NET/CommonAbstractions/Colors.fs | 8 - .../Traces/ObjectAbstractions/Contours.fs | 7 - 5 files changed, 78 insertions(+), 151 deletions(-) diff --git a/src/Plotly.NET.CSharp/ChartAPI/Chart.cs b/src/Plotly.NET.CSharp/ChartAPI/Chart.cs index 10cbdd274..050f20fd7 100644 --- a/src/Plotly.NET.CSharp/ChartAPI/Chart.cs +++ b/src/Plotly.NET.CSharp/ChartAPI/Chart.cs @@ -20,7 +20,7 @@ public static partial class Chart /// /// the charts to combine /// - public static GenericChart Combine(IEnumerable gCharts) => Plotly.NET.Chart.Combine(gCharts); + public static GenericChart Combine(IEnumerable gCharts) => Plotly.NET.Chart.combine(gCharts); /// /// Creates a chart that is completely invisible when rendered. The Chart object however is NOT empty! Combining this chart with other charts will have unforseen consequences (it has for example invisible axes that can override other axes if used in Chart.Combine) diff --git a/src/Plotly.NET.CSharp/GenericChartExtensions.cs b/src/Plotly.NET.CSharp/GenericChartExtensions.cs index 231dcedd4..5daaa06eb 100644 --- a/src/Plotly.NET.CSharp/GenericChartExtensions.cs +++ b/src/Plotly.NET.CSharp/GenericChartExtensions.cs @@ -35,7 +35,7 @@ public static void SaveHtml( string path, Optional OpenInBrowser = default ) => - Plotly.NET.Chart.SaveHtml( + Plotly.NET.Chart.saveHtml( path: path, OpenInBrowser: OpenInBrowser.ToOption() ).Invoke(gChart); @@ -44,7 +44,7 @@ public static void SaveHtml( /// Saves the given chart as a temporary html file and opens it in the browser. /// /// The chart to show in the browser - public static void Show(this GenericChart gChart) => Plotly.NET.Chart.Show(gChart); + public static void Show(this GenericChart gChart) => Plotly.NET.Chart.show(gChart); /// /// Sets trace information on the given chart. @@ -65,7 +65,7 @@ public static GenericChart WithTraceInfo( Optional LegendGroup = default, Optional LegendGroupTitle = default ) => - Plotly.NET.Chart.WithTraceInfo( + Plotly.NET.Chart.withTraceInfo( Name: Name.ToOption(), Visible: Visible.ToOption(), ShowLegend: ShowLegend.ToOption(), @@ -80,7 +80,7 @@ public static GenericChart WithSize( Optional<int> Width = default, Optional<int> Height = default ) => - Plotly.NET.Chart.WithSize(Width: Width.ToOption(), Height: Height.ToOption()).Invoke(gChart); + Plotly.NET.Chart.withSize(Width: Width.ToOption(), Height: Height.ToOption()).Invoke(gChart); /// <summary> /// Sets the given x axis styles on the input chart's layout. @@ -155,7 +155,7 @@ public static GenericChart WithXAxisStyle<MinType, MaxType, CategoryArrayType>( where MaxType : IConvertible where CategoryArrayType : IConvertible => - Plotly.NET.Chart.WithXAxisStyle<MinType, MaxType, CategoryArrayType>( + Plotly.NET.Chart.withXAxisStyle<MinType, MaxType, CategoryArrayType>( TitleText: TitleText.ToOption(), TitleFont: TitleFont.ToOption(), TitleStandoff: TitleStandoff.ToOption(), @@ -266,7 +266,7 @@ public static GenericChart WithYAxisStyle<MinType, MaxType, CategoryArrayType>( where MaxType : IConvertible where CategoryArrayType : IConvertible => - Plotly.NET.Chart.WithYAxisStyle<MinType, MaxType, CategoryArrayType>( + Plotly.NET.Chart.withYAxisStyle<MinType, MaxType, CategoryArrayType>( TitleText: TitleText.ToOption(), TitleFont: TitleFont.ToOption(), TitleStandoff: TitleStandoff.ToOption(), @@ -316,7 +316,7 @@ public static GenericChart WithMapbox( Optional<int> Id = default ) => - Plotly.NET.Chart.WithMapbox( + Plotly.NET.Chart.withMapbox( mapbox: mapbox, Id: Id.ToOption() ).Invoke(gChart); @@ -374,7 +374,7 @@ public static GenericChart WithXAxisRangeSlider( Optional<StyleParam.SubPlotId> Id = default ) => - Plotly.NET.Chart.WithXAxisRangeSlider( + Plotly.NET.Chart.withXAxisRangeSlider( rangeSlider: rangeSlider, Id: Id.ToOption() ).Invoke(gChart); @@ -393,7 +393,7 @@ public static GenericChart WithLegend( Optional<int> Id ) => - Plotly.NET.Chart.WithLegend( + Plotly.NET.Chart.withLegend( legend: legend, Id: Id.ToOption() ).Invoke(gChart); @@ -460,7 +460,7 @@ public static GenericChart WithLegendStyle( Optional<int> Id = default ) => - Plotly.NET.Chart.WithLegendStyle( + Plotly.NET.Chart.withLegendStyle( BGColor: BGColor.ToOption(), BorderColor: BorderColor.ToOption(), BorderWidth: BorderWidth.ToOption(), diff --git a/src/Plotly.NET/ChartAPI/Chart.fs b/src/Plotly.NET/ChartAPI/Chart.fs index dc8ab847d..5574d5700 100644 --- a/src/Plotly.NET/ChartAPI/Chart.fs +++ b/src/Plotly.NET/ChartAPI/Chart.fs @@ -23,7 +23,6 @@ type Chart = /// </summary> /// <param name="path">The path to save the chart html at.</param> /// <param name="OpenInBrowser">Whether or not to open the generated file in the browser (default: false)</param> - [<CompiledName("SaveHtml")>] static member saveHtml(path: string, ?OpenInBrowser: bool) = fun (ch: GenericChart) -> let show = defaultArg OpenInBrowser false @@ -45,7 +44,6 @@ type Chart = /// Saves the given chart as a temporary html file and opens it in the browser. /// </summary> /// <param name="ch">The chart to show in the browser</param> - [<CompiledName("Show")>] static member show(ch: GenericChart) = let guid = Guid.NewGuid().ToString() let tempPath = Path.GetTempPath() @@ -55,7 +53,6 @@ type Chart = // ####################### /// Create a combined chart with the given charts merged - [<CompiledName("Combine")>] static member combine(gCharts: seq<GenericChart>) = GenericChart.combine gCharts //============================================================================================================== @@ -89,7 +86,6 @@ type Chart = /// <param name="LegendRank">Sets the legend rank for the chart's trace(s). Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.</param> /// <param name="LegendGroup">Sets the legend group for the chart's trace(s). Traces part of the same legend group hide/show at the same time when toggling legend items.</param> /// <param name="LegendGroupTitle">Sets the title for the chart's trace legend group </param> - [<CompiledName("WithTraceInfo")>] static member withTraceInfo ( ?Name: string, @@ -123,7 +119,6 @@ type Chart = /// </summary> /// <param name="X">The new x axis anchor id for the chart's cartesian and/or carpet trace(s)</param> /// <param name="Y">The new x axis anchor id for the chart's cartesian and/or carpet trace(s)</param> - [<CompiledName("WithAxisAnchor")>] static member withAxisAnchor ( ?X, @@ -150,7 +145,6 @@ type Chart = /// Sets the color axis id for the chart's trace(s). /// </summary> /// <param name="id">The new color axis id for the chart's trace(s)</param> - [<CompiledName("WithColorAxisAnchor")>] static member withColorAxisAnchor(id: int) = fun (ch: GenericChart) -> ch |> GenericChart.mapTrace (Trace.setColorAxisAnchor id) @@ -158,7 +152,6 @@ type Chart = /// Sets the legend id for the chart's trace(s). /// </summary> /// <param name="id">The new Legend id for the chart's trace(s)</param> - [<CompiledName("WithLegendAnchor")>] static member withLegendAnchor(id: int) = fun (ch: GenericChart) -> ch |> GenericChart.mapTrace (Trace.setLegendAnchor id) @@ -167,7 +160,6 @@ type Chart = /// </summary> /// <param name="marker">The new marker for the chart's trace(s)</param> /// <param name="Combine">Whether or not to combine the objects if there is already a marker (default is false)</param> - [<CompiledName("SetMarker")>] static member setMarker(marker: Marker, ?Combine: bool) = let combine = defaultArg Combine false @@ -183,7 +175,6 @@ type Chart = /// If there is already a marker set, the objects are combined. /// </summary> /// <param name="marker">The new marker for the chart's trace(s)</param> - [<CompiledName("WithMarker")>] static member withMarker(marker: Marker) = (fun (ch: GenericChart) -> ch |> Chart.setMarker (marker, true)) @@ -224,7 +215,6 @@ type Chart = /// <param name="MultiSymbol3D">Sets the individual marker symbols for 3d traces.</param> /// <param name="OutlierColor">Sets the color of the outlier sample points.</param> /// <param name="OutlierWidth">Sets the width of the outlier sample points.</param> - [<CompiledName("WithMarkerStyle")>] static member withMarkerStyle ( ?Angle: float, @@ -308,7 +298,6 @@ type Chart = /// </summary> /// <param name="line">The new Line for the chart's trace(s)</param> /// <param name="Combine">Whether or not to combine the objects if there is already a Line (default is false)</param> - [<CompiledName("SetLine")>] static member setLine(line: Line, ?Combine: bool) = let combine = defaultArg Combine false @@ -324,7 +313,6 @@ type Chart = /// If there is already a Line set, the objects are combined. /// </summary> /// <param name="line">The new line for the chart's trace(s)</param> - [<CompiledName("WithLine")>] static member withLine(line: Line) = (fun (ch: GenericChart) -> ch |> Chart.setLine (line, true)) @@ -351,7 +339,6 @@ type Chart = /// <param name="MultiWidth">Sets the individual line width (in px).</param> /// <param name="OutlierColor">Sets the color of the outline of outliers</param> /// <param name="OutlierWidth">Sets the width of the outline of outliers</param> - [<CompiledName("WithLineStyle")>] static member withLineStyle ( ?BackOff: StyleParam.BackOff, @@ -407,7 +394,6 @@ type Chart = /// </summary> /// <param name="xError">The new Error in the x dimension for the chart's trace(s)</param> /// <param name="Combine">Whether or not to combine the objects if there is already an Error object set (default is false)</param> - [<CompiledName("SetXError")>] static member setXError(xError: Error, ?Combine: bool) = let combine = defaultArg Combine false @@ -423,7 +409,6 @@ type Chart = /// If there is already an error set, the objects are combined. /// </summary> /// <param name="xError">The new error for the chart's trace(s)</param> - [<CompiledName("WithXError")>] static member withXError(xError: Error) = (fun (ch: GenericChart) -> ch |> Chart.setXError (xError, true)) @@ -443,7 +428,6 @@ type Chart = /// <param name ="Color">Sets the stoke color of the error bars.</param> /// <param name ="Thickness">Sets the thickness (in px) of the error bars.</param> /// <param name ="Width">Sets the width (in px) of the cross-bar at both ends of the error bars.</param> - [<CompiledName("WithXErrorStyle")>] static member withXErrorStyle ( ?Visible: bool, @@ -485,7 +469,6 @@ type Chart = /// </summary> /// <param name="yError">The new Error in the x dimension for the chart's trace(s)</param> /// <param name="Combine">Whether or not to combine the objects if there is already an Error object set (default is false)</param> - [<CompiledName("SetYError")>] static member setYError(yError: Error, ?Combine: bool) = let combine = defaultArg Combine false @@ -501,7 +484,6 @@ type Chart = /// If there is already an error set, the objects are combined. /// </summary> /// <param name="yError">The new error for the chart's trace(s)</param> - [<CompiledName("WithYError")>] static member withYError(yError: Error) = (fun (ch: GenericChart) -> ch |> Chart.setYError (yError, true)) @@ -521,7 +503,6 @@ type Chart = /// <param name ="Color">Sets the stoke color of the error bars.</param> /// <param name ="Thickness">Sets the thickness (in px) of the error bars.</param> /// <param name ="Width">Sets the width (in px) of the cross-bar at both ends of the error bars.</param> - [<CompiledName("WithYErrorStyle")>] static member withYErrorStyle ( ?Visible: bool, @@ -563,7 +544,6 @@ type Chart = /// </summary> /// <param name="zError">The new Error in the x dimension for the chart's trace(s)</param> /// <param name="Combine">Whether or not to combine the objects if there is already an Error object set (default is false)</param> - [<CompiledName("SetZError")>] static member setZError(zError: Error, ?Combine: bool) = let combine = defaultArg Combine false @@ -579,7 +559,6 @@ type Chart = /// If there is already an error set, the objects are combined. /// </summary> /// <param name="zError">The new error for the chart's trace(s)</param> - [<CompiledName("WithZError")>] static member withZError(zError: Error) = (fun (ch: GenericChart) -> ch |> Chart.setZError (zError, true)) @@ -599,7 +578,6 @@ type Chart = /// <param name ="Color">Sets the stoke color of the error bars.</param> /// <param name ="Thickness">Sets the thickness (in px) of the error bars.</param> /// <param name ="Width">Sets the width (in px) of the cross-bar at both ends of the error bars.</param> - [<CompiledName("WithZErrorStyle")>] static member withZErrorStyle ( ?Visible: bool, @@ -641,7 +619,6 @@ type Chart = /// </summary> /// <param name="colorBar">The new ColorBar for the chart's trace(s)</param> /// <param name="Combine">Whether or not to combine the objects if there is already a ColorBar object set (default is false)</param> - [<CompiledName("SetColorBar")>] static member setColorBar(colorBar: ColorBar, ?Combine: bool) = let combine = defaultArg Combine false @@ -657,7 +634,6 @@ type Chart = /// If there is already a ColorBar set, the objects are combined. /// </summary> /// <param name="colorbar">The new ColorBar for the chart's trace(s)</param> - [<CompiledName("WithColorBar")>] static member withColorBar(colorbar: ColorBar) = (fun (ch: GenericChart) -> ch |> Chart.setColorBar (colorbar, true)) @@ -712,7 +688,6 @@ type Chart = /// <param name="YAnchor">Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar.</param> /// <param name="YPad">Sets the amount of padding (in px) along the y direction.</param> /// <param name="YRef">Sets the container `y` refers to. "container" spans the entire `height` of the plot. "paper" refers to the height of the plotting area only.</param> - [<CompiledName("WithColorbarStyle")>] static member withColorBarStyle ( ?TitleText: string, @@ -832,7 +807,6 @@ type Chart = /// /// If there is already an layout set, the object is replaced. /// </summary> - [<CompiledName("SetLayout")>] static member setLayout(layout: Layout) = (fun (ch: GenericChart) -> GenericChart.setLayout layout ch) @@ -841,7 +815,6 @@ type Chart = /// /// If there is already an layout set, the objects are combined. /// </summary> - [<CompiledName("WithLayout")>] static member withLayout(layout: Layout) = (fun (ch: GenericChart) -> GenericChart.addLayout layout ch) @@ -922,7 +895,6 @@ type Chart = /// <param name="Images">A collection containing all Images of this layout. </param> /// <param name="Sliders">A collection containing all Sliders of this layout. </param> /// <param name="UpdateMenus">A collection containing all UpdateMenus of this layout. </param> - [<CompiledName("WithLayoutStyle")>] static member withLayoutStyle ( ?Title: Title, @@ -1089,7 +1061,6 @@ type Chart = /// <param name="id">The target axis id with which the axis should be set.</param> /// <param name="SceneAxis">If set on a scene, define whether it is the x, y or z axis. default is x.</param> /// <param name="Combine">Whether or not to combine the objects if there is already an axis set (default is false)</param> - [<CompiledName("SetAxis")>] static member setAxis ( axis: LinearAxis, @@ -1169,7 +1140,6 @@ type Chart = /// </summary> /// <param name="xAxis">The x axis to set on the chart's layout</param> /// <param name="Id">The target axis id with which the axis should be set. Default is 1.</param> - [<CompiledName("WithXAxis")>] static member withXAxis(xAxis: LinearAxis, ?Id: StyleParam.SubPlotId) = let id = defaultArg Id (StyleParam.SubPlotId.XAxis 1) @@ -1212,7 +1182,6 @@ type Chart = /// <param name="BackgroundColor">Sets the background color of this axis' wall. (Only has an effect on 3D scenes)</param> /// <param name="ShowBackground">Sets whether or not this axis' wall has a background color. (Only has an effect on 3D scenes)</param> /// <param name="Id">The target axis id on which the styles should be applied. Default is 1.</param> - [<CompiledName("WithXAxisStyle")>] static member withXAxisStyle ( ?TitleText: string, @@ -1291,7 +1260,6 @@ type Chart = Chart.withXAxis (xaxis, ?Id = Id) /// Sets the range slider for the xAxis - [<CompiledName("WithXAxisRangeSlider")>] static member withXAxisRangeSlider(rangeSlider: RangeSlider, ?Id) = let xaxis = LinearAxis.init (RangeSlider = rangeSlider) @@ -1305,7 +1273,6 @@ type Chart = /// </summary> /// <param name="yAxis">The y axis to set on the chart's layout</param> /// <param name="Id">The target axis id with which the axis should be set. Default is 1.</param> - [<CompiledName("WithYAxis")>] static member withYAxis(yAxis: LinearAxis, ?Id: StyleParam.SubPlotId) = let id = defaultArg Id (StyleParam.SubPlotId.YAxis 1) @@ -1350,7 +1317,6 @@ type Chart = /// <param name="BackgroundColor">Sets the background color of this axis' wall. (Only has an effect on 3D scenes)</param> /// <param name="ShowBackground">Sets whether or not this axis' wall has a background color. (Only has an effect on 3D scenes)</param> /// <param name="Id">The target axis id on which the styles should be applied. Default is 1.</param> - [<CompiledName("WithYAxisStyle")>] static member withYAxisStyle ( ?TitleText: string, @@ -1439,7 +1405,6 @@ type Chart = /// </summary> /// <param name="zAxis">The z axis to set on the chart's layout</param> /// <param name="Id">The target scene id on which the axis should be set. Default is 1.</param> - [<CompiledName("WithZAxis")>] static member withZAxis(zAxis: LinearAxis, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Scene @@ -1481,7 +1446,6 @@ type Chart = /// <param name="BackgroundColor">Sets the background color of this axis' wall. (Only has an effect on 3D scenes)</param> /// <param name="ShowBackground">Sets whether or not this axis' wall has a background color. (Only has an effect on 3D scenes)</param> /// <param name="Id">The target scene id on which the axis styles should be applied. Default is 1.</param> - [<CompiledName("WithZAxisStyle")>] static member withZAxisStyle ( ?TitleText: string, @@ -1563,7 +1527,6 @@ type Chart = /// <param name="scene">The Scene object to set on the chart's layout</param> /// <param name="id">The target scene id with which the Scene object should be set.</param> /// <param name="Combine">Whether or not to combine the objects if there is already an Scene set (default is false)</param> - [<CompiledName("SetScene")>] static member setScene ( scene: Scene, @@ -1586,7 +1549,6 @@ type Chart = /// </summary> /// <param name="scene">The Scene to set on the chart's layout</param> /// <param name="Id">The target scene id on which the scene should be set. Default is 1.</param> - [<CompiledName("WithScene")>] static member withScene(scene: Scene, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Scene @@ -1611,7 +1573,6 @@ type Chart = /// <param name="YAxis">Sets this scene's yaxis</param> /// <param name="ZAxis">Sets this scene's zaxis</param> /// <param name="Id">The target scene id</param> - [<CompiledName("WithSceneStyle")>] static member withSceneStyle ( ?Annotations: seq<Annotation>, @@ -1653,7 +1614,6 @@ type Chart = /// <param name="polar">The Polar object to set on the chart's layout</param> /// <param name="id">The target polar id with which the Polar object should be set.</param> /// <param name="Combine">Whether or not to combine the objects if there is already an Polar set (default is false)</param> - [<CompiledName("SetPolar")>] static member setPolar ( polar: Polar, @@ -1676,7 +1636,6 @@ type Chart = /// </summary> /// <param name="polar">The new Polar for the chart's layout</param> /// <param name="Id">The target polar id on which the polar object should be set. Default is 1.</param> - [<CompiledName("WithPolar")>] static member withPolar(polar: Polar, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Polar @@ -1697,7 +1656,6 @@ type Chart = /// <param name="GridShape">Determines if the radial axis grid lines and angular axis line are drawn as "circular" sectors or as "linear" (polygon) sectors. Has an effect only when the angular axis has `type` "category". Note that `radialaxis.angle` is snapped to the angle of the closest vertex when `gridshape` is "circular" (so that radial axis scale is the same as the data scale).</param> /// <param name="UIRevision">Controls persistence of user-driven changes in axis attributes, if not overridden in the individual axes. Defaults to `layout.uirevision`.</param> /// <param name="Id">The target polar id</param> - [<CompiledName("WithPolarStyle")>] static member withPolarStyle ( ?Domain: Domain, @@ -1731,7 +1689,6 @@ type Chart = /// <param name="angularAxis">The AngularAxis to set on the target polar object on the chart's layout</param> /// <param name="id">The target polar id with which the AngularAxis should be set.(default is 1)</param> /// <param name="Combine">Whether or not to combine the objects if there is already an axis set (default is false)</param> - [<CompiledName("SetAngularAxis")>] static member setAngularAxis ( angularAxis: AngularAxis, @@ -1776,7 +1733,6 @@ type Chart = /// </summary> /// <param name="angularAxis">The new AngularAxis for the chart layout's polar object</param> /// <param name="Id">The target polar id on which the AngularAxis should be set. Default is 1.</param> - [<CompiledName("WithAngularAxis")>] static member withAngularAxis(angularAxis: AngularAxis, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Polar @@ -1789,7 +1745,6 @@ type Chart = /// <param name="radialAxis">The RadialAxis to set on the target polar object on the chart's layout</param> /// <param name="id">The target polar id with which the RadialAxis should be set.(default is 1)</param> /// <param name="Combine">Whether or not to combine the objects if there is already an axis set (default is false)</param> - [<CompiledName("SetRadialAxis")>] static member setRadialAxis ( radialAxis: RadialAxis, @@ -1835,7 +1790,6 @@ type Chart = /// </summary> /// <param name="radialAxis">The new RadialAxis for the chart layout's polar object</param> /// <param name="Id">The target polar id on which the RadialAxis should be set. Default is 1.</param> - [<CompiledName("WithRadialAxis")>] static member withRadialAxis(radialAxis: RadialAxis, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Polar @@ -1848,7 +1802,6 @@ type Chart = /// <param name="smith">The Smith object to set on the chart's layout</param> /// <param name="id">The target smith id with which the Smith object should be set.</param> /// <param name="Combine">Whether or not to combine the objects if there is already an Smith set (default is false)</param> - [<CompiledName("SetSmith")>] static member setSmith ( smith: Smith, @@ -1871,7 +1824,6 @@ type Chart = /// </summary> /// <param name="smith">The new Smith for the chart's layout</param> /// <param name="Id">The target smith id on which the smith object should be set. Default is 1.</param> - [<CompiledName("WithSmith")>] static member withSmith(smith: Smith, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Smith @@ -1883,8 +1835,6 @@ type Chart = /// /// If there is already a Smith set, the styles are applied to it. If there is no Smith present, a new Smith object with the given styles will be set. /// </summary> - - [<CompiledName("WithSmithStyle")>] static member withSmithStyle ( ?BGColor: Color, @@ -1905,7 +1855,6 @@ type Chart = /// <param name="imaginaryAxis">The ImaginaryAxis to set on the target polar object on the chart's layout</param> /// <param name="id">The target polar id with which the ImaginaryAxis should be set.(default is 1)</param> /// <param name="Combine">Whether or not to combine the objects if there is already an axis set (default is false)</param> - [<CompiledName("SetImaginaryAxis")>] static member setImaginaryAxis ( imaginaryAxis: ImaginaryAxis, @@ -1950,7 +1899,6 @@ type Chart = /// </summary> /// <param name="imaginaryAxis">The new ImaginaryAxis for the chart layout's smith object</param> /// <param name="Id">The target smith id on which the ImaginaryAxis should be set. Default is 1.</param> - [<CompiledName("WithImaginaryAxis")>] static member withImaginaryAxis(imaginaryAxis: ImaginaryAxis, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Smith @@ -1963,7 +1911,6 @@ type Chart = /// <param name="realAxis">The RealAxis to set on the target smith object on the chart's layout</param> /// <param name="id">The target smith id with which the RealAxis should be set.(default is 1)</param> /// <param name="Combine">Whether or not to combine the objects if there is already an axis set (default is false)</param> - [<CompiledName("SetRealAxis")>] static member setRealAxis ( realAxis: RealAxis, @@ -2007,7 +1954,6 @@ type Chart = /// </summary> /// <param name="realAxis">The new RealAxis for the chart layout's smith object</param> /// <param name="Id">The target smith id on which the RealAxis should be set. Default is 1.</param> - [<CompiledName("WithRealAxis")>] static member withRealAxis(realAxis: RealAxis, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Smith @@ -2020,7 +1966,6 @@ type Chart = /// <param name="geo">The Geo object to set on the chart's layout</param> /// <param name="id">The target Geo id with which the Geo object should be set.</param> /// <param name="Combine">Whether or not to combine the objects if there is already an Geo set (default is false)</param> - [<CompiledName("SetGeo")>] static member setGeo(geo: Geo, id: StyleParam.SubPlotId, ?Combine: bool) = let combine = defaultArg Combine false @@ -2038,7 +1983,6 @@ type Chart = /// </summary> /// <param name="geo">The new Geo for the chart's layout</param> /// <param name="Id">The target geo id on which the Geo should be set. Default is 1.</param> - [<CompiledName("WithGeo")>] static member withGeo(geo: Geo, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Geo @@ -2082,7 +2026,6 @@ type Chart = /// <param name="LatAxis">Sets the latitudinal axis for this geo trace</param> /// <param name="LonAxis">Sets the longitudinal axis for this geo trace</param> /// <param name="Id">the target geo id</param> - [<CompiledName("WithGeoStyle")>] static member withGeoStyle ( ?FitBounds: StyleParam.GeoFitBounds, @@ -2166,7 +2109,6 @@ type Chart = /// <param name="Parallels">For conic projection types only. Sets the parallels (tangent, secant) where the cone intersects the sphere.</param> /// <param name="Scale">Zooms in or out on the map view. A scale of "1" corresponds to the largest zoom level that fits the map's lon and lat ranges.</param> /// <param name="Id">the target geo id</param> - [<CompiledName("WithGeoProjection")>] static member withGeoProjection ( projectionType: StyleParam.GeoProjectionType, @@ -2195,7 +2137,6 @@ type Chart = /// <param name="mapbox">The Mapbox object to set on the chart's layout</param> /// <param name="id">The target Mapbox id with which the Mapbox object should be set.</param> /// <param name="Combine">Whether or not to combine the objects if there is already an Mapbox set (default is false)</param> - [<CompiledName("SetMapbox")>] static member setMapbox ( mapbox: Mapbox, @@ -2218,7 +2159,6 @@ type Chart = /// </summary> /// <param name="mapbox">The Mapbox to set on the chart's layout</param> /// <param name="Id">The target mapbox id on which the Mapbox should be set. Default is 1.</param> - [<CompiledName("WithMapbox")>] static member withMapbox(mapbox: Mapbox, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Mapbox @@ -2272,7 +2212,6 @@ type Chart = /// <param name="ternary">The Ternary object to set on the chart's layout</param> /// <param name="id">The target Ternary id with which the Ternary object should be set.</param> /// <param name="Combine">Whether or not to combine the objects if there is already an Ternary set (default is false)</param> - [<CompiledName("SetTernary")>] static member setTernary ( ternary: Ternary, @@ -2295,7 +2234,6 @@ type Chart = /// </summary> /// <param name="ternary">The Ternary to set on the chart's layout</param> /// <param name="Id">The target ternary id on which the Ternary should be set. Default is 1.</param> - [<CompiledName("WithTernary")>] static member withTernary(ternary: Ternary, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Ternary @@ -2343,7 +2281,6 @@ type Chart = /// <param name="aAxis">The a Axis to set on the target ternary object on the chart's layout</param> /// <param name="id">The target ternary id with which the a Axis should be set.(default is 1)</param> /// <param name="Combine">Whether or not to combine the objects if there is already an axis set (default is false)</param> - [<CompiledName("SetAAxis")>] static member setAAxis ( aAxis: LinearAxis, @@ -2389,7 +2326,6 @@ type Chart = /// </summary> /// <param name="aAxis">The new a axis for the chart layout's ternary object</param> /// <param name="Id">The target ternary id on which the a axis should be set. Default is 1.</param> - [<CompiledName("WithAAxis")>] static member withAAxis(aAxis: LinearAxis, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Ternary @@ -2402,7 +2338,6 @@ type Chart = /// <param name="bAxis">The b Axis to set on the target ternary object on the chart's layout</param> /// <param name="id">The target ternary id with which the b Axis should be set.(default is 1)</param> /// <param name="Combine">Whether or not to combine the objects if there is already an axis set (default is false)</param> - [<CompiledName("SetBAxis")>] static member setBAxis ( bAxis: LinearAxis, @@ -2448,7 +2383,6 @@ type Chart = /// </summary> /// <param name="bAxis">The new b axis for the chart layout's ternary object</param> /// <param name="Id">The target ternary id on which the b axis should be set. Default is 1.</param> - [<CompiledName("WithBAxis")>] static member withBAxis(bAxis: LinearAxis, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Ternary @@ -2461,7 +2395,6 @@ type Chart = /// <param name="cAxis">The c Axis to set on the target ternary object on the chart's layout</param> /// <param name="id">The target ternary id with which the c Axis should be set.(default is 1)</param> /// <param name="Combine">Whether or not to combine the objects if there is already an axis set (default is false)</param> - [<CompiledName("SetCAxis")>] static member setCAxis ( cAxis: LinearAxis, @@ -2507,7 +2440,6 @@ type Chart = /// </summary> /// <param name="cAxis">The new c axis for the chart layout's ternary object</param> /// <param name="Id">The target ternary id on which the c axis should be set. Default is 1.</param> - [<CompiledName("WithCAxis")>] static member withCAxis(cAxis: LinearAxis, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Ternary @@ -2519,7 +2451,6 @@ type Chart = /// </summary> /// <param name="layoutGrid">The new LayoutGrid for the chart's layout</param> /// <param name="Combine">Whether or not to combine the objects if there is already a ColorBar object set (default is false)</param> - [<CompiledName("SetLayoutGrid")>] static member setLayoutGrid(layoutGrid: LayoutGrid, ?Combine: bool) = let combine = defaultArg Combine false @@ -2535,7 +2466,6 @@ type Chart = /// If there is already a LayoutGrid set, the objects are combined. /// </summary> /// <param name="layoutGrid">The new LayoutGrid for the chart's layout</param> - [<CompiledName("WithLayoutGrid")>] static member withLayoutGrid(layoutGrid: LayoutGrid) = (fun (ch: GenericChart) -> ch |> Chart.setLayoutGrid (layoutGrid, true)) @@ -2556,7 +2486,6 @@ type Chart = /// <param name ="Domain">Sets the domains of this grid subplot (in plot fraction). The first and last cells end exactly at the domain edges, with no grout around the edges.</param> /// <param name ="XSide">Sets where the x axis labels and titles go. "bottom" means the very bottom of the grid. "bottom plot" is the lowest plot that each x axis is used in. "top" and "top plot" are similar.</param> /// <param name ="YSide">Sets where the y axis labels and titles go. "left" means the very left edge of the grid. "left plot" is the leftmost plot that each y axis is used in. "right" and "right plot" are similar.</param> - [<CompiledName("WithLayoutGridStyle")>] static member withLayoutGridStyle ( ?SubPlots: (StyleParam.LinearAxisId * StyleParam.LinearAxisId)[][], @@ -2598,7 +2527,6 @@ type Chart = /// <param name="legend">The Legend to set on the chart's layout</param> /// <param name="id">The target Legend id with which the Legend should be set.</param> /// <param name="Combine">Whether or not to combine the objects if there is already an Legend set (default is false)</param> - [<CompiledName("SetLegend")>] static member setLegend ( legend: Legend, @@ -2621,7 +2549,6 @@ type Chart = /// </summary> /// <param name="legend">The Legend to set on the chart's layout</param> /// <param name="Id">The target Legend id with which the Legend should be set. Default is 1.</param> - [<CompiledName("WithLegend")>] static member withLegend(legend: Legend, ?Id: int) = let id = Id |> Option.defaultValue 1 |> StyleParam.SubPlotId.Legend @@ -2660,7 +2587,6 @@ type Chart = /// <param name="YAnchor">Sets the legend's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the legend. Value "auto" anchors legends at their bottom for `y` values less than or equal to 1/3, anchors legends to at their top for `y` values greater than or equal to 2/3 and anchors legends with respect to their middle otherwise.</param> /// <param name="YRef">Sets the container `y` refers to. "container" spans the entire `height` of the plot. "paper" refers to the height of the plotting area only.</param> /// <param name="Id">The target Legend id. Default is 1.</param> - [<CompiledName("WithLegendStyle")>] static member withLegendStyle ( ?BGColor: Color, @@ -2723,11 +2649,10 @@ type Chart = ch |> Chart.withLegend(legend, ?Id = Id)) /// <summary> - /// + /// Sets the given annotations on the input chart's layout. Use the 'Append' argument to decide what should happen if there are already annotations set. /// </summary> /// <param name="annotations">The annotations to add to the input charts layout</param> /// <param name="Append">If true, the input annotations will be appended to existing annotations, otherwise existing annotations will be removed (default: true)</param> - [<CompiledName("WithAnnotations")>] static member withAnnotations ( annotations: seq<Annotation>, @@ -2752,12 +2677,15 @@ type Chart = ch |> GenericChart.mapLayout (Layout.style (Annotations = annotations')) - [<CompiledName("WithAnnotation")>] + /// <summary> + /// Sets the given annotation on the input chart's layout. Use the 'Append' argument to decide what should happen if there are already annotations set. + /// </summary> + /// <param name="annotation">The annotations to add to the input charts layout</param> + /// <param name="Append">If true, the input annotation will be appended to existing annotations, otherwise existing annotations will be removed (default: true)</param> static member withAnnotation(annotation: Annotation, ?Append: bool) = Chart.withAnnotations ([ annotation ], ?Append = Append) // Set the title of a Chart - [<CompiledName("WithTitle")>] static member withTitle(title, ?TitleFont) = (fun (ch: GenericChart) -> let layout = @@ -2766,7 +2694,6 @@ type Chart = GenericChart.addLayout layout ch) // Set the title of a Chart - [<CompiledName("WithTitle")>] static member withTitle(title) = (fun (ch: GenericChart) -> let layout = @@ -2775,7 +2702,6 @@ type Chart = GenericChart.addLayout layout ch) /// Sets the size of a Chart (in pixels) - [<CompiledName("WithSize")>] static member withSize ( ?Width: int, @@ -2791,12 +2717,10 @@ type Chart = // Set the size of a Chart - [<CompiledName("WithSize")>] static member withSize(width: float, height: float) = Chart.withSize (Width = int width, Height = int height) // Set the margin of a Chart - [<CompiledName("WithMargin")>] static member withMargin(margin: Margin) = (fun (ch: GenericChart) -> let layout = @@ -2805,7 +2729,6 @@ type Chart = GenericChart.setLayout layout ch) // Set the margin of a Chart - [<CompiledName("WithMarginSize")>] static member withMarginSize ( ?Left, @@ -2827,22 +2750,14 @@ type Chart = Chart.withMargin (margin) - [<CompiledName("WithTemplate")>] static member withTemplate(template: Template) = (fun (ch: GenericChart) -> ch |> GenericChart.mapLayout (Layout.style (Template = (template :> DynamicObj)))) - // TODO: Include withLegend & withLegendStyle - - //Specifies the shape type to be drawn. If "line", a line is drawn from (`x0`,`y0`) to (`x1`,`y1`) If "circle", a circle is drawn from - //((`x0`+`x1`)/2, (`y0`+`y1`)/2)) with radius (|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 -`y0`)|) If "rect", a rectangle is drawn linking - //(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`), (`x0`,`y1`), (`x0`,`y0`) - /// <summary> - /// + /// Sets the given shapes on the input chart's layout. Use the 'Append' argument to decide what should happen if there are already shapes set. /// </summary> /// <param name="shapes">The shapes to add to the input charts layout</param> - /// <param name="Append">If true, the input annotations will be appended to existing annotations, otherwise existing annotations will be removed (default: true)</param> - [<CompiledName("WithShapes")>] + /// <param name="Append">If true, the input shapes will be appended to existing shapes, otherwise existing shapes will be removed (default: true)</param> static member withShapes(shapes: seq<Shape>, ?Append: bool) = let append = defaultArg Append true @@ -2861,16 +2776,19 @@ type Chart = ch |> GenericChart.mapLayout (Layout.style (Shapes = shapes')) - [<CompiledName("WithShape")>] + /// <summary> + /// Sets the given shape on the input chart's layout. Use the 'Append' argument to decide what should happen if there are already shapes set. + /// </summary> + /// <param name="shape">The shapes to add to the input charts layout</param> + /// <param name="Append">If true, the input shape will be appended to existing shapes, otherwise existing annotations will be shapes (default: true)</param> static member withShape(shape: Shape, ?Append: bool) = Chart.withShapes ([ shape ], ?Append = Append) /// <summary> - /// + /// Sets the given selections on the input chart's layout. Use the 'Append' argument to decide what should happen if there are already selections set. /// </summary> /// <param name="selections">The selections to add to the input charts layout</param> - /// <param name="Append">If true, the input selections will be appended to existing annotations, otherwise existing annotations will be removed (default: true)</param> - [<CompiledName("WithSelections")>] + /// <param name="Append">If true, the input selections will be appended to existing selections, otherwise existing selections will be removed (default: true)</param> static member withSelections(selections: seq<Selection>, ?Append: bool) = let append = defaultArg Append true @@ -2891,7 +2809,11 @@ type Chart = ch |> GenericChart.mapLayout (Layout.style (Selections = selections')) - [<CompiledName("WithSelection")>] + /// <summary> + /// Sets the given selection on the input chart's layout. Use the 'Append' argument to decide what should happen if there are already selections set. + /// </summary> + /// <param name="selection">The selections to add to the input charts layout</param> + /// <param name="Append">If true, the input selection will be appended to existing selections, otherwise existing selections will be removed (default: true)</param> static member withSelection(selection: Selection, ?Append: bool) = Chart.withSelections ([ selection ], ?Append = Append) @@ -2904,7 +2826,6 @@ type Chart = /// /// If there is already a config set, the object is replaced. /// </summary> - [<CompiledName("SetConfig")>] static member setConfig(config: Config) = (fun (ch: GenericChart) -> GenericChart.setConfig config ch) @@ -2913,7 +2834,6 @@ type Chart = /// /// If there is already a config set, the objects are combined. /// </summary> - [<CompiledName("WithConfig")>] static member withConfig(config: Config) = (fun (ch: GenericChart) -> GenericChart.addConfig config ch) @@ -2979,7 +2899,6 @@ type Chart = /// instead of MM/DD/YYYY). Currently `grouping` and `currency` are ignored /// for our automatic number formatting, but can be used in custom formats. /// </param> - [<CompiledName("WithConfigStyle")>] static member withConfigStyle ( ?StaticPlot: bool, @@ -3105,7 +3024,6 @@ type Chart = /// <param name ="Domain">Sets the domains of this grid subplot (in plot fraction). The first and last cells end exactly at the domain edges, with no grout around the edges.</param> /// <param name ="XSide">Sets where the x axis labels and titles go. "bottom" means the very bottom of the grid. "bottom plot" is the lowest plot that each x axis is used in. "top" and "top plot" are similar.</param> /// <param name ="YSide">Sets where the y axis labels and titles go. "left" means the very left edge of the grid. "left plot" is the leftmost plot that each y axis is used in. "right" and "right plot" are similar.</param> - [<CompiledName("Grid")>] static member Grid ( nRows: int, @@ -3426,7 +3344,6 @@ type Chart = /// <param name ="Domain">Sets the domains of this grid subplot (in plot fraction). The first and last cells end exactly at the domain edges, with no grout around the edges.</param> /// <param name ="XSide">Sets where the x axis labels and titles go. "bottom" means the very bottom of the grid. "bottom plot" is the lowest plot that each x axis is used in. "top" and "top plot" are similar.</param> /// <param name ="YSide">Sets where the y axis labels and titles go. "left" means the very left edge of the grid. "left plot" is the leftmost plot that each y axis is used in. "right" and "right plot" are similar.</param> - [<CompiledName("Grid")>] static member Grid ( ?SubPlotTitles: #seq<string>, @@ -3543,7 +3460,6 @@ type Chart = /// <param name ="Domain">Sets the domains of this grid subplot (in plot fraction). The first and last cells end exactly at the domain edges, with no grout around the edges.</param> /// <param name ="XSide">Sets where the x axis labels and titles go. "bottom" means the very bottom of the grid. "bottom plot" is the lowest plot that each x axis is used in. "top" and "top plot" are similar.</param> /// <param name ="YSide">Sets where the y axis labels and titles go. "left" means the very left edge of the grid. "left plot" is the leftmost plot that each y axis is used in. "right" and "right plot" are similar.</param> - [<CompiledName("SingleStack")>] static member SingleStack ( ?SubPlotTitles: #seq<string>, @@ -3584,7 +3500,6 @@ type Chart = /// Sets the color axis with the given id on the chart layout - [<CompiledName("WithColorAxis")>] static member withColorAxis(colorAxis: ColorAxis, ?Id) = (fun (ch: GenericChart) -> let layout = @@ -3596,11 +3511,10 @@ type Chart = GenericChart.setLayout layout ch) /// <summary> - /// + /// Sets the given images on the input chart's layout. Use the 'Append' argument to decide what should happen if there are already images set. /// </summary> /// <param name="images">The images to add to the input charts layout</param> - /// <param name="Append">If true, the input images will be appended to existing annotations, otherwise existing annotations will be removed (default: true)</param> - [<CompiledName("WithLayoutImages")>] + /// <param name="Append">If true, the input images will be appended to existing images, otherwise existing images will be removed (default: true)</param> static member withLayoutImages(images: seq<LayoutImage>, ?Append: bool) = let append = defaultArg Append true @@ -3621,17 +3535,20 @@ type Chart = ch |> GenericChart.mapLayout (Layout.style (Images = images')) - [<CompiledName("WithLayoutImage")>] + /// <summary> + /// Sets the given image on the input chart's layout. Use the 'Append' argument to decide what should happen if there are already images set. + /// </summary> + /// <param name="image">The images to add to the input charts layout</param> + /// <param name="Append">If true, the input image will be appended to existing images, otherwise existing images will be removed (default: true)</param> static member withLayoutImage(image: LayoutImage, ?Append: bool) = Chart.withLayoutImages ([ image ], ?Append = Append) /// <summary> - /// + /// Sets the given update menus on the input chart's layout. Use the 'Append' argument to decide what should happen if there are already update menus set. /// </summary> /// <param name="updateMenus">The updatmenus to add to the input charts layout</param> - /// <param name="Append">If true, the input images will be appended to existing annotations, otherwise existing annotations will be removed (default: true)</param> - [<CompiledName("WithUpdateMenus")>] + /// <param name="Append">If true, the update menus will be appended to existing update menus, otherwise existing update menus will be removed (default: true)</param> static member withUpdateMenus ( updateMenus: seq<UpdateMenu>, @@ -3656,17 +3573,49 @@ type Chart = ch |> GenericChart.mapLayout (Layout.style (UpdateMenus = updateMenus')) - [<CompiledName("WithUpdateMenu")>] + /// <summary> + /// Sets the given update menu on the input chart's layout. Use the 'Append' argument to decide what should happen if there are already update menus set. + /// </summary> + /// <param name="updateMenu">The updatmenus to add to the input charts layout</param> + /// <param name="Append">If true, the update menu will be appended to existing update menus, otherwise existing update menus will be removed (default: true)</param> static member withUpdateMenu(updateMenu: UpdateMenu, ?Append: bool) = Chart.withUpdateMenus ([ updateMenu ], ?Append = Append) - [<CompiledName("WithSliders")>] - static member withSliders(sliders: seq<Slider>) = - fun (ch: GenericChart) -> ch |> GenericChart.mapLayout (Layout.style (Sliders = sliders)) + /// <summary> + /// Sets the given sliders on the input chart's layout. Use the 'Append' argument to decide what should happen if there are already update menus set. + /// </summary> + /// <param name="sliders">The sliders to add to the input charts layout</param> + /// <param name="Append">If true, the sliders will be appended to existing sliders, otherwise existing sliders will be removed (default: true)</param> + static member withSliders( + sliders: seq<Slider>, + ?Append: bool + ) = + let append = defaultArg Append true + + fun (ch: GenericChart) -> + + let sliders' = + + if append then + + let layout = GenericChart.getLayout ch - [<CompiledName("WithSlider")>] - static member withSlider(slider: Slider) = Chart.withSliders ([ slider ]) + layout.TryGetTypedPropertyValue<seq<Slider>>("sliders") + |> Option.defaultValue Seq.empty + |> Seq.append sliders + + else + sliders + + ch |> GenericChart.mapLayout (Layout.style (Sliders = sliders')) + + /// <summary> + /// Sets the given slider on the input chart's layout. Use the 'Append' argument to decide what should happen if there are already update menus set. + /// </summary> + /// <param name="slider">The slider to add to the input charts layout</param> + /// <param name="Append">If true, the slider will be appended to existing sliders, otherwise existing sliders will be removed (default: true)</param> + static member withSlider(slider: Slider, ?Append: bool) = Chart.withSliders ([ slider ], ?Append = Append) // ############################################################ @@ -3677,7 +3626,6 @@ type Chart = /// /// If there is already an DisplayOptions set, the object is replaced. /// </summary> - [<CompiledName("SetDisplayOptions")>] static member setDisplayOptions(displayOpts: DisplayOptions) = (fun (ch: GenericChart) -> GenericChart.setDisplayOptions displayOpts ch) @@ -3686,7 +3634,6 @@ type Chart = /// /// If there is already an DisplayOptions set, the objects are combined. /// </summary> - [<CompiledName("WithDisplayOptions")>] static member withDisplayOptions(displayOpts: DisplayOptions) = (fun (ch: GenericChart) -> GenericChart.addDisplayOptions displayOpts ch) @@ -3700,7 +3647,6 @@ type Chart = /// <param name="AdditionalHeadTags">Additional tags that will be included in the document's head </param> /// <param name="ChartDescription">HTML tags that appear below the chart in HTML docs</param> /// <param name="PlotlyJSReference">Sets how plotly is referenced in the head of html docs. When CDN, a script tag that references the plotly.js CDN is included in the output. When Full, a script tag containing the plotly.js source code (~3MB) is included in the output. HTML files generated with this option are fully self-contained and can be used offline</param> - [<CompiledName("WithDisplayOptionsStyle")>] static member withDisplayOptionsStyle ( ?DocumentTitle: string, @@ -3732,23 +3678,19 @@ type Chart = /// </summary> /// <param name="chartDescription">The chart description to add to the given chart's DisplayOptions object</param> /// <param name="ch">The chart to add a description to</param> - [<CompiledName("WithDescription")>] static member withDescription (chartDescription: XmlNode list) (ch: GenericChart) = ch |> GenericChart.mapDisplayOptions (DisplayOptions.addChartDescription chartDescription) /// Adds the given additional html tags on the chart's DisplayOptions. They will be included in the document's head - [<CompiledName("WithAdditionalHeadTags")>] static member withAdditionalHeadTags (additionalHeadTags: XmlNode list) (ch: GenericChart) = ch |> GenericChart.mapDisplayOptions (DisplayOptions.addAdditionalHeadTags additionalHeadTags) /// Sets the given additional head tags on the chart's DisplayOptions. They will be included in the document's head - [<CompiledName("WithHeadTags")>] static member withHeadTags (additionalHeadTags: XmlNode list) (ch: GenericChart) = ch |> GenericChart.mapDisplayOptions (DisplayOptions.setAdditionalHeadTags additionalHeadTags) /// Adds the necessary script tags to render tex strings to the chart's DisplayOptions - [<CompiledName("WithMathTex")>] static member withMathTex ( ?AppendTags: bool, diff --git a/src/Plotly.NET/CommonAbstractions/Colors.fs b/src/Plotly.NET/CommonAbstractions/Colors.fs index 3fab74867..2a3ec8baf 100644 --- a/src/Plotly.NET/CommonAbstractions/Colors.fs +++ b/src/Plotly.NET/CommonAbstractions/Colors.fs @@ -7,14 +7,12 @@ module internal Hex = open System - [<CompiledName("ToHexDigit")>] let toHexDigit n = if n < 10 then char (n + 0x30) else char (n + 0x37) - [<CompiledName("FromHexDigit")>] let fromHexDigit c = if c >= '0' && c <= '9' then int c - int '0' @@ -25,8 +23,6 @@ module internal Hex = else raise <| ArgumentException() - - [<CompiledName("Encode")>] let encode (prefix: string) (color: byte array) = let hex = Array.zeroCreate (color.Length * 2) @@ -41,8 +37,6 @@ module internal Hex = String.Concat(prefix, String(hex)) - - [<CompiledName("Decode")>] let decode (s: string) = match s with | null -> nullArg "s" @@ -69,8 +63,6 @@ module internal Hex = buf - - /// Represents an ARGB (alpha, red, green, blue) color [<JsonConverter(typeof<ARGBConverter>)>] type ARGB = diff --git a/src/Plotly.NET/Traces/ObjectAbstractions/Contours.fs b/src/Plotly.NET/Traces/ObjectAbstractions/Contours.fs index a1435e2b0..0b806d21d 100644 --- a/src/Plotly.NET/Traces/ObjectAbstractions/Contours.fs +++ b/src/Plotly.NET/Traces/ObjectAbstractions/Contours.fs @@ -37,7 +37,6 @@ type Contour() = inherit DynamicObj() /// Initialized a Contour object - //[<CompiledName("init")>] static member init ( ?Color: Color, @@ -69,7 +68,6 @@ type Contour() = // Applies the styles to Contours() - //[<CompiledName("style")>] static member style ( ?Color: Color, @@ -135,7 +133,6 @@ type Contours() = /// Initialized Contours object - //[<CompiledName("init")>] static member initSurface ( ?X: Contour, @@ -145,7 +142,6 @@ type Contours() = Contours() |> Contours.style (?X = X, ?Y = Y, ?Z = Z) // Applies the styles to Contours() - //[<CompiledName("style")>] static member style ( ?X: Contour, @@ -182,8 +178,6 @@ type Contours() = |> DynObj.withOptionalPropertyBy "type" Type StyleParam.ContourType.convert |> DynObj.withOptionalProperty "value" Value - - // Initialized x-y-z-Contours with the same properties static member initXyz ( @@ -215,7 +209,6 @@ type Contours() = ) // Applies the styles to Contours() - //[<CompiledName("styleXyz")>] static member styleXyz ( ?Color: Color, From 82dc93b1492e7a1248bd24430f8e3454793d6eea Mon Sep 17 00:00:00 2001 From: bvenn <venn@bio.uni-kl.de> Date: Sun, 3 Nov 2024 12:12:37 +0100 Subject: [PATCH 25/36] fix #474 --- src/Plotly.NET/CommonAbstractions/StyleParams.fs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plotly.NET/CommonAbstractions/StyleParams.fs b/src/Plotly.NET/CommonAbstractions/StyleParams.fs index 0afd9be9c..77438ba31 100644 --- a/src/Plotly.NET/CommonAbstractions/StyleParams.fs +++ b/src/Plotly.NET/CommonAbstractions/StyleParams.fs @@ -2533,8 +2533,8 @@ module StyleParam = static member toString = function | None -> "" - | DiagonalDescending -> "/" - | DiagonalAscending -> """\""" + | DiagonalDescending -> """\""" + | DiagonalAscending -> "/" | DiagonalChecked -> "x" | HorizontalLines -> "-" | VerticalLines -> "|" From 4043662b6fa5296d50c6e09ba55c30064323e743 Mon Sep 17 00:00:00 2001 From: Greg Wilson <greg.wilson@plot.ly> Date: Fri, 13 Dec 2024 11:15:12 -0500 Subject: [PATCH 26/36] adding code of conduct --- CODE_OF_CONDUCT.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 CODE_OF_CONDUCT.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 000000000..bc8371522 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,43 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at accounts@plot.ly. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/), and may also be found online at <https://community.plotly.com/pub/code-of-conduct>. From 5b1d95fa2004c7715f6888e5b5ca73e58eae2d22 Mon Sep 17 00:00:00 2001 From: Kevin Schneider <schneider.kev@outlook.de> Date: Mon, 13 Jan 2025 11:39:04 +0100 Subject: [PATCH 27/36] use .net 8 everywhere --- src/Plotly.NET.CSharp/Plotly.NET.CSharp.csproj | 2 +- tests/Common/CSharpTestBase/CSharpTestBase.csproj | 2 +- tests/Common/FSharpTestBase/FSharpTestBase.fsproj | 2 +- tests/ConsoleApps/CSharpConsole/CSharpConsole.csproj | 2 +- tests/ConsoleApps/FSharpConsole/FSharpConsole.fsproj | 2 +- tests/CoreTests/CoreTests/CoreTests.fsproj | 2 +- tests/ExtensionLibsTests/CSharpTests/CSharpTests.csproj | 2 +- .../ExtensionLibsTests/ImageExportTests/ImageExportTests.fsproj | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Plotly.NET.CSharp/Plotly.NET.CSharp.csproj b/src/Plotly.NET.CSharp/Plotly.NET.CSharp.csproj index ffb85c5ac..d24db3566 100644 --- a/src/Plotly.NET.CSharp/Plotly.NET.CSharp.csproj +++ b/src/Plotly.NET.CSharp/Plotly.NET.CSharp.csproj @@ -1,7 +1,7 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net6.0</TargetFramework> + <TargetFramework>net8.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> <AssemblyName>Plotly.NET.CSharp</AssemblyName> diff --git a/tests/Common/CSharpTestBase/CSharpTestBase.csproj b/tests/Common/CSharpTestBase/CSharpTestBase.csproj index 132c02c59..30402ac0e 100644 --- a/tests/Common/CSharpTestBase/CSharpTestBase.csproj +++ b/tests/Common/CSharpTestBase/CSharpTestBase.csproj @@ -1,7 +1,7 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net6.0</TargetFramework> + <TargetFramework>net8.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> diff --git a/tests/Common/FSharpTestBase/FSharpTestBase.fsproj b/tests/Common/FSharpTestBase/FSharpTestBase.fsproj index 7617a492f..558074a1a 100644 --- a/tests/Common/FSharpTestBase/FSharpTestBase.fsproj +++ b/tests/Common/FSharpTestBase/FSharpTestBase.fsproj @@ -1,7 +1,7 @@ ïğż<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net6.0</TargetFramework> + <TargetFramework>net8.0</TargetFramework> <GenerateDocumentationFile>true</GenerateDocumentationFile> </PropertyGroup> diff --git a/tests/ConsoleApps/CSharpConsole/CSharpConsole.csproj b/tests/ConsoleApps/CSharpConsole/CSharpConsole.csproj index 9e3def058..470b02a37 100644 --- a/tests/ConsoleApps/CSharpConsole/CSharpConsole.csproj +++ b/tests/ConsoleApps/CSharpConsole/CSharpConsole.csproj @@ -2,7 +2,7 @@ <PropertyGroup> <OutputType>Exe</OutputType> - <TargetFramework>net6.0</TargetFramework> + <TargetFramework>net8.0</TargetFramework> <IsPackable>false</IsPackable> </PropertyGroup> diff --git a/tests/ConsoleApps/FSharpConsole/FSharpConsole.fsproj b/tests/ConsoleApps/FSharpConsole/FSharpConsole.fsproj index 0e9fd6d5e..7fca73969 100644 --- a/tests/ConsoleApps/FSharpConsole/FSharpConsole.fsproj +++ b/tests/ConsoleApps/FSharpConsole/FSharpConsole.fsproj @@ -2,7 +2,7 @@ <PropertyGroup> <OutputType>Exe</OutputType> - <TargetFramework>net6.0</TargetFramework> + <TargetFramework>net8.0</TargetFramework> <WarnOn>3390;$(WarnOn)</WarnOn> <IsPackable>false</IsPackable> </PropertyGroup> diff --git a/tests/CoreTests/CoreTests/CoreTests.fsproj b/tests/CoreTests/CoreTests/CoreTests.fsproj index 3466c51c4..45a40e2e9 100644 --- a/tests/CoreTests/CoreTests/CoreTests.fsproj +++ b/tests/CoreTests/CoreTests/CoreTests.fsproj @@ -2,7 +2,7 @@ <PropertyGroup> <OutputType>Exe</OutputType> - <TargetFramework>net6.0</TargetFramework> + <TargetFramework>net8.0</TargetFramework> <GenerateProgramFile>false</GenerateProgramFile> <IsPackable>false</IsPackable> </PropertyGroup> diff --git a/tests/ExtensionLibsTests/CSharpTests/CSharpTests.csproj b/tests/ExtensionLibsTests/CSharpTests/CSharpTests.csproj index 74d9efef1..331b3d9da 100644 --- a/tests/ExtensionLibsTests/CSharpTests/CSharpTests.csproj +++ b/tests/ExtensionLibsTests/CSharpTests/CSharpTests.csproj @@ -1,7 +1,7 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net6.0</TargetFramework> + <TargetFramework>net8.0</TargetFramework> <IsPackable>false</IsPackable> </PropertyGroup> diff --git a/tests/ExtensionLibsTests/ImageExportTests/ImageExportTests.fsproj b/tests/ExtensionLibsTests/ImageExportTests/ImageExportTests.fsproj index 7bce5e051..21937289e 100644 --- a/tests/ExtensionLibsTests/ImageExportTests/ImageExportTests.fsproj +++ b/tests/ExtensionLibsTests/ImageExportTests/ImageExportTests.fsproj @@ -2,7 +2,7 @@ <PropertyGroup> <OutputType>Exe</OutputType> - <TargetFramework>net6.0</TargetFramework> + <TargetFramework>net8.0</TargetFramework> <GenerateProgramFile>false</GenerateProgramFile> <IsPackable>false</IsPackable> </PropertyGroup> From ffe000b65757304cda180bbb8941aad30a6a8ac1 Mon Sep 17 00:00:00 2001 From: Kevin Schneider <schneider.kev@outlook.de> Date: Mon, 13 Jan 2025 11:55:10 +0100 Subject: [PATCH 28/36] #476: First try at no-deps interactive formatting --- src/Plotly.NET/ChartAPI/GenericChart.fs | 23 ++++ src/Plotly.NET/InternalUtils.fs | 11 ++ tests/InteractiveTests/Repack.ps1 | 7 ++ tests/InteractiveTests/TestNotebook.ipynb | 121 ++++++++++++++++++++++ 4 files changed, 162 insertions(+) create mode 100644 tests/InteractiveTests/Repack.ps1 create mode 100644 tests/InteractiveTests/TestNotebook.ipynb diff --git a/src/Plotly.NET/ChartAPI/GenericChart.fs b/src/Plotly.NET/ChartAPI/GenericChart.fs index ba6336b4d..34c3c4c9f 100644 --- a/src/Plotly.NET/ChartAPI/GenericChart.fs +++ b/src/Plotly.NET/ChartAPI/GenericChart.fs @@ -5,6 +5,9 @@ open System open Newtonsoft.Json open System.Runtime.CompilerServices open Giraffe.ViewEngine +open System +open System.IO +open System.Collections.Generic /// Figure is a domain transfer object that can be used to serialize a Chart to JSON. It is used internally and for most use cases should not be used directly. /// @@ -55,6 +58,7 @@ type ChartDTO = /// - `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. +[<TypeFormatterSourceAttribute(typeof<GenericChartFormatterSource>)>] type GenericChart = | Chart of data: Trace * layout: Layout * config: Config * displayOpts: DisplayOptions | MultiChart of data: Trace list * layout: Layout * config: Config * displayOpts: DisplayOptions @@ -584,3 +588,22 @@ type GenericChart = match gChart with | Chart(trace, _, _, _) -> [ TraceID.ofTrace trace ] | MultiChart(traces, _, _, _) -> traces |> List.map TraceID.ofTrace + +and GenericChartFormatter() = + let mutable mimeType = "text/html" + member this.MimeType + with get() = mimeType + and set(v) = mimeType <- v + member this.Format(instance:obj, writer:TextWriter) = + match instance with + | :? GenericChart as c -> + writer.Write("LOL!") + true + | _ -> false + +and GenericChartFormatterSource = + member this.CreateTypeFormatters() : seq<obj> = + seq { + yield GenericChartFormatter() + } + diff --git a/src/Plotly.NET/InternalUtils.fs b/src/Plotly.NET/InternalUtils.fs index c55db149e..bc09619a7 100644 --- a/src/Plotly.NET/InternalUtils.fs +++ b/src/Plotly.NET/InternalUtils.fs @@ -5,6 +5,7 @@ open DynamicObj open System.Runtime.InteropServices open System.IO open System.Reflection +open System let combineOptSeqs (first: seq<'A> option) (second: seq<'A> option) = match first, second with @@ -129,3 +130,13 @@ module internal ChartIO = System.Diagnostics.Process.Start("open", path) |> ignore else invalidOp "Not supported OS platform" + +[<AttributeUsage(AttributeTargets.Class)>] +type internal TypeFormatterSourceAttribute(formatterSourceType: Type) = + inherit Attribute() + let mutable preferredMimeTypes : string[] = [||] + member this.TypeFormatterSourceType = formatterSourceType + member this.PreferredMimeTypes + with get() = preferredMimeTypes + and set(v) = preferredMimeTypes <- v + \ No newline at end of file diff --git a/tests/InteractiveTests/Repack.ps1 b/tests/InteractiveTests/Repack.ps1 new file mode 100644 index 000000000..22c615a4c --- /dev/null +++ b/tests/InteractiveTests/Repack.ps1 @@ -0,0 +1,7 @@ +# Clean up the previously-cached NuGet packages. +# Lower-case is intentional (that's how nuget stores those packages). +Remove-Item -Recurse ~\.nuget\packages\plotly.net* -Force + +# build and pack Plotly.NET.Interactive +dotnet pack ../../src/Plotly.NET/Plotly.NET.fsproj -tl -c Release -p:PackageVersion=0.0.1-dev -o "./pkg" + diff --git a/tests/InteractiveTests/TestNotebook.ipynb b/tests/InteractiveTests/TestNotebook.ipynb new file mode 100644 index 000000000..77a561bce --- /dev/null +++ b/tests/InteractiveTests/TestNotebook.ipynb @@ -0,0 +1,121 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "dotnet_interactive": { + "language": "csharp" + }, + "polyglot_notebook": { + "kernelName": "csharp" + } + }, + "source": [ + "To reproduce the package, run `./Repack.ps1` in powershell. It will clean your cache in `~/.nuget/packages` and pack the library to `Plotly.NET/pkg` folder, which you should specify below (absolute paths only) in `#i` line.\n", + "\n", + "The version of the package is always `0.0.0-dev`." + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "dotnet_interactive": { + "language": "fsharp" + } + }, + "outputs": [ + { + "data": { + "text/html": [ + "<div><div><strong>Restore sources</strong><ul><li><span> C:/Users/schne/source/repos/plotly/Plotly.NET/pkg</span></li></ul></div><div></div><div><strong>Installed Packages</strong><ul><li><span>Plotly.NET, 2.0.0-alpha2</span></li></ul></div></div>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "// be advised, that you always should set absolute paths for local nuget packages - change this to reflect your own setup\n", + "#i \"nuget: C:/Users/schne/source/repos/plotly/Plotly.NET/tests/Interactivetests/pkg\"\n", + "#r \"nuget: Plotly.NET, 0.0.1-dev\"" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "dotnet_interactive": { + "language": "fsharp" + } + }, + "outputs": [ + { + "data": { + "text/html": [ + "<div><div id=\"4fc61fc7-1f1e-48f0-9aca-5da1084da281\"><!-- Plotly chart will be drawn inside this DIV --></div><script type=\"text/javascript\">\n", + "var renderPlotly_4fc61fc71f1e48f09aca5da1084da281 = function() {\n", + " var fsharpPlotlyRequire = requirejs.config({context:'fsharp-plotly',paths:{plotly:'https://cdn.plot.ly/plotly-2.18.1.min'}}) || require;\n", + " fsharpPlotlyRequire(['plotly'], function(Plotly) {\n", + " var data = [{\"type\":\"scatter\",\"mode\":\"markers\",\"x\":[1,3],\"y\":[2,4],\"marker\":{},\"line\":{}}];\n", + " var layout = {\"width\":600,\"height\":600,\"template\":{\"layout\":{\"title\":{\"x\":0.05},\"font\":{\"color\":\"rgba(42, 63, 95, 1.0)\"},\"paper_bgcolor\":\"rgba(255, 255, 255, 1.0)\",\"plot_bgcolor\":\"rgba(229, 236, 246, 1.0)\",\"autotypenumbers\":\"strict\",\"colorscale\":{\"diverging\":[[0.0,\"#8e0152\"],[0.1,\"#c51b7d\"],[0.2,\"#de77ae\"],[0.3,\"#f1b6da\"],[0.4,\"#fde0ef\"],[0.5,\"#f7f7f7\"],[0.6,\"#e6f5d0\"],[0.7,\"#b8e186\"],[0.8,\"#7fbc41\"],[0.9,\"#4d9221\"],[1.0,\"#276419\"]],\"sequential\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"sequentialminus\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]},\"hovermode\":\"closest\",\"hoverlabel\":{\"align\":\"left\"},\"coloraxis\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}},\"geo\":{\"showland\":true,\"landcolor\":\"rgba(229, 236, 246, 1.0)\",\"showlakes\":true,\"lakecolor\":\"rgba(255, 255, 255, 1.0)\",\"subunitcolor\":\"rgba(255, 255, 255, 1.0)\",\"bgcolor\":\"rgba(255, 255, 255, 1.0)\"},\"mapbox\":{\"style\":\"light\"},\"polar\":{\"bgcolor\":\"rgba(229, 236, 246, 1.0)\",\"radialaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"ticks\":\"\"},\"angularaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"ticks\":\"\"}},\"scene\":{\"xaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true},\"yaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true},\"zaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true}},\"ternary\":{\"aaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"baxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"caxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"bgcolor\":\"rgba(229, 236, 246, 1.0)\"},\"xaxis\":{\"title\":{\"standoff\":15},\"ticks\":\"\",\"automargin\":\"height+width+left+right+top+bottom\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinewidth\":2.0},\"yaxis\":{\"title\":{\"standoff\":15},\"ticks\":\"\",\"automargin\":\"height+width+left+right+top+bottom\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinewidth\":2.0},\"annotationdefaults\":{\"arrowcolor\":\"#2a3f5f\",\"arrowhead\":0,\"arrowwidth\":1},\"shapedefaults\":{\"line\":{\"color\":\"rgba(42, 63, 95, 1.0)\"}},\"colorway\":[\"rgba(99, 110, 250, 1.0)\",\"rgba(239, 85, 59, 1.0)\",\"rgba(0, 204, 150, 1.0)\",\"rgba(171, 99, 250, 1.0)\",\"rgba(255, 161, 90, 1.0)\",\"rgba(25, 211, 243, 1.0)\",\"rgba(255, 102, 146, 1.0)\",\"rgba(182, 232, 128, 1.0)\",\"rgba(255, 151, 255, 1.0)\",\"rgba(254, 203, 82, 1.0)\"]},\"data\":{\"bar\":[{\"marker\":{\"line\":{\"color\":\"rgba(229, 236, 246, 1.0)\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"error_x\":{\"color\":\"rgba(42, 63, 95, 1.0)\"},\"error_y\":{\"color\":\"rgba(42, 63, 95, 1.0)\"}}],\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"rgba(229, 236, 246, 1.0)\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}}}],\"carpet\":[{\"aaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"endlinecolor\":\"rgba(42, 63, 95, 1.0)\",\"minorgridcolor\":\"rgba(255, 255, 255, 1.0)\",\"startlinecolor\":\"rgba(42, 63, 95, 1.0)\"},\"baxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"endlinecolor\":\"rgba(42, 63, 95, 1.0)\",\"minorgridcolor\":\"rgba(255, 255, 255, 1.0)\",\"startlinecolor\":\"rgba(42, 63, 95, 1.0)\"}}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"contour\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}],\"heatmap\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"heatmapgl\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"histogram\":[{\"marker\":{\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}}}],\"histogram2d\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"histogram2dcontour\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"mesh3d\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}],\"parcoords\":[{\"line\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"pie\":[{\"automargin\":true}],\"scatter\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatter3d\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}},\"line\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattercarpet\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattergeo\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattergl\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattermapbox\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterpolar\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterpolargl\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterternary\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"surface\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"table\":[{\"cells\":{\"fill\":{\"color\":\"rgba(235, 240, 248, 1.0)\"},\"line\":{\"color\":\"rgba(255, 255, 255, 1.0)\"}},\"header\":{\"fill\":{\"color\":\"rgba(200, 212, 227, 1.0)\"},\"line\":{\"color\":\"rgba(255, 255, 255, 1.0)\"}}}]}}};\n", + " var config = {\"responsive\":true};\n", + " Plotly.newPlot('4fc61fc7-1f1e-48f0-9aca-5da1084da281', data, layout, config);\n", + " });\n", + "};\n", + "if ((typeof(requirejs) !== typeof(Function)) || (typeof(requirejs.config) !== typeof(Function))) {\n", + " var script = document.createElement(\"script\");\n", + " script.setAttribute(\"src\", \"https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js\");\n", + " script.onload = function(){\n", + " renderPlotly_4fc61fc71f1e48f09aca5da1084da281();\n", + " };\n", + " document.getElementsByTagName(\"head\")[0].appendChild(script);\n", + "}\n", + "else {\n", + " renderPlotly_4fc61fc71f1e48f09aca5da1084da281();\n", + "}\n", + "</script><h1>lel!</h1></div>" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "open Plotly.NET\n", + "open Giraffe.ViewEngine\n", + "\n", + "Chart.Point([1,2; 3,4])\n", + "|> Chart.withDescription [\n", + " h1 [] [str \"lel!\"]\n", + "]" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": ".NET (C#)", + "language": "C#", + "name": ".net-csharp" + }, + "polyglot_notebook": { + "kernelInfo": { + "defaultKernelName": "csharp", + "items": [ + { + "aliases": [], + "name": "csharp" + }, + { + "aliases": [ + "frontend" + ], + "name": "vscode" + } + ] + } + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} From da9508a7b17fdcb825d0b4fa20f3583b1b2823c8 Mon Sep 17 00:00:00 2001 From: Kevin Schneider <schneider.kev@outlook.de> Date: Mon, 13 Jan 2025 12:55:49 +0100 Subject: [PATCH 29/36] ImageExport: bump puppeteersharp dep --- src/Plotly.NET.ImageExport/Plotly.NET.ImageExport.fsproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plotly.NET.ImageExport/Plotly.NET.ImageExport.fsproj b/src/Plotly.NET.ImageExport/Plotly.NET.ImageExport.fsproj index d202cbf86..c699dc965 100644 --- a/src/Plotly.NET.ImageExport/Plotly.NET.ImageExport.fsproj +++ b/src/Plotly.NET.ImageExport/Plotly.NET.ImageExport.fsproj @@ -36,7 +36,7 @@ <ItemGroup> <ProjectReference Include="..\Plotly.NET\Plotly.NET.fsproj" PackageVersion="[5.0.0, 6.0.0)" /> - <PackageReference Include="PuppeteerSharp" Version="18.0.0" /> + <PackageReference Include="PuppeteerSharp" Version="20.0.5" /> </ItemGroup> <Target Name="UseExplicitPackageVersions" BeforeTargets="GenerateNuspec"> <ItemGroup> From 787cd5b9ad8992e5166e5261c652324dddccb283 Mon Sep 17 00:00:00 2001 From: Kevin Schneider <schneider.kev@outlook.de> Date: Mon, 13 Jan 2025 12:59:10 +0100 Subject: [PATCH 30/36] use no sandbox in image export tests --- tests/ExtensionLibsTests/ImageExportTests/ImageExport.fs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/ExtensionLibsTests/ImageExportTests/ImageExport.fs b/tests/ExtensionLibsTests/ImageExportTests/ImageExport.fs index 27526538f..0a9f62f85 100644 --- a/tests/ExtensionLibsTests/ImageExportTests/ImageExport.fs +++ b/tests/ExtensionLibsTests/ImageExportTests/ImageExport.fs @@ -16,6 +16,10 @@ let readTestFilePlatformSpecific filePostfix = File.ReadAllText (__SOURCE_DIRECTORY__ + $"/data/win{filePostfix}") else raise (Exception "Running tests on the current OS is not supported :(") + +// https://github.com/hardkoded/puppeteer-sharp/issues/2792 maybe +// generation fails on linux CI, workaround like this? +PuppeteerSharpRendererOptions.launchOptions.Args <- Array.concat [PuppeteerSharpRendererOptions.launchOptions.Args; [| "--no-sandbox" |]] [<Tests>] let ``Image export base64 strings tests`` = From cad6537a6bc9fdb495f5f748c3fe802fed48a6d4 Mon Sep 17 00:00:00 2001 From: Kevin Schneider <schneider.kev@outlook.de> Date: Wed, 22 Jan 2025 08:59:10 +0100 Subject: [PATCH 31/36] Add Interactive tests --- .github/workflows/build-and-test.yml | 16 +++--- Plotly.NET.sln | 9 ++++ .../InteractiveTests/Formatting.fs | 51 +++++++++++++++++++ .../InteractiveTests/InteractiveTests.fsproj | 27 ++++++++++ .../InteractiveTests/Main.fs | 6 +++ 5 files changed, 103 insertions(+), 6 deletions(-) create mode 100644 tests/ExtensionLibsTests/InteractiveTests/Formatting.fs create mode 100644 tests/ExtensionLibsTests/InteractiveTests/InteractiveTests.fsproj create mode 100644 tests/ExtensionLibsTests/InteractiveTests/Main.fs diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 71631cc51..d7ccaafad 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -13,11 +13,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.x.x + dotnet-version: | + 8.x.x + # 9.x.x - name: make script executable run: chmod u+x build.sh - name: Build and test @@ -29,11 +31,13 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.x.x + dotnet-version: | + 8.x.x + # 9.x.x - name: Build and test (includes netfx) working-directory: ./ run: ./build.cmd runtestsall diff --git a/Plotly.NET.sln b/Plotly.NET.sln index df437dbcd..ffbb0d4f8 100644 --- a/Plotly.NET.sln +++ b/Plotly.NET.sln @@ -231,6 +231,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "data", "data", "{0D955C86-2 docs\data\volcano.csv = docs\data\volcano.csv EndProjectSection EndProject +Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "InteractiveTests", "tests\ExtensionLibsTests\InteractiveTests\InteractiveTests.fsproj", "{04BC8CE5-B096-46AD-AB1D-674305BAF59A}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -316,6 +318,12 @@ Global {18F778B2-3409-4309-8C9B-596109072481}.Dotnet|Any CPU.Build.0 = Debug|Any CPU {18F778B2-3409-4309-8C9B-596109072481}.Release|Any CPU.ActiveCfg = Release|Any CPU {18F778B2-3409-4309-8C9B-596109072481}.Release|Any CPU.Build.0 = Release|Any CPU + {04BC8CE5-B096-46AD-AB1D-674305BAF59A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {04BC8CE5-B096-46AD-AB1D-674305BAF59A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {04BC8CE5-B096-46AD-AB1D-674305BAF59A}.Dotnet|Any CPU.ActiveCfg = Debug|Any CPU + {04BC8CE5-B096-46AD-AB1D-674305BAF59A}.Dotnet|Any CPU.Build.0 = Debug|Any CPU + {04BC8CE5-B096-46AD-AB1D-674305BAF59A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {04BC8CE5-B096-46AD-AB1D-674305BAF59A}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -357,6 +365,7 @@ Global {7432D5ED-0D0D-4F15-A3AC-CC2BFA4F211F} = {A9025690-FABC-4BD3-AC94-F31B60A948B4} {2DF92AB2-7B8C-48D5-B779-26BA1F31BCA1} = {A9025690-FABC-4BD3-AC94-F31B60A948B4} {0D955C86-2E86-4D50-828A-6CF5AD99A119} = {7B09CC0A-F1E1-4094-9DE4-B047581E01F0} + {04BC8CE5-B096-46AD-AB1D-674305BAF59A} = {02886FBB-DB32-4BBB-A93C-E13EBF453ACC} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {7177F1E1-341C-48AB-9864-6B525FFF7633} diff --git a/tests/ExtensionLibsTests/InteractiveTests/Formatting.fs b/tests/ExtensionLibsTests/InteractiveTests/Formatting.fs new file mode 100644 index 000000000..b2b902fdb --- /dev/null +++ b/tests/ExtensionLibsTests/InteractiveTests/Formatting.fs @@ -0,0 +1,51 @@ +ïğżmodule Tests.Interactive.Formatting + +open Expecto + +open System +open System.IO + +open Microsoft.DotNet.Interactive +open Microsoft.DotNet.Interactive.Formatting + +module ConventionBased = + + [<AttributeUsage(AttributeTargets.Class)>] + type internal TypeFormatterSourceAttribute(formatterSourceType: Type) = + inherit Attribute() + let mutable preferredMimeTypes : string[] = [||] + member this.TypeFormatterSourceType = formatterSourceType + member this.PreferredMimeTypes + with get() = preferredMimeTypes + and set(v) = preferredMimeTypes <- v + + [<TypeFormatterSourceAttribute(typeof<CustomFormatterSource>)>] + type TypeWithCustomFormatter() = class end + + and CustomFormatter() = + let mutable mimeType = "text/html" + member this.MimeType + with get() = mimeType + and set(v) = mimeType <- v + member this.Format(instance:obj, writer:TextWriter) = + match instance with + | :? TypeWithCustomFormatter as c -> + writer.Write("Formatting successfull!") + true + | _ -> false + + and CustomFormatterSource = + member this.CreateTypeFormatters() : seq<obj> = + seq { + yield CustomFormatter() + } + +[<Tests>] +let ``Convention-based Formatting`` = + testList "Convention-based Formatting" [ + testCase "Convention based formatter sources can provide lazy registration of custom formatters" <| fun _ -> + let o = ConventionBased.TypeWithCustomFormatter() + let formatted = o.ToDisplayString() + Expect.equal formatted "Formatting successfull!" "Formatting failed" + + ] \ No newline at end of file diff --git a/tests/ExtensionLibsTests/InteractiveTests/InteractiveTests.fsproj b/tests/ExtensionLibsTests/InteractiveTests/InteractiveTests.fsproj new file mode 100644 index 000000000..c843c6fc6 --- /dev/null +++ b/tests/ExtensionLibsTests/InteractiveTests/InteractiveTests.fsproj @@ -0,0 +1,27 @@ +ïğż<Project Sdk="Microsoft.NET.Sdk"> + + <PropertyGroup> + <OutputType>Exe</OutputType> + <TargetFramework>net8.0</TargetFramework> + <GenerateProgramFile>false</GenerateProgramFile> + <IsPackable>false</IsPackable> + </PropertyGroup> + + <ItemGroup> + <Compile Include="Formatting.fs" /> + <Compile Include="Main.fs" /> + </ItemGroup> + + <ItemGroup> + <PackageReference Include="Microsoft.DotNet.Interactive" Version="1.0.0-beta.25070.1" /> + <PackageReference Include="Microsoft.DotNet.Interactive.Formatting" Version="1.0.0-beta.25070.1" /> + <!--<PackageReference Include="Microsoft.DotNet.Interactive.FSharp" Version="1.0.0-beta.25070.1" />--> + <PackageReference Include="Expecto" Version="10.*" /> + <PackageReference Include="YoloDev.Expecto.TestSdk" Version="0.*" /> + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.*" /> + </ItemGroup> + + <ItemGroup> + <ProjectReference Include="..\..\..\src\Plotly.NET.ImageExport\Plotly.NET.ImageExport.fsproj" /> + </ItemGroup> +</Project> diff --git a/tests/ExtensionLibsTests/InteractiveTests/Main.fs b/tests/ExtensionLibsTests/InteractiveTests/Main.fs new file mode 100644 index 000000000..1f34e91d4 --- /dev/null +++ b/tests/ExtensionLibsTests/InteractiveTests/Main.fs @@ -0,0 +1,6 @@ +ïğżmodule Plotly.NET.Tests +open Expecto + +[<EntryPoint>] +let main argv = + Tests.runTestsInAssemblyWithCLIArgs [] argv From 6de319f1e5a72492650d4f085047992bfb04d1aa Mon Sep 17 00:00:00 2001 From: Kevin Schneider <schneider.kev@outlook.de> Date: Mon, 27 Jan 2025 10:12:51 +0100 Subject: [PATCH 32/36] Update readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 93b271a9b..9a70b85e8 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![Build and test](https://github.com/plotly/Plotly.NET/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/plotly/Plotly.NET/actions/workflows/build-and-test.yml) [![](https://img.shields.io/nuget/vpre/Plotly.NET)](https://www.nuget.org/packages/Plotly.NET/) +[![](https://img.shields.io/nuget/dt/Plotly.NET)](https://www.nuget.org/packages/Plotly.NET/) [![Discord](https://img.shields.io/discord/836161044501889064?color=purple&label=Join%20our%20Discord%21&logo=discord&logoColor=white)](https://discord.gg/k3kUtFY8DB) ![](https://img.shields.io/badge/supported%20plotly.js%20version-2.27.1-blue) [![DOI](https://img.shields.io/badge/DOI-10.12688%2Ff1000research.123971.1-brightgreen)](https://doi.org/10.12688/f1000research.123971.1) From 87054edc10dc1978f591d256b1a6d97e72c7211a Mon Sep 17 00:00:00 2001 From: "Venn, Benedikt" <benedikt.venn@exxeta.com> Date: Thu, 20 Feb 2025 09:38:53 +0100 Subject: [PATCH 33/36] update annotation docu closes #481 --- docs/chart-layout/annotations.fsx | 98 +++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) diff --git a/docs/chart-layout/annotations.fsx b/docs/chart-layout/annotations.fsx index 7699cd6e8..bb8305574 100644 --- a/docs/chart-layout/annotations.fsx +++ b/docs/chart-layout/annotations.fsx @@ -71,3 +71,101 @@ annotations (***hide***) annotations |> GenericChart.toChartHTML (***include-it-raw***) + + +(** +## Annotations with logged axes + +When using log axes, the values for `X` or `Y` given in `Annotation.init` must be transformed as well even if the axis shows the expected value range. +*) + +let y_highrange = [ 2.; 15_000.; 1_600.; 1.5; 3.; 25_000; 25_000.; 15_000; 350; 1. ] + +// The default log axis is base 10 +let a_log = Annotation.init (X = 5., Y = log10 2_500., Text = "I'm at position<br>x=5, y=2500") + +let annotations_log = + Chart.Line(x = x, y = y_highrange, Name = "log_line") + |> Chart.withYAxis(LinearAxis.init(AxisType = StyleParam.AxisType.Log)) + |> Chart.withAnnotation a_log + +(*** condition: ipynb ***) +#if IPYNB +annotations_log +#endif // IPYNB + +(***hide***) +annotations_log |> GenericChart.toChartHTML +(***include-it-raw***) + + + +(** +## Multicharts + +Annotations can also be placed using coordinates proportional to the chart canvas, by setting the `XRef` and `YRef` to `"paper"`. +In multi-chart layouts, the reference can be set to the respective x, and y axis-component (e.g. `XRef = x3, YRef = y3` for the third chart within the chart grid). +*) + +// setting no reference, the annotation will be placed at the given x and y values in the first chart +let a_multichart1 = Annotation.init (X = 8, Y = 5.0, Text = "no ref defined") + +// setting the reference to specific x and y components, the annotation will be placed at the given x and y values in the chart defined by the ref-coordinates +let a_multichart2 = Annotation.init (X = 7, Y = 3.5, XRef = "x1", YRef = "y1", Text = "ref: x1 and y1") +let a_multichart3 = Annotation.init (X = 7, Y = 3.5, XRef = "x2", YRef = "y2", Text = "ref: x2 and y2") +let a_multichart4 = Annotation.init (X = 7, Y = 3.5, XRef = "x3", YRef = "y3", Text = "ref: x3 and y3") +let a_multichart5 = Annotation.init (X = 7, Y = 3.5, XRef = "x4", YRef = "y4", Text = "ref: x4 and y4") + +// setting the x and y reference to "paper", the annotation will be placed proportional to the chart canvas +let a_multichart6 = Annotation.init (X = 1.1, Y = 1.1, XRef = "paper", YRef = "paper", Text = "ref: paper@1.1") +let a_multichart7 = Annotation.init (X = 0.5, Y = 0.4, XRef = "paper", YRef = "paper", Text = "ref: paper@0.5") + + +let annotations_multi = + [ + Chart.Line(x = x, y = y, Name = "chart 1") + Chart.Line(x = x, y = y, Name = "chart 2") + Chart.Line(x = x, y = y, Name = "chart 3") + Chart.Line(x = x, y = y, Name = "chart 4") + ] + |> Chart.Grid(2, 2) + |> Chart.withAnnotations ([a_multichart1; a_multichart2; a_multichart3; a_multichart4; a_multichart5; a_multichart6; a_multichart7]) + +(*** condition: ipynb ***) +#if IPYNB +annotations_multi +#endif // IPYNB + +(***hide***) +annotations_multi |> GenericChart.toChartHTML +(***include-it-raw***) + +(** +In multi-chart layouts *with coupled axis*, the reference can be set to the respective coupled x, and y axis-component (e.g. `XRef = x1, YRef = y2` for the leftmost chart in the second row). +*) + +// setting the reference to specific x and y components with coupled axes, the annotation will be placed at the given x and y values in the chart defined by the ref-coordinates +let a_multichart_coupled_1 = Annotation.init (X = 7, Y = 3.5, XRef = "x1", YRef = "y1", Text = "ref: x1 and y1") +let a_multichart_coupled_2 = Annotation.init (X = 7, Y = 3.5, XRef = "x2", YRef = "y1", Text = "ref: x2 and y1") +let a_multichart_coupled_3 = Annotation.init (X = 7, Y = 3.5, XRef = "x2", YRef = "y2", Text = "ref: x2 and y2") +let a_multichart_coupled_4 = Annotation.init (X = 7, Y = 3.5, XRef = "x1", YRef = "y2", Text = "ref: x1 and y2") + + +let annotations_paper_coupled = + [ + Chart.Line(x = x, y = y, Name = "chart 1") + Chart.Line(x = x, y = y, Name = "chart 2") + Chart.Line(x = x, y = y, Name = "chart 3") + Chart.Line(x = x, y = y, Name = "chart 4") + ] + |> Chart.Grid(2, 2, Pattern = StyleParam.LayoutGridPattern.Coupled) + |> Chart.withAnnotations ([a_multichart_coupled_1; a_multichart_coupled_2; a_multichart_coupled_3; a_multichart_coupled_4]) + +(*** condition: ipynb ***) +#if IPYNB +annotations_paper_coupled +#endif // IPYNB + +(***hide***) +annotations_paper_coupled |> GenericChart.toChartHTML +(***include-it-raw***) From 90bd8ba83f2922212d8ff5d6cae97afe0ab2c7e5 Mon Sep 17 00:00:00 2001 From: Kevin Schneider <schneider.kev@outlook.de> Date: Mon, 28 Jul 2025 10:54:55 +0200 Subject: [PATCH 34/36] wip native interactive formatter --- src/Plotly.NET.CSharp/InternalUtils.cs | 46 +++++++ src/Plotly.NET.ImageExport/Playground.fsx | 2 +- src/Plotly.NET/RELEASE_NOTES.md | 2 + .../InteractiveTests/Formatting.fs | 2 +- tests/InteractiveTests/TestNotebook.ipynb | 120 ++++++++++++++---- 5 files changed, 147 insertions(+), 25 deletions(-) create mode 100644 src/Plotly.NET.CSharp/InternalUtils.cs diff --git a/src/Plotly.NET.CSharp/InternalUtils.cs b/src/Plotly.NET.CSharp/InternalUtils.cs new file mode 100644 index 000000000..57dc80851 --- /dev/null +++ b/src/Plotly.NET.CSharp/InternalUtils.cs @@ -0,0 +1,46 @@ +ïğżusing System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Plotly.NET.CSharp +{ + [AttributeUsage(AttributeTargets.Class)] + internal class TypeFormatterSourceAttribute : Attribute + { + public TypeFormatterSourceAttribute(Type formatterSourceType) + { + FormatterSourceType = formatterSourceType; + } + + public Type FormatterSourceType { get; } + + public string[] PreferredMimeTypes { get; set; } + } + internal class MyConventionBasedFormatter + { + public string MimeType { get; set; } + + public bool Format(object instance, TextWriter writer) + { + if (instance is Plotly.NET.GenericChart myObj) + { + writer.Write($"<div>Custom formattering for {myObj}</div>"); + return true; + } + else + { + return false; + } + } + } + internal class MyConventionBasedFormatterSource + { + public IEnumerable<object> CreateTypeFormatters() + { + yield return new MyConventionBasedFormatter { MimeType = "text/html" }; + } + } + +} diff --git a/src/Plotly.NET.ImageExport/Playground.fsx b/src/Plotly.NET.ImageExport/Playground.fsx index 0c111dc36..8c34a1af7 100644 --- a/src/Plotly.NET.ImageExport/Playground.fsx +++ b/src/Plotly.NET.ImageExport/Playground.fsx @@ -2,7 +2,7 @@ #r "nuget: Deedle" #r "nuget: FSharpAux" #r "nuget: DynamicObj" -#r "nuget: Newtonsoft.Json, 13.0.1" +#r "nuget: Newtonsoft.JSON, 13.0.3" #load "../Plotly.NET/InternalUtils.fs" diff --git a/src/Plotly.NET/RELEASE_NOTES.md b/src/Plotly.NET/RELEASE_NOTES.md index 0c68e21a3..6c366507d 100644 --- a/src/Plotly.NET/RELEASE_NOTES.md +++ b/src/Plotly.NET/RELEASE_NOTES.md @@ -1,5 +1,7 @@ ### 5.1.0 - September 04 2024 +Maintenance release to prevent Plotly.NET breaking for users that upgrade the DynamicObj dependency to >=3.0.0. DynamicObj is now pinned to the version range [2.0.0, 3.0.0) until we manage to make Plotly.NET work with the major changes in that lib. + ### 5.0.0 - May 27 2024 Major release with lots of bug fixes, improvements, and upstream feature additions from plotly.js. Many changes are backwards-incompatible with previous versions. diff --git a/tests/ExtensionLibsTests/InteractiveTests/Formatting.fs b/tests/ExtensionLibsTests/InteractiveTests/Formatting.fs index b2b902fdb..4c6d90ae1 100644 --- a/tests/ExtensionLibsTests/InteractiveTests/Formatting.fs +++ b/tests/ExtensionLibsTests/InteractiveTests/Formatting.fs @@ -42,7 +42,7 @@ module ConventionBased = [<Tests>] let ``Convention-based Formatting`` = - testList "Convention-based Formatting" [ + ptestList "Convention-based Formatting" [ testCase "Convention based formatter sources can provide lazy registration of custom formatters" <| fun _ -> let o = ConventionBased.TypeWithCustomFormatter() let formatted = o.ToDisplayString() diff --git a/tests/InteractiveTests/TestNotebook.ipynb b/tests/InteractiveTests/TestNotebook.ipynb index 77a561bce..9f36502ec 100644 --- a/tests/InteractiveTests/TestNotebook.ipynb +++ b/tests/InteractiveTests/TestNotebook.ipynb @@ -28,7 +28,7 @@ { "data": { "text/html": [ - "<div><div><strong>Restore sources</strong><ul><li><span> C:/Users/schne/source/repos/plotly/Plotly.NET/pkg</span></li></ul></div><div></div><div><strong>Installed Packages</strong><ul><li><span>Plotly.NET, 2.0.0-alpha2</span></li></ul></div></div>" + "<div><div><strong>Restore sources</strong><ul><li><span> C:/Users/schne/source/repos/plotly/Plotly.NET/tests/Interactivetests/pkg</span></li></ul></div><div></div><div><strong>Installed Packages</strong><ul><li><span>Plotly.NET, 0.0.1-dev</span></li></ul></div></div>" ] }, "metadata": {}, @@ -53,28 +53,102 @@ { "data": { "text/html": [ - "<div><div id=\"4fc61fc7-1f1e-48f0-9aca-5da1084da281\"><!-- Plotly chart will be drawn inside this DIV --></div><script type=\"text/javascript\">\n", - "var renderPlotly_4fc61fc71f1e48f09aca5da1084da281 = function() {\n", - " var fsharpPlotlyRequire = requirejs.config({context:'fsharp-plotly',paths:{plotly:'https://cdn.plot.ly/plotly-2.18.1.min'}}) || require;\n", - " fsharpPlotlyRequire(['plotly'], function(Plotly) {\n", - " var data = [{\"type\":\"scatter\",\"mode\":\"markers\",\"x\":[1,3],\"y\":[2,4],\"marker\":{},\"line\":{}}];\n", - " var layout = {\"width\":600,\"height\":600,\"template\":{\"layout\":{\"title\":{\"x\":0.05},\"font\":{\"color\":\"rgba(42, 63, 95, 1.0)\"},\"paper_bgcolor\":\"rgba(255, 255, 255, 1.0)\",\"plot_bgcolor\":\"rgba(229, 236, 246, 1.0)\",\"autotypenumbers\":\"strict\",\"colorscale\":{\"diverging\":[[0.0,\"#8e0152\"],[0.1,\"#c51b7d\"],[0.2,\"#de77ae\"],[0.3,\"#f1b6da\"],[0.4,\"#fde0ef\"],[0.5,\"#f7f7f7\"],[0.6,\"#e6f5d0\"],[0.7,\"#b8e186\"],[0.8,\"#7fbc41\"],[0.9,\"#4d9221\"],[1.0,\"#276419\"]],\"sequential\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"sequentialminus\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]},\"hovermode\":\"closest\",\"hoverlabel\":{\"align\":\"left\"},\"coloraxis\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}},\"geo\":{\"showland\":true,\"landcolor\":\"rgba(229, 236, 246, 1.0)\",\"showlakes\":true,\"lakecolor\":\"rgba(255, 255, 255, 1.0)\",\"subunitcolor\":\"rgba(255, 255, 255, 1.0)\",\"bgcolor\":\"rgba(255, 255, 255, 1.0)\"},\"mapbox\":{\"style\":\"light\"},\"polar\":{\"bgcolor\":\"rgba(229, 236, 246, 1.0)\",\"radialaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"ticks\":\"\"},\"angularaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"ticks\":\"\"}},\"scene\":{\"xaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true},\"yaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true},\"zaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true}},\"ternary\":{\"aaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"baxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"caxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"bgcolor\":\"rgba(229, 236, 246, 1.0)\"},\"xaxis\":{\"title\":{\"standoff\":15},\"ticks\":\"\",\"automargin\":\"height+width+left+right+top+bottom\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinewidth\":2.0},\"yaxis\":{\"title\":{\"standoff\":15},\"ticks\":\"\",\"automargin\":\"height+width+left+right+top+bottom\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinewidth\":2.0},\"annotationdefaults\":{\"arrowcolor\":\"#2a3f5f\",\"arrowhead\":0,\"arrowwidth\":1},\"shapedefaults\":{\"line\":{\"color\":\"rgba(42, 63, 95, 1.0)\"}},\"colorway\":[\"rgba(99, 110, 250, 1.0)\",\"rgba(239, 85, 59, 1.0)\",\"rgba(0, 204, 150, 1.0)\",\"rgba(171, 99, 250, 1.0)\",\"rgba(255, 161, 90, 1.0)\",\"rgba(25, 211, 243, 1.0)\",\"rgba(255, 102, 146, 1.0)\",\"rgba(182, 232, 128, 1.0)\",\"rgba(255, 151, 255, 1.0)\",\"rgba(254, 203, 82, 1.0)\"]},\"data\":{\"bar\":[{\"marker\":{\"line\":{\"color\":\"rgba(229, 236, 246, 1.0)\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"error_x\":{\"color\":\"rgba(42, 63, 95, 1.0)\"},\"error_y\":{\"color\":\"rgba(42, 63, 95, 1.0)\"}}],\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"rgba(229, 236, 246, 1.0)\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}}}],\"carpet\":[{\"aaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"endlinecolor\":\"rgba(42, 63, 95, 1.0)\",\"minorgridcolor\":\"rgba(255, 255, 255, 1.0)\",\"startlinecolor\":\"rgba(42, 63, 95, 1.0)\"},\"baxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"endlinecolor\":\"rgba(42, 63, 95, 1.0)\",\"minorgridcolor\":\"rgba(255, 255, 255, 1.0)\",\"startlinecolor\":\"rgba(42, 63, 95, 1.0)\"}}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"contour\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}],\"heatmap\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"heatmapgl\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"histogram\":[{\"marker\":{\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}}}],\"histogram2d\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"histogram2dcontour\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"mesh3d\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}],\"parcoords\":[{\"line\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"pie\":[{\"automargin\":true}],\"scatter\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatter3d\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}},\"line\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattercarpet\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattergeo\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattergl\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattermapbox\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterpolar\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterpolargl\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterternary\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"surface\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"table\":[{\"cells\":{\"fill\":{\"color\":\"rgba(235, 240, 248, 1.0)\"},\"line\":{\"color\":\"rgba(255, 255, 255, 1.0)\"}},\"header\":{\"fill\":{\"color\":\"rgba(200, 212, 227, 1.0)\"},\"line\":{\"color\":\"rgba(255, 255, 255, 1.0)\"}}}]}}};\n", - " var config = {\"responsive\":true};\n", - " Plotly.newPlot('4fc61fc7-1f1e-48f0-9aca-5da1084da281', data, layout, config);\n", - " });\n", - "};\n", - "if ((typeof(requirejs) !== typeof(Function)) || (typeof(requirejs.config) !== typeof(Function))) {\n", - " var script = document.createElement(\"script\");\n", - " script.setAttribute(\"src\", \"https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js\");\n", - " script.onload = function(){\n", - " renderPlotly_4fc61fc71f1e48f09aca5da1084da281();\n", - " };\n", - " document.getElementsByTagName(\"head\")[0].appendChild(script);\n", - "}\n", - "else {\n", - " renderPlotly_4fc61fc71f1e48f09aca5da1084da281();\n", - "}\n", - "</script><h1>lel!</h1></div>" + "<details open=\"open\" class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>Chart\\n (Plotly.NET.Trace2D, Plotly.NET.Layout, Plotly.NET.Config,\\n Plotly.NET.DisplayOptions)</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>data</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>Plotly.NET.Trace2D</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>type</td><td><div class=\"dni-plaintext\"><pre>scatter</pre></div></td></tr><tr><td>Properties</td><td><table><thead><tr><th><i>key</i></th><th><i>type</i></th><th>value</th></tr></thead><tbody><tr><td><div class=\"dni-plaintext\"><pre>mode</pre></div></td><td><span><a href=\"https://docs.microsoft.com/dotnet/api/system.string?view=net-7.0\">System.String</a></span></td><td><div class=\"dni-plaintext\"><pre>markers</pre></div></td></tr><tr><td><div class=\"dni-plaintext\"><pre>x</pre></div></td><td><span><a href=\"https://docs.microsoft.com/dotnet/api/microsoft.fsharp.collections.fsharplist-1?view=net-7.0\">Microsoft.FSharp.Collections.FSharpList<System.Int32></a></span></td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>[ 1, 3 ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>HeadOrDefault</td><td><div class=\"dni-plaintext\"><pre>1</pre></div></td></tr><tr><td>TailOrNull</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>[ 3 ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>HeadOrDefault</td><td><div class=\"dni-plaintext\"><pre>3</pre></div></td></tr><tr><td>TailOrNull</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>[ ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>HeadOrDefault</td><td>0</td></tr><tr><td>TailOrNull</td><td><div class=\"dni-plaintext\"><pre><null></pre></div></td></tr><tr><td>Head</td><td>System.InvalidOperationException: The input list was empty.\r\n", + " at Microsoft.FSharp.Collections.FSharpList`1.get_Head() in D:\\a\\_work\\1\\s\\src\\FSharp.Core\\prim-types.fs:line 4142\r\n", + " at lambda_method159(Closure, FSharpList`1)\r\n", + " at Microsoft.DotNet.Interactive.Formatting.MemberAccessor`1.GetValueOrException(T instance) in D:\\a\\_work\\1\\s\\src\\Microsoft.DotNet.Interactive.Formatting\\MemberAccessor{T}.cs:line 58</td></tr><tr><td>Tail</td><td>System.InvalidOperationException: The input list was empty.\r\n", + " at Microsoft.FSharp.Collections.FSharpList`1.get_Tail() in D:\\a\\_work\\1\\s\\src\\FSharp.Core\\prim-types.fs:line 4147\r\n", + " at lambda_method160(Closure, FSharpList`1)\r\n", + " at Microsoft.DotNet.Interactive.Formatting.MemberAccessor`1.GetValueOrException(T instance) in D:\\a\\_work\\1\\s\\src\\Microsoft.DotNet.Interactive.Formatting\\MemberAccessor{T}.cs:line 58</td></tr><tr><td><i>(values)</i></td><td><div class=\"dni-plaintext\"><pre>[ ]</pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Head</td><td><div class=\"dni-plaintext\"><pre>3</pre></div></td></tr><tr><td>Tail</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>[ ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>HeadOrDefault</td><td>0</td></tr><tr><td>TailOrNull</td><td><div class=\"dni-plaintext\"><pre><null></pre></div></td></tr><tr><td>Head</td><td>System.InvalidOperationException: The input list was empty.\r\n", + " at Microsoft.FSharp.Collections.FSharpList`1.get_Head() in D:\\a\\_work\\1\\s\\src\\FSharp.Core\\prim-types.fs:line 4142\r\n", + " at lambda_method159(Closure, FSharpList`1)\r\n", + " at Microsoft.DotNet.Interactive.Formatting.MemberAccessor`1.GetValueOrException(T instance) in D:\\a\\_work\\1\\s\\src\\Microsoft.DotNet.Interactive.Formatting\\MemberAccessor{T}.cs:line 58</td></tr><tr><td>Tail</td><td>System.InvalidOperationException: The input list was empty.\r\n", + " at Microsoft.FSharp.Collections.FSharpList`1.get_Tail() in D:\\a\\_work\\1\\s\\src\\FSharp.Core\\prim-types.fs:line 4147\r\n", + " at lambda_method160(Closure, FSharpList`1)\r\n", + " at Microsoft.DotNet.Interactive.Formatting.MemberAccessor`1.GetValueOrException(T instance) in D:\\a\\_work\\1\\s\\src\\Microsoft.DotNet.Interactive.Formatting\\MemberAccessor{T}.cs:line 58</td></tr><tr><td><i>(values)</i></td><td><div class=\"dni-plaintext\"><pre>[ ]</pre></div></td></tr></tbody></table></div></details></td></tr><tr><td><i>(values)</i></td><td><div class=\"dni-plaintext\"><pre>[ 3 ]</pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Head</td><td><div class=\"dni-plaintext\"><pre>1</pre></div></td></tr><tr><td>Tail</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>[ 3 ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>HeadOrDefault</td><td><div class=\"dni-plaintext\"><pre>3</pre></div></td></tr><tr><td>TailOrNull</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>[ ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>HeadOrDefault</td><td>0</td></tr><tr><td>TailOrNull</td><td><div class=\"dni-plaintext\"><pre><null></pre></div></td></tr><tr><td>Head</td><td>System.InvalidOperationException: The input list was empty.\r\n", + " at Microsoft.FSharp.Collections.FSharpList`1.get_Head() in D:\\a\\_work\\1\\s\\src\\FSharp.Core\\prim-types.fs:line 4142\r\n", + " at lambda_method159(Closure, FSharpList`1)\r\n", + " at Microsoft.DotNet.Interactive.Formatting.MemberAccessor`1.GetValueOrException(T instance) in D:\\a\\_work\\1\\s\\src\\Microsoft.DotNet.Interactive.Formatting\\MemberAccessor{T}.cs:line 58</td></tr><tr><td>Tail</td><td>System.InvalidOperationException: The input list was empty.\r\n", + " at Microsoft.FSharp.Collections.FSharpList`1.get_Tail() in D:\\a\\_work\\1\\s\\src\\FSharp.Core\\prim-types.fs:line 4147\r\n", + " at lambda_method160(Closure, FSharpList`1)\r\n", + " at Microsoft.DotNet.Interactive.Formatting.MemberAccessor`1.GetValueOrException(T instance) in D:\\a\\_work\\1\\s\\src\\Microsoft.DotNet.Interactive.Formatting\\MemberAccessor{T}.cs:line 58</td></tr><tr><td><i>(values)</i></td><td><div class=\"dni-plaintext\"><pre>[ ]</pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Head</td><td><div class=\"dni-plaintext\"><pre>3</pre></div></td></tr><tr><td>Tail</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>[ ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>HeadOrDefault</td><td>0</td></tr><tr><td>TailOrNull</td><td><div class=\"dni-plaintext\"><pre><null></pre></div></td></tr><tr><td>Head</td><td>System.InvalidOperationException: The input list was empty.\r\n", + " at Microsoft.FSharp.Collections.FSharpList`1.get_Head() in D:\\a\\_work\\1\\s\\src\\FSharp.Core\\prim-types.fs:line 4142\r\n", + " at lambda_method159(Closure, FSharpList`1)\r\n", + " at Microsoft.DotNet.Interactive.Formatting.MemberAccessor`1.GetValueOrException(T instance) in D:\\a\\_work\\1\\s\\src\\Microsoft.DotNet.Interactive.Formatting\\MemberAccessor{T}.cs:line 58</td></tr><tr><td>Tail</td><td>System.InvalidOperationException: The input list was empty.\r\n", + " at Microsoft.FSharp.Collections.FSharpList`1.get_Tail() in D:\\a\\_work\\1\\s\\src\\FSharp.Core\\prim-types.fs:line 4147\r\n", + " at lambda_method160(Closure, FSharpList`1)\r\n", + " at Microsoft.DotNet.Interactive.Formatting.MemberAccessor`1.GetValueOrException(T instance) in D:\\a\\_work\\1\\s\\src\\Microsoft.DotNet.Interactive.Formatting\\MemberAccessor{T}.cs:line 58</td></tr><tr><td><i>(values)</i></td><td><div class=\"dni-plaintext\"><pre>[ ]</pre></div></td></tr></tbody></table></div></details></td></tr><tr><td><i>(values)</i></td><td><div class=\"dni-plaintext\"><pre>[ 3 ]</pre></div></td></tr></tbody></table></div></details></td></tr><tr><td><i>(values)</i></td><td><div class=\"dni-plaintext\"><pre>[ 1, 3 ]</pre></div></td></tr></tbody></table></div></details></td></tr><tr><td><div class=\"dni-plaintext\"><pre>y</pre></div></td><td><span><a href=\"https://docs.microsoft.com/dotnet/api/microsoft.fsharp.collections.fsharplist-1?view=net-7.0\">Microsoft.FSharp.Collections.FSharpList<System.Int32></a></span></td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>[ 2, 4 ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>HeadOrDefault</td><td><div class=\"dni-plaintext\"><pre>2</pre></div></td></tr><tr><td>TailOrNull</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>[ 4 ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>HeadOrDefault</td><td><div class=\"dni-plaintext\"><pre>4</pre></div></td></tr><tr><td>TailOrNull</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>[ ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>HeadOrDefault</td><td>0</td></tr><tr><td>TailOrNull</td><td><div class=\"dni-plaintext\"><pre><null></pre></div></td></tr><tr><td>Head</td><td>System.InvalidOperationException: The input list was empty.\r\n", + " at Microsoft.FSharp.Collections.FSharpList`1.get_Head() in D:\\a\\_work\\1\\s\\src\\FSharp.Core\\prim-types.fs:line 4142\r\n", + " at lambda_method159(Closure, FSharpList`1)\r\n", + " at Microsoft.DotNet.Interactive.Formatting.MemberAccessor`1.GetValueOrException(T instance) in D:\\a\\_work\\1\\s\\src\\Microsoft.DotNet.Interactive.Formatting\\MemberAccessor{T}.cs:line 58</td></tr><tr><td>Tail</td><td>System.InvalidOperationException: The input list was empty.\r\n", + " at Microsoft.FSharp.Collections.FSharpList`1.get_Tail() in D:\\a\\_work\\1\\s\\src\\FSharp.Core\\prim-types.fs:line 4147\r\n", + " at lambda_method160(Closure, FSharpList`1)\r\n", + " at Microsoft.DotNet.Interactive.Formatting.MemberAccessor`1.GetValueOrException(T instance) in D:\\a\\_work\\1\\s\\src\\Microsoft.DotNet.Interactive.Formatting\\MemberAccessor{T}.cs:line 58</td></tr><tr><td><i>(values)</i></td><td><div class=\"dni-plaintext\"><pre>[ ]</pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Head</td><td><div class=\"dni-plaintext\"><pre>4</pre></div></td></tr><tr><td>Tail</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>[ ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>HeadOrDefault</td><td>0</td></tr><tr><td>TailOrNull</td><td><div class=\"dni-plaintext\"><pre><null></pre></div></td></tr><tr><td>Head</td><td>System.InvalidOperationException: The input list was empty.\r\n", + " at Microsoft.FSharp.Collections.FSharpList`1.get_Head() in D:\\a\\_work\\1\\s\\src\\FSharp.Core\\prim-types.fs:line 4142\r\n", + " at lambda_method159(Closure, FSharpList`1)\r\n", + " at Microsoft.DotNet.Interactive.Formatting.MemberAccessor`1.GetValueOrException(T instance) in D:\\a\\_work\\1\\s\\src\\Microsoft.DotNet.Interactive.Formatting\\MemberAccessor{T}.cs:line 58</td></tr><tr><td>Tail</td><td>System.InvalidOperationException: The input list was empty.\r\n", + " at Microsoft.FSharp.Collections.FSharpList`1.get_Tail() in D:\\a\\_work\\1\\s\\src\\FSharp.Core\\prim-types.fs:line 4147\r\n", + " at lambda_method160(Closure, FSharpList`1)\r\n", + " at Microsoft.DotNet.Interactive.Formatting.MemberAccessor`1.GetValueOrException(T instance) in D:\\a\\_work\\1\\s\\src\\Microsoft.DotNet.Interactive.Formatting\\MemberAccessor{T}.cs:line 58</td></tr><tr><td><i>(values)</i></td><td><div class=\"dni-plaintext\"><pre>[ ]</pre></div></td></tr></tbody></table></div></details></td></tr><tr><td><i>(values)</i></td><td><div class=\"dni-plaintext\"><pre>[ 4 ]</pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Head</td><td><div class=\"dni-plaintext\"><pre>2</pre></div></td></tr><tr><td>Tail</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>[ 4 ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>HeadOrDefault</td><td><div class=\"dni-plaintext\"><pre>4</pre></div></td></tr><tr><td>TailOrNull</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>[ ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>HeadOrDefault</td><td>0</td></tr><tr><td>TailOrNull</td><td><div class=\"dni-plaintext\"><pre><null></pre></div></td></tr><tr><td>Head</td><td>System.InvalidOperationException: The input list was empty.\r\n", + " at Microsoft.FSharp.Collections.FSharpList`1.get_Head() in D:\\a\\_work\\1\\s\\src\\FSharp.Core\\prim-types.fs:line 4142\r\n", + " at lambda_method159(Closure, FSharpList`1)\r\n", + " at Microsoft.DotNet.Interactive.Formatting.MemberAccessor`1.GetValueOrException(T instance) in D:\\a\\_work\\1\\s\\src\\Microsoft.DotNet.Interactive.Formatting\\MemberAccessor{T}.cs:line 58</td></tr><tr><td>Tail</td><td>System.InvalidOperationException: The input list was empty.\r\n", + " at Microsoft.FSharp.Collections.FSharpList`1.get_Tail() in D:\\a\\_work\\1\\s\\src\\FSharp.Core\\prim-types.fs:line 4147\r\n", + " at lambda_method160(Closure, FSharpList`1)\r\n", + " at Microsoft.DotNet.Interactive.Formatting.MemberAccessor`1.GetValueOrException(T instance) in D:\\a\\_work\\1\\s\\src\\Microsoft.DotNet.Interactive.Formatting\\MemberAccessor{T}.cs:line 58</td></tr><tr><td><i>(values)</i></td><td><div class=\"dni-plaintext\"><pre>[ ]</pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Head</td><td><div class=\"dni-plaintext\"><pre>4</pre></div></td></tr><tr><td>Tail</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>[ ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>HeadOrDefault</td><td>0</td></tr><tr><td>TailOrNull</td><td><div class=\"dni-plaintext\"><pre><null></pre></div></td></tr><tr><td>Head</td><td>System.InvalidOperationException: The input list was empty.\r\n", + " at Microsoft.FSharp.Collections.FSharpList`1.get_Head() in D:\\a\\_work\\1\\s\\src\\FSharp.Core\\prim-types.fs:line 4142\r\n", + " at lambda_method159(Closure, FSharpList`1)\r\n", + " at Microsoft.DotNet.Interactive.Formatting.MemberAccessor`1.GetValueOrException(T instance) in D:\\a\\_work\\1\\s\\src\\Microsoft.DotNet.Interactive.Formatting\\MemberAccessor{T}.cs:line 58</td></tr><tr><td>Tail</td><td>System.InvalidOperationException: The input list was empty.\r\n", + " at Microsoft.FSharp.Collections.FSharpList`1.get_Tail() in D:\\a\\_work\\1\\s\\src\\FSharp.Core\\prim-types.fs:line 4147\r\n", + " at lambda_method160(Closure, FSharpList`1)\r\n", + " at Microsoft.DotNet.Interactive.Formatting.MemberAccessor`1.GetValueOrException(T instance) in D:\\a\\_work\\1\\s\\src\\Microsoft.DotNet.Interactive.Formatting\\MemberAccessor{T}.cs:line 58</td></tr><tr><td><i>(values)</i></td><td><div class=\"dni-plaintext\"><pre>[ ]</pre></div></td></tr></tbody></table></div></details></td></tr><tr><td><i>(values)</i></td><td><div class=\"dni-plaintext\"><pre>[ 4 ]</pre></div></td></tr></tbody></table></div></details></td></tr><tr><td><i>(values)</i></td><td><div class=\"dni-plaintext\"><pre>[ 2, 4 ]</pre></div></td></tr></tbody></table></div></details></td></tr><tr><td><div class=\"dni-plaintext\"><pre>marker</pre></div></td><td>Plotly.NET.TraceObjects.Marker</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>Plotly.NET.TraceObjects.Marker</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>Properties</td><td><i>(empty)</i></td></tr></tbody></table></div></details></td></tr><tr><td><div class=\"dni-plaintext\"><pre>line</pre></div></td><td>Plotly.NET.Line</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>Plotly.NET.Line</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>Properties</td><td><i>(empty)</i></td></tr></tbody></table></div></details></td></tr></tbody></table></td></tr></tbody></table></div></details></td></tr><tr><td>layout</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>Plotly.NET.Layout</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>Properties</td><td><table><thead><tr><th><i>key</i></th><th><i>type</i></th><th>value</th></tr></thead><tbody><tr><td><div class=\"dni-plaintext\"><pre>width</pre></div></td><td><span><a href=\"https://docs.microsoft.com/dotnet/api/system.int32?view=net-7.0\">System.Int32</a></span></td><td><div class=\"dni-plaintext\"><pre>600</pre></div></td></tr><tr><td><div class=\"dni-plaintext\"><pre>height</pre></div></td><td><span><a href=\"https://docs.microsoft.com/dotnet/api/system.int32?view=net-7.0\">System.Int32</a></span></td><td><div class=\"dni-plaintext\"><pre>600</pre></div></td></tr><tr><td><div class=\"dni-plaintext\"><pre>template</pre></div></td><td>Plotly.NET.Template</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>Plotly.NET.Template</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>Properties</td><td><table><thead><tr><th><i>key</i></th><th><i>type</i></th><th>value</th></tr></thead><tbody><tr><td><div class=\"dni-plaintext\"><pre>layout</pre></div></td><td>Plotly.NET.Layout</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>Plotly.NET.Layout</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>Properties</td><td>[ [title, Plotly.NET.Title], [font, Plotly.NET.Font], [paper_bgcolor, Plotly.NET.Color], [plot_bgcolor, Plotly.NET.Color], [autotypenumbers, strict], [colorscale, Plotly.NET.LayoutObjects.DefaultColorScales], [hovermode, closest], [hoverlabel, Plotly.NET.LayoutObjects.Hoverlabel], [coloraxis, Plotly.NET.LayoutObjects.ColorAxis], [geo, Plotly.NET.LayoutObjects.Geo], [mapbox, Plotly.NET.LayoutObjects.Mapbox], [polar, Plotly.NET.LayoutObjects.Polar], [scene, Plotly.NET.LayoutObjects.Scene], [ternary, Plotly.NET.LayoutObjects.Ternary], [xaxis, Plotly.NET.LayoutObjects.LinearAxis], [yaxis, Plotly.NET.LayoutObjects.LinearAxis], [annotationdefaults, DynamicObj.DynamicObj], [shapedefaults, DynamicObj.DynamicObj], [colorway, Plotly.NET.Color] ]</td></tr></tbody></table></div></details></td></tr><tr><td><div class=\"dni-plaintext\"><pre>data</pre></div></td><td>DynamicObj.DynamicObj</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>DynamicObj.DynamicObj</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>Properties</td><td>[ [bar, Microsoft.FSharp.Collections.IEnumerator+mkSeq@177[DynamicObj.DynamicObj]], [barpolar, Microsoft.FSharp.Collections.IEnumerator+mkSeq@177[DynamicObj.DynamicObj]], [carpet, Microsoft.FSharp.Collections.IEnumerator+mkSeq@177[DynamicObj.DynamicObj]], [choropleth, Microsoft.FSharp.Collections.IEnumerator+mkSeq@177[DynamicObj.DynamicObj]], [contour, Microsoft.FSharp.Collections.IEnumerator+mkSeq@177[DynamicObj.DynamicObj]], [contourcarpet, Microsoft.FSharp.Collections.IEnumerator+mkSeq@177[DynamicObj.DynamicObj]], [heatmap, Microsoft.FSharp.Collections.IEnumerator+mkSeq@177[DynamicObj.DynamicObj]], [heatmapgl, Microsoft.FSharp.Collections.IEnumerator+mkSeq@177[DynamicObj.DynamicObj]], [histogram, Microsoft.FSharp.Collections.IEnumerator+mkSeq@177[DynamicObj.DynamicObj]], [histogram2d, Microsoft.FSharp.Collections.IEnumerator+mkSeq@177[DynamicObj.DynamicObj]], [histogram2dcontour, Microsoft.FSharp.Collections.IEnumerator+mkSeq@177[DynamicObj.DynamicObj]], [mesh3d, Microsoft.FSharp.Collections.IEnumerator+mkSeq@177[DynamicObj.DynamicObj]], [parcoords, Microsoft.FSharp.Collections.IEnumerator+mkSeq@177[DynamicObj.DynamicObj]], [pie, Microsoft.FSharp.Collections.IEnumerator+mkSeq@177[DynamicObj.DynamicObj]], [scatter, Microsoft.FSharp.Collections.IEnumerator+mkSeq@177[DynamicObj.DynamicObj]], [scatter3d, Microsoft.FSharp.Collections.IEnumerator+mkSeq@177[DynamicObj.DynamicObj]], [scattercarpet, Microsoft.FSharp.Collections.IEnumerator+mkSeq@177[DynamicObj.DynamicObj]], [scattergeo, Microsoft.FSharp.Collections.IEnumerator+mkSeq@177[DynamicObj.DynamicObj]], [scattergl, Microsoft.FSharp.Collections.IEnumerator+mkSeq@177[DynamicObj.DynamicObj]], [scattermapbox, Microsoft.FSharp.Collections.IEnumerator+mkSeq@177[DynamicObj.DynamicObj]] ... (5 more) ]</td></tr></tbody></table></div></details></td></tr></tbody></table></td></tr></tbody></table></div></details></td></tr></tbody></table></td></tr></tbody></table></div></details></td></tr><tr><td>config</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>Plotly.NET.Config</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>Properties</td><td><table><thead><tr><th><i>key</i></th><th>value</th></tr></thead><tbody><tr><td><div class=\"dni-plaintext\"><pre>responsive</pre></div></td><td><div class=\"dni-plaintext\"><pre>True</pre></div></td></tr></tbody></table></td></tr></tbody></table></div></details></td></tr><tr><td>displayOpts</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>Plotly.NET.DisplayOptions</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>Properties</td><td><table><thead><tr><th><i>key</i></th><th><i>type</i></th><th>value</th></tr></thead><tbody><tr><td><div class=\"dni-plaintext\"><pre>DocumentTitle</pre></div></td><td><span><a href=\"https://docs.microsoft.com/dotnet/api/system.string?view=net-7.0\">System.String</a></span></td><td><div class=\"dni-plaintext\"><pre>Plotly.NET Datavisualization</pre></div></td></tr><tr><td><div class=\"dni-plaintext\"><pre>DocumentCharset</pre></div></td><td><span><a href=\"https://docs.microsoft.com/dotnet/api/system.string?view=net-7.0\">System.String</a></span></td><td><div class=\"dni-plaintext\"><pre>UTF-8</pre></div></td></tr><tr><td><div class=\"dni-plaintext\"><pre>DocumentDescription</pre></div></td><td><span><a href=\"https://docs.microsoft.com/dotnet/api/system.string?view=net-7.0\">System.String</a></span></td><td><div class=\"dni-plaintext\"><pre>A plotly.js graph generated with Plotly.NET</pre></div></td></tr><tr><td><div class=\"dni-plaintext\"><pre>DocumentFavicon</pre></div></td><td>Giraffe.ViewEngine.HtmlElements+XmlNode+VoidElement</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>VoidElement\\n struct ("link",\\n [KeyValue ("id", "favicon"); KeyValue ("rel", "shortcut icon");\\n KeyValue ("type", "image/png");\\n KeyValue\\n ("href",\\n "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAA1VBMVEVHcEwQnv+gCXUR...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>Item</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>(link, [KeyValue ("id", "favicon"); KeyValue ("rel", "shortcut icon"); KeyValue ("type", "image/png"); ... ])</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>Item1</td><td><div class=\"dni-plaintext\"><pre>link</pre></div></td></tr><tr><td>Item2</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>[ KeyValue ("id", "favicon"), KeyValue ("rel", "shortcut icon"), KeyValue ("type", "image/png"), KeyValue\n", + " ("href",\n", + " "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAA1VBMVEVHcEwQnv+gCXURnf+gCXURnf8Rnf+gCXURnf+gCXWgCXURnf+gCHURnf+gCXURnf+gCXURnf+gCXUwke5YVbykBXEijO+gCXURnf8Rnf8Rnf8Rnf8Rnf8Rnf+gCXWIIoygCXUohekRnf8Rnf8Qn/+gCXUQnf8SoP////8ijO+PG4agAnGQLY6gEnrP7f94yP8aof8YwP/DY6jJcrDuz+RlwP/owt0Urv8k/v4e4v9Nr9F1XaSxMoyx3/9rc7Ayq/98UZ3gr9L8+v05rv9Fv9rF5/+7T52h9OprAAAAJHRSTlMAINTUgPmA+gYGNbu7NR9PR/xP/hoh/o74f471R3x8uie60TS1lKLVAAABzUlEQVRYw83X2XKCMBQGYOyK3RdL9x0ChVCkVAHFfXn/RyphKSIBE85Mp8woV/8HOUByIgj/+mg2yb8o1s4/nZHTw2NNobmzf0HOp/d7Ys18Apzv1hHCvJICqIZA8hnAL0T5FYBXiPOrAJ+Q5HMAj5Dm8wC78JtfA1iFLK8oeYBNWM1vvQitltB4QxxCLn8gXD2/NoTjbXZhLX9ypH8c8giFvKJLiEMo5gnALlDyEcAq0PIxwCZQ8wnAItDzKbBZKObNBJDlMCFvEor5YQ8buDfUJdt3kevb1QLl+j2vb4y9OZZ8z0a251feA238uG8qZh/rkmurSLXdqjrQ62eQn5EWsaqS9Dweh3ewDOI7aHdG5ULJ8yM1WE67cQ0604FaJqx/v0leGc6x8aV94+gpWNqiTR3FrShcU68fHqYSA3J47Qwgwnsm3NxtBtR2NVA2BKcbxIC1mFUOoaSIZldzIuDyU+tkAPtjoAMcLwIV4HkVaQDXx0ABOD9HZxIYwcTRJWswQrOBxT8hpBMKIi+xWmdK4pvS4JMqfFqHLyzwpQ2+uMKXd3iDAW9x4E0WvM2DN5rwVhfebMPbffiGA77lgW+64Ns++MYTvvX9m+MHc8vmMWg2fMUAAAAASUVORK5CYII=") ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>HeadOrDefault</td><td>KeyValue (\"id\", \"favicon\")</td></tr><tr><td>TailOrNull</td><td>[ KeyValue (\"rel\", \"shortcut icon\"), KeyValue (\"type\", \"image/png\"), KeyValue\n", + " (\"href\",\n", + " \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAA1VBMVEVHcEwQnv+gCXURnf+gCXURnf8Rnf+gCXURnf+gCXWgCXURnf+gCHURnf+gCXURnf+gCXURnf+gCXUwke5YVbykBXEijO+gCXURnf8Rnf8Rnf8Rnf8Rnf8Rnf+gCXWIIoygCXUohekRnf8Rnf8Qn/+gCXUQnf8SoP////8ijO+PG4agAnGQLY6gEnrP7f94yP8aof8YwP/DY6jJcrDuz+RlwP/owt0Urv8k/v4e4v9Nr9F1XaSxMoyx3/9rc7Ayq/98UZ3gr9L8+v05rv9Fv9rF5/+7T52h9OprAAAAJHRSTlMAINTUgPmA+gYGNbu7NR9PR/xP/hoh/o74f471R3x8uie60TS1lKLVAAABzUlEQVRYw83X2XKCMBQGYOyK3RdL9x0ChVCkVAHFfXn/RyphKSIBE85Mp8woV/8HOUByIgj/+mg2yb8o1s4/nZHTw2NNobmzf0HOp/d7Ys18Apzv1hHCvJICqIZA8hnAL0T5FYBXiPOrAJ+Q5HMAj5Dm8wC78JtfA1iFLK8oeYBNWM1vvQitltB4QxxCLn8gXD2/NoTjbXZhLX9ypH8c8giFvKJLiEMo5gnALlDyEcAq0PIxwCZQ8wnAItDzKbBZKObNBJDlMCFvEor5YQ8buDfUJdt3kevb1QLl+j2vb4y9OZZ8z0a251feA238uG8qZh/rkmurSLXdqjrQ62eQn5EWsaqS9Dweh3ewDOI7aHdG5ULJ8yM1WE67cQ0604FaJqx/v0leGc6x8aV94+gpWNqiTR3FrShcU68fHqYSA3J47Qwgwnsm3NxtBtR2NVA2BKcbxIC1mFUOoaSIZldzIuDyU+tkAPtjoAMcLwIV4HkVaQDXx0ABOD9HZxIYwcTRJWswQrOBxT8hpBMKIi+xWmdK4pvS4JMqfFqHLyzwpQ2+uMKXd3iDAW9x4E0WvM2DN5rwVhfebMPbffiGA77lgW+64Ns++MYTvvX9m+MHc8vmMWg2fMUAAAAASUVORK5CYII=\") ]</td></tr><tr><td>Head</td><td>KeyValue (\"id\", \"favicon\")</td></tr><tr><td>Tail</td><td>[ KeyValue (\"rel\", \"shortcut icon\"), KeyValue (\"type\", \"image/png\"), KeyValue\n", + " (\"href\",\n", + " \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAA1VBMVEVHcEwQnv+gCXURnf+gCXURnf8Rnf+gCXURnf+gCXWgCXURnf+gCHURnf+gCXURnf+gCXURnf+gCXUwke5YVbykBXEijO+gCXURnf8Rnf8Rnf8Rnf8Rnf8Rnf+gCXWIIoygCXUohekRnf8Rnf8Qn/+gCXUQnf8SoP////8ijO+PG4agAnGQLY6gEnrP7f94yP8aof8YwP/DY6jJcrDuz+RlwP/owt0Urv8k/v4e4v9Nr9F1XaSxMoyx3/9rc7Ayq/98UZ3gr9L8+v05rv9Fv9rF5/+7T52h9OprAAAAJHRSTlMAINTUgPmA+gYGNbu7NR9PR/xP/hoh/o74f471R3x8uie60TS1lKLVAAABzUlEQVRYw83X2XKCMBQGYOyK3RdL9x0ChVCkVAHFfXn/RyphKSIBE85Mp8woV/8HOUByIgj/+mg2yb8o1s4/nZHTw2NNobmzf0HOp/d7Ys18Apzv1hHCvJICqIZA8hnAL0T5FYBXiPOrAJ+Q5HMAj5Dm8wC78JtfA1iFLK8oeYBNWM1vvQitltB4QxxCLn8gXD2/NoTjbXZhLX9ypH8c8giFvKJLiEMo5gnALlDyEcAq0PIxwCZQ8wnAItDzKbBZKObNBJDlMCFvEor5YQ8buDfUJdt3kevb1QLl+j2vb4y9OZZ8z0a251feA238uG8qZh/rkmurSLXdqjrQ62eQn5EWsaqS9Dweh3ewDOI7aHdG5ULJ8yM1WE67cQ0604FaJqx/v0leGc6x8aV94+gpWNqiTR3FrShcU68fHqYSA3J47Qwgwnsm3NxtBtR2NVA2BKcbxIC1mFUOoaSIZldzIuDyU+tkAPtjoAMcLwIV4HkVaQDXx0ABOD9HZxIYwcTRJWswQrOBxT8hpBMKIi+xWmdK4pvS4JMqfFqHLyzwpQ2+uMKXd3iDAW9x4E0WvM2DN5rwVhfebMPbffiGA77lgW+64Ns++MYTvvX9m+MHc8vmMWg2fMUAAAAASUVORK5CYII=\") ]</td></tr><tr><td><i>(values)</i></td><td><table><thead><tr><th><i>index</i></th><th>value</th></tr></thead><tbody><tr><td>0</td><td>KeyValue (\"id\", \"favicon\")</td></tr><tr><td>1</td><td>KeyValue (\"rel\", \"shortcut icon\")</td></tr><tr><td>2</td><td>KeyValue (\"type\", \"image/png\")</td></tr><tr><td>3</td><td>KeyValue\n", + " (\"href\",\n", + " \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAA1VBMVEVHcEwQnv+gCXURnf+gCXURnf8Rnf+gCXURnf+gCXWgCXURnf+gCHURnf+gCXURnf+gCXURnf+gCXUwke5YVbykBXEijO+gCXURnf8Rnf8Rnf8Rnf8Rnf8Rnf+gCXWIIoygCXUohekRnf8Rnf8Qn/+gCXUQnf8SoP////8ijO+PG4agAnGQLY6gEnrP7f94yP8aof8YwP/DY6jJcrDuz+RlwP/owt0Urv8k/v4e4v9Nr9F1XaSxMoyx3/9rc7Ayq/98UZ3gr9L8+v05rv9Fv9rF5/+7T52h9OprAAAAJHRSTlMAINTUgPmA+gYGNbu7NR9PR/xP/hoh/o74f471R3x8uie60TS1lKLVAAABzUlEQVRYw83X2XKCMBQGYOyK3RdL9x0ChVCkVAHFfXn/RyphKSIBE85Mp8woV/8HOUByIgj/+mg2yb8o1s4/nZHTw2NNobmzf0HOp/d7Ys18Apzv1hHCvJICqIZA8hnAL0T5FYBXiPOrAJ+Q5HMAj5Dm8wC78JtfA1iFLK8oeYBNWM1vvQitltB4QxxCLn8gXD2/NoTjbXZhLX9ypH8c8giFvKJLiEMo5gnALlDyEcAq0PIxwCZQ8wnAItDzKbBZKObNBJDlMCFvEor5YQ8buDfUJdt3kevb1QLl+j2vb4y9OZZ8z0a251feA238uG8qZh/rkmurSLXdqjrQ62eQn5EWsaqS9Dweh3ewDOI7aHdG5ULJ8yM1WE67cQ0604FaJqx/v0leGc6x8aV94+gpWNqiTR3FrShcU68fHqYSA3J47Qwgwnsm3NxtBtR2NVA2BKcbxIC1mFUOoaSIZldzIuDyU+tkAPtjoAMcLwIV4HkVaQDXx0ABOD9HZxIYwcTRJWswQrOBxT8hpBMKIi+xWmdK4pvS4JMqfFqHLyzwpQ2+uMKXd3iDAW9x4E0WvM2DN5rwVhfebMPbffiGA77lgW+64Ns++MYTvvX9m+MHc8vmMWg2fMUAAAAASUVORK5CYII=\")</td></tr></tbody></table></td></tr></tbody></table></div></details></td></tr></tbody></table></div></details></td></tr></tbody></table></div></details></td></tr><tr><td><div class=\"dni-plaintext\"><pre>PlotlyJSReference</pre></div></td><td>Plotly.NET.PlotlyJSReference+CDN</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>CDN "https://cdn.plot.ly/plotly-2.27.1.min.js"</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>Item</td><td><div class=\"dni-plaintext\"><pre>https://cdn.plot.ly/plotly-2.27.1.min.js</pre></div></td></tr></tbody></table></div></details></td></tr><tr><td><div class=\"dni-plaintext\"><pre>ChartDescription</pre></div></td><td><span><a href=\"https://docs.microsoft.com/dotnet/api/microsoft.fsharp.collections.fsharplist-1?view=net-7.0\">Microsoft.FSharp.Collections.FSharpList<Giraffe.ViewEngine.HtmlElements+XmlNode></a></span></td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>[ ParentNode (struct ("h1", []), [Text "lel!"]) ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>HeadOrDefault</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>ParentNode (struct ("h1", []), [Text "lel!"])</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>Item1</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>(h1, [])</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>Item1</td><td>h1</td></tr><tr><td>Item2</td><td>[ ]</td></tr></tbody></table></div></details></td></tr><tr><td>Item2</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>[ Text "lel!" ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>HeadOrDefault</td><td>Text \"lel!\"</td></tr><tr><td>TailOrNull</td><td>[ ]</td></tr><tr><td>Head</td><td>Text \"lel!\"</td></tr><tr><td>Tail</td><td>[ ]</td></tr><tr><td><i>(values)</i></td><td><table><thead><tr><th><i>index</i></th><th>value</th></tr></thead><tbody><tr><td>0</td><td>Text \"lel!\"</td></tr></tbody></table></td></tr></tbody></table></div></details></td></tr></tbody></table></div></details></td></tr><tr><td>TailOrNull</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>[ ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>HeadOrDefault</td><td><div class=\"dni-plaintext\"><pre><null></pre></div></td></tr><tr><td>TailOrNull</td><td><div class=\"dni-plaintext\"><pre><null></pre></div></td></tr><tr><td>Head</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>System.InvalidOperationException: The input list was empty.\\r\\n at Microsoft.FSharp.Collections.FSharpList`1.get_Head() in D:\\a\\_work\\1\\s\\src\\FSharp.Core\\prim-types.fs:line 4142\\r\\n at lambda_method320(Closure, FSharpList`1)\\r\\n at Microsoft.DotNet.Interactive.Formatting.MemberAccessor`1.GetVa...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>TargetSite</td><td>T get_Head()</td></tr><tr><td>Message</td><td>The input list was empty.</td></tr><tr><td>Data</td><td>[ ]</td></tr><tr><td>InnerException</td><td><div class=\"dni-plaintext\"><pre><null></pre></div></td></tr><tr><td>HelpLink</td><td><div class=\"dni-plaintext\"><pre><null></pre></div></td></tr><tr><td>Source</td><td>FSharp.Core</td></tr><tr><td>HResult</td><td>-2146233079</td></tr><tr><td>StackTrace</td><td> at Microsoft.FSharp.Collections.FSharpList`1.get_Head() in D:\\a\\_work\\1\\s\\src\\FSharp.Core\\prim-types.fs:line 4142\r\n", + " at lambda_method320(Closure, FSharpList`1)\r\n", + " at Microsoft.DotNet.Interactive.Formatting.MemberAccessor`1.GetValueOrException(T instance) in D:\\a\\_work\\1\\s\\src\\Microsoft.DotNet.Interactive.Formatting\\MemberAccessor{T}.cs:line 58</td></tr></tbody></table></div></details></td></tr><tr><td>Tail</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>System.InvalidOperationException: The input list was empty.\\r\\n at Microsoft.FSharp.Collections.FSharpList`1.get_Tail() in D:\\a\\_work\\1\\s\\src\\FSharp.Core\\prim-types.fs:line 4147\\r\\n at lambda_method321(Closure, FSharpList`1)\\r\\n at Microsoft.DotNet.Interactive.Formatting.MemberAccessor`1.GetVa...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>TargetSite</td><td>Microsoft.FSharp.Collections.FSharpList`1[T] get_Tail()</td></tr><tr><td>Message</td><td>The input list was empty.</td></tr><tr><td>Data</td><td>[ ]</td></tr><tr><td>InnerException</td><td><div class=\"dni-plaintext\"><pre><null></pre></div></td></tr><tr><td>HelpLink</td><td><div class=\"dni-plaintext\"><pre><null></pre></div></td></tr><tr><td>Source</td><td>FSharp.Core</td></tr><tr><td>HResult</td><td>-2146233079</td></tr><tr><td>StackTrace</td><td> at Microsoft.FSharp.Collections.FSharpList`1.get_Tail() in D:\\a\\_work\\1\\s\\src\\FSharp.Core\\prim-types.fs:line 4147\r\n", + " at lambda_method321(Closure, FSharpList`1)\r\n", + " at Microsoft.DotNet.Interactive.Formatting.MemberAccessor`1.GetValueOrException(T instance) in D:\\a\\_work\\1\\s\\src\\Microsoft.DotNet.Interactive.Formatting\\MemberAccessor{T}.cs:line 58</td></tr></tbody></table></div></details></td></tr><tr><td><i>(values)</i></td><td><i>(empty)</i></td></tr></tbody></table></div></details></td></tr><tr><td>Head</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>ParentNode (struct ("h1", []), [Text "lel!"])</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>Item1</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>(h1, [])</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>Item1</td><td>h1</td></tr><tr><td>Item2</td><td>[ ]</td></tr></tbody></table></div></details></td></tr><tr><td>Item2</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>[ Text "lel!" ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>HeadOrDefault</td><td>Text \"lel!\"</td></tr><tr><td>TailOrNull</td><td>[ ]</td></tr><tr><td>Head</td><td>Text \"lel!\"</td></tr><tr><td>Tail</td><td>[ ]</td></tr><tr><td><i>(values)</i></td><td><table><thead><tr><th><i>index</i></th><th>value</th></tr></thead><tbody><tr><td>0</td><td>Text \"lel!\"</td></tr></tbody></table></td></tr></tbody></table></div></details></td></tr></tbody></table></div></details></td></tr><tr><td>Tail</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>[ ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>HeadOrDefault</td><td><div class=\"dni-plaintext\"><pre><null></pre></div></td></tr><tr><td>TailOrNull</td><td><div class=\"dni-plaintext\"><pre><null></pre></div></td></tr><tr><td>Head</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>System.InvalidOperationException: The input list was empty.\\r\\n at Microsoft.FSharp.Collections.FSharpList`1.get_Head() in D:\\a\\_work\\1\\s\\src\\FSharp.Core\\prim-types.fs:line 4142\\r\\n at lambda_method320(Closure, FSharpList`1)\\r\\n at Microsoft.DotNet.Interactive.Formatting.MemberAccessor`1.GetVa...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>TargetSite</td><td>T get_Head()</td></tr><tr><td>Message</td><td>The input list was empty.</td></tr><tr><td>Data</td><td>[ ]</td></tr><tr><td>InnerException</td><td><div class=\"dni-plaintext\"><pre><null></pre></div></td></tr><tr><td>HelpLink</td><td><div class=\"dni-plaintext\"><pre><null></pre></div></td></tr><tr><td>Source</td><td>FSharp.Core</td></tr><tr><td>HResult</td><td>-2146233079</td></tr><tr><td>StackTrace</td><td> at Microsoft.FSharp.Collections.FSharpList`1.get_Head() in D:\\a\\_work\\1\\s\\src\\FSharp.Core\\prim-types.fs:line 4142\r\n", + " at lambda_method320(Closure, FSharpList`1)\r\n", + " at Microsoft.DotNet.Interactive.Formatting.MemberAccessor`1.GetValueOrException(T instance) in D:\\a\\_work\\1\\s\\src\\Microsoft.DotNet.Interactive.Formatting\\MemberAccessor{T}.cs:line 58</td></tr></tbody></table></div></details></td></tr><tr><td>Tail</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>System.InvalidOperationException: The input list was empty.\\r\\n at Microsoft.FSharp.Collections.FSharpList`1.get_Tail() in D:\\a\\_work\\1\\s\\src\\FSharp.Core\\prim-types.fs:line 4147\\r\\n at lambda_method321(Closure, FSharpList`1)\\r\\n at Microsoft.DotNet.Interactive.Formatting.MemberAccessor`1.GetVa...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>TargetSite</td><td>Microsoft.FSharp.Collections.FSharpList`1[T] get_Tail()</td></tr><tr><td>Message</td><td>The input list was empty.</td></tr><tr><td>Data</td><td>[ ]</td></tr><tr><td>InnerException</td><td><div class=\"dni-plaintext\"><pre><null></pre></div></td></tr><tr><td>HelpLink</td><td><div class=\"dni-plaintext\"><pre><null></pre></div></td></tr><tr><td>Source</td><td>FSharp.Core</td></tr><tr><td>HResult</td><td>-2146233079</td></tr><tr><td>StackTrace</td><td> at Microsoft.FSharp.Collections.FSharpList`1.get_Tail() in D:\\a\\_work\\1\\s\\src\\FSharp.Core\\prim-types.fs:line 4147\r\n", + " at lambda_method321(Closure, FSharpList`1)\r\n", + " at Microsoft.DotNet.Interactive.Formatting.MemberAccessor`1.GetValueOrException(T instance) in D:\\a\\_work\\1\\s\\src\\Microsoft.DotNet.Interactive.Formatting\\MemberAccessor{T}.cs:line 58</td></tr></tbody></table></div></details></td></tr><tr><td><i>(values)</i></td><td><i>(empty)</i></td></tr></tbody></table></div></details></td></tr><tr><td><i>(values)</i></td><td><table><thead><tr><th><i>index</i></th><th>value</th></tr></thead><tbody><tr><td>0</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>ParentNode (struct ("h1", []), [Text "lel!"])</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>Item1</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>(h1, [])</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>Item1</td><td>h1</td></tr><tr><td>Item2</td><td>[ ]</td></tr></tbody></table></div></details></td></tr><tr><td>Item2</td><td><details class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>[ Text "lel!" ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>HeadOrDefault</td><td>Text \"lel!\"</td></tr><tr><td>TailOrNull</td><td>[ ]</td></tr><tr><td>Head</td><td>Text \"lel!\"</td></tr><tr><td>Tail</td><td>[ ]</td></tr><tr><td><i>(values)</i></td><td><table><thead><tr><th><i>index</i></th><th>value</th></tr></thead><tbody><tr><td>0</td><td>Text \"lel!\"</td></tr></tbody></table></td></tr></tbody></table></div></details></td></tr></tbody></table></div></details></td></tr></tbody></table></td></tr></tbody></table></div></details></td></tr></tbody></table></td></tr></tbody></table></div></details></td></tr></tbody></table></div></details><style>\r\n", + ".dni-code-hint {\r\n", + " font-style: italic;\r\n", + " overflow: hidden;\r\n", + " white-space: nowrap;\r\n", + "}\r\n", + ".dni-treeview {\r\n", + " white-space: nowrap;\r\n", + "}\r\n", + ".dni-treeview td {\r\n", + " vertical-align: top;\r\n", + " text-align: start;\r\n", + "}\r\n", + "details.dni-treeview {\r\n", + " padding-left: 1em;\r\n", + "}\r\n", + "table td {\r\n", + " text-align: start;\r\n", + "}\r\n", + "table tr { \r\n", + " vertical-align: top; \r\n", + " margin: 0em 0px;\r\n", + "}\r\n", + "table tr td pre \r\n", + "{ \r\n", + " vertical-align: top !important; \r\n", + " margin: 0em 0px !important;\r\n", + "} \r\n", + "table th {\r\n", + " text-align: start;\r\n", + "}\r\n", + "</style>" ] }, "metadata": {}, From a50c83332889bd32fbc0854f0cb656c7272ecd42 Mon Sep 17 00:00:00 2001 From: Kevin Schneider <schneider.kev@outlook.de> Date: Mon, 28 Jul 2025 10:55:24 +0200 Subject: [PATCH 35/36] update to dynobj v7 --- .gitignore | 1 + docs/3D-charts/3d-cone-charts.fsx | 4 ++-- docs/3D-charts/3d-mesh-plots.fsx | 4 ++-- docs/3D-charts/3d-scatter-plots.fsx | 4 ++-- docs/3D-charts/3d-streamtube-plots.fsx | 4 ++-- docs/3D-charts/3d-surface-plots.fsx | 4 ++-- docs/3D-charts/3d-volume-plots.fsx | 4 ++-- docs/404.fsx.txt | 4 ++-- docs/NuGet.config | 14 -------------- docs/carpet-charts/carpet_line_scatter_plots.fsx | 4 ++-- docs/carpet-charts/contourcarpet_plots.fsx | 4 ++-- docs/categorical-charts/icicle.fsx | 4 ++-- docs/categorical-charts/parallel-categories.fsx | 4 ++-- docs/categorical-charts/parallel-coords.fsx | 4 ++-- docs/categorical-charts/sankey.fsx | 4 ++-- docs/categorical-charts/sunburst.fsx | 4 ++-- docs/categorical-charts/treemap.fsx | 4 ++-- docs/chart-layout/annotations.fsx | 4 ++-- docs/chart-layout/axis-styling.fsx | 4 ++-- docs/chart-layout/errorbars.fsx | 4 ++-- docs/chart-layout/layout_images.fsx | 4 ++-- docs/chart-layout/legends.fsx | 4 ++-- docs/chart-layout/multiple-charts.fsx | 4 ++-- docs/chart-layout/shapes.fsx | 4 ++-- docs/chart-layout/sliders.fsx | 4 ++-- docs/chart-layout/update_menus.fsx | 4 ++-- docs/distribution-charts/2d-histograms.fsx | 4 ++-- docs/distribution-charts/box-plots.fsx | 4 ++-- docs/distribution-charts/contour-plots.fsx | 4 ++-- docs/distribution-charts/histograms.fsx | 4 ++-- docs/distribution-charts/pareto-chart.fsx | 4 ++-- docs/distribution-charts/point-density.fsx | 4 ++-- docs/distribution-charts/splom.fsx | 4 ++-- docs/distribution-charts/violin-plots.fsx | 4 ++-- docs/finance-charts/candlestick.fsx | 4 ++-- docs/finance-charts/funnel.fsx | 4 ++-- docs/finance-charts/funnel_area.fsx | 4 ++-- docs/finance-charts/indicator.fsx | 4 ++-- docs/finance-charts/ohlc.fsx | 4 ++-- docs/finance-charts/waterfall.fsx | 4 ++-- docs/general/basics.fsx | 4 ++-- docs/general/chart-config.fsx | 4 ++-- docs/general/defaults.fsx | 4 ++-- docs/general/display-options.fsx | 4 ++-- docs/general/image-export.fsx | 4 ++-- docs/general/multi-arguments.fsx | 4 ++-- docs/general/styling-markers.fsx | 4 ++-- docs/general/templates.fsx | 4 ++-- docs/general/working-with-colors.fsx | 4 ++-- docs/geo-map-charts/choropleth-map.fsx | 4 ++-- docs/geo-map-charts/geo-plots.fsx | 4 ++-- docs/geo-map-charts/geo-vs-mapbox.fsx | 4 ++-- docs/index.fsx | 4 ++-- docs/mapbox-map-charts/choropleth-mapbox.fsx | 4 ++-- docs/mapbox-map-charts/density-mapbox.fsx | 4 ++-- docs/mapbox-map-charts/geo-vs-mapbox.fsx | 4 ++-- docs/mapbox-map-charts/mapbox-plots.fsx | 4 ++-- docs/polar-charts/polar_bar_charts.fsx | 4 ++-- docs/polar-charts/polar_line-scatter-plots.fsx | 4 ++-- docs/polar-charts/styling_polar_layouts.fsx | 4 ++-- docs/simple-charts/area-plots.fsx | 4 ++-- docs/simple-charts/bar-and-column-charts.fsx | 4 ++-- docs/simple-charts/bubble-charts.fsx | 4 ++-- docs/simple-charts/heatmaps.fsx | 4 ++-- docs/simple-charts/images.fsx | 4 ++-- docs/simple-charts/line-scatter-plots.fsx | 4 ++-- docs/simple-charts/multicategory.fsx | 4 ++-- docs/simple-charts/pie-doughnut-charts.fsx | 4 ++-- docs/simple-charts/range-plots.fsx | 4 ++-- docs/simple-charts/table.fsx | 4 ++-- docs/smith-charts/smith_line_scatter_plots.fsx | 4 ++-- docs/ternary-charts/styling_ternary_layouts.fsx | 4 ++-- docs/ternary-charts/ternary_line_scatter_plots.fsx | 4 ++-- src/Plotly.NET/ChartAPI/GenericChart.fs | 6 +++--- src/Plotly.NET/Playground.fsx | 2 +- src/Plotly.NET/Plotly.NET.fsproj | 2 +- src/Plotly.NET/Templates/Template.fs | 2 +- 77 files changed, 149 insertions(+), 162 deletions(-) delete mode 100644 docs/NuGet.config diff --git a/.gitignore b/.gitignore index ab97d98fb..de1909502 100644 --- a/.gitignore +++ b/.gitignore @@ -196,3 +196,4 @@ temp/gh-pages /plotly-net-gource.gif /plotly-gource.x264.avi /plotly-gource.ppm +/tests/InteractiveTests/pkg diff --git a/docs/3D-charts/3d-cone-charts.fsx b/docs/3D-charts/3d-cone-charts.fsx index 7ac9dddec..9f9777532 100644 --- a/docs/3D-charts/3d-cone-charts.fsx +++ b/docs/3D-charts/3d-cone-charts.fsx @@ -10,8 +10,8 @@ index: 4 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/3D-charts/3d-mesh-plots.fsx b/docs/3D-charts/3d-mesh-plots.fsx index ce5ad9319..b8dcadc37 100644 --- a/docs/3D-charts/3d-mesh-plots.fsx +++ b/docs/3D-charts/3d-mesh-plots.fsx @@ -10,8 +10,8 @@ index: 3 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/3D-charts/3d-scatter-plots.fsx b/docs/3D-charts/3d-scatter-plots.fsx index b211746c1..752484429 100644 --- a/docs/3D-charts/3d-scatter-plots.fsx +++ b/docs/3D-charts/3d-scatter-plots.fsx @@ -11,8 +11,8 @@ index: 1 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/3D-charts/3d-streamtube-plots.fsx b/docs/3D-charts/3d-streamtube-plots.fsx index 339c4b174..bbf3c731b 100644 --- a/docs/3D-charts/3d-streamtube-plots.fsx +++ b/docs/3D-charts/3d-streamtube-plots.fsx @@ -10,8 +10,8 @@ index: 5 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../data/Deedle.dll" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/3D-charts/3d-surface-plots.fsx b/docs/3D-charts/3d-surface-plots.fsx index 70d92287e..03907a922 100644 --- a/docs/3D-charts/3d-surface-plots.fsx +++ b/docs/3D-charts/3d-surface-plots.fsx @@ -10,8 +10,8 @@ index: 2 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/3D-charts/3d-volume-plots.fsx b/docs/3D-charts/3d-volume-plots.fsx index f7faf3ec4..8129de19d 100644 --- a/docs/3D-charts/3d-volume-plots.fsx +++ b/docs/3D-charts/3d-volume-plots.fsx @@ -10,8 +10,8 @@ index: 6 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/404.fsx.txt b/docs/404.fsx.txt index 2d862a774..1dcc63186 100644 --- a/docs/404.fsx.txt +++ b/docs/404.fsx.txt @@ -3,8 +3,8 @@ (*** condition: prepare ***) #r "nuget: Deedle" #r "nuget: FsHttp" -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/NuGet.config b/docs/NuGet.config deleted file mode 100644 index cf1ace51a..000000000 --- a/docs/NuGet.config +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<configuration> - <solution> - <add key="disableSourceControlIntegration" value="true" /> - </solution> - <packageSources> - <clear /> - <add key="nuget.org" value="https://api.nuget.org/v3/index.json" /> - <add key="dotnet3-dev" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3.1/nuget/v3/index.json" /> - <add key="dotnet-core" value="https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json" /> - <add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" /> - <add key="PSGallery" value="https://www.powershellgallery.com/api/v2/" /> - </packageSources> -</configuration> \ No newline at end of file diff --git a/docs/carpet-charts/carpet_line_scatter_plots.fsx b/docs/carpet-charts/carpet_line_scatter_plots.fsx index 40b1b5b60..c013d136b 100644 --- a/docs/carpet-charts/carpet_line_scatter_plots.fsx +++ b/docs/carpet-charts/carpet_line_scatter_plots.fsx @@ -10,8 +10,8 @@ index: 1 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/carpet-charts/contourcarpet_plots.fsx b/docs/carpet-charts/contourcarpet_plots.fsx index c6a21ae3c..302689100 100644 --- a/docs/carpet-charts/contourcarpet_plots.fsx +++ b/docs/carpet-charts/contourcarpet_plots.fsx @@ -10,8 +10,8 @@ index: 2 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/categorical-charts/icicle.fsx b/docs/categorical-charts/icicle.fsx index a38dda104..92076e065 100644 --- a/docs/categorical-charts/icicle.fsx +++ b/docs/categorical-charts/icicle.fsx @@ -11,8 +11,8 @@ index: 4 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/categorical-charts/parallel-categories.fsx b/docs/categorical-charts/parallel-categories.fsx index 8a8bf1976..f2a422227 100644 --- a/docs/categorical-charts/parallel-categories.fsx +++ b/docs/categorical-charts/parallel-categories.fsx @@ -10,8 +10,8 @@ index: 1 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/categorical-charts/parallel-coords.fsx b/docs/categorical-charts/parallel-coords.fsx index 3397315bb..6241f8d21 100644 --- a/docs/categorical-charts/parallel-coords.fsx +++ b/docs/categorical-charts/parallel-coords.fsx @@ -10,8 +10,8 @@ index: 2 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../data/Deedle.dll" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/categorical-charts/sankey.fsx b/docs/categorical-charts/sankey.fsx index 609554e95..c214321f2 100644 --- a/docs/categorical-charts/sankey.fsx +++ b/docs/categorical-charts/sankey.fsx @@ -11,8 +11,8 @@ index: 3 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/categorical-charts/sunburst.fsx b/docs/categorical-charts/sunburst.fsx index 702534ab7..db659835e 100644 --- a/docs/categorical-charts/sunburst.fsx +++ b/docs/categorical-charts/sunburst.fsx @@ -11,8 +11,8 @@ index: 6 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/categorical-charts/treemap.fsx b/docs/categorical-charts/treemap.fsx index 15e666b1e..aaa72230f 100644 --- a/docs/categorical-charts/treemap.fsx +++ b/docs/categorical-charts/treemap.fsx @@ -11,8 +11,8 @@ index: 5 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/chart-layout/annotations.fsx b/docs/chart-layout/annotations.fsx index bb8305574..202885724 100644 --- a/docs/chart-layout/annotations.fsx +++ b/docs/chart-layout/annotations.fsx @@ -10,8 +10,8 @@ index: 5 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/chart-layout/axis-styling.fsx b/docs/chart-layout/axis-styling.fsx index 5b30fa6b0..00bd14156 100644 --- a/docs/chart-layout/axis-styling.fsx +++ b/docs/chart-layout/axis-styling.fsx @@ -10,8 +10,8 @@ index: 1 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/chart-layout/errorbars.fsx b/docs/chart-layout/errorbars.fsx index 88f8d2221..94c7be769 100644 --- a/docs/chart-layout/errorbars.fsx +++ b/docs/chart-layout/errorbars.fsx @@ -10,8 +10,8 @@ index: 2 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/chart-layout/layout_images.fsx b/docs/chart-layout/layout_images.fsx index 62543a023..09de11599 100644 --- a/docs/chart-layout/layout_images.fsx +++ b/docs/chart-layout/layout_images.fsx @@ -10,8 +10,8 @@ index: 6 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/chart-layout/legends.fsx b/docs/chart-layout/legends.fsx index a88d6ef5e..b17e162e6 100644 --- a/docs/chart-layout/legends.fsx +++ b/docs/chart-layout/legends.fsx @@ -10,8 +10,8 @@ index: 9 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/chart-layout/multiple-charts.fsx b/docs/chart-layout/multiple-charts.fsx index ad6c17531..b0bef5beb 100644 --- a/docs/chart-layout/multiple-charts.fsx +++ b/docs/chart-layout/multiple-charts.fsx @@ -10,8 +10,8 @@ index: 3 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/chart-layout/shapes.fsx b/docs/chart-layout/shapes.fsx index 7f52539b5..bd5cf1fcd 100644 --- a/docs/chart-layout/shapes.fsx +++ b/docs/chart-layout/shapes.fsx @@ -10,8 +10,8 @@ index: 4 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/chart-layout/sliders.fsx b/docs/chart-layout/sliders.fsx index 438890d26..cee7b5df1 100644 --- a/docs/chart-layout/sliders.fsx +++ b/docs/chart-layout/sliders.fsx @@ -10,8 +10,8 @@ index: 7 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/chart-layout/update_menus.fsx b/docs/chart-layout/update_menus.fsx index cd4986684..8b095ff29 100644 --- a/docs/chart-layout/update_menus.fsx +++ b/docs/chart-layout/update_menus.fsx @@ -10,8 +10,8 @@ index: 8 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../data/Deedle.dll" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/distribution-charts/2d-histograms.fsx b/docs/distribution-charts/2d-histograms.fsx index 6f4e113a8..b13631ca2 100644 --- a/docs/distribution-charts/2d-histograms.fsx +++ b/docs/distribution-charts/2d-histograms.fsx @@ -10,8 +10,8 @@ index: 4 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/distribution-charts/box-plots.fsx b/docs/distribution-charts/box-plots.fsx index 94cc9f164..93f26d05a 100644 --- a/docs/distribution-charts/box-plots.fsx +++ b/docs/distribution-charts/box-plots.fsx @@ -10,8 +10,8 @@ index: 2 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/distribution-charts/contour-plots.fsx b/docs/distribution-charts/contour-plots.fsx index e092e11b9..984036835 100644 --- a/docs/distribution-charts/contour-plots.fsx +++ b/docs/distribution-charts/contour-plots.fsx @@ -10,8 +10,8 @@ index: 4 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/distribution-charts/histograms.fsx b/docs/distribution-charts/histograms.fsx index d2e85a509..5e60140d5 100644 --- a/docs/distribution-charts/histograms.fsx +++ b/docs/distribution-charts/histograms.fsx @@ -11,8 +11,8 @@ index: 1 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/distribution-charts/pareto-chart.fsx b/docs/distribution-charts/pareto-chart.fsx index ab153ac40..6aa64fd45 100644 --- a/docs/distribution-charts/pareto-chart.fsx +++ b/docs/distribution-charts/pareto-chart.fsx @@ -10,8 +10,8 @@ index: 9 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/distribution-charts/point-density.fsx b/docs/distribution-charts/point-density.fsx index b013efbcf..d509245fa 100644 --- a/docs/distribution-charts/point-density.fsx +++ b/docs/distribution-charts/point-density.fsx @@ -10,8 +10,8 @@ index: 6 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/distribution-charts/splom.fsx b/docs/distribution-charts/splom.fsx index c1a67d05a..454726097 100644 --- a/docs/distribution-charts/splom.fsx +++ b/docs/distribution-charts/splom.fsx @@ -10,8 +10,8 @@ index: 5 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../data/Deedle.dll" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/distribution-charts/violin-plots.fsx b/docs/distribution-charts/violin-plots.fsx index b4b8a4fe1..080ea8c37 100644 --- a/docs/distribution-charts/violin-plots.fsx +++ b/docs/distribution-charts/violin-plots.fsx @@ -10,8 +10,8 @@ index: 3 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/finance-charts/candlestick.fsx b/docs/finance-charts/candlestick.fsx index 13d232f25..1572cbb77 100644 --- a/docs/finance-charts/candlestick.fsx +++ b/docs/finance-charts/candlestick.fsx @@ -10,8 +10,8 @@ index: 2 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../data/Deedle.dll" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/finance-charts/funnel.fsx b/docs/finance-charts/funnel.fsx index 34222cb14..4f6efef6f 100644 --- a/docs/finance-charts/funnel.fsx +++ b/docs/finance-charts/funnel.fsx @@ -10,8 +10,8 @@ index: 3 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/finance-charts/funnel_area.fsx b/docs/finance-charts/funnel_area.fsx index 268f5dcca..aa63b240b 100644 --- a/docs/finance-charts/funnel_area.fsx +++ b/docs/finance-charts/funnel_area.fsx @@ -10,8 +10,8 @@ index: 4 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/finance-charts/indicator.fsx b/docs/finance-charts/indicator.fsx index 395d90cb4..fcb49037d 100644 --- a/docs/finance-charts/indicator.fsx +++ b/docs/finance-charts/indicator.fsx @@ -10,8 +10,8 @@ index: 5 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/finance-charts/ohlc.fsx b/docs/finance-charts/ohlc.fsx index 93265bb2c..599e30da3 100644 --- a/docs/finance-charts/ohlc.fsx +++ b/docs/finance-charts/ohlc.fsx @@ -10,8 +10,8 @@ index: 1 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../data/Deedle.dll" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/finance-charts/waterfall.fsx b/docs/finance-charts/waterfall.fsx index 4690e5d33..bf4230fce 100644 --- a/docs/finance-charts/waterfall.fsx +++ b/docs/finance-charts/waterfall.fsx @@ -10,8 +10,8 @@ index: 6 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/general/basics.fsx b/docs/general/basics.fsx index c2362c4ca..83e83a9bc 100644 --- a/docs/general/basics.fsx +++ b/docs/general/basics.fsx @@ -11,8 +11,8 @@ index: 1 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/general/chart-config.fsx b/docs/general/chart-config.fsx index 701d5c6b9..bc49acc80 100644 --- a/docs/general/chart-config.fsx +++ b/docs/general/chart-config.fsx @@ -10,8 +10,8 @@ index: 4 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/general/defaults.fsx b/docs/general/defaults.fsx index b8d374ea5..39ba19938 100644 --- a/docs/general/defaults.fsx +++ b/docs/general/defaults.fsx @@ -10,8 +10,8 @@ index: 6 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/general/display-options.fsx b/docs/general/display-options.fsx index 9afda986f..d7f4fe8c5 100644 --- a/docs/general/display-options.fsx +++ b/docs/general/display-options.fsx @@ -10,8 +10,8 @@ index: 3 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/general/image-export.fsx b/docs/general/image-export.fsx index 81674e573..fe4aaa41e 100644 --- a/docs/general/image-export.fsx +++ b/docs/general/image-export.fsx @@ -11,8 +11,8 @@ index: 2 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "nuget: PuppeteerSharp, 9.0.2" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/general/multi-arguments.fsx b/docs/general/multi-arguments.fsx index d938c5030..fe2853d36 100644 --- a/docs/general/multi-arguments.fsx +++ b/docs/general/multi-arguments.fsx @@ -10,8 +10,8 @@ index: 7 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/general/styling-markers.fsx b/docs/general/styling-markers.fsx index 30bb4d772..e086862cd 100644 --- a/docs/general/styling-markers.fsx +++ b/docs/general/styling-markers.fsx @@ -10,8 +10,8 @@ index: 9 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/general/templates.fsx b/docs/general/templates.fsx index fe0f4eb2e..5725fd8b2 100644 --- a/docs/general/templates.fsx +++ b/docs/general/templates.fsx @@ -10,8 +10,8 @@ index: 5 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/general/working-with-colors.fsx b/docs/general/working-with-colors.fsx index f09e37910..0ae2f21b9 100644 --- a/docs/general/working-with-colors.fsx +++ b/docs/general/working-with-colors.fsx @@ -10,8 +10,8 @@ index: 8 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/geo-map-charts/choropleth-map.fsx b/docs/geo-map-charts/choropleth-map.fsx index b028d217e..985e3e11a 100644 --- a/docs/geo-map-charts/choropleth-map.fsx +++ b/docs/geo-map-charts/choropleth-map.fsx @@ -10,8 +10,8 @@ index: 3 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../data/Deedle.dll" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/geo-map-charts/geo-plots.fsx b/docs/geo-map-charts/geo-plots.fsx index d26d62735..1b2052a5b 100644 --- a/docs/geo-map-charts/geo-plots.fsx +++ b/docs/geo-map-charts/geo-plots.fsx @@ -10,8 +10,8 @@ index: 2 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "nuget: Deedle" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/geo-map-charts/geo-vs-mapbox.fsx b/docs/geo-map-charts/geo-vs-mapbox.fsx index 25aafb9e1..837cb8a55 100644 --- a/docs/geo-map-charts/geo-vs-mapbox.fsx +++ b/docs/geo-map-charts/geo-vs-mapbox.fsx @@ -10,8 +10,8 @@ index: 1 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/index.fsx b/docs/index.fsx index c78a266be..26eb63828 100644 --- a/docs/index.fsx +++ b/docs/index.fsx @@ -3,8 +3,8 @@ (*** condition: prepare ***) #r "nuget: Deedle" #r "nuget: FsHttp" -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/mapbox-map-charts/choropleth-mapbox.fsx b/docs/mapbox-map-charts/choropleth-mapbox.fsx index 7c9e6d33b..aecce51a6 100644 --- a/docs/mapbox-map-charts/choropleth-mapbox.fsx +++ b/docs/mapbox-map-charts/choropleth-mapbox.fsx @@ -10,8 +10,8 @@ index: 3 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../data/Deedle.dll" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/mapbox-map-charts/density-mapbox.fsx b/docs/mapbox-map-charts/density-mapbox.fsx index c726ad087..5dc7f6dca 100644 --- a/docs/mapbox-map-charts/density-mapbox.fsx +++ b/docs/mapbox-map-charts/density-mapbox.fsx @@ -10,8 +10,8 @@ index: 4 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../data/Deedle.dll" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/mapbox-map-charts/geo-vs-mapbox.fsx b/docs/mapbox-map-charts/geo-vs-mapbox.fsx index c3e649608..43920c98b 100644 --- a/docs/mapbox-map-charts/geo-vs-mapbox.fsx +++ b/docs/mapbox-map-charts/geo-vs-mapbox.fsx @@ -10,8 +10,8 @@ index: 1 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/mapbox-map-charts/mapbox-plots.fsx b/docs/mapbox-map-charts/mapbox-plots.fsx index 7485ef9d4..fb75cf1dc 100644 --- a/docs/mapbox-map-charts/mapbox-plots.fsx +++ b/docs/mapbox-map-charts/mapbox-plots.fsx @@ -10,8 +10,8 @@ index: 2 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../data/Deedle.dll" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/polar-charts/polar_bar_charts.fsx b/docs/polar-charts/polar_bar_charts.fsx index 66f41bf50..7f3bddcb8 100644 --- a/docs/polar-charts/polar_bar_charts.fsx +++ b/docs/polar-charts/polar_bar_charts.fsx @@ -10,8 +10,8 @@ index: 2 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/polar-charts/polar_line-scatter-plots.fsx b/docs/polar-charts/polar_line-scatter-plots.fsx index b138defd0..550fa2579 100644 --- a/docs/polar-charts/polar_line-scatter-plots.fsx +++ b/docs/polar-charts/polar_line-scatter-plots.fsx @@ -10,8 +10,8 @@ index: 1 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/polar-charts/styling_polar_layouts.fsx b/docs/polar-charts/styling_polar_layouts.fsx index 78dc10bea..286ca41e7 100644 --- a/docs/polar-charts/styling_polar_layouts.fsx +++ b/docs/polar-charts/styling_polar_layouts.fsx @@ -10,8 +10,8 @@ index: 3 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/simple-charts/area-plots.fsx b/docs/simple-charts/area-plots.fsx index 3c8b8bcb9..abb31fb95 100644 --- a/docs/simple-charts/area-plots.fsx +++ b/docs/simple-charts/area-plots.fsx @@ -10,8 +10,8 @@ index: 3 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/simple-charts/bar-and-column-charts.fsx b/docs/simple-charts/bar-and-column-charts.fsx index 252a33414..ae4de73f5 100644 --- a/docs/simple-charts/bar-and-column-charts.fsx +++ b/docs/simple-charts/bar-and-column-charts.fsx @@ -10,8 +10,8 @@ index: 2 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/simple-charts/bubble-charts.fsx b/docs/simple-charts/bubble-charts.fsx index 6e455ae13..e115c2e84 100644 --- a/docs/simple-charts/bubble-charts.fsx +++ b/docs/simple-charts/bubble-charts.fsx @@ -10,8 +10,8 @@ index: 5 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/simple-charts/heatmaps.fsx b/docs/simple-charts/heatmaps.fsx index 3e0879355..ce54c071a 100644 --- a/docs/simple-charts/heatmaps.fsx +++ b/docs/simple-charts/heatmaps.fsx @@ -10,8 +10,8 @@ index: 8 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/simple-charts/images.fsx b/docs/simple-charts/images.fsx index 9cf56426e..4bb6a4af4 100644 --- a/docs/simple-charts/images.fsx +++ b/docs/simple-charts/images.fsx @@ -10,8 +10,8 @@ index: 9 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/simple-charts/line-scatter-plots.fsx b/docs/simple-charts/line-scatter-plots.fsx index b2c2444cc..73cbe1bb0 100644 --- a/docs/simple-charts/line-scatter-plots.fsx +++ b/docs/simple-charts/line-scatter-plots.fsx @@ -10,8 +10,8 @@ index: 1 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/simple-charts/multicategory.fsx b/docs/simple-charts/multicategory.fsx index f0da1fc04..a288faacc 100644 --- a/docs/simple-charts/multicategory.fsx +++ b/docs/simple-charts/multicategory.fsx @@ -10,8 +10,8 @@ index: 10 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/simple-charts/pie-doughnut-charts.fsx b/docs/simple-charts/pie-doughnut-charts.fsx index 0dfa5d253..58b3acf79 100644 --- a/docs/simple-charts/pie-doughnut-charts.fsx +++ b/docs/simple-charts/pie-doughnut-charts.fsx @@ -10,8 +10,8 @@ index: 6 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/simple-charts/range-plots.fsx b/docs/simple-charts/range-plots.fsx index 2363f4588..ca314de72 100644 --- a/docs/simple-charts/range-plots.fsx +++ b/docs/simple-charts/range-plots.fsx @@ -10,8 +10,8 @@ index: 4 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/simple-charts/table.fsx b/docs/simple-charts/table.fsx index 5c4b47a0b..5b3d0a894 100644 --- a/docs/simple-charts/table.fsx +++ b/docs/simple-charts/table.fsx @@ -10,8 +10,8 @@ index: 7 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/smith-charts/smith_line_scatter_plots.fsx b/docs/smith-charts/smith_line_scatter_plots.fsx index c09876fca..b172ecf60 100644 --- a/docs/smith-charts/smith_line_scatter_plots.fsx +++ b/docs/smith-charts/smith_line_scatter_plots.fsx @@ -10,8 +10,8 @@ index: 1 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/ternary-charts/styling_ternary_layouts.fsx b/docs/ternary-charts/styling_ternary_layouts.fsx index 18e34995c..7dcc1b9e4 100644 --- a/docs/ternary-charts/styling_ternary_layouts.fsx +++ b/docs/ternary-charts/styling_ternary_layouts.fsx @@ -10,8 +10,8 @@ index: 2 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/docs/ternary-charts/ternary_line_scatter_plots.fsx b/docs/ternary-charts/ternary_line_scatter_plots.fsx index 45a3e4dd4..cd2f3a115 100644 --- a/docs/ternary-charts/ternary_line_scatter_plots.fsx +++ b/docs/ternary-charts/ternary_line_scatter_plots.fsx @@ -10,8 +10,8 @@ index: 1 (*** hide ***) (*** condition: prepare ***) -#r "nuget: Newtonsoft.JSON, 13.0.1" -#r "nuget: DynamicObj, 2.0.0" +#r "nuget: Newtonsoft.JSON, 13.0.3" +#r "nuget: DynamicObj, 7.0.1" #r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1" #r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll" diff --git a/src/Plotly.NET/ChartAPI/GenericChart.fs b/src/Plotly.NET/ChartAPI/GenericChart.fs index 34c3c4c9f..6adc2546a 100644 --- a/src/Plotly.NET/ChartAPI/GenericChart.fs +++ b/src/Plotly.NET/ChartAPI/GenericChart.fs @@ -493,13 +493,13 @@ type GenericChart = if useDefaults then // copy default instances so we can safely manipulate the respective objects of the created chart without changing global default objects let defaultConfig = Config() - Defaults.DefaultConfig.CopyDynamicPropertiesTo defaultConfig + Defaults.DefaultConfig.DeepCopyPropertiesTo defaultConfig let defaultDisplayOpts = DisplayOptions() - Defaults.DefaultDisplayOptions.CopyDynamicPropertiesTo defaultDisplayOpts + Defaults.DefaultDisplayOptions.DeepCopyPropertiesTo defaultDisplayOpts let defaultTemplate = Template() - Defaults.DefaultTemplate.CopyDynamicPropertiesTo defaultTemplate + Defaults.DefaultTemplate.DeepCopyPropertiesTo defaultTemplate let defaultLayout = Layout.init ( diff --git a/src/Plotly.NET/Playground.fsx b/src/Plotly.NET/Playground.fsx index 06ea8404f..702a7ef1f 100644 --- a/src/Plotly.NET/Playground.fsx +++ b/src/Plotly.NET/Playground.fsx @@ -2,7 +2,7 @@ #r "nuget: Deedle" #r "nuget: FSharpAux" #r "nuget: DynamicObj" -#r "nuget: Newtonsoft.Json, 13.0.1" +#r "nuget: Newtonsoft.JSON, 13.0.3" #load "InternalUtils.fs" diff --git a/src/Plotly.NET/Plotly.NET.fsproj b/src/Plotly.NET/Plotly.NET.fsproj index 839ee387d..d3d53f6da 100644 --- a/src/Plotly.NET/Plotly.NET.fsproj +++ b/src/Plotly.NET/Plotly.NET.fsproj @@ -174,7 +174,7 @@ </ItemGroup> <ItemGroup> <PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> - <PackageReference Include="DynamicObj" Version="[4.0.3, 5.0.0)" /> + <PackageReference Include="DynamicObj" Version="[7.0.1, 8.0.0)" /> <PackageReference Include="Giraffe.ViewEngine.StrongName" Version="2.0.0-alpha1" /> </ItemGroup> </Project> diff --git a/src/Plotly.NET/Templates/Template.fs b/src/Plotly.NET/Templates/Template.fs index dc8740386..6de005e2f 100644 --- a/src/Plotly.NET/Templates/Template.fs +++ b/src/Plotly.NET/Templates/Template.fs @@ -31,7 +31,7 @@ type Template() = templates |> Seq.map (fun t -> let tmp = DynamicObj() - t.CopyDynamicPropertiesTo(tmp) + t.DeepCopyPropertiesTo(tmp) tmp) ))) From 52e8227948175836c6aeed7e3580fcb71d7c439f Mon Sep 17 00:00:00 2001 From: Kevin Schneider <schneider.kev@outlook.de> Date: Mon, 28 Jul 2025 11:04:06 +0200 Subject: [PATCH 36/36] update release notes for prerelease --- src/Plotly.NET/RELEASE_NOTES.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Plotly.NET/RELEASE_NOTES.md b/src/Plotly.NET/RELEASE_NOTES.md index 6c366507d..fa741df09 100644 --- a/src/Plotly.NET/RELEASE_NOTES.md +++ b/src/Plotly.NET/RELEASE_NOTES.md @@ -1,3 +1,9 @@ +### 6.0.0 - TBD + +This version [removes C# interop from the core F# Plotly.NET library](https://github.com/plotly/Plotly.NET/issues/457), offloading those implementations directly to the native C# lib Plotly.NET.CSharp: + +[Milestone link with all the fixed/closed issues](https://github.com/plotly/Plotly.NET/milestone/8) + ### 5.1.0 - September 04 2024 Maintenance release to prevent Plotly.NET breaking for users that upgrade the DynamicObj dependency to >=3.0.0. DynamicObj is now pinned to the version range [2.0.0, 3.0.0) until we manage to make Plotly.NET work with the major changes in that lib.