Skip to main content
100%

Fork of Bar Graph

✓ Published1🌍 Public
Mmukundakrishna.r@gmail.com
Last edited Mar 22, 2024
Created on Mar 22, 2024

This example visualizes product sales by sale price using a bar graph, with each bar representing a product and its height reflecting the sale price. The chart displays the data from a CSV file, showing product names along the x-axis and sale prices on the y-axis. Built with D3 v7, it uses `d3.csv` to load the data, `d3.scaleBand` and `d3.scaleLinear` for positioning, and renders SVG rectangles for the bars. Axes are drawn using `d3.axisBottom` and `d3.axisLeft`, with hover effects changing bar colors to orange.

AI-generated description

A whole smiley face

MIT Licensed

Similar vizzes