Vega-LiteTest Gallery

Advanced Calculations

Calculation of percentage of total using a window transform.

Calculation of difference from average using a window transform.

Calculation of difference from annual average using a window transform.

A scatterplot showing each movie in the database and the difference from the average movie rating (residual) calculated using a window transform.

Line chart showing ranks over time for thw World Cup 2018 Group F teams. Ranking is calculated using the window transform.

Waterfall chart of monthly profit and loss.

Using the lookup transform to combine data from two separate data sources that share a common key.

Alhough Vega-Lite supports only one scale per axes, one can create a parallel coordinate plot by folding variables, using `joinaggregate` to normalize their values and using ticks and rules to manually create axes.