RomRider / apexcharts-card

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

`Markers: colors:` value breaks cards when number of entity increases #646

Closed AleXSR700 closed 4 months ago

AleXSR700 commented 9 months ago

Checklist

Describe the bug When the number of displayed entities increases above a certain number, the setting

markers:
  colors: xxx

can lead to an empty chart, depending on what is selected as color.

In my tests, the value colors: "####" works for around 4-5 entities. Afterwards, colors: rgba(0,0,0,0) works for around 10 entities. After that, only deleting the entire colors option seemed to work. Note, that stating the color as rgb(0,0,0) did not work. It had to be as rgba.

Version of the card Version: 2.0.4

To Reproduce This is the configuration I used:

Note, that I repeated the humidity filter simply to create many entities fast and allow anybody to reproduce the problem with any kind of entity they have e.g. 10+ sensors of (usually temperature or humidity or similar).

type: custom:auto-entities
filter:
  include:
    - entity_id: '*humidity*'
      options:
        show:
          in_brush: true
    - entity_id: '*humidity*'
      options:
        show:
          in_brush: true          
  exclude: []
card:
  type: custom:apexcharts-card
  header:
    show: true
    title: ApexCharts-Card
    show_states: true
    colorize_states: true
  experimental:
    brush: true
  brush:
    selection_span: 60min
  apex_config:
    markers:
      size: MARKER_SIZE
      strokeWidth: 1
      fillOpacity: 1
      colors: rgba(0,0,0,1)

Screenshots As can be seen, the brush is always populated, i.e. data is available. Graph shows all data if colors parameter is deleted.

image

Expected behavior Marker color should always work, no matter which value you specify and whether you use hex, rgb or plain html color name.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

github-actions[bot] commented 7 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.

AleXSR700 commented 7 months ago

Still requesting help.

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.

github-actions[bot] commented 4 months ago

This issue was closed because it has been stalled for 10 days with no activity.

AleXSR700 commented 4 months ago

bump