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

Display min and max values on top of the trace as text, at the correct x positions #259

Open
r-jean-pierre opened this issue Mar 1, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@r-jean-pierre
Copy link

Describe the solution you'd like
If not already asked, can we have the min and max value text on top of the curve?" it seems that plotly do not have this option right out the box, but they suggest to the users to construct this feature with the add_annotation feature (https://plotly.com/python/text-and-annotations/)
and then, a possible result could be equivalent to:

image

How would it be defined in yaml?

type: custom:plotly-graph
entities:
  - entity: sensor.monthly_internet_energy
    show_extremas: true
@r-jean-pierre r-jean-pierre added the enhancement New feature or request label Mar 1, 2023
@dbuezas
Copy link
Owner

dbuezas commented Mar 1, 2023

wdyt about show_extrema or show_extremes or show_min_max_value ?

@r-jean-pierre
Copy link
Author

All of them are okay. As a lazy boy I did the concatenation of

show:
  extremas: true

from the apex-charts card into show_extremas

But now I just realized that's wrong extremas with the S, it's a latin word, so: 1 extremum, several extrema, so apex-charts writes it wrong :)

@dbuezas
Copy link
Owner

dbuezas commented Mar 2, 2023

exactly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants