-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[BUG]: go.Funnel textinfo="percent initial+value" shows value before percent. #5551
Copy link
Copy link
Open
Labels
bugsomething brokensomething broken
Description
Description
go.Funnel with textinfo="percent initial+value" displays value before percent (e.g., "700 70.0%"), but should show percent first per docs (e.g., "70.0% 700").
Screenshots/Video
Steps to reproduce
Using Plotly 5.24.1
import plotly.graph_objects as go
import pandas as pd
platform_funnel = pd.DataFrame({
'platform': ['Android']*3,
'stage': ['Awareness', 'Interest', 'Action'],
'users':
})
fig = go.Figure()
subset = platform_funnel
fig.add_trace(go.Funnel(
y=subset["stage"],
x=subset["users"],
textinfo="percent initial+value"
))
fig.show()Actual: "1000 100.0%", "700 70.0%", "400 40.0%" (value first)
Expected: "100.0% 1000", "70.0% 700", "40.0% 400" (percent first,).
Notes
- Environment: Jupyter, Colab, VSCode
- Confirmed no duplicates via search "funnel textinfo order".
- Workaround:
texttemplate="%{percentInitial:.1f}<br>%{value}", textinfo="text". - Happy to investigate/fix if confirmed!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugsomething brokensomething broken
