Skip to content

"median" window reducer stopped working in v0.6.7 #1690

Closed
@leoluk

Description

@leoluk

As of plot v0.6.7, this code no longer works:

Plot.plot({
  marks: [
    Plot.line(
      data,
      Plot.windowY(
        {
          k: 4,
          anchor: "end",
          reduce: "median"
        },
        {
          x: "date",
          y: "cat"
        }
      )
    )
  ]
})

mean works while median, variance and others don't.

Example notebook: https://observablehq.com/d/1a581f1609384865

Perhaps I'm holding it wrong, but the docs look borked too:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn’t working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions