Lego Colors Dataset
This example visualizes the Lego Colors Dataset, displaying the first CSV record’s properties—ID, name, RGB value, and transparency—as formatted JSON in a large, readable pre block. It uses plain JavaScript to import and parse the CSV via a bundled data loader, then renders the parsed object with `JSON.stringify`. The code demonstrates a minimal setup for inspecting raw dataset entries, though it does not yet implement the color wheel, similarity comparisons, or hover interactions described in the project’s goals.
AI-generated descriptionThe Lego Colors Dataset, loaded and parsed as CSV.
This dataset contains the LEGO Parts/Sets/Colors and Inventories of every official LEGO set in the Rebrickable database. These files are current as of July 2017. If you need it to be more recent data, you can use Rebrickable’s API which provides up to date data, and additional features.
The plan is to create some sort of visualization using all the hex codes in the datset
TASKS
- I want to be able to visualize the colors in the dataset
- I want to compare color values and be able to state whether two colors are similar
- I want to be able to see the names of the colors in the viz
- I want to organize the data in a color wheel
- I want to create hover actions to get a better look at a color