RomRider / apexcharts-card

📈 A Lovelace card to display advanced graphs and charts based on ApexChartsJS for Home Assistant
MIT License
1.08k stars 75 forks source link

Repeated values on Y-axis column chart type #715

Closed Tamadite closed 1 week ago

Tamadite commented 1 month ago

Checklist

Describe the bug When using the bars chart type, the Y-axis shows repeated piled values and so bars with same values show different sizes.

Version of the card Version: 2.0.4

To Reproduce This is the configuration I used:

type: custom:apexcharts-card
update_interval: 12h
graph_span: 7d
header:
  show: true
  show_states: true
  title: 7-day consumption
series:
  - entity: sensor.esp_p1reader_momentary_active_import
    type: column
    group_by:
      func: avg
      duration: 24h
    show:
      datalabels: true

Screenshots

image

Expected behavior To show increasing consecutive values on the Y-axis and bars with equal value having same size.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

RomRider commented 1 week ago

That is because there isn't enough decimals displayed on the Y axis. You can change that behaviour using apex_config. This is apexcharts.js' default behavior there's nothing I can do about it.