RomRider / apexcharts-card

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

Grid lines for x-axis don't work #654

Open OZ1SEJ opened 7 months ago

OZ1SEJ commented 7 months ago

Checklist

Describe the bug It is not possible to get vertical grid lines.

Version of the card Version: 2.0.4

To Reproduce This is the configuration I used:

type: custom:apexcharts-card
header:
  show: true
  title: Batteriniveau seneste 48 timer
  show_states: false
  colorize_states: false
series:
  - entity: sensor.vw_id_3_battery_level
    unit: '%'
apex_config:
  legend:
    show: false
  grid:
    show: true
    strokeDashArray: 0
    borderColor: rgb(80,80,80)
  yaxis:
    min: 0
    max: 100
    tickAmount: 5
  xaxis:
    tickAmount: 4
    lines:
      show: true
graph_span: 48h

Screenshots If applicable, add screenshots to help explain your problem.

billede

Expected behavior I expected there to be vertical grid lines.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context There seems to be a similar, known issue in Apex Charts v3.36.x, which seems to have been fixed i v3.37: Grid lines for x-axis don't work after update from 3.35.0 to 3.36.3 #3580

github-actions[bot] commented 5 months ago

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.

OZ1SEJ commented 5 months ago

This issue might be stale, but the problem persists.

SilverFoxA commented 5 months ago

+1

github-actions[bot] commented 3 months ago

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.

OZ1SEJ commented 3 months ago

Well, as long as the dependency isn't updated to ApexCharts v3.37, this problem persists.

github-actions[bot] commented 1 month ago

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.

OZ1SEJ commented 1 month ago

Well, the problem persists...

WouterJN commented 1 month ago

In your example tick ammount is also ignored for the X-axis, i have the same issue.