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

Tooltip: configure hideEmptySeries to only hide series with null values #4839

Open
msigurd opened this issue Nov 29, 2024 · 0 comments
Open
Labels
feature-request New feature or request

Comments

@msigurd
Copy link

msigurd commented Nov 29, 2024

Summary

I have a line chart with both 0.00 and null values.
Right now hideEmptySeries also hides the series when the value is 0.00. I don't want that.

API Changes

So it would be nice to have an option like this:

tooltip: {
  hideEmptySeries: {
    hideZero: false,
  }
}

Or maybe a new configuration:

tooltip: {
  hideSeriesWithValues: [null, undefined, 0],
}

Intended Use Case

It would be useful for when you have charts where 0 is an important value, but null is not.
In my case this would be used in a price chart.

@msigurd msigurd added the feature-request New feature or request label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant