Skip to content

cnuernber/vegan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Apr 4, 2020
c560f7c · Apr 4, 2020

History

17 Commits
Nov 10, 2019
Apr 4, 2020
Nov 9, 2019
Apr 4, 2020
Apr 4, 2020
Nov 10, 2019
Apr 3, 2020
Nov 9, 2019
Nov 10, 2019
Nov 10, 2019
Nov 9, 2019
Nov 18, 2019
Apr 3, 2020
Apr 3, 2020

Repository files navigation

vegan

A nodejs clojurescript library designed to validate and render vega and vega-lite files.

Currently this does validation and server-side rendering.

Installation

  1. Install nodejs.
  2. I had to setup my node modules directory to be under my user home dir as it came preinstalled to a system directory which made the build process fail.
  3. make prod
  4. vegan is now installed in your modules. The odd thing is that it links back to this repository so you can never remove this repo...

Usage

Arguments:
-v, --validate fname - validate vega file indicated by fname.
-r --render src-file dst-file - render vega to a png, svg, jpg, or pdf file.
  • pdf output
  • png output
  • jpeg output
  • svg output

Next Steps

  • Command line needs improving. Use a real node cli library, add in support for at at least scaling chart to different sizes.
  • Get the module up on npm as an npm module. Then the install is npm -i just like anything else. Maybe then have a public API on it so people can use it in their thing.

License

Copyright © 2019 Chris Nuernberger

This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0.