Skip to content

Commit de6761c

Browse files
committed
Range(label=...) for px.funnel
1 parent 192e0a8 commit de6761c

File tree

1 file changed

+7
-1
lines changed
  • packages/python/plotly/plotly/express

1 file changed

+7
-1
lines changed

packages/python/plotly/plotly/express/_core.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1607,7 +1607,13 @@ def build_dataframe(args, constructor):
16071607
if not wide_mode and (no_x != no_y):
16081608
for ax in ["x", "y"]:
16091609
if args.get(ax) is None:
1610-
args[ax] = index if index is not None else Range()
1610+
args[ax] = (
1611+
index
1612+
if index is not None
1613+
else Range(
1614+
label=_escape_col_name(columns, ax, [var_name, value_name])
1615+
)
1616+
)
16111617
if constructor == go.Bar:
16121618
missing_bar_dim = ax
16131619
else:

0 commit comments

Comments
 (0)