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

X-axis values duplicated for monthly bar chart when using format: MMM #768

Open
4 tasks done
oleg-d opened this issue Sep 5, 2024 · 2 comments
Open
4 tasks done
Labels
bug Something isn't working

Comments

@oleg-d
Copy link

oleg-d commented Sep 5, 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
The X-axis values on the chart are duplicated for a monthly bar chart when I am using the "format: MMM". If I don't use this format MMM then the ticks are not aligned with the bars so I want to use this.

Version of the card
Version: 2.1.2

To Reproduce
This is the configuration I used:

  - type: custom:apexcharts-card
    apex_config:
      chart:
        height: 205px
      tooltip:
        enabled: false
      xaxis:
        labels:
          format: MMM
    header:
      show: true
      title: Water usage monthly (m³)
    card_mod:
      style: |
        ha-card {
        margin-top: -0px;
        margin-bottom: -10px
        }
    graph_span: 6month
    span:
      start: month
      offset: '-5month'
    series:
      - entity: sensor.utility_water_monthly
        fill_raw: last
        type: column
        float_precision: 0
        unit: 
        group_by:
          func: max
          duration: 1month
        show:
          datalabels: true
    yaxis:
      - min: 0
        max: ~20
        decimals: 0
        apex_config:
          tickAmount: 4

Screenshots

Expected behavior
Using format: MMM on the x-axis the values should not be duplicated and display only once per month.

Desktop (please complete the following information):

  • Browser Firefox
  • Version 130.0
@oleg-d oleg-d added the bug Something isn't working label Sep 5, 2024
Copy link

github-actions bot commented Nov 5, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label Nov 5, 2024
@oleg-d
Copy link
Author

oleg-d commented Nov 5, 2024

not stale

@github-actions github-actions bot removed the Stale label Nov 6, 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