Skip to main content
100%

Claude Test

✓ Published0🌍 Public
CCurran Kelleher
Last edited Feb 27, 2025
Created on Feb 27, 2025

This example shows a minimal color palette display, rendering three labeled swatches for red, green, and indigo from a CSV file. The visualization uses D3’s `d3.csv` to load the data, then binds it to SVG rectangles, with each fill color derived directly from the row values. Text labels appear alongside each swatch using D3’s selection and `text` methods. The code avoids complex interaction, focusing instead on a clean, data-driven mapping from tabular input to a simple grouped chart. The approach demonstrates how D3 can turn a two-column dataset into an immediate, readable visual output.

AI-generated description

Similar vizzes