OH4 Chart Page shows wrong data

Hello everybody,

I have an issue with the visualiztion of the data from my persistance.
I’m running OH 4.0.4 as a VM
Hardware: QNAP TS451+ 16 GB Ram, Intel Celeron J1900
VM: CPU Passthrough 2 cores and 4 GB Ram 250GB Storage (18GB in use) Debian 10 buster
Java: openjdk full version 17.0.8+.-LTS

I have got an Item (Strom_heute) which is upated every 5 minutes by a rule. Thsi item is configured as a Number:Energy.
This item shows the current consumption of electric energy of the present day.


This value will be set to 0 by a second rule every day at 0:00.
If I analyse this item via the integrated item analyzer of a lable list item I get 28.742 as last value.
This is also the value which I can find directly in the rrd4j file when I open it with the rrd4j inspector.


If I visualize the same item in a chart page as an aggregat series with the aggregation function “Last”, I receive 28.503 as last value.
I receive the same value if I change the aggregate function to “Maximum”.

Where is my mistake or why is the aggregate series showing the wrong (in my eyes) last value?

Christian Nordheider

Can you please share the code of your aggregate page?
Can you explain a little what you expect the page should look like in your opinion?

Maybe this is a thopic that might be interesting for you:

What is the last value of Nov 17th in the Inspector.

Code of my aggregate page:

config:
  chartType: month
  label: Stromverbrauch
slots:
  grid:
    - component: oh-chart-grid
      config:
        height: "450"
        show: false
        top: "100"
  legend:
    - component: oh-chart-legend
      config:
        orient: horizontal
        top: "50"
        type: scroll
  series:
    - component: oh-aggregate-series
      config:
        aggregationFunction: last
        dimension1: date
        gridIndex: 0
        item: Strom_heute
        name: Stromverbrauch
        transpose: false
        type: bar
        xAxisIndex: 0
        yAxisIndex: 0
        markLine:
          data:
            - type: average
  tooltip:
    - component: oh-chart-tooltip
      config:
        confine: true
  xAxis:
    - component: oh-category-axis
      config:
        categoryType: month
        gridIndex: 0
        monthFormat: short
        name: Tag
        nameGap: 30
        nameLocation: center
        weekdayFormat: short
  yAxis:
    - component: oh-value-axis
      config:
        gridIndex: 0
        name: kWh
  dataZoom: []
  toolbox:
    - component: oh-chart-toolbox
      config:
        show: true
        presetFeatures:
          - saveAsImage
          - restore
          - dataZoom
        left: Left

Last value in the inspector for Nov 17 is 21.053 the same as the analyzer.
The aggregation page shows 20.9