gicentre/elm-vega/2.2.1

NOTE: this package is not compatible with Elm 0.19.1

Vega

This module will allow you to create a full Vega specification in Elm. A specification is stored as a JSON object and contains sufficient declarative detail to specify the graphical output. While this a 'pure' Elm library, to create the graphical output you probably want to send a Vega specification generated by toVega via a port to some JavaScript that invokes the Vega runtime.

Creating A Vega Specification

Future development of this package will allow full Vega specifications to be provided. Currently, only a very limited set of Vega options detailed below, is provided for testing purposes only.

toVega : List ( VProperty, Spec ) -> Spec

Convert a list of Vega specifications into a single JSON object that may be passed to Vega for graphics generation. Currently this is a placeholder only and is not available for use.

Top-level Vega properties. These are for testing purposes only prior to full Vega spec generatation being made available.