Skip to main content
100%

Loading CSV Data with D3

✓ Published0🌍 Public
BBenHeubl
Last edited Apr 2, 2015
Created on Apr 2, 2015

This example demonstrates a bar chart of deliberate fires per London borough for February 2015, sorted in descending order. It uses D3.js v3 to load a CSV file with `d3.csv`, bind the data to SVG groups, and render red rectangles whose widths are scaled by fire counts. Borough names and values are added as SVG text elements, with hover interactions toggling a CSS class that darkens bars and bolds labels. The chart is drawn from the external file `londonfiresfinal.csv`, with all styling and layout handled through inline attributes and stylesheet rules.

AI-generated description

Similar vizzes