Loading CSV Data
✓ Published0🌍 Public
AAlfsig
Last edited Apr 15, 2015
Created on Apr 15, 2015
This example ranks Canadian electoral districts by the proportion of English speakers, displaying each district as a labeled horizontal bar whose length encodes the percentage. A sorted bar chart is built in SVG, with district codes and percentages shown as text and tooltips. The visualization loads its data from a CSV file hosted on GitHub using the `d3.csv` function and sorts it with `d3.descending`. The chart uses D3 v3 to append SVG `text` and `rect` elements, with bar fill and dimensions driven by the `TxAnglais` column.
AI-generated description