Is it possible to have changesets update the data property in Vega Editor?
If data streaming is used then clicking "Open in Vega Editor" opens the graph with the starting data, instead of opening it with the data that has been added. It would be really useful to be able to open an editor with the generated data and tweak the graph from there as well as having an easy to copy JSON version of the data. Would it be possible to make this open with the latest data?
Example site using the data streaming demo code: https://sleepy-shaw-380664.netlify.app
Let it load data for a few seconds, and then click the action menu and "Open in Vega Editor", you'll see that it has no data:
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {"name": "table"},
"width": 400,
"mark": "line",
"encoding": {
"x": {"field": "x", "type": "quantitative", "scale": {"zero": false}},
"y": {"field": "y", "type": "quantitative"},
"color": {"field": "category", "type": "nominal"}
}
}
We could try to send the state but I believe we cannot always serialize it. I'd certainly be open to a pull request.
I won't have the time to work on this. Do you want to work on it?