observablehq / vega

Convenience methods for using Vega and Vega-Lite in Observable.
https://observablehq.com
42 stars 7 forks source link

Vega wrapper #3

Closed domoritz closed 6 years ago

domoritz commented 6 years ago

It would be nice to have a wrapper for pure Vega as well. Would it make more sense to have a separate repo or could this be combined with the Vega-Lite wrapper?

mbostock commented 6 years ago

I think if you’re not using Vega-Lite, then you’d prefer to avoid loading it, so I think a separate npm package would make sense. They could certainly live in the same GitHub repository (monorepo), though.

In the long run, a convenience method built-in to Vega and Vega-Lite would ideally subsume the need for an Observable wrapper. 😁

domoritz commented 6 years ago

We do have vega-embed as a convenience wrapper but it does expect an element to be passed in. It does provide some other cool functionality like automatically switching between Vega and Vega-Lite and links to the source and the editor.