8000 Pie Chart `texttemplate` rendering incorrectly · Issue #121 · plotly/Kaleido · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Pie Chart texttemplate rendering incorrectly #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fritz-astronomer opened this issue Dec 8, 2021 · 1 comment
Closed

Pie Chart texttemplate rendering incorrectly #121

fritz-astronomer opened this issue Dec 8, 2021 · 1 comment
Labels
bug something broken P3 not needed for current cycle

Comments

@fritz-astronomer
Copy link
fritz-astronomer commented Dec 8, 2021

A Pie Chart with texttemplate inside labels does not appear to print correctly

Minimum Example:

vc = my_df.my_column.value_counts()
fig_av = px.pie(
    vc,
    names=vc.index,
    values=vc.values,
)
fig_av.update_traces(
    textposition='inside',
    texttemplate="%{label} (%{value} - %{percent:.0%f})",    <----
    textinfo="percent+label+value",
)
fig_av.write_image(..., engine="kaleido"))
fig_av.show()

In Jupyter / Plotly (correct):
image

The output PNG (incorrect)
image

If texttemplate is removed, the PNG (correct, enough)
image

@gvwilson gvwilson self-assigned this Jul 26, 2024
@gvwilson gvwilson removed their assignment Aug 3, 2024
@gvwilson gvwilson added bug something broken P3 not needed for current cycle labels Aug 14, 2024
@gvwilson
Copy link
Collaborator

I am closing this issue as I believe it is stale - if it's still relevant to your work, please try the latest release candidate of Kaleido (1.0.0rc13) and if the problem persist, we'll re-open the issue. Thanks - @gvwilson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P3 not needed for current cycle
Projects
None yet
Development

No branches or pull requests

2 participants
0