RomRider / apexcharts-card

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

Chart header history becomes white. #801

Open Krolik1988 opened 1 month ago

Krolik1988 commented 1 month ago

Describe the bug If I use HTML color code, then header color become white and chart color applies.

Version of the card Version: 2.1.2

To Reproduce Try to use HTML color code in series block instead of name "yellow" . As Example: color: cb7425

This is the configuration I used:

type: custom:apexcharts-card
header:
  show: true
  title: XMR
  show_states: true
  colorize_states: true
update_interval: 2s
graph_span: 3d
experimental:
  brush: true
apex_config:
  tooltip:
    enabled: true
  yaxis:
    - shown: true
      labels:
        style:
          colors: white
          fontSize: 14px
      forceNiceScale: true
    - show: true
      opposite: true
      decimalsInFloat: 0
  xaxis:
    axisBorder:
      show: true
    labels:
      style:
        fontSize: 12px
    chart:
      height: auto
    gird:
      show: false
    legend:
      show: true
    dataLabels:
      enabled: true
    stroke:
      width: 1
series:
  - entity: sensor.xmr_balance
    type: line
    fill_raw: last
    float_precision: 6
    color: cb7425
    data_generator: ""
    group_by:
      duration: 10min
      func: avg
    show:
      in_brush: true
      in_chart: true
  - entity: sensor.xmr_hashrate
    type: line
    fill_raw: last
    data_generator: ""
    show:
      in_brush: false
      in_chart: false
  - entity: sensor.xmr_hashes
    type: line
    fill_raw: last
    data_generator: ""

Screenshots Screenshot from 2024-10-22 03-56-36 Screenshot from 2024-10-22 03-59-59

Expected behavior Header legend color changes color to chosen.

Desktop (please complete the following information):

Thanks you, and have a good day.