8000 add barmode option to bar plot by kaizeng · Pull Request #26 · plotly/plotly_express · GitHub
[go: up one dir, main page]

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

add barmode option to bar plot #26

Merged
merged 1 commit into from
Apr 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add barmode option to bar plot
  • Loading branch information
kaizeng committed Mar 26, 2019
commit 09f84f0dd53e288a33c99716b6d6bb5ddf52404f
3 changes: 2 additions & 1 deletion plotly_express/_chart_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def bar(
color_discrete_sequence=default_qualitative,
color_discrete_map={},
orientation="v",
barmode="relative",
log_x=False,
log_y=False,
range_x=None,
Expand All @@ -182,7 +183,7 @@ def bar(
args=locals(),
constructor=go.Bar,
trace_patch=dict(orientation=orientation, textposition="auto"),
layout_patch=dict(barmode="relative"),
layout_patch=dict(barmode=barmode),
)


Expand Down
0