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

Hide serie in legend completely #74

Closed
tomlevels opened this issue Feb 10, 2021 · 5 comments
Closed

Hide serie in legend completely #74

tomlevels opened this issue Feb 10, 2021 · 5 comments
Labels

Comments

@tomlevels
Copy link

tomlevels commented Feb 10, 2021

There already is an option to hide the value of a serie in the legend, but it would be nice to completely hide it (so the serie is visible in the chart, but not in the legend). I could use this since I have a 0-value sensor to emphasize the 0 value on the y-axis.

For a 0-value, I could use the following:

legend:
  showForZeroSeries: false

But for any other fixed sensor that would not work

@tomlevels tomlevels added the feature-request New feature or request label Feb 10, 2021
@RomRider
Copy link
Owner

RomRider commented Feb 10, 2021

That is not a feature of the library I use. But I can probably make something happen to highlight the 0 line. Seems like a recurring request.
In the meantime, I believe, you can use https://apexcharts.com/docs/options/annotations/ on the xaxis to achieve that (which is how I'd implement it as part of the card)

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label Mar 13, 2021
@github-actions
Copy link

This issue was closed because it has been stalled for 10 days with no activity.

@luxuwin
Copy link

luxuwin commented Aug 16, 2023

I think it will still be a useful feature, given legend can be duplicated with states in the header.

@RomRider RomRider reopened this Jul 9, 2024
github-actions bot pushed a commit that referenced this issue Jul 9, 2024
## [2.1.0-dev.4](v2.1.0-dev.3...v2.1.0-dev.4) (2024-07-09)

### Features

* **series:** hide specific serie in legend with `in_legend: false` ([12cb893](12cb893)), closes [#74](#74)
* **series:** Support for stack group of columns ([2935b4e](2935b4e)), closes [#673](#673) [#550](#550)
Copy link

github-actions bot commented Jul 9, 2024

🎉 This issue has been resolved in version 2.1.0-dev.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this issue Jul 9, 2024
## [2.1.0](v2.0.4...v2.1.0) (2024-07-09)

### Features

* Add change type for statistics ([#555](#555)) ([608fbe5](608fbe5)), closes [#552](#552)
* **locales:** Support for new locales ([2fca527](2fca527))
* **series:** Direct support for dashed lines ([29aad77](29aad77)), closes [#413](#413)
* **series:** hide specific serie in legend with `in_legend: false` ([12cb893](12cb893)), closes [#74](#74)
* **series:** support for `monotoneCubic` curves ([998cb99](998cb99))
* **series:** Support for stack group of columns ([2935b4e](2935b4e)), closes [#673](#673) [#550](#550)
* **statistics:** add weekly statistics period ([#680](#680)) ([e923126](e923126))
* support for server time ([55c8f97](55c8f97)), closes [#709](#709) [#579](#579)

### Bug Fixes

* `extremas` with `time_delta` would generate wrong results ([f7ab3e8](f7ab3e8)), closes [#713](#713)
* display was wrong when using server time + serie offset ([84357f9](84357f9)), closes [#579](#579)
* **series:** fix `in_legend` for apexcharts.js v3.50.0 ([221b0a5](221b0a5))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants