Skip to main content
100%

Module 4 - Adding Scales and Axes

✓ Published0🌍 Public
AAndresClavijo
Last edited Apr 27, 2015
Created on Apr 27, 2015

This horizontal bar chart shows the monthly Consumer Price Index (CPI) for Colombian cities, sorted from highest to lowest, with a tooltip revealing each city’s exact value. The visualization uses D3 v3 scales and axes: a linear scale maps the CPI values to bar widths, while an ordinal scale positions city names along the vertical axis. The code applies an SVG rendering with hover highlighting and retrieves the data from a local CSV file, sourcing statistics from DANE (March 2015). The chart emphasizes relative differences in inflation across urban centers like Bogotá and Medellín.

AI-generated description

Similar vizzes