Skip to main content
100%

Gist 1735d2daba8dced50df6

✓ Published0🌍 Public
QQinita
Last edited May 4, 2015
Created on May 4, 2015

A bar chart displays the relative frequency of birthdays across the twelve months, with values ranging from 0.04 to 0.13. The chart uses SVG rendered through D3 v3, binding data from a CSV file and scaling bar heights with `d3.scale.linear`. Each month’s frequency is shown both as a steelblue rectangle and as a white text label. The code computes bar width by dividing the total width by the number of data points, and uses `d3.csv` with a custom type function to coerce values to numbers.

AI-generated description

Similar vizzes