Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Sunburst can only have visibility toggled for the whole chart in a button's update method

Open
#5,353 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start by reproducing the behavior in Plotly 6.3.0 with Python 3.13 on Linux, focusing on a button's update method for Sunburst, then compare the same data in Treemap and Icicle views. Trace how index 0 and index 42 are interpreted; done means a selected sector or box and its children can be hidden without hiding the whole chart.

Written by the indexing model from the issue text.

Description

bug P2

Using a button to toggle series of data for plots makes sense.

My use case for Sunburst (and Treemap and Icicle views on the same data) could do with having the ability to selective toggle visibility at the box/sector level. I have several categories, one of which swamps the others but is less important, so being able to toggle its children off would allow more screen real estate to be available for other sectors without having to resort to drawing two separate charts, one with the swamp and one without.

I had a button update method toggling visibility working, but only index 0 had any effect, and that surprised me by toggling the whole chart. I had expected that, for example, toggling index 42 would turn off that sector and its children. I presume from this that the whole chart is seen internally a single series?

Could the button update method be specialized for Sunburst et al. to allow toggling individual boxes and their children?

I'm using Plotly 6.3.0 with Python 3.13 on Linux.

Dominant language
Python
Stars
18.8k
Forks
2.8k
Avg merge
13h 41m
Merged PRs (30d)
21

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from plotly/plotly.py

All issues in plotly/plotly.py

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.