question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow spec without data source

See original GitHub issue
{
  "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
  "layer": [
    {
      "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}
        ]
      },
      "mark": "line",
      "encoding": {
        "x": {"field": "a", "type": "ordinal"},
        "y": {"field": "b", "type": "quantitative"}
      }
    },
    {"mark": "rule", "encoding": {"y": {"value": 50}}}
  ]
}

should render the rule layer and the rule layer should have no data source bound in Vega.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:15 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
jakevdpcommented, Apr 6, 2020

I think the empty default data is a good idea, though I’d mildly advocate for "data": { "values": [{}] } rather than "data": { "values": [1] }.

1reaction
domoritzcommented, Oct 27, 2020

I like that idea as an extension of this issue! Thanks for the suggestion @eflister.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to configure a DataSource: 'url' attribute is not specified ...
Just add : @SpringBootApplication(exclude = {DataSourceAutoConfiguration.class }) works for me. I was getting same error I tried with ...
Read more >
Class DataSource | Apps Script - Google Developers
updateSpec(spec)​​ Updates the data source specification and refreshes the data source objects linked with this data source with the new  ...
Read more >
Data sources should allow empty results without failing #16380
An optional allow_empty_result attribute on the data source would support many use cases where a datasource value is not explicitly required.
Read more >
Connecting to Multiple Data Sources Without Joining or ...
Answer · Connect to the primary data source as usual. · Create a Worksheet. · Create a new Worksheet. · Using the top...
Read more >
Save the details of an import or export operation as a ...
If the source object (table, query, form, or report) is open when you run the specification, Access exports only the data that is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found