🌍 Public
Viewing a saved revision (read-only)
926f004f7c9d4381a4c8acfabba81dcc
Infovis
This example shows a bar chart of the municipal tax rate for each Swedish region, with each bar’s height mapped to the tax rate. The code loads data from a CSV file and uses D3’s `scaleBand` for the x-axis, `scaleLinear` for the y-axis, and `csv` for parsing. The SVG canvas is 960 by 500 pixels, with bars rendered as `rect` elements whose positions and heights are set via D3 selection methods.
AI-generated description