plot icon indicating copy to clipboard operation
plot copied to clipboard

Vue example

Open jparish3 opened this issue 3 years ago • 1 comments

I added @observablehq/plot to vue.config.js & the example :Plot.rectY(athletes, Plot.binX({y: "count"}, {x: "weight", fill: "sex"})).plot() appears to read the data, but cannot figure out how to render following this following this codebox example. It would be helpful to have a Vue example like React one. Thanks

jparish3 avatar Apr 16 '22 21:04 jparish3

Yes.

We could also do:

  • vite (this repo is using vite)
  • astro (see https://github.com/withastro/astro/issues/2451#issuecomment-1039139298)
  • quarto (there is a straightforward example on their home page)
  • the command line: https://github.com/Fil/plot-cli

see also #848

Fil avatar Apr 18 '22 09:04 Fil

+1 for Astro example

joakimnl avatar Nov 17 '22 12:11 joakimnl

There's now a Vue example in the main "Getting started" docs: https://observablehq.com/plot/getting-started#plot-in-vue

tophtucker avatar Apr 28 '23 02:04 tophtucker