Skip to main content
100%

VI4 - Identity as Color Hue

✓ Published0🌍 Public
JJamestiberiuseanes
Last edited Feb 17, 2016
Created on Feb 17, 2016

This example visualizes a small dataset of college football teams by encoding each team’s identity directly as a color hue. Five circles, one per team, are arranged horizontally, with each circle’s fill color matching a team-specific value from the dataset. The code uses D3.js (version 3.5.5) to select and append SVG circles, binding the data array that pairs team names with colors. The rendering approach relies on SVG attributes like `cx`, `cy`, `r`, and `fill`, with the fill determined by the second element of each data pair. The data source is a subset of a passing yards dataset, provided via gist.

AI-generated description

James Eanes - VI4 - Identity as Color Hue

This simple example (based on the D3 tutorial) maps each entry in the dataset to a color, where the dataset is a subset of the colleges in the passing yards dataset.

Similar vizzes