Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 6c817e1

Browse files
Merge pull request #26 from kaizeng/bar_plot_impr
add barmode option to bar plot
2 parents 81de0f5 + 09f84f0 commit 6c817e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plotly_express/_chart_types.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ def bar(
166166
color_discrete_sequence=default_qualitative,
167167
color_discrete_map={},
168168
orientation="v",
169+
barmode="relative",
169170
log_x=False,
170171
log_y=False,
171172
range_x=None,
@@ -182,7 +183,7 @@ def bar(
182183
args=locals(),
183184
constructor=go.Bar,
184185
trace_patch=dict(orientation=orientation, textposition="auto"),
185-
layout_patch=dict(barmode="relative"),
186+
layout_patch=dict(barmode=barmode),
186187
)
187188

188189

0 commit comments

Comments
 (0)