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

in_chart:false breaks yaxis scaling #780

Open
4 tasks done
aredon opened this issue Sep 25, 2024 · 0 comments
Open
4 tasks done

in_chart:false breaks yaxis scaling #780

aredon opened this issue Sep 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@aredon
Copy link

aredon commented Sep 25, 2024

Checklist

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

Describe the bug
Setting in_chart: false in any series breaks y-axis scaling.
Normal:
image
Broken:
image

Version of the card
Version: v2.1.2

To Reproduce
Change in_chart from true to false and remove the unneeded code on house_average_humidity.
This is the configuration I used:

type: custom:apexcharts-card
update_interval: 1min
apex_config:
  chart:
    height: 120px
  legend:
    show: false
  xaxis:
    tooltip:
      enabled: false
    labels:
      show: false
    axisBorder:
      show: false
    axisTicks:
      show: false
  grid:
    borderColor: rgba(0,0,0,0)
layout: minimal
experimental:
  color_threshold: true
show:
  last_updated: false
graph_span: 3weeks
span:
  end: day
header:
  show: true
  title: ' '
  show_states: true
  colorize_states: true
series:
  - entity: sensor.upstairs_humidity
    type: area
    stroke_width: 1
    show:
      extremas: false
      in_header: false
    color: dodgerblue
    opacity: 0.05
    yaxis_id: first
    statistics:
      type: max
      period: hour
    group_by:
      func: max
      duration: 1day
  - entity: sensor.basement_humidity
    type: area
    stroke_width: 1
    show:
      extremas: false
      in_header: false
    color: purple
    opacity: 0.05
    yaxis_id: first
    statistics:
      type: max
      period: hour
    group_by:
      func: max
      duration: 1day
  - entity: sensor.house_average_humidity
    type: line
    stroke_width: 0
    show:
      extremas: false
      in_chart: true
    color: skyblue
    opacity: 0.05
    yaxis_id: first
    group_by:
      func: last
      duration: 1day
  - entity: sensor.upstairs_average_temperature
    type: line
    show:
      extremas: true
    color: lightgreen
    opacity: 1
    yaxis_id: second
    statistics:
      type: max
      period: hour
    group_by:
      func: max
      duration: 1day
  - entity: sensor.basement_average_temperature
    type: line
    show:
      extremas: false
      in_header: false
    color: darkgreen
    opacity: 1
    yaxis_id: second
    statistics:
      type: max
      period: hour
    group_by:
      func: max
      duration: 1day
  - entity: sensor.outdoor_temperature
    type: line
    show:
      extremas: true
      header_color_threshold: true
      in_header: false
    color: orange
    opacity: 0.75
    yaxis_id: second
    group_by:
      func: max
      duration: 1day
    color_threshold:
      - value: 20
        color: dodgerblue
      - value: 40
        color: darkcyan
      - value: 60
        color: limegreen
      - value: 80
        color: orangered
      - value: 100
        color: darkred
yaxis:
  - id: first
    show: false
  - id: second
    opposite: true
    show: false

Expected behavior
For something that isn't displayed on the chart to have no impact on said chart.

Desktop (please complete the following information):

  • Firefox and Chrome

Additional context
Issue persists across devices.

@aredon aredon added the bug Something isn't working label Sep 25, 2024
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