Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Bar Graph

Public visualization

Viewing a saved revision (read-only)

77fa6916ff64430e9042fe1d85e6704a

Fork of Bar Graph

0 stars1🌍 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