Skip to content
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

Toggle off lines on the chart based on the data. #2481

Open
charlieAJC opened this issue Dec 3, 2023 · 3 comments
Open

Toggle off lines on the chart based on the data. #2481

charlieAJC opened this issue Dec 3, 2023 · 3 comments

Comments

@charlieAJC
Copy link

Is your feature request related to a problem? Please describe.
Here is a codesandbox of the chart.
https://codesandbox.io/p/sandbox/nivo-line-hide-line-4ttz26
I click the legend “computer 1” and “computer 4” to hide both lines where all values are 0.
But I hope these two lines hidden by default.
圖片

Describe the solution you'd like
A parameter that allows determining whether a line is displayed based on the data in the line chart.

@charlieAJC charlieAJC changed the title Hide lines on the chart based on the data. Toggle off lines on the chart based on the data. Dec 4, 2023
@adambrakhane
Copy link

I have the same request

Copy link

stale bot commented Mar 13, 2024

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@clcatalan
Copy link

hello @charlieAJC @adambrakhane i created a PR that would support your request #2540, could you kindly verify if this is what you need?

@stale stale bot removed the stale label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants