Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to have changesets update the data property in Vega Editor? #719

Open
mcintyre94 opened this issue Jul 19, 2021 · 1 comment

Comments

@mcintyre94
Copy link

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"}
  }
}
@domoritz
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants