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.64k stars 604 forks source link

Vega 3 Migration MVP #1597

Closed kanitw closed 7 years ago

kanitw commented 7 years ago

Marks and Visual Encoding

kanitw commented 7 years ago

Signals and Event Processing

Nothing should matter! (Copied noted commented out -- click edit to see)

kanitw commented 7 years ago

View Layout

(moved to #1778)

kanitw commented 7 years ago

Axes and Legends

kanitw commented 7 years ago

Scales

kanitw commented 7 years ago

[@domoritz] Data Transforms

  • [ ] Vega 3 also introduces a number of new transforms, and modifications to previous transforms (including a dramatically improved "force" transform and improved hierarchical layout support). Web-based documentation is still forthcoming. However, most of these transforms are demonstrated in the example specifications included in this repo. In addition, the parameters accepted by each transform are documented via JSDoc comments in the source code. Please consult the appropriate Vega module repositories for further information.
  • [x] Vega 2.x transform "output" maps for determining output field names have been removed. Instead, the relevant transforms accept an "as" parameter that (depending on the transform type) takes either a single string or an ordered array of strings, each representing a desired output field name. See the documentation (including JSDoc source code comments) for individual transforms for more information.
  • [x] The "aggregate" transform no longer uses a "summarize" block for defining aggregation operations. In Vega 3, we instead use a flat set of (equal-length) arrays specifying the aggregation fields, operations and output field names:
  {
    "type": "aggregate",
    "groupby": ["category1", "category2"],
    "fields": ["measure1", "measure1", "measure2"],
    "ops": ["min", "max", "median"],
    "as": ["min1", "max1", "median2"]
  }
  • For the "lookup" transform, the "on", "onKey" and "keys" parameters have been renamed "from", "key", and "fields".
  • [x] The "filter" transform "test" parameter has been renamed "expr" for consistency with other transforms that take an expression parameter.
  • [x] The "formula" transform "field" parameter has been renamed "as".
kanitw commented 7 years ago

View API

(moved to #1780)

kanitw commented 7 years ago

All items here are either done or forked as their own issues in https://github.com/vega/vega-lite/milestone/9, so I'm closing this ;)