Skip to content

Graph with span: end: day 1rst value issue #110

@manu3b1

Description

@manu3b1

Hi,
I get strange value for the 1rst item of a hourly chart: it is always far too high compared to what is reported on larger chart, as if it contains the whole day:
Here the charts for 1 day, 2 days and 3 days about the same data:

1day

2days

3days

type: 'custom:apexcharts-card'
graph_span: 2d
header:
  title: Conso par Heure
  show: true
  show_states: true
  colorize_states: true
apex_config:
  legend:
    show: false
span:
  end: day
now:
  show: true
all_series_config:
  stroke_width: 2
  show:
    legend_value: false
series:
  - entity: sensor.linky_hc
    name: Linky HC
    type: column
    transform: return x / 1000;
    unit: kWh
    group_by:
      func: diff
      duration: 60min

Looks like it is linked to the “end: day” option mixed with "fun: diff":

span:
  end: day

Thx.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions