diff --git a/docs/06_1_mapbox-plots.fsx b/docs/06_1_mapbox-plots.fsx
index ff428cdce..244463d29 100644
--- a/docs/06_1_mapbox-plots.fsx
+++ b/docs/06_1_mapbox-plots.fsx
@@ -56,7 +56,7 @@ open Plotly.NET.LayoutObjects
let pointMapbox =
Chart.PointMapbox(
lon,lat,
- Labels = cityNames,
+ MultiText = cityNames,
TextPosition = StyleParam.TextPosition.TopCenter
)
|> Chart.withMapbox(
@@ -103,7 +103,7 @@ let flights =
Chart.LineMapbox(
[startCoords; endCoords],
Opacity = opacityVals.[i],
- Color = Color.fromString "red"
+ LineColor = Color.fromString "red"
)
)
|> Chart.combine
diff --git a/docs/06_3_density-mapbox.fsx b/docs/06_3_density-mapbox.fsx
index 4d7f6e31d..70e32380f 100644
--- a/docs/06_3_density-mapbox.fsx
+++ b/docs/06_3_density-mapbox.fsx
@@ -57,8 +57,8 @@ let densityMapbox =
lon,
lat,
Z = magnitudes,
- Radius=8.,
- Colorscale=StyleParam.Colorscale.Viridis
+ Radius=8,
+ ColorScale=StyleParam.Colorscale.Viridis
)
|> Chart.withMapbox(
Mapbox.init(
diff --git a/src/Plotly.NET/ChartAPI/Chart2D.fs b/src/Plotly.NET/ChartAPI/Chart2D.fs
index 873a5120b..724757491 100644
--- a/src/Plotly.NET/ChartAPI/Chart2D.fs
+++ b/src/Plotly.NET/ChartAPI/Chart2D.fs
@@ -237,7 +237,6 @@ module Chart2D =
///
/// 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
@@ -319,7 +318,6 @@ module Chart2D =
/// Creates a Point chart, which uses Points in a 2D space to visualize data.
/// Sets the x and 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/ChartMap.fs b/src/Plotly.NET/ChartAPI/ChartMap.fs
index 4f61f0b52..7e2d09b63 100644
--- a/src/Plotly.NET/ChartAPI/ChartMap.fs
+++ b/src/Plotly.NET/ChartAPI/ChartMap.fs
@@ -31,7 +31,6 @@ module ChartMap =
[] ?Text: #IConvertible,
[] ?MultiText: seq<#IConvertible>,
[] ?ColorBar: ColorBar,
- [] ?AutoColorScale: bool,
[] ?ColorScale: StyleParam.Colorscale,
[] ?ShowScale: bool,
[] ?ReverseScale: bool,
@@ -52,7 +51,6 @@ module ChartMap =
?Text = Text,
?MultiText = MultiText,
?ColorBar = ColorBar,
- ?AutoColorScale = AutoColorScale,
?ColorScale = ColorScale,
?ShowScale = ShowScale,
?ReverseScale = ReverseScale,
@@ -649,61 +647,81 @@ module ChartMap =
///
/// You might need a Mapbox token, which you can also configure with Chart.withMapbox.
///
- /// ScatterGeo charts are the basis of PointMapbox and LineMapbox Charts, and can be customized as such. We also provide abstractions for those: Chart.PointMapbox and Chart.LineMapbox
+ /// ScatterMapbox charts are the basis of PointMapbox and LineMapbox Charts, and can be customized as such. We also provide abstractions for those: Chart.PointMapbox and Chart.LineMapbox
///
- /// Sets the longitude coordinates (in degrees East).
- /// Sets the latitude coordinates (in degrees North).
- /// Determines the drawing mode for this scatter trace. If the provided `mode` includes "text" then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover.
- /// 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 marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set.
- /// Sets the opacity of the trace.
- /// Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a "text" flag and "hovertext" is not set, these elements will be seen in the hover labels.
- /// Sets the positions of the `text` elements with respects to the (x,y) coordinates.
- /// Sets the icon text font (color=mapbox.layer.paint.text-color, size=mapbox.layer.layout.text-size). Has an effect only when `type` is set to "symbol".
- /// Sets the line width (in px).
- /// Determines if this scattermapbox trace's layers are to be inserted before the layer with the specified ID. By default, scattermapbox layers are inserted above all the base layers. To place the scattermapbox layers above every other layer, set `below` to "''".
- /// Determines whether or not gaps (i.e. {nan} or missing values) in the provided data arrays are connected.
- /// Sets the area to fill with a solid color. Use with `fillcolor` if not "none". "toself" connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape.
- /// Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available.
[]
static member ScatterMapbox
(
- longitudes,
- latitudes,
- mode,
- [] ?Name,
- [] ?ShowLegend,
- [] ?Color,
- [] ?Opacity,
- [] ?Labels,
- [] ?TextPosition,
- [] ?TextFont,
- [] ?Width: float,
+ 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,
[] ?Below: string,
- [] ?Connectgaps: bool,
- [] ?Fill: StyleParam.Fill,
- [] ?Fillcolor,
[] ?UseDefaults: bool
) =
+
let useDefaults = defaultArg UseDefaults true
+ let marker =
+ Marker
+ |> Option.defaultValue (TraceObjects.Marker.init ())
+ |> TraceObjects.Marker.style (
+ ?Color = MarkerColor,
+ ?Outline = MarkerOutline,
+ ?Symbol = MarkerSymbol,
+ ?MultiSymbol = MultiMarkerSymbol,
+ ?Colorscale = MarkerColorScale,
+ ?MultiOpacity = MultiOpacity
+ )
+
+ let line =
+ Line
+ |> Option.defaultValue (Plotly.NET.Line.init ())
+ |> Plotly.NET.Line.style (
+ ?Color = LineColor,
+ ?Dash = LineDash,
+ ?Colorscale = LineColorScale,
+ ?Width = LineWidth
+ )
+
+
TraceMapbox.initScatterMapbox (
TraceMapboxStyle.ScatterMapbox(
+ Lon = longitudes,
+ Lat = latitudes,
Mode = mode,
- Longitudes = longitudes,
- Latitudes = latitudes,
- ?Below = Below,
- ?Connectgaps = Connectgaps,
- ?Fill = Fill,
- ?Fillcolor = Fillcolor
+ Marker = marker,
+ Line = line,
+ ?Name = Name,
+ ?ShowLegend = ShowLegend,
+ ?Opacity = Opacity,
+ ?Text = Text,
+ ?MultiText = MultiText,
+ ?TextPosition = TextPosition,
+ ?MultiTextPosition = MultiTextPosition,
+ ?Below = Below
)
)
- |> TraceStyle.TraceInfo(?Name = Name, ?ShowLegend = ShowLegend, ?Opacity = Opacity)
- |> TraceStyle.Line(?Color = Color, ?Width = Width)
- |> TraceStyle.Marker(?Color = Color)
- |> TraceStyle.TextLabel(?Text = Labels, ?Textposition = TextPosition, ?Textfont = TextFont)
+
|> GenericChart.ofTraceObject useDefaults
///
@@ -715,37 +733,31 @@ module ChartMap =
///
/// ScatterGeo charts are the basis of PointMapbox and LineMapbox Charts, and can be customized as such. We also provide abstractions for those: Chart.PointMapbox and Chart.LineMapbox
///
- /// Sets the (longitude,latitude) coordinates (in degrees North, degrees South).
- /// Determines the drawing mode for this scatter trace. If the provided `mode` includes "text" then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover.
- /// 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 marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set.
- /// Sets the opacity of the trace.
- /// Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a "text" flag and "hovertext" is not set, these elements will be seen in the hover labels.
- /// Sets the positions of the `text` elements with respects to the (x,y) coordinates.
- /// Sets the icon text font (color=mapbox.layer.paint.text-color, size=mapbox.layer.layout.text-size). Has an effect only when `type` is set to "symbol".
- /// Sets the line width (in px).
- /// Determines if this scattermapbox trace's layers are to be inserted before the layer with the specified ID. By default, scattermapbox layers are inserted above all the base layers. To place the scattermapbox layers above every other layer, set `below` to "''".
- /// Determines whether or not gaps (i.e. {nan} or missing values) in the provided data arrays are connected.
- /// Sets the area to fill with a solid color. Use with `fillcolor` if not "none". "toself" connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape.
- /// Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available.
[]
static member ScatterMapbox
(
- lonlat,
- mode,
- [] ?Name,
- [] ?ShowLegend,
- [] ?Color,
- [] ?Opacity,
- [] ?Labels,
- [] ?TextPosition,
- [] ?TextFont,
- [] ?Width: float,
+ 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,
[] ?Below: string,
- [] ?Connectgaps: bool,
- [] ?Fill: StyleParam.Fill,
- [] ?Fillcolor,
[] ?UseDefaults: bool
) =
@@ -757,16 +769,24 @@ module ChartMap =
mode,
?Name = Name,
?ShowLegend = ShowLegend,
- ?Color = Color,
?Opacity = Opacity,
- ?Labels = Labels,
+ ?MultiOpacity = MultiOpacity,
+ ?Text = Text,
+ ?MultiText = MultiText,
?TextPosition = TextPosition,
- ?TextFont = TextFont,
- ?Width = Width,
+ ?MultiTextPosition = MultiTextPosition,
+ ?MarkerColor = MarkerColor,
+ ?MarkerColorScale = MarkerColorScale,
+ ?MarkerOutline = MarkerOutline,
+ ?MarkerSymbol = MarkerSymbol,
+ ?MultiMarkerSymbol = MultiMarkerSymbol,
+ ?Marker = Marker,
+ ?LineColor = LineColor,
+ ?LineColorScale = LineColorScale,
+ ?LineWidth = LineWidth,
+ ?LineDash = LineDash,
+ ?Line = Line,
?Below = Below,
- ?Connectgaps = Connectgaps,
- ?Fill = Fill,
- ?Fillcolor = Fillcolor,
?UseDefaults = UseDefaults
)
@@ -777,60 +797,53 @@ module ChartMap =
///
/// You might need a Mapbox token, which you can also configure with Chart.withMapbox.
///
- /// 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.
- /// Determines whether or not an item corresponding to this trace is shown in the legend.
- /// Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set.
- /// Sets the opacity of the trace.
- /// Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a "text" flag and "hovertext" is not set, these elements will be seen in the hover labels.
- /// Sets the positions of the `text` elements with respects to the (x,y) coordinates.
- /// Sets the icon text font (color=mapbox.layer.paint.text-color, size=mapbox.layer.layout.text-size). Has an effect only when `type` is set to "symbol".
- /// Sets the line width (in px).
- /// Determines if this scattermapbox trace's layers are to be inserted before the layer with the specified ID. By default, scattermapbox layers are inserted above all the base layers. To place the scattermapbox layers above every other layer, set `below` to "''".
- /// Determines whether or not gaps (i.e. {nan} or missing values) in the provided data arrays are connected.
- /// Sets the area to fill with a solid color. Use with `fillcolor` if not "none". "toself" connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape.
- /// Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available.
[]
static member PointMapbox
(
- longitudes,
- latitudes,
- [] ?Name,
- [] ?ShowLegend,
- [] ?Color,
- [] ?Opacity,
- [] ?Labels,
- [] ?TextPosition,
- [] ?TextFont,
- [] ?Width: float,
+ 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,
[] ?Below: string,
- [] ?Connectgaps: bool,
- [] ?Fill: StyleParam.Fill,
- [] ?Fillcolor,
[] ?UseDefaults: bool
) =
let changeMode =
- StyleParam.ModeUtils.showText (TextPosition.IsSome || TextFont.IsSome)
+ StyleParam.ModeUtils.showText (TextPosition.IsSome || MultiTextPosition.IsSome)
Chart.ScatterMapbox(
longitudes,
latitudes,
- changeMode StyleParam.Mode.Markers,
+ mode = changeMode StyleParam.Mode.Markers,
?Name = Name,
?ShowLegend = ShowLegend,
- ?Color = Color,
?Opacity = Opacity,
- ?Labels = Labels,
+ ?MultiOpacity = MultiOpacity,
+ ?Text = Text,
+ ?MultiText = MultiText,
?TextPosition = TextPosition,
- ?TextFont = TextFont,
- ?Width = Width,
+ ?MultiTextPosition = MultiTextPosition,
+ ?MarkerColor = MarkerColor,
+ ?MarkerColorScale = MarkerColorScale,
+ ?MarkerOutline = MarkerOutline,
+ ?MarkerSymbol = MarkerSymbol,
+ ?MultiMarkerSymbol = MultiMarkerSymbol,
+ ?Marker = Marker,
?Below = Below,
- ?Connectgaps = Connectgaps,
- ?Fill = Fill,
- ?Fillcolor = Fillcolor,
?UseDefaults = UseDefaults
+
)
///
@@ -840,61 +853,51 @@ module ChartMap =
///
/// You might need a Mapbox token, which you can also configure with Chart.withMapbox.
///
- /// Sets the (longitude,latitude) coordinates (in degrees North, degrees South).
- /// 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 marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set.
- /// Sets the opacity of the trace.
- /// Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a "text" flag and "hovertext" is not set, these elements will be seen in the hover labels.
- /// Sets the positions of the `text` elements with respects to the (x,y) coordinates.
- /// Sets the icon text font (color=mapbox.layer.paint.text-color, size=mapbox.layer.layout.text-size). Has an effect only when `type` is set to "symbol".
- /// Sets the line width (in px).
- /// Determines if this scattermapbox trace's layers are to be inserted before the layer with the specified ID. By default, scattermapbox layers are inserted above all the base layers. To place the scattermapbox layers above every other layer, set `below` to "''".
- /// Determines whether or not gaps (i.e. {nan} or missing values) in the provided data arrays are connected.
- /// Sets the area to fill with a solid color. Use with `fillcolor` if not "none". "toself" connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape.
- /// Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available.
[]
static member PointMapbox
(
- lonlat,
- [] ?Name,
- [] ?ShowLegend,
- [] ?Color,
- [] ?Opacity,
- [] ?Labels,
- [] ?TextPosition,
- [] ?TextFont,
- [] ?Width: float,
+ 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,
[] ?Below: string,
- [] ?Connectgaps: bool,
- [] ?Fill: StyleParam.Fill,
- [] ?Fillcolor,
[] ?UseDefaults: bool
) =
- let changeMode =
- StyleParam.ModeUtils.showText (TextPosition.IsSome || TextFont.IsSome)
-
let longitudes, latitudes = Seq.unzip lonlat
- Chart.ScatterMapbox(
+ Chart.PointMapbox(
longitudes,
latitudes,
- mode = changeMode StyleParam.Mode.Markers,
?Name = Name,
?ShowLegend = ShowLegend,
- ?Color = Color,
?Opacity = Opacity,
- ?Labels = Labels,
+ ?MultiOpacity = MultiOpacity,
+ ?Text = Text,
+ ?MultiText = MultiText,
?TextPosition = TextPosition,
- ?TextFont = TextFont,
- ?Width = Width,
+ ?MultiTextPosition = MultiTextPosition,
+ ?MarkerColor = MarkerColor,
+ ?MarkerColorScale = MarkerColorScale,
+ ?MarkerOutline = MarkerOutline,
+ ?MarkerSymbol = MarkerSymbol,
+ ?MultiMarkerSymbol = MultiMarkerSymbol,
+ ?Marker = Marker,
?Below = Below,
- ?Connectgaps = Connectgaps,
- ?Fill = Fill,
- ?Fillcolor = Fillcolor,
?UseDefaults = UseDefaults
)
+
///
/// Creates a LineMapbox chart, where data is visualized by (longitude,latitude) pairs connected by a line on a geographic map using mapbox.
///
@@ -902,39 +905,32 @@ module ChartMap =
///
/// You might need a Mapbox token, which you can also configure with Chart.withMapbox.
///
- /// 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.
- /// Determines whether or not an item corresponding to this trace is shown in the legend.
- /// Determines whether or not To show markers for the individual datums.
- /// Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set.
- /// Sets the opacity of the trace.
- /// Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a "text" flag and "hovertext" is not set, these elements will be seen in the hover labels.
- /// Sets the positions of the `text` elements with respects to the (x,y) coordinates.
- /// Sets the icon text font (color=mapbox.layer.paint.text-color, size=mapbox.layer.layout.text-size). Has an effect only when `type` is set to "symbol".
- /// Sets the line width (in px).
- /// Determines if this scattermapbox trace's layers are to be inserted before the layer with the specified ID. By default, scattermapbox layers are inserted above all the base layers. To place the scattermapbox layers above every other layer, set `below` to "''".
- /// Determines whether or not gaps (i.e. {nan} or missing values) in the provided data arrays are connected.
- /// Sets the area to fill with a solid color. Use with `fillcolor` if not "none". "toself" connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape.
- /// Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available.
[]
static member LineMapbox
(
- longitudes,
- latitudes,
- [] ?Name,
- [] ?ShowLegend,
- [] ?ShowMarkers,
- [] ?Color,
- [] ?Opacity,
- [] ?Labels,
- [] ?TextPosition,
- [] ?TextFont,
- [] ?Width: float,
+ 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,
[] ?Below: string,
- [] ?Connectgaps: bool,
- [] ?Fill: StyleParam.Fill,
- [] ?Fillcolor,
[] ?UseDefaults: bool
) =
@@ -944,25 +940,33 @@ module ChartMap =
| Some isShow -> isShow
| Option.None -> false
- StyleParam.ModeUtils.showText (TextPosition.IsSome || TextFont.IsSome)
+ StyleParam.ModeUtils.showText (TextPosition.IsSome || MultiTextPosition.IsSome)
>> StyleParam.ModeUtils.showMarker (isShowMarker)
Chart.ScatterMapbox(
longitudes,
latitudes,
- changeMode StyleParam.Mode.Lines,
+ mode = changeMode StyleParam.Mode.Lines,
?Name = Name,
?ShowLegend = ShowLegend,
- ?Color = Color,
?Opacity = Opacity,
- ?Labels = Labels,
+ ?MultiOpacity = MultiOpacity,
+ ?Text = Text,
+ ?MultiText = MultiText,
?TextPosition = TextPosition,
- ?TextFont = TextFont,
- ?Width = Width,
+ ?MultiTextPosition = MultiTextPosition,
+ ?MarkerColor = MarkerColor,
+ ?MarkerColorScale = MarkerColorScale,
+ ?MarkerOutline = MarkerOutline,
+ ?MarkerSymbol = MarkerSymbol,
+ ?MultiMarkerSymbol = MultiMarkerSymbol,
+ ?Marker = Marker,
+ ?LineColor = LineColor,
+ ?LineColorScale = LineColorScale,
+ ?LineWidth = LineWidth,
+ ?LineDash = LineDash,
+ ?Line = Line,
?Below = Below,
- ?Connectgaps = Connectgaps,
- ?Fill = Fill,
- ?Fillcolor = Fillcolor,
?UseDefaults = UseDefaults
)
@@ -973,68 +977,62 @@ module ChartMap =
///
/// You might need a Mapbox token, which you can also configure with Chart.withMapbox.
///
- /// Sets the (longitude,latitude) coordinates (in degrees North, degrees South).
- /// 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.
- /// Determines whether or not To show markers for the individual datums.
- /// Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set.
- /// Sets the opacity of the trace.
- /// Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a "text" flag and "hovertext" is not set, these elements will be seen in the hover labels.
- /// Sets the positions of the `text` elements with respects to the (x,y) coordinates.
- /// Sets the icon text font (color=mapbox.layer.paint.text-color, size=mapbox.layer.layout.text-size). Has an effect only when `type` is set to "symbol".
- /// Sets the line width (in px).
- /// Determines if this scattermapbox trace's layers are to be inserted before the layer with the specified ID. By default, scattermapbox layers are inserted above all the base layers. To place the scattermapbox layers above every other layer, set `below` to "''".
- /// Determines whether or not gaps (i.e. {nan} or missing values) in the provided data arrays are connected.
- /// Sets the area to fill with a solid color. Use with `fillcolor` if not "none". "toself" connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape.
- /// Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available.
[]
static member LineMapbox
(
- lonlat,
- [] ?Name,
- [] ?ShowLegend,
- [] ?ShowMarkers,
- [] ?Color,
- [] ?Opacity,
- [] ?Labels,
- [] ?TextPosition,
- [] ?TextFont,
- [] ?Width: float,
+ 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,
[] ?Below: string,
- [] ?Connectgaps: bool,
- [] ?Fill: StyleParam.Fill,
- [] ?Fillcolor,
[] ?UseDefaults: bool
) =
- let changeMode =
- let isShowMarker =
- match ShowMarkers with
- | Some isShow -> isShow
- | Option.None -> false
-
- StyleParam.ModeUtils.showText (TextPosition.IsSome || TextFont.IsSome)
- >> StyleParam.ModeUtils.showMarker (isShowMarker)
-
let longitudes, latitudes = Seq.unzip lonlat
- Chart.ScatterMapbox(
+ Chart.LineMapbox(
longitudes,
latitudes,
- mode = changeMode StyleParam.Mode.Lines,
+ ?ShowMarkers = ShowMarkers,
?Name = Name,
?ShowLegend = ShowLegend,
- ?Color = Color,
?Opacity = Opacity,
- ?Labels = Labels,
+ ?MultiOpacity = MultiOpacity,
+ ?Text = Text,
+ ?MultiText = MultiText,
?TextPosition = TextPosition,
- ?TextFont = TextFont,
- ?Width = Width,
+ ?MultiTextPosition = MultiTextPosition,
+ ?MarkerColor = MarkerColor,
+ ?MarkerColorScale = MarkerColorScale,
+ ?MarkerOutline = MarkerOutline,
+ ?MarkerSymbol = MarkerSymbol,
+ ?MultiMarkerSymbol = MultiMarkerSymbol,
+ ?Marker = Marker,
+ ?LineColor = LineColor,
+ ?LineColorScale = LineColorScale,
+ ?LineWidth = LineWidth,
+ ?LineDash = LineDash,
+ ?Line = Line,
?Below = Below,
- ?Connectgaps = Connectgaps,
- ?Fill = Fill,
- ?Fillcolor = Fillcolor,
?UseDefaults = UseDefaults
+
)
///
@@ -1046,33 +1044,22 @@ module ChartMap =
///
/// GeoJSON features to be filled are set in `geojson` The data that describes the choropleth value-to-color mapping is set in `locations` and `z`.
///
- /// Sets which features found in "geojson" to plot using their feature `id` field.
- /// Sets the color values.
- /// 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 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 the text elements associated with each location.
- /// Determines if the choropleth polygons will be inserted before the layer with the specified ID. By default, choroplethmapbox traces are placed above the water layers. If set to '', the layer will be inserted above every existing layer.
- /// Sets the colorscale.
- /// Sets the ColorBar object asociated with this trace
- /// Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user.
- /// Sets the lower bound of the color domain. Value should have the same units as in `z` and if set, `zmax` must be set as well.
- /// Sets the mid-point of the color domain by scaling `zmin` and/or `zmax` to be equidistant to this point. Value should have the same units as in `z`. Has no effect when `zauto` is `false`.
- /// Sets the upper bound of the color domain. Value should have the same units as in `z` and if set, `zmin` must be set as well.
[]
static member ChoroplethMapbox
(
locations,
z,
- geoJson,
- [] ?FeatureIdKey,
- [] ?Text,
- [] ?Below,
- [] ?Colorscale,
- [] ?ColorBar,
- [] ?ZAuto,
- [] ?ZMin,
- [] ?ZMid,
- [] ?ZMax,
+ geoJson: obj,
+ [] ?Name: string,
+ [] ?ShowLegend: bool,
+ [] ?FeatureIdKey: string,
+ [] ?Text: #IConvertible,
+ [] ?MultiText: seq<#IConvertible>,
+ [] ?ColorBar: ColorBar,
+ [] ?ColorScale: StyleParam.Colorscale,
+ [] ?ShowScale: bool,
+ [] ?ReverseScale: bool,
+ [] ?Below: string,
[] ?UseDefaults: bool
) =
@@ -1080,18 +1067,19 @@ module ChartMap =
TraceMapbox.initChoroplethMapbox (
TraceMapboxStyle.ChoroplethMapbox(
- Z = z,
Locations = locations,
+ Z = z,
+ ?Name = Name,
+ ?ShowLegend = ShowLegend,
GeoJson = geoJson,
?FeatureIdKey = FeatureIdKey,
?Text = Text,
- ?Below = Below,
- ?Colorscale = Colorscale,
+ ?MultiText = MultiText,
?ColorBar = ColorBar,
- ?ZAuto = ZAuto,
- ?ZMin = ZMin,
- ?ZMid = ZMid,
- ?ZMax = ZMax
+ ?ColorScale = ColorScale,
+ ?ShowScale = ShowScale,
+ ?ReverseScale = ReverseScale,
+ ?Below = Below
)
)
|> GenericChart.ofTraceObject useDefaults
@@ -1099,58 +1087,43 @@ module ChartMap =
///
/// Creates a DensityMapbox Chart that draws a bivariate kernel density estimation with a Gaussian kernel from `lon` and `lat` coordinates and optional `z` values using a colorscale.
///
- /// Sets the longitude coordinates (in degrees East).
- /// Sets the latitude coordinates (in degrees North).
- /// Sets the points' weight. For example, a value of 10 would be equivalent to having 10 points of weight 1 in the same spot
- /// Sets the radius of influence of one `lon` / `lat` point in pixels. Increasing the value makes the densitymapbox trace smoother, but less detailed.
- /// Sets the opacity of the trace.
- /// Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a "text" flag and "hovertext" is not set, these elements will be seen in the hover labels.
- /// Determines if the densitymapbox trace will be inserted before the layer with the specified ID. By default, densitymapbox traces are placed below the first layer of type symbol If set to '', the layer will be inserted above every existing layer.
- /// Sets the colorscale.
- /// Sets the ColorBar object asociated with this trace
- /// Determines whether or not a colorbar is displayed for this trace.
- /// Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user.
- /// Sets the lower bound of the color domain. Value should have the same units as in `z` and if set, `zmax` must be set as well.
- /// Sets the mid-point of the color domain by scaling `zmin` and/or `zmax` to be equidistant to this point. Value should have the same units as in `z`. Has no effect when `zauto` is `false`.
- /// Sets the upper bound of the color domain. Value should have the same units as in `z` and if set, `zmin` must be set as well.
[]
static member DensityMapbox
(
lon,
lat,
- [] ?Z,
- [] ?Radius,
- [] ?Opacity,
- [] ?Text,
- [] ?Below,
- [] ?Colorscale,
- [] ?ColorBar,
- [] ?Showscale,
- [] ?ZAuto,
- [] ?ZMin,
- [] ?ZMid,
- [] ?ZMax,
- [] ?UseDefaults: bool
+ [] ?Name: string,
+ [] ?ShowLegend: bool,
+ [