Skip to content

can Plot select a window's beginning and ending data? #635

Answered by Fil
tx0c asked this question in Q&A
Discussion options

You must be logged in to vote

you could try and use

Plot.link(stats, Plot.map({
        y1: Plot.window({ k: 4, anchor: "end", reduce: d => d[0] }),
        x1: Plot.window({ k: 4, anchor: "end", reduce: d => d[0] }),
      }, {
        x1: "month",
        x2: "month",
        y1: "num_users_m3a",
        y2: "num_users",
        stroke: "red",
      }))

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Fil
Comment options

Fil Dec 30, 2021
Collaborator

@mbostock
Comment options

@tx0c
Comment options

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