namespace Plotly.NET open Plotly.NET.LayoutObjects open Plotly.NET.TraceObjects open DynamicObj open System open System.IO open StyleParam open System.Runtime.InteropServices open System.Runtime.CompilerServices [] module ChartMap = [] type Chart = /// /// Creates a choropleth map using plotly's base geo map. /// /// A choropleth map is a type of thematic map in which a set of pre-defined areas is colored or patterned in proportion to a statistical variable that represents an aggregate summary of a geographic characteristic within each area, such as population density or per-capita income. /// /// Sets the locations which will be colored. See LocationMode for more info. /// The color values for each location /// 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 optional GeoJSON data associated with this trace. If not given, the features on the base map are used. 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. Only has an effect when `geojson` is set. Support nested property, for example "properties.name". /// Sets the text elements associated with each location. /// Sets the text elements associated with each location. /// Sets the colorbar. /// Sets the colorscale. /// Determines whether or not a colorbar is displayed for this trace. /// Reverses the color mapping if true. /// Determines the set of locations used to match entries in `locations` to regions on the map. Values "ISO-3", "USA-states", "country names" correspond to features on the base map and value "geojson-id" corresponds to features from a custom GeoJSON linked to the `geojson` attribute. /// If set to false, ignore the global default settings set in `Defaults` [] static member ChoroplethMap ( 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 ) = let useDefaults = defaultArg UseDefaults true TraceGeo.initChoroplethMap ( TraceGeoStyle.ChoroplethMap( Locations = locations, Z = z, ?Name = Name, ?ShowLegend = ShowLegend, ?GeoJson = GeoJson, ?FeatureIdKey = FeatureIdKey, ?Text = Text, ?MultiText = MultiText, ?ColorBar = ColorBar, ?ColorScale = ColorScale, ?ShowScale = ShowScale, ?ReverseScale = ReverseScale, ?LocationMode = LocationMode ) ) |> GenericChart.ofTraceObject useDefaults /// /// Creates a ScatterGeo chart, where data is visualized using plotly's base geo map. /// /// In general, ScatterGeo Plots plot two-dimensional data on a geo map via (lat,lon) coordinates. /// /// ScatterGeo charts are the basis of PointGeo, LineGeo, and BubbleGeo Charts, and can be customized as such. We also provide abstractions for those: Chart.PointGeo, Chart.LineGeo, Chart.BubbleGeo /// /// Sets the longitude coordinates (in degrees East). /// Sets the latitude coordinates (in degrees North). /// 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 /// Sets the opactity of individual datum markers /// Sets a text associated with each datum /// Sets individual text for each datum /// Sets the position of text associated with each datum /// Sets the position of text associated with individual datum /// Sets the color of the marker /// Sets the colorscale of the marker /// Sets the outline of the marker /// 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 color of the line /// Sets the colorscale of the 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) /// Determines the set of locations used to match entries in `locations` to regions on the map. Values "ISO-3", "USA-states", "country names" correspond to features on the base map and value "geojson-id" corresponds to features from a custom GeoJSON linked to the `geojson` attribute. /// Sets optional GeoJSON data associated with this trace. If not given, the features on the base map are used. 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. Only has an effect when `geojson` is set. Support nested property, for example "properties.name". /// If set to false, ignore the global default settings set in `Defaults` [] static member ScatterGeo ( 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 ) = 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 ) TraceGeo.initScatterGeo ( TraceGeoStyle.ScatterGeo( Lon = longitudes, Lat = latitudes, Mode = mode, Marker = marker, Line = line, ?Name = Name, ?ShowLegend = ShowLegend, ?Opacity = Opacity, ?Text = Text, ?MultiText = MultiText, ?TextPosition = TextPosition, ?MultiTextPosition = MultiTextPosition, ?LocationMode = LocationMode, ?GeoJson = GeoJson, ?FeatureIdKey = FeatureIdKey ) ) |> GenericChart.ofTraceObject useDefaults /// /// Creates a ScatterGeo chart, where data is visualized using plotly's base geo map. /// /// In general, ScatterGeo Plots plot two-dimensional data on a geo map via (lat,lon) coordinates. /// /// ScatterGeo charts are the basis of PointGeo, LineGeo, and BubbleGeo Charts, and can be customized as such. We also provide abstractions for those: Chart.PointGeo, Chart.LineGeo, Chart.BubbleGeo /// /// Sets the (longitude,latitude) coordinates (in degrees East, degrees North). /// 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 /// Sets the opactity of individual datum markers /// Sets a text associated with each datum /// Sets individual text for each datum /// Sets the position of text associated with each datum /// Sets the position of text associated with individual datum /// Sets the color of the marker /// Sets the colorscale of the marker /// Sets the outline of the marker /// 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 color of the line /// Sets the colorscale of the 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) /// Determines the set of locations used to match entries in `locations` to regions on the map. Values "ISO-3", "USA-states", "country names" correspond to features on the base map and value "geojson-id" corresponds to features from a custom GeoJSON linked to the `geojson` attribute. /// Sets optional GeoJSON data associated with this trace. If not given, the features on the base map are used. 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. Only has an effect when `geojson` is set. Support nested property, for example "properties.name". /// If set to false, ignore the global default settings set in `Defaults` [] static member ScatterGeo ( 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 ) = let longitudes, latitudes = Seq.unzip lonlat Chart.ScatterGeo( longitudes, latitudes, mode, ?Name = Name, ?ShowLegend = ShowLegend, ?Opacity = Opacity, ?MultiOpacity = MultiOpacity, ?Text = Text, ?MultiText = MultiText, ?TextPosition = TextPosition, ?MultiTextPosition = MultiTextPosition, ?MarkerColor = MarkerColor, ?MarkerColorScale = MarkerColorScale, ?MarkerOutline = MarkerOutline, ?MarkerSymbol = MarkerSymbol, ?MultiMarkerSymbol = MultiMarkerSymbol, ?Marker = Marker, ?LineColor = LineColor, ?LineColorScale = LineColorScale, ?LineWidth = LineWidth, ?LineDash = LineDash, ?Line = Line, ?LocationMode = LocationMode, ?GeoJson = GeoJson, ?FeatureIdKey = FeatureIdKey, ?UseDefaults = UseDefaults ) /// /// Creates a ScatterGeo chart, where data is visualized using plotly's base geo map. /// /// In general, ScatterGeo Plots plot two-dimensional data on a geo map via (lat,lon) coordinates. /// /// ScatterGeo charts are the basis of PointGeo, LineGeo, and BubbleGeo Charts, and can be customized as such. We also provide abstractions for those: Chart.PointGeo, Chart.LineGeo, Chart.BubbleGeo /// /// Sets the coordinates via location IDs or names. Coordinates correspond to the centroid of each location given. See `locationmode` for more info. /// 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 /// Sets the opactity of individual datum markers /// Sets a text associated with each datum /// Sets individual text for each datum /// Sets the position of text associated with each datum /// Sets the position of text associated with individual datum /// Sets the color of the marker /// Sets the colorscale of the marker /// Sets the outline of the marker /// 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 color of the line /// Sets the colorscale of the 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) /// Determines the set of locations used to match entries in `locations` to regions on the map. Values "ISO-3", "USA-states", "country names" correspond to features on the base map and value "geojson-id" corresponds to features from a custom GeoJSON linked to the `geojson` attribute. /// Sets optional GeoJSON data associated with this trace. If not given, the features on the base map are used. 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. Only has an effect when `geojson` is set. Support nested property, for example "properties.name". /// If set to false, ignore the global default settings set in `Defaults` [] static member ScatterGeo ( 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 ) = 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 ) TraceGeo.initScatterGeo ( TraceGeoStyle.ScatterGeo( Locations = locations, Mode = mode, Marker = marker, Line = line, ?Name = Name, ?ShowLegend = ShowLegend, ?Opacity = Opacity, ?Text = Text, ?MultiText = MultiText, ?TextPosition = TextPosition, ?MultiTextPosition = MultiTextPosition, ?LocationMode = LocationMode, ?GeoJson = GeoJson, ?FeatureIdKey = FeatureIdKey ) ) |> GenericChart.ofTraceObject useDefaults /// /// Creates a PointGeo chart. /// /// In general, PointGeo Plots plot two-dimensional data as points using plotly's base geo map. /// /// 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 opactity of the trace /// Sets the opactity of individual datum markers /// Sets a text associated with each datum /// Sets individual text for each datum /// Sets the position of text associated with each datum /// Sets the position of text associated with individual datum /// Sets the color of the marker /// Sets the colorscale of the marker /// Sets the outline of the marker /// 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) /// Determines the set of locations used to match entries in `locations` to regions on the map. Values "ISO-3", "USA-states", "country names" correspond to features on the base map and value "geojson-id" corresponds to features from a custom GeoJSON linked to the `geojson` attribute. /// Sets optional GeoJSON data associated with this trace. If not given, the features on the base map are used. 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. Only has an effect when `geojson` is set. Support nested property, for example "properties.name". /// If set to false, ignore the global default settings set in `Defaults` [] static member PointGeo ( 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 ) = let changeMode = StyleParam.ModeUtils.showText (TextPosition.IsSome || MultiTextPosition.IsSome) Chart.ScatterGeo( longitudes, latitudes, mode = changeMode StyleParam.Mode.Markers, ?Name = Name, ?ShowLegend = ShowLegend, ?Opacity = Opacity, ?MultiOpacity = MultiOpacity, ?Text = Text, ?MultiText = MultiText, ?TextPosition = TextPosition, ?MultiTextPosition = MultiTextPosition, ?MarkerColor = MarkerColor, ?MarkerColorScale = MarkerColorScale, ?MarkerOutline = MarkerOutline, ?MarkerSymbol = MarkerSymbol, ?MultiMarkerSymbol = MultiMarkerSymbol, ?Marker = Marker, ?LocationMode = LocationMode, ?GeoJson = GeoJson, ?FeatureIdKey = FeatureIdKey, ?UseDefaults = UseDefaults ) /// /// Creates a PointGeo chart. /// /// In general, PointGeo Plots plot two-dimensional data as points using plotly's base geo map. /// /// Sets the (longitude,latitude) coordinates (in degrees East, 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 opactity of the trace /// Sets the opactity of individual datum markers /// Sets a text associated with each datum /// Sets individual text for each datum /// Sets the position of text associated with each datum /// Sets the position of text associated with individual datum /// Sets the color of the marker /// Sets the colorscale of the marker /// Sets the outline of the marker /// 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) /// Determines the set of locations used to match entries in `locations` to regions on the map. Values "ISO-3", "USA-states", "country names" correspond to features on the base map and value "geojson-id" corresponds to features from a custom GeoJSON linked to the `geojson` attribute. /// Sets optional GeoJSON data associated with this trace. If not given, the features on the base map are used. 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. Only has an effect when `geojson` is set. Support nested property, for example "properties.name". /// If set to false, ignore the global default settings set in `Defaults` [] 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 ) = let longitudes, latitudes = Seq.unzip lonlat Chart.PointGeo( longitudes, latitudes, ?Name = Name, ?ShowLegend = ShowLegend, ?Opacity = Opacity, ?MultiOpacity = MultiOpacity, ?Text = Text, ?MultiText = MultiText, ?TextPosition = TextPosition, ?MultiTextPosition = MultiTextPosition, ?MarkerColor = MarkerColor, ?MarkerColorScale = MarkerColorScale, ?MarkerOutline = MarkerOutline, ?MarkerSymbol = MarkerSymbol, ?MultiMarkerSymbol = MultiMarkerSymbol, ?Marker = Marker, ?LocationMode = LocationMode, ?GeoJson = GeoJson, ?FeatureIdKey = FeatureIdKey, ?UseDefaults = UseDefaults ) /// /// Creates a PointGeo chart. /// /// In general, PointGeo Plots plot two-dimensional data as points using plotly's base geo map. /// /// Sets the coordinates via location IDs or names. Coordinates correspond to the centroid of each location given. See `locationmode` for more info. /// 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 /// Sets the opactity of individual datum markers /// Sets a text associated with each datum /// Sets individual text for each datum /// Sets the position of text associated with each datum /// Sets the position of text associated with individual datum /// Sets the color of the marker /// Sets the colorscale of the marker /// Sets the outline of the marker /// 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) /// Determines the set of locations used to match entries in `locations` to regions on the map. Values "ISO-3", "USA-states", "country names" correspond to features on the base map and value "geojson-id" corresponds to features from a custom GeoJSON linked to the `geojson` attribute. /// Sets optional GeoJSON data associated with this trace. If not given, the features on the base map are used. 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. Only has an effect when `geojson` is set. Support nested property, for example "properties.name". /// If set to false, ignore the global default settings set in `Defaults` [] 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 ) = let changeMode = StyleParam.ModeUtils.showText (TextPosition.IsSome || MultiTextPosition.IsSome) Chart.ScatterGeo( locations, mode = changeMode StyleParam.Mode.Markers, ?Name = Name, ?ShowLegend = ShowLegend, ?Opacity = Opacity, ?MultiOpacity = MultiOpacity, ?Text = Text, ?MultiText = MultiText, ?TextPosition = TextPosition, ?MultiTextPosition = MultiTextPosition, ?MarkerColor = MarkerColor, ?MarkerColorScale = MarkerColorScale, ?MarkerOutline = MarkerOutline, ?MarkerSymbol = MarkerSymbol, ?MultiMarkerSymbol = MultiMarkerSymbol, ?Marker = Marker, ?LocationMode = LocationMode, ?GeoJson = GeoJson, ?FeatureIdKey = FeatureIdKey, ?UseDefaults = UseDefaults ) /// /// Creates a LineGeo chart. /// /// In general, LineGeo Plots plot two-dimensional data connected by lines using plotly's base geo map. /// /// 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 opactity of the trace /// Sets the opactity of individual datum markers /// Sets a text associated with each datum /// Sets individual text for each datum /// Sets the position of text associated with each datum /// Sets the position of text associated with individual datum /// Sets the color of the marker /// Sets the colorscale of the marker /// Sets the outline of the marker /// 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 color of the line /// Sets the colorscale of the 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) /// Determines the set of locations used to match entries in `locations` to regions on the map. Values "ISO-3", "USA-states", "country names" correspond to features on the base map and value "geojson-id" corresponds to features from a custom GeoJSON linked to the `geojson` attribute. /// Sets optional GeoJSON data associated with this trace. If not given, the features on the base map are used. 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. Only has an effect when `geojson` is set. Support nested property, for example "properties.name". /// If set to false, ignore the global default settings set in `Defaults` [] static member LineGeo ( 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 ) = let changeMode = let isShowMarker = match ShowMarkers with | Some isShow -> isShow | Option.None -> false StyleParam.ModeUtils.showText (TextPosition.IsSome || MultiTextPosition.IsSome) >> StyleParam.ModeUtils.showMarker (isShowMarker) Chart.ScatterGeo( longitudes, latitudes, mode = changeMode StyleParam.Mode.Lines, ?Name = Name, ?ShowLegend = ShowLegend, ?Opacity = Opacity, ?MultiOpacity = MultiOpacity, ?Text = Text, ?MultiText = MultiText, ?TextPosition = TextPosition, ?MultiTextPosition = MultiTextPosition, ?MarkerColor = MarkerColor, ?MarkerColorScale = MarkerColorScale, ?MarkerOutline = MarkerOutline, ?MarkerSymbol = MarkerSymbol, ?MultiMarkerSymbol = MultiMarkerSymbol, ?Marker = Marker, ?LineColor = LineColor, ?LineColorScale = LineColorScale, ?LineWidth = LineWidth, ?LineDash = LineDash, ?Line = Line, ?LocationMode = LocationMode, ?GeoJson = GeoJson, ?FeatureIdKey = FeatureIdKey, ?UseDefaults = UseDefaults ) /// /// Creates a LineGeo chart. /// /// In general, LineGeo Plots plot two-dimensional data connected by lines using plotly's base geo map. /// /// Sets the (longitude,latitude) coordinates (in degrees East, 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 opactity of the trace /// Sets the opactity of individual datum markers /// Sets a text associated with each datum /// Sets individual text for each datum /// Sets the position of text associated with each datum /// Sets the position of text associated with individual datum /// Sets the color of the marker /// Sets the colorscale of the marker /// Sets the outline of the marker /// 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 color of the line /// Sets the colorscale of the 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) /// Determines the set of locations used to match entries in `locations` to regions on the map. Values "ISO-3", "USA-states", "country names" correspond to features on the base map and value "geojson-id" corresponds to features from a custom GeoJSON linked to the `geojson` attribute. /// Sets optional GeoJSON data associated with this trace. If not given, the features on the base map are used. 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. Only has an effect when `geojson` is set. Support nested property, for example "properties.name". /// If set to false, ignore the global default settings set in `Defaults` [] 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 ) = let longitudes, latitudes = Seq.unzip lonlat Chart.LineGeo( longitudes, latitudes, ?ShowMarkers = ShowMarkers, ?Name = Name, ?ShowLegend = ShowLegend, ?Opacity = Opacity, ?MultiOpacity = MultiOpacity, ?Text = Text, ?MultiText = MultiText, ?TextPosition = TextPosition, ?MultiTextPosition = MultiTextPosition, ?MarkerColor = MarkerColor, ?MarkerColorScale = MarkerColorScale, ?MarkerOutline = MarkerOutline, ?MarkerSymbol = MarkerSymbol, ?MultiMarkerSymbol = MultiMarkerSymbol, ?Marker = Marker, ?LineColor = LineColor, ?LineColorScale = LineColorScale, ?LineWidth = LineWidth, ?LineDash = LineDash, ?Line = Line, ?LocationMode = LocationMode, ?GeoJson = GeoJson, ?FeatureIdKey = FeatureIdKey, ?UseDefaults = UseDefaults ) /// /// Creates a LineGeo chart. /// /// In general, LineGeo Plots plot two-dimensional data connected by lines using plotly's base geo map. /// /// Sets the coordinates via location IDs or names. Coordinates correspond to the centroid of each location given. See `locationmode` for more info. /// /// 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 /// Sets the opactity of individual datum markers /// Sets a text associated with each datum /// Sets individual text for each datum /// Sets the position of text associated with each datum /// Sets the position of text associated with individual datum /// Sets the color of the marker /// Sets the colorscale of the marker /// Sets the outline of the marker /// 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 color of the line /// Sets the colorscale of the 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) /// Determines the set of locations used to match entries in `locations` to regions on the map. Values "ISO-3", "USA-states", "country names" correspond to features on the base map and value "geojson-id" corresponds to features from a custom GeoJSON linked to the `geojson` attribute. /// Sets optional GeoJSON data associated with this trace. If not given, the features on the base map are used. 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. Only has an effect when `geojson` is set. Support nested property, for example "properties.name". /// If set to false, ignore the global default settings set in `Defaults` [] 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 ) = let changeMode = let isShowMarker = match ShowMarkers with | Some isShow -> isShow | Option.None -> false StyleParam.ModeUtils.showText (TextPosition.IsSome || MultiTextPosition.IsSome) >> StyleParam.ModeUtils.showMarker (isShowMarker) Chart.ScatterGeo( locations, mode = changeMode StyleParam.Mode.Lines, ?Name = Name, ?ShowLegend = ShowLegend, ?Opacity = Opacity, ?MultiOpacity = MultiOpacity, ?Text = Text, ?MultiText = MultiText, ?TextPosition = TextPosition, ?MultiTextPosition = MultiTextPosition, ?MarkerColor = MarkerColor, ?MarkerColorScale = MarkerColorScale, ?MarkerOutline = MarkerOutline, ?MarkerSymbol = MarkerSymbol, ?MultiMarkerSymbol = MultiMarkerSymbol, ?Marker = Marker, ?LineColor = LineColor, ?LineColorScale = LineColorScale, ?LineWidth = LineWidth, ?LineDash = LineDash, ?Line = Line, ?LocationMode = LocationMode, ?GeoJson = GeoJson, ?FeatureIdKey = FeatureIdKey, ?UseDefaults = UseDefaults ) /// /// Creates a BubbleGeo chart. /// /// In general, BubbleGeo Plots plot two-dimensional data as points using plotly's base geo map, additionally using the point size as a third dimension. /// /// Sets the longitude coordinates (in degrees East). /// 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 /// 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 /// Sets a text associated with each datum /// Sets individual text for each datum /// Sets the position of text associated with each datum /// Sets the position of text associated with individual datum /// Sets the color of the marker /// Sets the colorscale of the marker /// Sets the outline of the marker /// 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) /// Determines the set of locations used to match entries in `locations` to regions on the map. Values "ISO-3", "USA-states", "country names" correspond to features on the base map and value "geojson-id" corresponds to features from a custom GeoJSON linked to the `geojson` attribute. /// Sets optional GeoJSON data associated with this trace. If not given, the features on the base map are used. 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. Only has an effect when `geojson` is set. Support nested property, for example "properties.name". /// If set to false, ignore the global default settings set in `Defaults` [] static member BubbleGeo ( 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 ) = let changeMode = StyleParam.ModeUtils.showText (TextPosition.IsSome || MultiTextPosition.IsSome) 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, MultiSize = sizes ) TraceGeo.initScatterGeo ( TraceGeoStyle.ScatterGeo( Lon = longitudes, Lat = latitudes, Mode = changeMode StyleParam.Mode.Markers, Marker = marker, ?Name = Name, ?ShowLegend = ShowLegend, ?Opacity = Opacity, ?Text = Text, ?MultiText = MultiText, ?TextPosition = TextPosition, ?MultiTextPosition = MultiTextPosition, ?LocationMode = LocationMode, ?GeoJson = GeoJson, ?FeatureIdKey = FeatureIdKey ) ) |> GenericChart.ofTraceObject useDefaults /// /// Creates a BubbleGeo chart. /// /// In general, BubbleGeo Plots plot two-dimensional data as points using plotly's base geo map, additionally using the point size as a third dimension. /// /// Sets the (longitude,latitude) coordinates (in degrees East, degrees North) together with the point sizes. /// 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 /// Sets the opactity of individual datum markers /// Sets a text associated with each datum /// Sets individual text for each datum /// Sets the position of text associated with each datum /// Sets the position of text associated with individual datum /// Sets the color of the marker /// Sets the colorscale of the marker /// Sets the outline of the marker /// 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) /// Determines the set of locations used to match entries in `locations` to regions on the map. Values "ISO-3", "USA-states", "country names" correspond to features on the base map and value "geojson-id" corresponds to features from a custom GeoJSON linked to the `geojson` attribute. /// Sets optional GeoJSON data associated with this trace. If not given, the features on the base map are used. 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. Only has an effect when `geojson` is set. Support nested property, for example "properties.name". /// If set to false, ignore the global default settings set in `Defaults` [] 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 ) = let longitudes, latitudes, sizes = Seq.unzip3 lonlatsizes Chart.BubbleGeo( longitudes, latitudes, sizes, ?Name = Name, ?ShowLegend = ShowLegend, ?Opacity = Opacity, ?MultiOpacity = MultiOpacity, ?Text = Text, ?MultiText = MultiText, ?TextPosition = TextPosition, ?MultiTextPosition = MultiTextPosition, ?MarkerColor = MarkerColor, ?MarkerColorScale = MarkerColorScale, ?MarkerOutline = MarkerOutline, ?MarkerSymbol = MarkerSymbol, ?MultiMarkerSymbol = MultiMarkerSymbol, ?Marker = Marker, ?LocationMode = LocationMode, ?GeoJson = GeoJson, ?FeatureIdKey = FeatureIdKey, ?UseDefaults = UseDefaults ) /// /// Creates a BubbleGeo chart. /// /// In general, BubbleGeo Plots plot two-dimensional data as points using plotly's base geo map, additionally using the point size as a third dimension. /// /// Sets the coordinates via location IDs or names. Coordinates correspond to the centroid of each location given. See `locationmode` for more info. /// Sets the size of the points. /// 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 /// Sets the opactity of individual datum markers /// Sets a text associated with each datum /// Sets individual text for each datum /// Sets the position of text associated with each datum /// Sets the position of text associated with individual datum /// Sets the color of the marker /// Sets the colorscale of the marker /// Sets the outline of the marker /// 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) /// Determines the set of locations used to match entries in `locations` to regions on the map. Values "ISO-3", "USA-states", "country names" correspond to features on the base map and value "geojson-id" corresponds to features from a custom GeoJSON linked to the `geojson` attribute. /// Sets optional GeoJSON data associated with this trace. If not given, the features on the base map are used. 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. Only has an effect when `geojson` is set. Support nested property, for example "properties.name". /// If set to false, ignore the global default settings set in `Defaults` [] static member BubbleGeo ( 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 ) = let changeMode = StyleParam.ModeUtils.showText (TextPosition.IsSome || MultiTextPosition.IsSome) Chart.BubbleGeo( locations, sizes, ?Name = Name, ?ShowLegend = ShowLegend, ?Opacity = Opacity, ?MultiOpacity = MultiOpacity, ?Text = Text, ?MultiText = MultiText, ?TextPosition = TextPosition, ?MultiTextPosition = MultiTextPosition, ?MarkerColor = MarkerColor, ?MarkerColorScale = MarkerColorScale, ?MarkerOutline = MarkerOutline, ?MarkerSymbol = MarkerSymbol, ?MultiMarkerSymbol = MultiMarkerSymbol, ?Marker = Marker, ?LocationMode = LocationMode, ?GeoJson = GeoJson, ?FeatureIdKey = FeatureIdKey, ?UseDefaults = UseDefaults ) /// /// Creates a ScatterMapbox chart, where data is visualized on a geographic map using mapbox. /// /// Customize the mapbox layers, style, etc. by using Chart.withMapbox. /// /// You might need a Mapbox token, which you can also configure with Chart.withMapbox. /// /// ScatterMapbox charts are the basis of PointMapbox, LineMapbox, and BubbleMapbox Charts, and can be customized as such. We also provide abstractions for those: Chart.PointMapbox, Chart.LineMapbox, Chart.BubbleMapbox /// /// 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 /// Sets the opactity of individual datum markers /// Sets a text associated with each datum /// Sets individual text for each datum /// Sets the position of text associated with each datum /// Sets the position of text associated with individual datum /// Sets the color of the marker /// Sets the colorscale of the marker /// Sets the outline of the marker /// 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 color of the line /// Sets the colorscale of the 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) /// 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 "''". /// Whether or not to enable clustering for points /// Sets the clustering options (use this for more finegrained control than the other cluster-associated arguments) /// If set to false, ignore the global default settings set in `Defaults` [] static member ScatterMapbox ( 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 ) = 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 ) let cluster = Cluster |> Option.defaultValue (MapboxCluster.init ()) |> MapboxCluster.style (?Enabled = EnableClustering) let mapboxStyle = defaultArg MapboxStyle StyleParam.MapboxStyle.OpenStreetMap let mapbox = Mapbox.init (Style = mapboxStyle) TraceMapbox.initScatterMapbox ( TraceMapboxStyle.ScatterMapbox( Lon = longitudes, Lat = latitudes, Cluster = cluster, Mode = mode, Marker = marker, Line = line, ?Name = Name, ?ShowLegend = ShowLegend, ?Opacity = Opacity, ?Text = Text, ?MultiText = MultiText, ?TextPosition = TextPosition, ?MultiTextPosition = MultiTextPosition, ?Below = Below ) ) |> GenericChart.ofTraceObject useDefaults |> GenericChart.addLayout (Layout.init () |> Layout.setMapbox (StyleParam.SubPlotId.Mapbox 1, mapbox)) /// /// Creates a ScatterMapbox chart, where data is visualized on a geographic map using mapbox. /// /// Customize the mapbox layers, style, etc. by using Chart.withMapbox. /// /// You might need a Mapbox token, which you can also configure with Chart.withMapbox. /// /// ScatterMapbox charts are the basis of PointMapbox, LineMapbox, and BubbleMapbox Charts, and can be customized as such. We also provide abstractions for those: Chart.PointMapbox, Chart.LineMapbox, Chart.BubbleMapbox /// /// Sets the (longitude,latitude) coordinates (in degrees East, degrees North). /// Determines the drawing mode for this scatter trace. /// 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 /// Sets a text associated with each datum /// Sets individual text for each datum /// Sets the position of text associated with each datum /// Sets the position of text associated with individual datum /// Sets the color of the marker /// Sets the colorscale of the marker /// Sets the outline of the marker /// 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 color of the line /// Sets the colorscale of the 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) /// 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 "''". /// Whether or not to enable clustering for points /// Sets the clustering options (use this for more finegrained control than the other cluster-associated arguments) /// If set to false, ignore the global default settings set in `Defaults` [] static member ScatterMapbox ( 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 ) = let longitudes, latitudes = Seq.unzip lonlat Chart.ScatterMapbox( longitudes, latitudes, mode, ?Name = Name, ?MapboxStyle = MapboxStyle, ?ShowLegend = ShowLegend, ?Opacity = Opacity, ?MultiOpacity = MultiOpacity, ?Text = Text, ?MultiText = MultiText, ?TextPosition = TextPosition, ?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, ?EnableClustering = EnableClustering, ?Cluster = Cluster, ?UseDefaults = UseDefaults ) /// /// Creates a PointMapbox chart, where data is visualized on a geographic map as points using mapbox. /// /// Customize the mapbox layers, style, etc. by using Chart.withMapbox. /// /// 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 /// 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 /// Sets a text associated with each datum /// Sets individual text for each datum /// Sets the position of text associated with each datum /// Sets the position of text associated with individual datum /// Sets the color of the marker /// Sets the colorscale of the marker /// Sets the outline of the marker /// 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) /// 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 "''". /// Whether or not to enable clustering for points /// Sets the clustering options (use this for more finegrained control than the other cluster-associated arguments) /// If set to false, ignore the global default settings set in `Defaults` [] static member PointMapbox ( 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 ) = let changeMode = StyleParam.ModeUtils.showText (TextPosition.IsSome || MultiTextPosition.IsSome) Chart.ScatterMapbox( longitudes, latitudes, mode = changeMode StyleParam.Mode.Markers, ?Name = Name, ?MapboxStyle = MapboxStyle, ?ShowLegend = ShowLegend, ?Opacity = Opacity, ?MultiOpacity = MultiOpacity, ?Text = Text, ?MultiText = MultiText, ?TextPosition = TextPosition, ?MultiTextPosition = MultiTextPosition, ?MarkerColor = MarkerColor, ?MarkerColorScale = MarkerColorScale, ?MarkerOutline = MarkerOutline, ?MarkerSymbol = MarkerSymbol, ?MultiMarkerSymbol = MultiMarkerSymbol, ?Marker = Marker, ?Below = Below, ?EnableClustering = EnableClustering, ?Cluster = Cluster, ?UseDefaults = UseDefaults ) /// /// Creates a PointMapbox chart, where data is visualized on a geographic map as points using mapbox. /// /// Customize the mapbox layers, style, etc. by using Chart.withMapbox. /// /// You might need a Mapbox token, which you can also configure with Chart.withMapbox. /// /// Sets the (longitude,latitude) coordinates (in degrees East, 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 /// Sets a text associated with each datum /// Sets individual text for each datum /// Sets the position of text associated with each datum /// Sets the position of text associated with individual datum /// Sets the color of the marker /// Sets the colorscale of the marker /// Sets the outline of the marker /// 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) /// 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 "''". /// Whether or not to enable clustering for points /// Sets the clustering options (use this for more finegrained control than the other cluster-associated arguments) /// If set to false, ignore the global default settings set in `Defaults` [] 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 ) = let longitudes, latitudes = Seq.unzip lonlat Chart.PointMapbox( longitudes, latitudes, ?Name = Name, ?MapboxStyle = MapboxStyle, ?ShowLegend = ShowLegend, ?Opacity = Opacity, ?MultiOpacity = MultiOpacity, ?Text = Text, ?MultiText = MultiText, ?TextPosition = TextPosition, ?MultiTextPosition = MultiTextPosition, ?MarkerColor = MarkerColor, ?MarkerColorScale = MarkerColorScale, ?MarkerOutline = MarkerOutline, ?MarkerSymbol = MarkerSymbol, ?MultiMarkerSymbol = MultiMarkerSymbol, ?Marker = Marker, ?Below = Below, ?EnableClustering = EnableClustering, ?Cluster = Cluster, ?UseDefaults = UseDefaults ) /// /// Creates a LineMapbox chart, where data is visualized on a geographic map connected by a line using mapbox. /// /// Customize the mapbox layers, style, etc. by using Chart.withMapbox. /// /// 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 /// 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 /// Sets a text associated with each datum /// Sets individual text for each datum /// Sets the position of text associated with each datum /// Sets the position of text associated with individual datum /// Sets the color of the marker /// Sets the colorscale of the marker /// Sets the outline of the marker /// 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 color of the line /// Sets the colorscale of the 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) /// 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 "''". /// If set to false, ignore the global default settings set in `Defaults` [] static member LineMapbox ( 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 ) = let changeMode = let isShowMarker = match ShowMarkers with | Some isShow -> isShow | Option.None -> false StyleParam.ModeUtils.showText (TextPosition.IsSome || MultiTextPosition.IsSome) >> StyleParam.ModeUtils.showMarker (isShowMarker) Chart.ScatterMapbox( longitudes, latitudes, mode = changeMode StyleParam.Mode.Lines, ?Name = Name, ?MapboxStyle = MapboxStyle, ?ShowLegend = ShowLegend, ?Opacity = Opacity, ?MultiOpacity = MultiOpacity, ?Text = Text, ?MultiText = MultiText, ?TextPosition = TextPosition, ?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, ?UseDefaults = UseDefaults ) /// /// Creates a LineMapbox chart, where data is visualized on a geographic map connected by a line using mapbox. /// /// Customize the mapbox layers, style, etc. by using Chart.withMapbox. /// /// You might need a Mapbox token, which you can also configure with Chart.withMapbox. /// /// Sets the (longitude,latitude) coordinates (in degrees East, 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 /// Sets a text associated with each datum /// Sets individual text for each datum /// Sets the position of text associated with each datum /// Sets the position of text associated with individual datum /// Sets the color of the marker /// Sets the colorscale of the marker /// Sets the outline of the marker /// 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 color of the line /// Sets the colorscale of the 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) /// 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 "''". /// If set to false, ignore the global default settings set in `Defaults` [] 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 ) = let longitudes, latitudes = Seq.unzip lonlat Chart.LineMapbox( longitudes, latitudes, ?ShowMarkers = ShowMarkers, ?Name = Name, ?MapboxStyle = MapboxStyle, ?ShowLegend = ShowLegend, ?Opacity = Opacity, ?MultiOpacity = MultiOpacity, ?Text = Text, ?MultiText = MultiText, ?TextPosition = TextPosition, ?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, ?UseDefaults = UseDefaults ) /// /// Creates a BubbleMapbox chart, where data is visualized on a geographic map as points using mapbox, additionally using the point size as a third dimension. /// /// Customize the mapbox layers, style, etc. by using Chart.withMapbox. /// /// 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 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 /// Sets a text associated with each datum /// Sets individual text for each datum /// Sets the position of text associated with each datum /// Sets the position of text associated with individual datum /// Sets the color of the marker /// Sets the colorscale of the marker /// Sets the outline of the marker /// 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) /// 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 "''". /// If set to false, ignore the global default settings set in `Defaults` [] static member BubbleMapbox ( 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 ) = let changeMode = StyleParam.ModeUtils.showText (TextPosition.IsSome || MultiTextPosition.IsSome) 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, MultiSize = sizes ) let mapboxStyle = defaultArg MapboxStyle StyleParam.MapboxStyle.OpenStreetMap let mapbox = Mapbox.init (Style = mapboxStyle) TraceMapbox.initScatterMapbox ( TraceMapboxStyle.ScatterMapbox( Lon = longitudes, Lat = latitudes, Mode = changeMode StyleParam.Mode.Markers, Marker = marker, ?Name = Name, ?ShowLegend = ShowLegend, ?Opacity = Opacity, ?Text = Text, ?MultiText = MultiText, ?TextPosition = TextPosition, ?MultiTextPosition = MultiTextPosition, ?Below = Below ) ) |> GenericChart.ofTraceObject useDefaults |> GenericChart.addLayout (Layout.init () |> Layout.setMapbox (StyleParam.SubPlotId.Mapbox 1, mapbox)) /// /// Creates a BubbleMapbox chart, where data is visualized on a geographic map as points using mapbox, additionally using the point size as a third dimension. /// /// Customize the mapbox layers, style, etc. by using Chart.withMapbox. /// /// You might need a Mapbox token, which you can also configure with Chart.withMapbox. /// /// Sets the (longitude,latitude) coordinates (in degrees East, degrees North) together with the point size. /// 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 /// Sets a text associated with each datum /// Sets individual text for each datum /// Sets the position of text associated with each datum /// Sets the position of text associated with individual datum /// Sets the color of the marker /// Sets the colorscale of the marker /// Sets the outline of the marker /// 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) /// 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 "''". /// If set to false, ignore the global default settings set in `Defaults` [] 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 ) = let longitudes, latitudes, sizes = Seq.unzip3 lonlatsizes Chart.BubbleMapbox( longitudes, latitudes, sizes, ?Name = Name, ?MapboxStyle = MapboxStyle, ?ShowLegend = ShowLegend, ?Opacity = Opacity, ?MultiOpacity = MultiOpacity, ?Text = Text, ?MultiText = MultiText, ?TextPosition = TextPosition, ?MultiTextPosition = MultiTextPosition, ?MarkerColor = MarkerColor, ?MarkerColorScale = MarkerColorScale, ?MarkerOutline = MarkerOutline, ?MarkerSymbol = MarkerSymbol, ?MultiMarkerSymbol = MultiMarkerSymbol, ?Marker = Marker, ?Below = Below, ?UseDefaults = UseDefaults ) /// /// Creates a choropleth map using mapbox. /// /// A choropleth map is a type of thematic map in which a set of pre-defined areas is colored or patterned in proportion to a statistical variable that represents an aggregate summary of a geographic characteristic within each area, such as population density or per-capita income. /// /// 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`. /// /// Customize the mapbox layers, style, etc. by using Chart.withMapbox. /// /// You might need a Mapbox token, which you can also configure with Chart.withMapbox. /// /// Sets the coordinates via location IDs or names. Coordinates correspond to the centroid of each location given. See `locationmode` for more info. /// 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 /// Sets individual text for each datum /// Sets the colorbar. /// Sets the colorscale. /// Determines whether or not a colorbar is displayed for this trace. /// Reverses the color mapping if true. /// 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 "''". /// If set to false, ignore the global default settings set in `Defaults` [] static member ChoroplethMapbox ( 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 ) = let useDefaults = defaultArg UseDefaults true let mapboxStyle = defaultArg MapboxStyle StyleParam.MapboxStyle.OpenStreetMap let mapbox = Mapbox.init (Style = mapboxStyle) TraceMapbox.initChoroplethMapbox ( TraceMapboxStyle.ChoroplethMapbox( Locations = locations, Z = z, ?Name = Name, ?ShowLegend = ShowLegend, GeoJson = geoJson, ?FeatureIdKey = FeatureIdKey, ?Text = Text, ?MultiText = MultiText, ?ColorBar = ColorBar, ?ColorScale = ColorScale, ?ShowScale = ShowScale, ?ReverseScale = ReverseScale, ?Below = Below ) ) |> GenericChart.ofTraceObject useDefaults |> GenericChart.addLayout (Layout.init () |> Layout.setMapbox (StyleParam.SubPlotId.Mapbox 1, mapbox)) /// /// 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. /// /// Customize the mapbox layers, style, etc. by using Chart.withMapbox. /// /// 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. /// 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 /// Sets the radius of influence of one `lon` / `lat` point in pixels. Increasing the value makes the densitymapbox trace smoother, but less detailed. /// Sets a text associated with each datum /// Sets individual text for each datum /// Sets the colorbar. /// Sets the colorscale. /// Determines whether or not a colorbar is displayed for this trace. /// Reverses the color mapping if true. /// 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 "''". /// If set to false, ignore the global default settings set in `Defaults` [] static member DensityMapbox ( 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 ) = let useDefaults = defaultArg UseDefaults true let mapboxStyle = defaultArg MapboxStyle StyleParam.MapboxStyle.OpenStreetMap let mapbox = Mapbox.init (Style = mapboxStyle) TraceMapbox.initDensityMapbox ( TraceMapboxStyle.DensityMapbox( Lon = longitudes, Lat = latitudes, ?Name = Name, ?ShowLegend = ShowLegend, ?Opacity = Opacity, ?Z = Z, ?Radius = Radius, ?Text = Text, ?MultiText = MultiText, ?ColorBar = ColorBar, ?ColorScale = ColorScale, ?ShowScale = ShowScale, ?ReverseScale = ReverseScale, ?Below = Below ) ) |> GenericChart.ofTraceObject useDefaults |> GenericChart.addLayout (Layout.init () |> Layout.setMapbox (StyleParam.SubPlotId.Mapbox 1, mapbox)) /// /// 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. /// /// Customize the mapbox layers, style, etc. by using Chart.withMapbox. /// /// You might need a Mapbox token, which you can also configure with Chart.withMapbox. /// /// Sets the (longitude,latitude) coordinates (in degrees East, 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 /// Sets the radius of influence of one `lon` / `lat` point in pixels. Increasing the value makes the densitymapbox trace smoother, but less detailed. /// Sets a text associated with each datum /// Sets individual text for each datum /// Sets the colorbar. /// Sets the colorscale. /// Determines whether or not a colorbar is displayed for this trace. /// Reverses the color mapping if true. /// 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 "''". /// If set to false, ignore the global default settings set in `Defaults` [] 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 ) = let longitudes, latitudes = Seq.unzip lonlat Chart.DensityMapbox( longitudes, latitudes, ?Name = Name, ?MapboxStyle = MapboxStyle, ?ShowLegend = ShowLegend, ?Opacity = Opacity, ?Z = Z, ?Radius = Radius, ?Text = Text, ?MultiText = MultiText, ?ColorBar = ColorBar, ?ColorScale = ColorScale, ?ShowScale = ShowScale, ?ReverseScale = ReverseScale, ?Below = Below, ?UseDefaults = UseDefaults )