Introduction of the project

The purpose of this project is to get some more practice developing on the web, specifically exporting plots made in Python + altair + vegalite to my github repository.

We can use a vegachart HTML tag like so:

<vegachart schema-url="/assets/json/my_chart.json" style="width: 100%"></vegachart>

The code I provided utilizes several design choices to create a visualization:

Encoding Types:

Color Scheme (Absent):

The code doesn’t explicitly define a color scheme. By default, Altair assigns a sequential color scheme to line charts. This means the line will likely be colored using a gradient, with colors transitioning along the line’s path. The specific default color scheme might vary depending on the Altair version you’re using.

Data Transformations:

The code performs a data transformation during DataFrame creation:

Justifications:

Additional Considerations:

Overall, the code effectively uses Altair to create a basic line chart that visualizes the relationship between year and total square footage. I can further enhance the visualization by employing additional design choices and data transformations.