Skip to main content
100%

Untitled

✓ Published1🌍 Public
Vvaynexie
Last edited Jan 5, 2020
Created on Jan 5, 2020
Forked from Loading CSV

This visualization is a heatmap showing monthly property crime counts in San Francisco from 2005 to 2015. Each cell represents a month and year, colored on a viridis scale from low to high crime totals, with years on the y-axis and months on the x-axis. The code uses d3.nest and d3.map to aggregate the CSV data, d3.scaleBand for axes, and d3.scaleSequential with d3.interpolateViridis for the color encoding. A gradient legend with a d3.axisBottom is rendered using an SVG linearGradient.

AI-generated description

This example shows how to load a CSV dataset, the Iris Dataset.

MIT Licensed

Similar vizzes