bar chart
✓ Published0🌍 Public
Aaaizemberg
Last edited Aug 9, 2019
Created on Aug 9, 2019
This example displays a horizontal bar chart comparing cumulative reported cases of three sexually transmitted diseases—Primary and Secondary Syphilis, Gonorrhea, and Chlamydia—loaded from a CSV hosted on data.world. The bars are rendered as SVG rectangles with a steelblue fill, using d3.scaleLinear to map each disease’s sum to a bar width and to position bars vertically. Text labels and formatted numeric values are appended next to each bar using d3.selectAll and append operations. The chart reads data via d3.csv and updates the visualization once the data arrives, with a fixed chart size of 500 by 300 pixels.
AI-generated description