vegawidget/virgo

Does Vega-Lite support self-linking only?

earowang opened this issue · 3 comments

Haven't seen any examples that link between different datasets with common keys.

You can in principle have a data key for each layer of a spec but you have to do manual lookups as transforms to get them to link, i.e by row_number or a key in the data. You can also specify many datasets in the top part of the spec (above any layers) and then do look ups within a layer.

A big sell for virgo would be able to get that working in a cleaner way and have more options for joining. Not sure how we would do that without getting into the JS side of things a bit. cc @ijlyttle for any thoughts.

I currently use data$values to pass data, but o make spec simpler and easier for the future, I should switch to use datasets. inline data values work fine unless named data source has performant run time.

Just add a lookup example to join multiple datasets here https://vega.github.io/vega-lite/examples/lookup.html