Skip to content

percentTotal not shown as percentage #4368

Open

Description

@wesleimarinho

I`m using plotly 5.17.0.

Using the following code:

import plotly.graph_objects as go

fig = go.Figure()

fig.add_trace(go.Funnel(
    name='X',
    y=["A", "B", "C"],
    x=[40, 30, 20],
    texttemplate="%{value}<br>%{percentPrevious}<br>%{percentTotal}"))

fig.show()

It gives the following result:

image

My percentTotal is not shown like percentPrevious. Is this by design?

Activity

  1. self-assigned this
    on Jul 11, 2024
  2. removed their assignment
    on Aug 2, 2024
  3. ORITOMI commented on Oct 21, 2026

    @ORITOMI

    For information, this issue was traced to a typo in Plotly.js and fixed in plotly.js#8139, which has now been merged. This issue may be closed when a Plotly.py release will include this fix !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogbugsomething broken

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions