vega / vega-lite

A concise grammar of interactive graphics, built on Vega.
https://vega.github.io/vega-lite/
BSD 3-Clause "New" or "Revised" License
4.68k stars 611 forks source link

Support the new Shape Mark Type in Vega 3 #1606

Closed kanitw closed 7 years ago

kanitw commented 8 years ago

I'm moving potential new extensions to VL from #1597 to here, so $1597 isn't too long. (We don't have to do any of these, it's just worth listing what's possible.)

Marks and Visual Encoding

  • Vega 3 includes a new shape mark type. Shape marks are similar in functionality to path marks. However, while path marks require a materialized SVG path string, shape marks are generated procedurally by passing a path-rendering function to the renderer. This allows drawing of shapes without passing through the intermediate representation of a path string, which can considerably improve rendering time when using a canvas renderer. For SVG renderers, the shape type generates an SVG path string (but at render time, not visual encoding time) to include in the SVG DOM.
  • [ ] support shape mark type
kanitw commented 7 years ago

This is already done in the geo branch.