@@ -953,7 +953,7 @@ <h2 id="returns">Returns</h2>
953
953
< p > A < a title ="plotly_express.ExpressFigure " href ="#plotly_express.ExpressFigure "> < code > ExpressFigure</ code > </ a > object.</ p > </ section >
954
954
</ dd >
955
955
< dt id ="plotly_express.bar "> < code class ="name flex ">
956
- < span > def < span class ="ident "> bar</ span > </ span > (< span > data_frame, x=None, y=None, color=None, facet_row=None, facet_col=None, hover_name=None, text=None, error_x=None, error_x_minus=None, error_y=None, error_y_minus=None, animation_frame=None, animation_group=None, category_orders={}, labels={}, color_discrete_sequence=['#636efa', '#EF553B', '#00cc96', '#ab63fa', '#19d3f3', '#e763fa', '#fecb52', '#ffa15a', '#ff6692', '#b6e880'], color_discrete_map={}, orientation='v', log_x=False, log_y=False, range_x=None, range_y=None, title=None, template='plotly', width=None, height=600)</ span >
956
+ < span > def < span class ="ident "> bar</ span > </ span > (< span > data_frame, x=None, y=None, color=None, facet_row=None, facet_col=None, hover_name=None, text=None, error_x=None, error_x_minus=None, error_y=None, error_y_minus=None, animation_frame=None, animation_group=None, category_orders={}, labels={}, color_discrete_sequence=['#636efa', '#EF553B', '#00cc96', '#ab63fa', '#19d3f3', '#e763fa', '#fecb52', '#ffa15a', '#ff6692', '#b6e880'], color_discrete_map={}, orientation='v', barmode='relative', log_x=False, log_y=False, range_x=None, range_y=None, title=None, template='plotly', width=None, height=600)</ span >
957
957
</ code > </ dt >
958
958
< dd >
959
959
< section class ="desc "> < p > In a bar plot, each row of < code > data_frame</ code > is represented as a rectangular mark.</ p >
@@ -997,6 +997,8 @@ <h2 id="arguments">Arguments</h2>
997
997
< dd > (dict with string keys and values that are valid CSS-color strings, default < code > {}</ code > ) Used to override < code > color_discrete_sequence</ code > to assign a specific colors to marks corresponding with specific values. Keys in < code > color_discrete_map</ code > should be values in the column denoted by < code > color</ code > .</ dd >
998
998
< dt > < strong > < code > orientation</ code > </ strong > </ dt >
999
999
< dd > (string, one of < code > 'h'</ code > or < code > 'v'</ code > ) Default is < code > 'v'</ code > .</ dd >
1000
+ < dt > < strong > < code > barmode</ code > </ strong > </ dt >
1001
+ < dd > (string, one of < code > 'group'</ code > or < code > 'relative'</ code > . Default is < code > 'relative'</ code > ) In < code > 'relative'</ code > mode, bars are stacked above zero for positive values and below zero for negative values. In < code > 'group'</ code > mode, bars are placed beside each other.</ dd >
1000
1002
< dt > < strong > < code > log_x</ code > </ strong > </ dt >
1001
1003
< dd > (boolean, default < code > False</ code > ) If < code > True</ code > , the x-axis is log-scaled in cartesian coordinates.</ dd >
1002
1004
< dt > < strong > < code > log_y</ code > </ strong > </ dt >
@@ -1187,7 +1189,7 @@ <h2 id="returns">Returns</h2>
1187
1189
< p > A < a title ="plotly_express.ExpressFigure " href ="#plotly_express.ExpressFigure "> < code > ExpressFigure</ code > </ a > object.</ p > </ section >
1188
1190
</ dd >
1189
1191
< dt id ="plotly_express.histogram "> < code class ="name flex ">
1190
- < span > def < span class ="ident "> histogram</ span > </ span > (< span > data_frame, x=None, y=None, color=None, facet_row=None, facet_col=None, animation_frame=None, animation_group=None, category_orders={}, labels={}, color_discrete_sequence=['#636efa', '#EF553B', '#00cc96', '#ab63fa', '#19d3f3', '#e763fa', '#fecb52', '#ffa15a', '#ff6692', '#b6e880'], color_discrete_map={}, orientation='v', barmode='stack ', barnorm=None, histnorm=None, log_x=False, log_y=False, range_x=None, range_y=None, histfunc=None, cumulative=None, nbins=None, title=None, template='plotly', width=None, height=600)</ span >
1192
+ < span > def < span class ="ident "> histogram</ span > </ span > (< span > data_frame, x=None, y=None, color=None, facet_row=None, facet_col=None, animation_frame=None, animation_group=None, category_orders={}, labels={}, color_discrete_sequence=['#636efa', '#EF553B', '#00cc96', '#ab63fa', '#19d3f3', '#e763fa', '#fecb52', '#ffa15a', '#ff6692', '#b6e880'], color_discrete_map={}, orientation='v', barmode='relative ', barnorm=None, histnorm=None, log_x=False, log_y=False, range_x=None, range_y=None, histfunc=None, cumulative=None, nbins=None, title=None, template='plotly', width=None, height=600)</ span >
1191
1193
</ code > </ dt >
1192
1194
< dd >
1193
1195
< section class ="desc "> < p > In a histogram, rows of < code > data_frame</ code > are grouped together into a rectangular mark to
@@ -1366,7 +1368,8 @@ <h2 id="parameters">Parameters</h2>
1366
1368
'scatter3d', 'scattercarpet', 'scattergeo',
1367
1369
'scattergl', 'scattermapbox', 'scatterpolar',
1368
1370
'scatterpolargl', 'scatterternary', 'splom',
1369
- 'streamtube', 'surface', 'table', 'violin']< pre > < code > - All remaining properties are passed to the constructor of
1371
+ 'streamtube', 'sunburst', 'surface', 'table',
1372
+ 'violin', 'volume', 'waterfall']< pre > < code > - All remaining properties are passed to the constructor of
1370
1373
the specified trace type
1371
1374
1372
1375
(e.g. [{'type': 'scatter', ...}, {'type': 'bar, ...}])
@@ -1502,6 +1505,17 @@ <h2 id="parameters">Parameters</h2>
1502
1505
you can set `false` to disable. Colors provided
1503
1506
in the trace, using `marker.colors`, are never
1504
1507
extended.
1508
+ extendsunburstcolors
1509
+ If `true`, the sunburst slice colors (whether
1510
+ given by `sunburstcolorway` or inherited from
1511
+ `colorway`) will be extended to three times its
1512
+ original length by first repeating every color
1513
+ 20% lighter then each color 20% darker. This is
1514
+ intended to reduce the likelihood of reusing
1515
+ the same color when you have many slices, but
1516
+ you can set `false` to disable. Colors provided
1517
+ in the trace, using `marker.colors`, are never
1518
+ extended.
1505
1519
font
1506
1520
Sets the global font. Note that fonts used in
1507
1521
traces and other layout components inherit from
@@ -1653,6 +1667,12 @@ <h2 id="parameters">Parameters</h2>
1653
1667
like objects. In addition, some objects can be
1654
1668
hovered on but will not generate spikelines,
1655
1669
such as scatter fills.
1670
+ sunburstcolorway
1671
+ Sets the default sunburst slice colors.
1672
+ Defaults to the main `colorway` used for trace
1673
+ colors. If you specify a new list here it can
1674
+ still be extended with lighter and darker
1675
+ colors, see `extendsunburstcolors`.
1656
1676
template
1657
1677
Default attributes to be applied to the plot.
1658
1678
This should be a dict with format: `{'layout':
@@ -1742,6 +1762,20 @@ <h2 id="parameters">Parameters</h2>
1742
1762
another, you might need to set "opacity" to see
1743
1763
them multiple violins. Has no effect on traces
1744
1764
that have "width" set.
1765
+ waterfallgap
1766
+ Sets the gap (in plot fraction) between bars of
1767
+ adjacent location coordinates.
1768
+ waterfallgroupgap
1769
+ Sets the gap (in plot fraction) between bars of
1770
+ the same location coordinate.
1771
+ waterfallmode
1772
+ Determines how bars at the same location
1773
+ coordinate are displayed on the graph. With
1774
+ "group", the bars are plotted next to one
1775
+ another centered around the shared location.
1776
+ With "overlay", the bars are plotted over one
1777
+ another, you might need to an "opacity" to see
1778
+ multiple bars.
1745
1779
width
1746
1780
Sets the plot's width (in px).
1747
1781
xaxis
0 commit comments