Elm-Vega Data Tests

Simple Data loading and generation

The following should all appear identical but were generated via different data functions.

Data from columns
Data from rows
Data from json
Data from csv file
Data from tsv file
Data from csv file using custom dsv with comma delimeter
Data from json file
Data named inline data row source
Data named inline data column source
Data named inline json source

Named datasets

Named data inline source
Named data url source
Named data but with no data specified

Loaded geo Files

Data from external topojson file. Should show London boroughs in multiple nominal colours with legend.

Programatically generated geoFiles

Data from inline geo file. Should be two coloured regions with legend.

Data transforms

Flattened data structures from arrays.
Folded data structures into key,value pairs.

Data imputation

Simple imputation as a transform adding missing values when a=3 and c=1 by inserting b=0
Simple imputation as a transform adding missing values when a=3 and c=1 by inserting b= mean of non-missing b values when c=1.
Simple imputation as a transform adding missing values when a=3 and c=1 by inserting b= mean of previous two b values when c=1.
Simple imputation as a channel adding missing values when a=3 and c=1 by inserting b=0
Simple imputation as a channel adding missing values when a=3 and c=1 by inserting b= mean of non-missing b values when c=1.
Simple imputation as a channel adding missing values when a=3 and c=1 by inserting b= mean of previous two b values when c=1.
Simple imputation as a channel inserting b=100 when a is 4
Simple imputation as a channel inserting b=100 when a is between 4 and less than 6

Data Sampling

Sample up to 200 points in right hand chart

Data Binning

Histogram based on pre-binned data

Sequence Generators

Sine curve sequence using default seq name
Sine curve sequence using custom seq name

Source