Skip to content

Unable to run perspective in observablehq notebook #265

Closed
@akansal1

Description

I am trying to run perspective in observablehq notebook, but I am not able to achieve anything.

perspective = require("https://unpkg.com/@jpmorganchase/perspective-examples@0.2.0-beta.3/build/perspective.js")
worker=perspective.worker()
table=worker.table(data)

data Input

data = [
    { x: 1, y: "a", z: true },
    { x: 2, y: "b", z: false },
    { x: 3, y: "c", z: true },
    { x: 4, y: "d", z: false }
]

output

  _worker: WebWorker {_worker: Worker}
  _name: "0.9493787914092462" //Number keeps on changing everytime 

thanks

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions