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

Support naming data sources with only values #3806

Closed
domoritz opened this issue May 24, 2018 · 0 comments
Closed

Support naming data sources with only values #3806

domoritz opened this issue May 24, 2018 · 0 comments

Comments

@domoritz
Copy link
Member

domoritz commented May 24, 2018

This is useful when you wanna have a predictable (and stable) name.

{
  "$schema": "https://vega.github.io/schema/vega-lite/v2.json",
  "description": "A simple bar chart with embedded data.",
  "data": {
    "values": [
      {"a": "A","b": 28}, {"a": "B","b": 55}, {"a": "C","b": 43},
      {"a": "D","b": 91}, {"a": "E","b": 81}, {"a": "F","b": 53},
      {"a": "G","b": 19}, {"a": "H","b": 87}, {"a": "I","b": 52}
    ],
    "name": "source"
  },
  "mark": "bar",
  "encoding": {
    "x": {"field": "a", "type": "ordinal"},
    "y": {"field": "b", "type": "quantitative"}
  }
}

Same for datasets with a source URL.

@kanitw kanitw added this to the 2.x Data & Transforms Patches milestone May 24, 2018
domoritz added a commit that referenced this issue May 24, 2018
domoritz added a commit that referenced this issue May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants