Skip to content

How to handle missing data with a scatter plot? #443

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

You must be logged in to vote

I see. Try this instead of the resample.
I should add an "align" filter for these use cases

- entity: sensor.gas_meter_day
    ...
    fn: |-
      $fn ({ ys, vars }) => {
        let i = -1;
        vars.gas = vars.xs.map((axis_x)=>{
            while (xs[i+1] <= axis_x && i<xs.length) i++;
            return ys[i];
        })
      }

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by caiusseverus
@caiusseverus
Comment options

@dbuezas
Comment options

@caiusseverus
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