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

"fill: tonexty" broken when "show_value" is used #87

Closed
dbuezas opened this issue Oct 27, 2022 · 5 comments
Closed

"fill: tonexty" broken when "show_value" is used #87

dbuezas opened this issue Oct 27, 2022 · 5 comments

Comments

@dbuezas
Copy link
Owner

dbuezas commented Oct 27, 2022

adding fill: tonexty at the same level as the entity works here and links with the previous entity in the yaml list. Warning: AFAICT it links to the previous one that is enabled. If you disable it in the legend then it links to the previous one and so on.

It makes me crazy... i can do it outside HA, but not inside...
Here is one of my example:

  - entity: sensor.ths_fridge_humidity
      name: φ[%] (max)
      fill: none
      line:
        color: rgba(143, 86, 164, 0.6)
        width: 1
      statistic: max
      period: 1day
      showlegend: true
      
    - entity: sensor.ths_fridge_humidity
      fill: tonexty
      name: φ[%] (min)
      line:
        color: rgba(143, 86, 164, 0.6)
        width: 1
      statistic: min
      period: 1day
      showlegend: true
      
    - entity: sensor.ths_fridge_humidity
      fill: none
      name: φ[%] (mean)
      line:
        color: rgba(143, 86, 164, 1.0)
      statistic: mean
      period: 4hour`

The result:
2022-10-27 11_16_01-YAML Dashboard – Home Assistant
I think I was exhaustive in trying different combinations of fill, order of entities, but I get similar results....

Originally posted by @r-jean-pierre in #75 (reply in thread)

@r-jean-pierre
Copy link

Without show_value=true on both traces used to fill the band:

2022-10-27 15_16_54-YAML Dashboard – Home Assistant

@dbuezas
Copy link
Owner Author

dbuezas commented Oct 27, 2022

Thanks for the confirmation.
Tip:

defaults:
  entity:
    texttemplate: "%{y:.2f}" # will only show 2 decimals of the value
    show_value: true 

See more here: https://plotly.com/javascript/reference/pie/#pie-texttemplate

@dbuezas dbuezas closed this as completed Oct 27, 2022
@dbuezas
Copy link
Owner Author

dbuezas commented Oct 27, 2022

By the way, that color palette looks so nice! Can I use that screenshot in the main page? (ideally after limiting to 2 decimals 😎 )

@dbuezas
Copy link
Owner Author

dbuezas commented Oct 27, 2022

Also, I'm sure others will too like to see your yaml posted here:
#81 (comment)

@r-jean-pierre
Copy link

Here is the picture:
2022-10-27 19_34_33-YAML Dashboard – Home Assistant

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

2 participants