Skip to content

Choroplethmapbox

Overview

Danger

You need a mapbox api key to use choroplethmapbox traces.

The choroplethmapbox trace type is used to create choropleth maps on top of a Mapbox layer. It's a more advanced form of the standard choropleth trace, allowing for greater control over map projections, interactivity, and advanced map features like zooming and tilting.

With choroplethmapbox, you can visualize data across geographic regions on Mapbox maps, and customize the map's appearance using layers, color scales, and hover labels.

Common Uses

  • Geospatial Data Visualization: Displaying data on an interactive Mapbox map.
  • Thematic Mapping with Interactivity: Creating maps that can zoom, tilt, and rotate while visualizing variables like population or economic metrics.
  • Map Projections: Applying various Mapbox projections for advanced geographical data representation.

Check out the Attributes for the full set of configuration options

Examples

Common Configurations

Here's a simple choroplethmapbox map showing population density across different regions on a Mapbox layer:

You can copy this code below to create this chart in your project:

models:
  - name: country-population-data-mapbox
    args:
      - echo
      - |
        iso_alpha,population_density
        USA,36
        CAN,4
        RUS,9
        CHN,153
        IND,450
traces:
  - name: Simple ChoroplethMapbox Map
    model: ref(country-population-data-mapbox
    props:
      type: choroplethmapbox
      geojson: "https://raw.githubusercontent.com/datasets/geo-countries/master/data/countries.geojson"
      locations: ?{iso_alpha}
      z: ?{population_density}
      colorscale: "Blues"
      marker:
        opacity: 0.7
charts:
  - name: Simple ChoroplethMapbox Chart
    traces:
      - ${ref(Simple ChoroplethMapbox Map)}
    layout:
      title:
        text: Population Density by Country on Mapbox<br><sub>Data in Persons per Square Kilometer</sub>
      mapbox:
        style: "carto-positron"
        zoom: 1
        center:
          lat: 20
          lon: 0

This example shows a choropleth map on a Mapbox layer using a custom color scale, zoom, and center on Europe:

Here's the code:

models:
  - name: european-gdp-data
    args:
      - echo
      - |
        iso_alpha,gdp
        FRA,2716
        DEU,3846
        ITA,2001
        ESP,1419
        GBR,2827
traces:
  - name: ChoroplethMapbox with Custom Colorscale Trace
    model: ${ref(european-gdp-data)}
    props:
      type: choroplethmapbox
      geojson: "https://raw.githubusercontent.com/datasets/geo-countries/master/data/countries.geojson"
      locations: ?{iso_alpha}
      z: ?{gdp}
      colorscale: [[0, "rgb(255,245,240)"], [0.5, "rgb(252,146,114)"], [1, "rgb(165,15,21)"]]
      marker:
        opacity: 0.75
charts:
  - name: ChoroplethMapbox with Custom Colorscale
    traces:
      - ${ref(ChoroplethMapbox with Custom Colorscale Trace)}
    layout:
      title:
        text: GDP by Country in Europe<br><sub>Data in Billions of USD</sub>
      mapbox:
        style: "carto-positron"
        zoom: 3
        center:
          lat: 50
          lon: 10

Here's a choropleth map on a Mapbox layer that includes hover information for each country:

You can copy this code below to create this chart in your project:

models:
  - name: covid-data-mapbox
    args:
      - echo
      - |
        iso_alpha,covid_cases,covid_deaths
        USA,33000000,600000
        BRA,20000000,550000
        IND,30000000,400000
        RUS,6000000,150000
        ZAF,2000000,60000
traces:
  - name: Interactive ChoroplethMapbox with Hover Data Trace
    model: ${ref(covid-data-mapbox)}
    props:
      type: choroplethmapbox
      geojson: "https://raw.githubusercontent.com/datasets/geo-countries/master/data/countries.geojson"
      locations: ?{iso_alpha}
      z: ?{covid_cases}
      colorscale: "Reds"
      text: ?{covid_deaths}
      hovertemplate: "Cases: %{z}<br>Deaths: %{text}"
      marker:
        opacity: 0.8
charts:
  - name: Interactive ChoroplethMapbox with Hover Data
    traces:
      - ${ref(Interactive ChoroplethMapbox with Hover Data Trace)}
    layout:
      title:
        text: COVID-19 Cases by Country on Mapbox<br><sub>Hover to See Deaths Data</sub>
      mapbox:
        style: "carto-darkmatter"
        zoom: 2
        center:
          lat: 30
          lon: 0

A schema to validate plotly trace properties

Attributes

These attributes apply to traces where trace.props.type is set to choroplethmapbox. You would configure these attributes on the trace with the trace.props object.

autocolorscale: 'boolean' #(1)!
below: 'string' #(2)!
coloraxis: 'string' #(3)!
colorbar:
  bgcolor: 'any' #(4)!
  bordercolor: 'any' #(5)!
  borderwidth: 'number' #(6)!
  exponentformat: 'any' #(7)!
  len: 'number' #(8)!
  lenmode: 'any' #(9)!
  minexponent: 'number' #(10)!
  nticks: 'integer' #(11)!
  orientation: 'any' #(12)!
  outlinecolor: 'any' #(13)!
  outlinewidth: 'number' #(14)!
  separatethousands: 'boolean' #(15)!
  showexponent: 'any' #(16)!
  showticklabels: 'boolean' #(17)!
  showtickprefix: 'any' #(18)!
  showticksuffix: 'any' #(19)!
  thickness: 'number' #(20)!
  thicknessmode: 'any' #(21)!
  tickangle: 'number' #(22)!
  tickcolor: 'any' #(23)!
  tickfont:
    color: any
    family: 'string' #(24)!
    lineposition: 'string' #(25)!
    shadow: 'string' #(26)!
    size: number
    style: 'any' #(27)!
    textcase: 'any' #(28)!
    variant: 'any' #(29)!
    weight: 'integer' #(30)!
  tickformat: 'string' #(31)!
  tickformatstops: array
  ticklabeloverflow: 'any' #(32)!
  ticklabelposition: 'any' #(33)!
  ticklabelstep: 'integer' #(34)!
  ticklen: 'number' #(35)!
  tickmode: 'any' #(36)!
  tickprefix: 'string' #(37)!
  ticks: 'any' #(38)!
  ticksuffix: 'string' #(39)!
  ticktext: 'array' #(40)!
  ticktextsrc: 'string' #(41)!
  tickvals: 'array' #(42)!
  tickvalssrc: 'string' #(43)!
  tickwidth: 'number' #(44)!
  title:
    font:
      color: any
      family: 'string' #(45)!
      lineposition: 'string' #(46)!
      shadow: 'string' #(47)!
      size: number
      style: 'any' #(48)!
      textcase: 'any' #(49)!
      variant: 'any' #(50)!
      weight: 'integer' #(51)!
    side: 'any' #(52)!
    text: 'string' #(53)!
  x: 'number' #(54)!
  xanchor: 'any' #(55)!
  xpad: 'number' #(56)!
  xref: 'any' #(57)!
  y: 'number' #(58)!
  yanchor: 'any' #(59)!
  ypad: 'number' #(60)!
  yref: 'any' #(61)!
colorscale: 'any' #(62)!
customdata: 'array' #(63)!
customdatasrc: 'string' #(64)!
featureidkey: 'string' #(65)!
hoverinfo: 'array' #(66)!
hoverinfosrc: 'string' #(67)!
hoverlabel:
  align: 'array' #(68)!
  alignsrc: 'string' #(69)!
  bgcolor: 'color | array' #(70)!
  bgcolorsrc: 'string' #(71)!
  bordercolor: 'color | array' #(72)!
  bordercolorsrc: 'string' #(73)!
  font:
    color: color | array
    colorsrc: 'string' #(74)!
    family: 'string | array' #(75)!
    familysrc: 'string' #(76)!
    lineposition: 'array' #(77)!
    linepositionsrc: 'string' #(78)!
    shadow: 'string | array' #(79)!
    shadowsrc: 'string' #(80)!
    size: number | array
    sizesrc: 'string' #(81)!
    style: 'array' #(82)!
    stylesrc: 'string' #(83)!
    textcase: 'array' #(84)!
    textcasesrc: 'string' #(85)!
    variant: 'array' #(86)!
    variantsrc: 'string' #(87)!
    weight: 'integer | array' #(88)!
    weightsrc: 'string' #(89)!
  namelength: 'integer | array' #(90)!
  namelengthsrc: 'string' #(91)!
hovertemplate: 'string | array' #(92)!
hovertemplatesrc: 'string' #(93)!
hovertext: 'string | array' #(94)!
hovertextsrc: 'string' #(95)!
ids: 'array' #(96)!
idssrc: 'string' #(97)!
legend: 'string' #(98)!
legendgroup: 'string' #(99)!
legendgrouptitle:
  font:
    color: any
    family: 'string' #(100)!
    lineposition: 'string' #(101)!
    shadow: 'string' #(102)!
    size: number
    style: 'any' #(103)!
    textcase: 'any' #(104)!
    variant: 'any' #(105)!
    weight: 'integer' #(106)!
  text: 'string' #(107)!
legendrank: 'number' #(108)!
legendwidth: 'number' #(109)!
locations: 'array' #(110)!
locationssrc: 'string' #(111)!
marker:
  line:
    color: 'color | array' #(112)!
    colorsrc: 'string' #(113)!
    width: 'number | array' #(114)!
    widthsrc: 'string' #(115)!
  opacity: 'number | array' #(116)!
  opacitysrc: 'string' #(117)!
metasrc: 'string' #(118)!
name: 'string' #(119)!
reversescale: 'boolean' #(120)!
selected:
  marker:
    opacity: 'number' #(121)!
showlegend: 'boolean' #(122)!
showscale: 'boolean' #(123)!
stream:
  maxpoints: 'number' #(124)!
  token: 'string' #(125)!
subplot: 'string' #(126)!
text: 'string | array' #(127)!
textsrc: 'string' #(128)!
type: choroplethmapbox
uid: 'string' #(129)!
unselected:
  marker:
    opacity: 'number' #(130)!
visible: 'any' #(131)!
z: 'array' #(132)!
zauto: 'boolean' #(133)!
zmax: 'number' #(134)!
zmid: 'number' #(135)!
zmin: 'number' #(136)!
zsrc: 'string' #(137)!
  1. Determines whether the colorscale is a default palette (autocolorscale: true) or the palette determined by colorscale. In case colorscale is unspecified or autocolorscale is true, the default palette will be chosen according to whether numbers in the color array are all positive, all negative or mixed.
  2. 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.
  3. Sets a reference to a shared color axis. References to these shared color axes are coloraxis, coloraxis2, coloraxis3, etc. Settings for these shared color axes are set in the layout, under layout.coloraxis, layout.coloraxis2, etc. Note that multiple color scales can be linked to the same color axis.
  4. Sets the color of padded area.
  5. Sets the axis line color.
  6. Sets the width (in px) or the border enclosing this color bar.
  7. Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If none, it appears as 1,000,000,000. If e, 1e+9. If E, 1E+9. If power, 1x10^9 (with 9 in a super script). If SI, 1G. If B, 1B.
  8. Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.
  9. Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot fraction or in *pixels. Use len to set the value.
  10. Hide SI prefix for 10^n if |n| is below this number. This only has an effect when tickformat is SI or B.
  11. Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to nticks. Has an effect only if tickmode is set to auto.
  12. Sets the orientation of the colorbar.
  13. Sets the axis line color.
  14. Sets the width (in px) of the axis line.
  15. If "true", even 4-digit integers are separated
  16. If all, all exponents are shown besides their significands. If first, only the exponent of the first tick is shown. If last, only the exponent of the last tick is shown. If none, no exponents appear.
  17. Determines whether or not the tick labels are drawn.
  18. If all, all tick labels are displayed with a prefix. If first, only the first tick is displayed with a prefix. If last, only the last tick is displayed with a suffix. If none, tick prefixes are hidden.
  19. Same as showtickprefix but for tick suffixes.
  20. Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels.
  21. Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot fraction or in pixels. Use thickness to set the value.
  22. Sets the angle of the tick labels with respect to the horizontal. For example, a tickangle of -90 draws the tick labels vertically.
  23. Sets the tick color.
  24. HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.
  25. Sets the kind of decoration line(s) with text, such as an under, over or through as well as combinations e.g. under+over, etc.
  26. Sets the shape and color of the shadow behind text. auto places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.
  27. Sets whether a font should be styled with a normal or italic face from its family.
  28. Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
  29. Sets the variant of the font.
  30. Sets the weight (or boldness) of the font.
  31. Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: %h for half of the year as a decimal number as well as %{n}f for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat %H~%M~%S.%2f would display 09~15~23.46
  32. Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is hide past domain. In other cases the default is hide past div.
  33. Determines where tick labels are drawn relative to the ticks. Left and right options are used when orientation is h, top and bottom when orientation is v.
  34. Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. tick0 determines which labels are shown. Not implemented for axes with type log or multicategory, or when tickmode is array.
  35. Sets the tick length (in px).
  36. Sets the tick mode for this axis. If auto, the number of ticks is set via nticks. If linear, the placement of the ticks is determined by a starting position tick0 and a tick step dtick (linear is the default value if tick0 and dtick are provided). If array, the placement of the ticks is set via tickvals and the tick text is ticktext. (array is the default value if tickvals is provided).
  37. Sets a tick label prefix.
  38. Determines whether ticks are drawn or not. If , this axis' ticks are not drawn. If outside (inside), this axis' are drawn outside (inside) the axis lines.
  39. Sets a tick label suffix.
  40. Sets the text displayed at the ticks position via tickvals. Only has an effect if tickmode is set to array. Used with tickvals.
  41. Sets the source reference on Chart Studio Cloud for ticktext.
  42. Sets the values at which ticks on this axis appear. Only has an effect if tickmode is set to array. Used with ticktext.
  43. Sets the source reference on Chart Studio Cloud for tickvals.
  44. Sets the tick width (in px).
  45. HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.
  46. Sets the kind of decoration line(s) with text, such as an under, over or through as well as combinations e.g. under+over, etc.
  47. Sets the shape and color of the shadow behind text. auto places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.
  48. Sets whether a font should be styled with a normal or italic face from its family.
  49. Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
  50. Sets the variant of the font.
  51. Sets the weight (or boldness) of the font.
  52. Determines the location of color bar's title with respect to the color bar. Defaults to top when orientation if v and defaults to right when orientation if h.
  53. Sets the title of the color bar.
  54. Sets the x position with respect to xref of the color bar (in plot fraction). When xref is paper, defaults to 1.02 when orientation is v and 0.5 when orientation is h. When xref is container, defaults to 1 when orientation is v and 0.5 when orientation is h. Must be between 0 and 1 if xref is container and between -2 and 3 if xref is paper.
  55. Sets this color bar's horizontal position anchor. This anchor binds the x position to the left, center or right of the color bar. Defaults to left when orientation is v and center when orientation is h.
  56. Sets the amount of padding (in px) along the x direction.
  57. Sets the container x refers to. container spans the entire width of the plot. paper refers to the width of the plotting area only.
  58. Sets the y position with respect to yref of the color bar (in plot fraction). When yref is paper, defaults to 0.5 when orientation is v and 1.02 when orientation is h. When yref is container, defaults to 0.5 when orientation is v and 1 when orientation is h. Must be between 0 and 1 if yref is container and between -2 and 3 if yref is paper.
  59. Sets this color bar's vertical position anchor This anchor binds the y position to the top, middle or bottom of the color bar. Defaults to middle when orientation is v and bottom when orientation is h.
  60. Sets the amount of padding (in px) along the y direction.
  61. Sets the container y refers to. container spans the entire height of the plot. paper refers to the height of the plotting area only.
  62. Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, [[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]. To control the bounds of the colorscale in color space, use zmin and zmax. Alternatively, colorscale may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
  63. Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, scatter traces also appends customdata items in the markers DOM elements
  64. Sets the source reference on Chart Studio Cloud for customdata.
  65. 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.
  66. Determines which trace information appear on hover. If none or skip are set, no information is displayed upon hovering. But, if none is set, click and hover events are still fired.
  67. Sets the source reference on Chart Studio Cloud for hoverinfo.
  68. Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines
  69. Sets the source reference on Chart Studio Cloud for align.
  70. Sets the background color of the hover labels for this trace
  71. Sets the source reference on Chart Studio Cloud for bgcolor.
  72. Sets the border color of the hover labels for this trace.
  73. Sets the source reference on Chart Studio Cloud for bordercolor.
  74. Sets the source reference on Chart Studio Cloud for color.
  75. HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.
  76. Sets the source reference on Chart Studio Cloud for family.
  77. Sets the kind of decoration line(s) with text, such as an under, over or through as well as combinations e.g. under+over, etc.
  78. Sets the source reference on Chart Studio Cloud for lineposition.
  79. Sets the shape and color of the shadow behind text. auto places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.
  80. Sets the source reference on Chart Studio Cloud for shadow.
  81. Sets the source reference on Chart Studio Cloud for size.
  82. Sets whether a font should be styled with a normal or italic face from its family.
  83. Sets the source reference on Chart Studio Cloud for style.
  84. Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
  85. Sets the source reference on Chart Studio Cloud for textcase.
  86. Sets the variant of the font.
  87. Sets the source reference on Chart Studio Cloud for variant.
  88. Sets the weight (or boldness) of the font.
  89. Sets the source reference on Chart Studio Cloud for weight.
  90. Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to namelength - 3 characters and add an ellipsis.
  91. Sets the source reference on Chart Studio Cloud for namelength.
  92. Template string used for rendering the information that appear on hover box. Note that this will override hoverinfo. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%xother}, {%_xother}, {%xother_}. When showing info for several points, xother will be added to those with different x positions from the first point. An underscore before or after (x|y)other will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in hovertemplate are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are arrayOk: true) are available. Finally, the template string has access to variable properties Anything contained in tag <extra> is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag <extra></extra>.
  93. Sets the source reference on Chart Studio Cloud for hovertemplate.
  94. Same as text.
  95. Sets the source reference on Chart Studio Cloud for hovertext.
  96. Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
  97. Sets the source reference on Chart Studio Cloud for ids.
  98. Sets the reference to a legend to show this trace in. References to these legends are legend, legend2, legend3, etc. Settings for these legends are set in the layout, under layout.legend, layout.legend2, etc.
  99. Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
  100. HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.
  101. Sets the kind of decoration line(s) with text, such as an under, over or through as well as combinations e.g. under+over, etc.
  102. Sets the shape and color of the shadow behind text. auto places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.
  103. Sets whether a font should be styled with a normal or italic face from its family.
  104. Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
  105. Sets the variant of the font.
  106. Sets the weight (or boldness) of the font.
  107. Sets the title of the legend group.
  108. Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with reversed legend.traceorder they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.
  109. Sets the width (in px or fraction) of the legend for this trace.
  110. Sets which features found in geojson to plot using their feature id field.
  111. Sets the source reference on Chart Studio Cloud for locations.
  112. Sets the marker.line 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.line.cmin and marker.line.cmax if set.
  113. Sets the source reference on Chart Studio Cloud for color.
  114. Sets the width (in px) of the lines bounding the marker points.
  115. Sets the source reference on Chart Studio Cloud for width.
  116. Sets the opacity of the locations.
  117. Sets the source reference on Chart Studio Cloud for opacity.
  118. Sets the source reference on Chart Studio Cloud for meta.
  119. Sets the trace name. The trace name appears as the legend item and on hover.
  120. Reverses the color mapping if true. If true, zmin will correspond to the last color in the array and zmax will correspond to the first color.
  121. Sets the marker opacity of selected points.
  122. Determines whether or not an item corresponding to this trace is shown in the legend.
  123. Determines whether or not a colorbar is displayed for this trace.
  124. Sets the maximum number of points to keep on the plots from an incoming stream. If maxpoints is set to 50, only the newest 50 points will be displayed on the plot.
  125. The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details.
  126. mapbox subplots and traces are deprecated! Please consider switching to map subplots and traces. Learn more at: https://plotly.com/python/maplibre-migration/ as well as https://plotly.com/javascript/maplibre-migration/ Sets a reference between this trace's data coordinates and a mapbox subplot. If mapbox (the default value), the data refer to layout.mapbox. If mapbox2, the data refer to layout.mapbox2, and so on.
  127. Sets the text elements associated with each location.
  128. Sets the source reference on Chart Studio Cloud for text.
  129. Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
  130. Sets the marker opacity of unselected points, applied only when a selection exists.
  131. Determines whether or not this trace is visible. If legendonly, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible).
  132. Sets the color values.
  133. 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.
  134. 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.
  135. 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.
  136. 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.
  137. Sets the source reference on Chart Studio Cloud for z.