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

if you use "extremas" together with "invert" the value is shown directly ON the bar, not below #863

Open
imLeeat opened this issue Feb 9, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@imLeeat
Copy link

imLeeat commented Feb 9, 2025

Checklist

  • [ X] I updated the card to the latest version available
  • [ X] I cleared the cache of my browser
  • [ X] I verified that I'm really running the lastest version in my browser console
  • [ X] I checked if there is another issue opened with the same problem

Describe the bug

usually the max or min value is shown above the bar, but if you use

 show:
      extremas: true

together with

...
invert: true
...

then the min or max value is shown directly ON the bar

Version of the card
Version: 2.1.2

To Reproduce
This is the configuration I used:

``
type: custom:apexcharts-card
update_interval: 1d
cache: false
show:
loading: true
last_updated: true
header:
show: true
title: plus and minus Max of the last 7days
show_states: false
graph_span: 7d
series:

  • entity: sensor.powerplus
    offset: -1day
    type: column
    name: powerplus
    color: rgb(255, 215, 0)
    opacity: 0.9
    group_by:
    func: max
    duration: 1d
    statistics:
    type: state
    period: day
    show:
    extremas: true
  • entity: sensor.powerminus
    offset: -1day
    invert: true
    type: column
    name: powerminus
    color: rgb(255, 69, 0)
    opacity: 0.9
    group_by:
    func: max
    duration: 1d
    statistics:
    type: state
    period: day
    show:
    extremas: true
    ``

Screenshots

Image

Expected behavior
if you use "inverted" or have values below zero, the valuebox should be shown below the bar, not ON the bar

@imLeeat imLeeat added the bug Something isn't working label Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant