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.

"data" outside top-level specification

See original GitHub issue

If I load local data on the top-level of a spec it works fine, but if “data” appears somewhere else it doesn’t work. For example this works

{
  "$schema": "https://vega.github.io/schema/vega-lite/v3.json",
  "data": {
    "url": "myfile.csv"
    },
    "Rest of specification"
}

While this doesn’t

{
  "$schema": "https://vega.github.io/schema/vega-lite/v3.json",
  "layer": [
    {
      "data": {
      "url": "myfile.csv"
      },
      "Rest of specification"
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Corvincecommented, Mar 18, 2019

Hey there, after quite some delay I just wanted to say thank you! Both locally hosted data and “layered” data work like a charm!

1reaction
RandomFractalscommented, Feb 25, 2019

@Corvince this should now work for all local/relative data references in vega spec. I am aware of.

Please review this patch update code here if you’d like: https://github.com/RandomFractals/vscode-vega-viewer/commit/8d49d4e309892a0aea9b19379dec9ae99b0ec591#diff-5c245625569aa17bdc70402dfc2e4504

and let me know if there are any other edge cases I’ve missed for this feature request.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Temporary Specification for gTLD Registration Data - ICANN
This Temporary Specification for gTLD Registration Data (Temporary Specification) establishes temporary requirements to allow ICANN and gTLD registry ...
Read more >
Rule Specification Properties - Informatica Documentation
To test a rule specification or a rule set, enter sample data to the fields in the test area. You can cut, copy,...
Read more >
Hypervisor Specifications | Microsoft Learn
The Hyper-V Hypervisor Top-Level Functional Specification (TLFS) describes the hypervisor's externally visible behavior to other operating ...
Read more >
draft-ietf-justfont-toplevel-05 - IETF Datatracker
This top-level type indicates that the content specifies font data. Under this top-level type, different representation formats of fonts may be registered.
Read more >
ISO/IEC 21838-1:2021 - Information technology — Top-level ...
This document specifies required characteristics of a domain-neutral top-level ontology (TLO) that can be used in tandem with domain ontologies at lower ...
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