Vega-Lite for quick online charts

Posted to Software  |  Tags:  |  Nathan Yau

A few years ago, Trifacta released Vega, a “visualization grammar” that lets you create charts with a JSON file. But you still have to declare a lot of things to make something standard like a bar chart. Vega-Lite, recently released by the University Washington Interactive Data Lab, lets you take advantage of Vega but with much fewer specifications.

As you might have guessed, Vega-Lite is built on top of Vega, a visualization grammar built using D3. Vega and D3 provide a lot of flexibility for custom visualization designs; however, that power comes with a cost. With Vega or D3, a basic bar chart requires dozens of lines of code and specification of low-level components such as scales and axes. In contrast, Vega-Lite is a higher-level language that simplifies the creation of common charts. In Vega-Lite, a bar chart is simply an encoding with two fields.

That sounds good to me. Gonna give it a shot.

Favorites

The Best Data Visualization Projects of 2014

It’s always tough to pick my favorite visualization projects. Nevertheless, I gave it a go.

Divorce Rates for Different Groups

We know when people usually get married. We know who never marries. Finally, it’s time to look at the other side: divorce and remarriage.

Pizza Place Geography

Most of the major pizza chains are within a 5-mile radius of where I live, so I have my pick, …

Graphical perception – learn the fundamentals first

Before you dive into the advanced stuff – like just about everything in your life – you have to learn the fundamentals before you know when you can break the rules.