Skip to main content
100%

HTML Starter Bar Chart Cutomizing Axes

✓ Published0🌍 Public
AAkash00226145
Last edited May 2, 2020
Created on May 2, 2020
Forked from HTML Starter

This example shows a horizontal bar chart of product purchase counts, with a dropdown menu to select different data views. The chart uses D3 v5 with React, rendering SVG elements. It employs `d3.csv` to load product data, `scaleLinear` for the x-axis, `scaleBand` for the y-axis, and `axisLeft` and `axisBottom` for axis generation. The bars are appended as SVG `rect` elements, and the chart updates when the dropdown selection changes, though only the “first” option is implemented.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes