Currently, the vega-lite viewer requires the data key in the selected value. However, the Vega-Lite specification doesn't actually require it, and the datasets field is sometimes useful rather than data (especially when you have an individual dataset for each layer).
This PR proposes to relax the current spec of the vega-lite viewer and change it so that it can accept either of the data or datasets key.
Currently, the vega-lite viewer requires the
data
key in the selected value. However, the Vega-Lite specification doesn't actually require it, and thedatasets
field is sometimes useful rather thandata
(especially when you have an individual dataset for each layer).This PR proposes to relax the current spec of the vega-lite viewer and change it so that it can accept either of the
data
ordatasets
key.