Apex Chart - Columns in the center

Hello everybody,

I need some help again please.

I have a chart which looks like this:

I didn’t find a solution that the graph starts on the left side like this chart:

I tried to copy some graphs like this but it always puts the columns to the center. What I am missing?

Thanks in advance

type: custom:apexcharts-card
graph_span: 10d
cache: true
span:
  end: day
header:
  show: true
  show_states: true
  colorize_states: true
apex_config:
  plotOptions:
    bar:
      columnWidth: 130%
  chart:
    type: area
    height: 180
  legend:
    show: false
  dataLabels:
    background:
      enabled: false
    style:
      colors:
        - var(--primary-text-color)
    enabled: true
    distributed: true
  fill:
    type: fill
  grid:
    show: false
  yaxis:
    show: false
series:
  - entity: sensor.tagesverbrauch_haus
    type: column
    unit: kWh
    name: Tagessumme Verbrauch
    color: steelblue
    float_precision: 2
    group_by:
      func: max
      duration: 1d
    show:
      datalabels: true
  - entity: sensor.tagesproduktion_pv
    type: column
    name: Tagessumme PV
    color: orange
    float_precision: 2
    group_by:
      func: max
      duration: 1d
    show:
      datalabels: true
  - entity: sensor.tages_einspeisung
    type: column
    unit: kWh
    name: Tagessumme Einspeisung
    color: green
    float_precision: 2
    group_by:
      func: max
      duration: 1d
    show:
      datalabels: true
  - entity: sensor.tages_netzbezug
    type: column
    unit: kWh
    name: Tagessumme Netzbezug
    color: red
    float_precision: 2
    group_by:
      func: max
      duration: 1d
    show:
      datalabels: true
card_mod:
  style: |
    ha-card {
      padding: 3px 0px 0px !important;
    }

Try start: day…not sure if it will work as I donot have the data and also not sure what you mean with ‘in the center’ as your first picture shows the end: day one and how would that reflect ‘center’ ? If the seconds is good then why not use that config? Does the data exist? Maybe your recorder has a short history before purging?

Thanks for your help, but both solutions I already tried.
My goal is that the bars are moving to the y-axis. Right now they are in the center and there is left and right some space as you can see at the dates on the x-axis

The second picture is from the internet

Ah, then do you actually have data for those days? Try an ootb card or the history (menu). I mean, when you put graph_span to 2 days it looks fine I guess

The days are not the solution. I guess I will have to try it with another graph as you suggested - thanks for your support!

I donot understand… you provide little feedback on my questions other then it-does-not-work… difficult to help

Sorry - that wasn’t my intension. I don’t have data for these days so far, but even if I display less days or use other entities with enough datas it doesn’t work. I think apex chart is doing this when you are using more than one entity. I will try it with history card the next days and will report you.
Once again, sorry - I didn’t want to annoy you!

What do you mean? What do you see when you enter graph_span; 2…show things please, cannot guess

That’s what happens when I do graph_span: 2d

ah…that is more clear now and in this case you want it on the left too…sounds logical. I know of issues with the card on this topic, I remember people playing around with span a.o. but donot remember. All in all, better to search and (!) post in below as that is followed by more people, I just coïncidentially bumped into yours…and yes, the below one is huge

ApexCharts card - A highly customizable graph card - Share your Projects! / Dashboards & Frontend - Home Assistant Community

Did u solv it?

No, unfortunately not.