Skip to main content
100%

bar chart

✓ Published0🌍 Public
MMoximillian
Last edited Mar 23, 2017
Created on Mar 22, 2017

This example shows a small, static bar chart of five categorical values, with each bar colored individually and labeled A through E. The chart displays the data using SVG rectangles, with linear and ordinal scales mapping the values to positions and heights. The code uses d3.js version 3.5, specifically d3.scale.linear and d3.scale.ordinal, along with d3.svg.axis for the x and y axes. The data is hard-coded in the script and rendered on a light grey canvas with margins applied via a group transform.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes