Skip to main content
100%

Making bar charts

✓ Published0🌍 Public
SSeanisgod1994
Last edited Sep 29, 2020
Created on Sep 29, 2020

This example shows the results of Singapore’s 2020 parliamentary election as a bar chart, with each party’s popular vote displayed as a horizontal bar. The chart is built using D3.js v5, reading tabular data from a CSV file via `d3.csv` and mapping the values to bar lengths. The bars are rendered as SVG rectangles, with text labels for each party name and vote count. The data originates from the file `data.csv`, containing party names and their corresponding popular vote totals.

AI-generated description

A program that loads and parses some CSV data: CSS Named Colors.

MIT Licensed

Similar vizzes