Skip to main content
100%

Simple Bar chart Police station vs fatilities

✓ Published1🌍 Public
Nneetusingla12(Neetu Singla)
Last edited Oct 14, 2020
Created on Oct 12, 2020

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
MIT Licensed

Similar vizzes