Data Visualization with Vega-Lite and Altair
Dominik Moritz @domoritz
- 1
Interactive Data Lab @uwdata University of Washington
With many collaborators: Kanit Wongsuphasawat Arvind Satyanarayan Jeffrey Heer Jake VanderPlas
… and many more
Data Visualization with Vega-Lite and Altair With many - - PowerPoint PPT Presentation
Data Visualization with Vega-Lite and Altair With many collaborators: Dominik Moritz @domoritz Kanit Wongsuphasawat Arvind Satyanarayan Jeffrey Heer Interactive Data Lab @uwdata Jake VanderPlas University of Washington and many more
Dominik Moritz @domoritz
Interactive Data Lab @uwdata University of Washington
With many collaborators: Kanit Wongsuphasawat Arvind Satyanarayan Jeffrey Heer Jake VanderPlas
… and many more
2
3
(specify the what, now the how)
{. "data": {"url": "data/iris.json"}, "mark": "point", "encoding": { "x": { "field": "petalLength", "type": "quantitative"}, "y": { "field": "sepalWidth", "type": "quantitative"}, "color": { "field": "species", "type": "nominal"} } . } .
{. "data": {"url": "data/iris.json"}, "mark": "point", "encoding": { "x": { "field": "petalLength", "type": "quantitative"}, "y": { "field": "sepalWidth", "type": "quantitative"}, "color": { "field": "species", "type": "nominal"} } . } .
{. "data": {"url": "data/iris.json"}, "mark": "point", "encoding": { "x": { "field": "petalLength", "type": "quantitative"}, "y": { "field": "sepalWidth", "type": "quantitative"}, "color": { "field": "species", "type": "nominal"} } . } .
{. "data": {"url": "data/iris.json"}, "mark": "point", "encoding": { "x": { "field": "petalLength", "type": "quantitative"}, "y": { "field": "sepalWidth", "type": "quantitative"}, "color": { "field": "species", "type": "nominal"} } . } .
Histogram Multi-series Line Chart Stripplot Slope Graph Binned Scatterplot Area Chart
Scatterplot Matrix Concatenated & Layered View Faceted View
Indexed Chart Focus+Context Cross-filtering
Indexed Chart Focus+Context Cross-filtering
import altair as alt from vega_datasets import data
import altair as alt from vega_datasets import data iris = data.iris()
import altair as alt from vega_datasets import data iris = data.iris() alt.Chart(iris).mark_point().encode( x='petalLength', y='sepalLength', color='species' )
import altair as alt from vega_datasets import data iris = data.iris() alt.Chart(iris).mark_point().encode( x='petalLength', y='sepalLength', color='species', row='species' )
import altair as alt from vega_datasets import data iris = data.iris() alt.Chart(iris).mark_point().encode( x='petalLength', y='sepalLength', color='species' ).interactive()
import altair as alt from vega_datasets import data iris = data.iris() alt.Chart(iris).mark_point().encode( x='petalLength', y='sepalLength', color='species' ).interactive()
And many others… used by