Skip to main content
100%

Basic Bar Chart

✓ Published1🌍 Public
FFhouston17
Last edited Jun 14, 2020
Created on Jun 14, 2020
Forked from Bar Chart

This example displays a basic horizontal bar chart comparing quantities across different aircraft types. The chart uses D3 v5 to render SVG rectangles, with margins, axis labels, and a title. It reads data from a CSV file and utilizes `scaleLinear` for the x-axis, `scaleBand` for the y-axis, and `axisLeft` and `axisBottom` for the axes. The bars are filled in steelblue, and tick lines are styled with a light gray color.

AI-generated description

This is a practice bar chart using data from different aircraft types and their powerplant configuration.

In data.csv line 1: change the names "item" and "quantity" to your new parameters. In index.js rename "item" and "qauntity" to your new names as above (see lines 19,20 and 79). In index.js file rename the chart title, x axis label, margins, ticker intervals as desired.

MIT Licensed

Similar vizzes