🌍 Public
Viewing a saved revision (read-only)
23874a2649f54125a84e5448f1bed130
Simple Bar chart Police station vs fatilities
Nneetusingla12(Neetu Singla)
Last edited Oct 14, 2020
Created on Oct 14, 2020
Forked from Simple Bar chart Police station vs fatilities
This example shows a simple bar chart comparing the total number of fatalities across nine police stations in the Ropar district, using data loaded from a CSV file. The visualization encodes the count for each station as the height of an SVG rectangle, with police station names on the x-axis and the fatality count on the y-axis. The code uses d3.csv to load the data, d3.scaleBand for the categorical x-axis, d3.scaleLinear for the y-axis, and d3.axisBottom and d3.axisLeft to render the axes. The bars are styled with a steelblue fill.
AI-generated description