Skip to content

[BUG]: go.Funnel textinfo="percent initial+value" shows value before percent. #7751

@yachika-yashu

Description

@yachika-yashu

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

![Bug screenshot] Image

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!

Metadata

Metadata

Assignees

Labels

bugsomething broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions