Skip to content

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

@mcintyre94

Description

@mcintyre94

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"}
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions