Skip to main content
100%

Bar Chart v4

✓ Published0🌍 Public
DDlanka
Last edited Jan 31, 2018
Created on Jan 31, 2018

This example visualizes a categorical bar chart of Sri Lankan city names and their corresponding counts, loaded from a local JSON file. The chart shows only the x-axis with city labels, while the y-axis and bars are not rendered in the provided code. Built with D3 v4, it creates an SVG container sized 400 by 500 pixels, using a `d3.scaleBand` for the x-axis and `d3.axisBottom` to display the category ticks. The data is fetched asynchronously via `d3.json`, and the axis is positioned using margin-based translation, though the visualization remains incomplete.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/Dlanka/'>Dlanka</a>'s block: <a href='http://bl.ocks.org/Dlanka/2544b72b6533b2e7d2b772cbe97c637c'>Bar Chart v4</a>

forked from <a href='http://bl.ocks.org/Dlanka/'>Dlanka</a>'s block: <a href='http://bl.ocks.org/Dlanka/341e22d73b89b329fa9f76cd33678818'>Bar Chart v4</a>

mit Licensed

Similar vizzes