Skip to main content
100%

Bar Graph

✓ Published0🌍 Public
NNukaShravanKumar
Last edited Jul 17, 2023
Created on Jul 16, 2023
Forked from HTML Starter

This example shows a bar graph of stock prices per year from 2011 to 2016, with bars colored steelblue and labeled axes for year and value. It loads data from a CSV file using `d3.csv`, converts string values to numbers, and renders the chart as SVG. The visualization uses `d3.scaleBand` for the x-axis, `d3.scaleLinear` for the y-axis, and `d3.axisBottom` and `d3.axisLeft` to draw the axes. Bar widths are slightly reduced by 5 pixels, and x-axis labels are rotated 45 degrees for readability.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes