a2-DataVis-5ways

Assignment 2 - Data Visualization, 5 Ways
Claire Desrosiers

Link: https://cdes404.github.io/a2-DataVis-5ways/

1. d3.js

I loaded the CSV file using d3.csv(), mapped the flipper length and body mass to x and y axes, and set color and size scales for species and bill length.

alt text


2. p5.js

I used p5.js to draw circles for each penguin, scaling the x and y positions manually and mapping color and size to the data.

alt text


3. Altair (Python)

I created the scatterplot using alt.Chart() with .mark_circle(), encoding x, y, color, and size directly from the dataset.

alt text


4. Plotly (Python)

I used px.scatter() to map flipper length vs. body mass, setting color to species and size to bill length, with opacity set to 0.8.

alt text


5. Vega-Lite

I defined a JSON specification for the scatterplot, encoding x, y, color, size, and opacity.

alt text


Technical Achievements


Design Achievements