Styling of apex chart

Hi,

I’m fighting to get the last styling right.

image

  1. I would like to have a data label displaying the max value over the max bar.
  2. I would like to only display full hours like 11:00, 13:00, 17:00 on xaxis and can live with most recent is only populated after full hour.
  3. I would like to remove the second time “Curren Export” is displayed

Thanks,

type: custom:apexcharts-card
graph_span: 24h
apex_config:
  legend:
    show: false
  grid:
    show: false
  xaxis:
    labels:
      datetimeFormatter:
        hour: HH:MM
  tickAmount: 24
  plotOptions:
    bar:
      borderRadius: 4
      columnWidth: 50%
header:
  show: true
  floating: true
  standard_format: false
  title: Current Export
  show_states: true
  colorize_states: false
series:
  - entity: sensor.calc_current_export
    color: '#2B5A9C'
    type: column
    group_by:
      func: avg
      duration: 1h
    show:
      datalabels: false
      legend_value: false
yaxis:
  - show: false


1 Like