Plot 'toggle data series' callback
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- data-visualization
Research direction
Start at the add_line_series() entry point and review how is_item_shown(), get_item_configuration(), and plot legend interactions expose series visibility. Determine how an optional callback would observe toggles and what callback data is needed, then verify that the y-axis use case can distinguish shown and hidden series.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem? Please describe.
I have a small app that reads data from 5 sensors, and a plot that reads the maximum and minimum outputs from said sensors to automatically updates the y-axis limits to fit all the data neatly.
This works, but I often only care about one of the sensors, so I toggle the other 4 off by clicking them on the plot legend.
The only issue I have here is that (as far as I could find looking through the properties of data series and plot legends) there is no real way of detecting if a data series is toggled on/off.
This means I can't have my y-axis limit controller ignore the series I have toggled off to focus on the sensor I care about.
Describe the solution you'd like
I would love an optional callback: Callable =None argument for add_line_series() that could allow me to specify behaviour when the series is toggled on or off through the legend.
Describe alternatives you've considered
I have tried is_item_shown() and get_item_configuration() but I have not found any property or callback I can read to check if the data series is toggled on/off.
For now I might add some checkboxes to hide the unwanted data but it would be nice to have it built in to the plot.
Additional context
Thanks!
- Dominant language
- C++
- Stars
- 15.7k
- Forks
- 790
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from hoffstadt/DearPyGui
-
Plot series data silently truncated to float32 when passed as numpy array (should be float64/double)Openstate: pending type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
state: pending type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
state: pending type: improvement
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
state: pending type: bug
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
state: pending type: improvement
Difficulty 5/5 Over a week Newbie friendliness 25/100
All issues in hoffstadt/DearPyGui
Similar issues
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaPossibly taken @lijy91 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
libnativeapi/nativeapi#53 · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
bot-triaged module: correctness (silent) module: fft triage review
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
patrickjquinn/Marathon-Shell#84 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 80/100
Maintainers usually reply within 1 day