Skip to content

Load out of display range data points for accurate resample at start edge of graph. #337

Answered by dbuezas
RareKiwi asked this question in Q&A
Discussion options

You must be logged in to vote

I see, you are right.
Your idea does work:

type: custom:plotly-graph
hours_to_show: 2
title: Fetch more than visible example
entities:
  - entity: sensor.teich_temperature
    name: past
    time_offset: 15m
    opacity: .5
    line:
      width: 5
    filters:
      - map_x: x - 1000*60*15 # 15 minutes
      - store_var: past
  - entity: sensor.teich_temperature
    name: present
    opacity: .5
    line:
      width: 5
    filters:
      - filter: x > vars.past.xs.at(-1)
      - store_var: present
  - entity: sensor.teich_temperature
    name: result
    filters:
      - fn: |
          ({ vars }) => ({
            xs: vars.past.xs.concat(vars.present.xs),
            ys: vars.past.ys.…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@dbuezas
Comment options

Answer selected by RareKiwi
@RareKiwi
Comment options

@RareKiwi
Comment options

@dbuezas
Comment options

@dbuezas
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants