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)!
- Determines whether the colorscale is a default palette (
autocolorscale: true
) or the palette determined bycolorscale
. In casecolorscale
is unspecified orautocolorscale
is true, the default palette will be chosen according to whether numbers in thecolor
array are all positive, all negative or mixed. - Determines if the choropleth polygons will be inserted before the layer with the specified ID. By default, choroplethmapbox traces are placed above the water layers. If set to '', the layer will be inserted above every existing layer.
- Sets 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. - Sets the color of padded area.
- Sets the axis line color.
- Sets the width (in px) or the border enclosing this color bar.
- 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.
- 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.
- 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. - Hide SI prefix for 10^n if |n| is below this number. This only has an effect when
tickformat
is SI or B. - 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 iftickmode
is set to auto. - Sets the orientation of the colorbar.
- Sets the axis line color.
- Sets the width (in px) of the axis line.
- If "true", even 4-digit integers are separated
- 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.
- Determines whether or not the tick labels are drawn.
- 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.
- Same as
showtickprefix
but for tick suffixes. - Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels.
- 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. - Sets the angle of the tick labels with respect to the horizontal. For example, a
tickangle
of -90 draws the tick labels vertically. - Sets the tick color.
- 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.
- 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.
- 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.
- Sets whether a font should be styled with a normal or italic face from its family.
- Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
- Sets the variant of the font.
- Sets the weight (or boldness) of the font.
- 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
- 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.
- Determines where tick labels are drawn relative to the ticks. Left and right options are used when
orientation
is h, top and bottom whenorientation
is v. - 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 withtype
log or multicategory, or whentickmode
is array. - Sets the tick length (in px).
- 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 positiontick0
and a tick stepdtick
(linear is the default value iftick0
anddtick
are provided). If array, the placement of the ticks is set viatickvals
and the tick text isticktext
. (array is the default value iftickvals
is provided). - Sets a tick label prefix.
- 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.
- Sets a tick label suffix.
- Sets the text displayed at the ticks position via
tickvals
. Only has an effect iftickmode
is set to array. Used withtickvals
. - Sets the source reference on Chart Studio Cloud for
ticktext
. - Sets the values at which ticks on this axis appear. Only has an effect if
tickmode
is set to array. Used withticktext
. - Sets the source reference on Chart Studio Cloud for
tickvals
. - Sets the tick width (in px).
- 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.
- 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.
- 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.
- Sets whether a font should be styled with a normal or italic face from its family.
- Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
- Sets the variant of the font.
- Sets the weight (or boldness) of the font.
- 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 whenorientation
if h. - Sets the title of the color bar.
- Sets the x position with respect to
xref
of the color bar (in plot fraction). Whenxref
is paper, defaults to 1.02 whenorientation
is v and 0.5 whenorientation
is h. Whenxref
is container, defaults to 1 whenorientation
is v and 0.5 whenorientation
is h. Must be between 0 and 1 ifxref
is container and between -2 and 3 ifxref
is paper. - 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 whenorientation
is v and center whenorientation
is h. - Sets the amount of padding (in px) along the x direction.
- Sets the container
x
refers to. container spans the entirewidth
of the plot. paper refers to the width of the plotting area only. - Sets the y position with respect to
yref
of the color bar (in plot fraction). Whenyref
is paper, defaults to 0.5 whenorientation
is v and 1.02 whenorientation
is h. Whenyref
is container, defaults to 0.5 whenorientation
is v and 1 whenorientation
is h. Must be between 0 and 1 ifyref
is container and between -2 and 3 ifyref
is paper. - 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 whenorientation
is v and bottom whenorientation
is h. - Sets the amount of padding (in px) along the y direction.
- Sets the container
y
refers to. container spans the entireheight
of the plot. paper refers to the height of the plotting area only. - 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, usezmin
andzmax
. 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. - 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
- Sets the source reference on Chart Studio Cloud for
customdata
. - 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. - Determines which trace information appear on hover. If
none
orskip
are set, no information is displayed upon hovering. But, ifnone
is set, click and hover events are still fired. - Sets the source reference on Chart Studio Cloud for
hoverinfo
. - 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
- Sets the source reference on Chart Studio Cloud for
align
. - Sets the background color of the hover labels for this trace
- Sets the source reference on Chart Studio Cloud for
bgcolor
. - Sets the border color of the hover labels for this trace.
- Sets the source reference on Chart Studio Cloud for
bordercolor
. - Sets the source reference on Chart Studio Cloud for
color
. - 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.
- Sets the source reference on Chart Studio Cloud for
family
. - 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.
- Sets the source reference on Chart Studio Cloud for
lineposition
. - 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.
- Sets the source reference on Chart Studio Cloud for
shadow
. - Sets the source reference on Chart Studio Cloud for
size
. - Sets whether a font should be styled with a normal or italic face from its family.
- Sets the source reference on Chart Studio Cloud for
style
. - Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
- Sets the source reference on Chart Studio Cloud for
textcase
. - Sets the variant of the font.
- Sets the source reference on Chart Studio Cloud for
variant
. - Sets the weight (or boldness) of the font.
- Sets the source reference on Chart Studio Cloud for
weight
. - 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. - Sets the source reference on Chart Studio Cloud for
namelength
. - 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 inhovertemplate
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 arearrayOk: true
) are available. Finally, the template string has access to variableproperties
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>
. - Sets the source reference on Chart Studio Cloud for
hovertemplate
. - Same as
text
. - Sets the source reference on Chart Studio Cloud for
hovertext
. - 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.
- Sets the source reference on Chart Studio Cloud for
ids
. - 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. - 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.
- 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.
- 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.
- 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.
- Sets whether a font should be styled with a normal or italic face from its family.
- Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
- Sets the variant of the font.
- Sets the weight (or boldness) of the font.
- Sets the title of the legend group.
- 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. - Sets the width (in px or fraction) of the legend for this trace.
- Sets which features found in geojson to plot using their feature
id
field. - Sets the source reference on Chart Studio Cloud for
locations
. - 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
andmarker.line.cmax
if set. - Sets the source reference on Chart Studio Cloud for
color
. - Sets the width (in px) of the lines bounding the marker points.
- Sets the source reference on Chart Studio Cloud for
width
. - Sets the opacity of the locations.
- Sets the source reference on Chart Studio Cloud for
opacity
. - Sets the source reference on Chart Studio Cloud for
meta
. - Sets the trace name. The trace name appears as the legend item and on hover.
- Reverses the color mapping if true. If true,
zmin
will correspond to the last color in the array andzmax
will correspond to the first color. - Sets the marker opacity of selected points.
- Determines whether or not an item corresponding to this trace is shown in the legend.
- Determines whether or not a colorbar is displayed for this trace.
- 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. - The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details.
- 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 tolayout.mapbox
. If mapbox2, the data refer tolayout.mapbox2
, and so on. - Sets the text elements associated with each location.
- Sets the source reference on Chart Studio Cloud for
text
. - Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- Sets the marker opacity of unselected points, applied only when a selection exists.
- 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).
- Sets the color values.
- Determines whether or not the color domain is computed with respect to the input data (here in
z
) or the bounds set inzmin
andzmax
Defaults tofalse
whenzmin
andzmax
are set by the user. - 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. - Sets the mid-point of the color domain by scaling
zmin
and/orzmax
to be equidistant to this point. Value should have the same units as inz
. Has no effect whenzauto
isfalse
. - Sets the lower bound of the color domain. Value should have the same units as in
z
and if set,zmax
must be set as well. - Sets the source reference on Chart Studio Cloud for
z
.