Unable to run perspective in observablehq notebook #265
Closed
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
Labels
No labels