Skip to content

An atom.io package for pre-viewing vega and vega-lite specs

License

Notifications You must be signed in to change notification settings

langley/vega-preview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vega-preview package

Render vega and vega-lite specs in atom

Current Features

  • Valid vega and vega-lite specs are displayed in the side panel, triggered by the 'ctrl-shift-v' keybinding.
  • If ctrl-shift-v is triggered on a "non" vega-spec file a blank "tab" is rendered.
  • data can come from a local data file and can be specified via a relative file://url. See the examples in the data directory.

Updated Features

  • Fixed the "relative data url" behavior so that it should work regardless of where the spec and data files are. The location is defined in terms of the location of spec file. For example: "data": {"url": "file://./stocks.csv", "format": {"type": "csv"}} will load data from the stocks.csv file located in the same directory as the vega-lite spec that contains it. (See the specs and data in examples directory of the project.)

Origin

  • The markdown and ascidoc preview plugins were inspiration for this project.
  • The code started from the atom projects...
    • active-editor-info example atom package
    • vega-desktop node package
  • Used the loophole package to adjust atom's Content Security Policy for the required packages

About

An atom.io package for pre-viewing vega and vega-lite specs

Resources

License

Stars

Watchers

Forks

Packages

No packages published