Skip to main content
Public

Share visualization

Loading preview…

Bar Chart Using UN Intentional Homicide Data

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Bar Chart Using UN Intentional Homicide Data

1
LLilly-beth Linnell
Last edited Dec 15, 2021
Created on Sep 29, 2021
Forked from HTML Starter

This bar chart visualizes the number of intentional homicides per country using data from the UN Intentional Homicide dataset, with values plotted on the y-axis and country names along the x-axis. The chart uses D3 v6 to load the CSV data, filters out zero values, and renders bars as SVG rectangles using the `scaleBand` and `scaleLinear` scales. The visualization highlights the challenge of overlapping country labels on the x-axis due to the large number of categories, while employing `axisLeft` and `axisBottom` for axes and a fixed bar width of 30 pixels.

AI-generated description

A bar chart using the UN Intentional Homicide dataset. This bar chart shows the number of intentional homicides (Y-axis) per the Country (X-axis) The country names do collide with each other, but that is an issue I have yet to fix. I want to thank Peter Cordone and Denise Mauldin for their help with troubleshooting!

Comments

Sign in to join the discussion.

MIT Licensed