Join Slack
Powered by
This message was deleted.
# help
s
Slackbot
06/20/2023, 4:52 PM
This message was deleted.
❤️ 1
🤩 1
m
Mike Bostock
06/20/2023, 8:42 PM
To add to
@Mihael Ankerst
’s reply, I also suggest using our TypeScript type definitions. They are on by default on Observable, and it should “just work” if you’re using Plot in VS Code. The
x
property you mention is defined here:
https://github.com/observablehq/plot/blob/5e313d9a3c4bb8158bf5fa4d1286386282c1faa3/src/plot.d.ts#L151-L161
It’s a ScaleOptions object:
https://github.com/observablehq/plot/blob/5e313d9a3c4bb8158bf5fa4d1286386282c1faa3/src/scales.d.ts#L344
Which extends ScaleDefaults:
https://github.com/observablehq/plot/blob/5e313d9a3c4bb8158bf5fa4d1286386282c1faa3/src/scales.d.ts#L231
Hope this helps!
Open in Slack
Previous
Next