Skip to main content
100%

Fork of HTML Starter

✓ Published0🌍 Public
YYamini Malikireddy
Last edited Mar 8, 2026
Created on Mar 8, 2026
Forked from HTML Starter

This chart shows the distribution of product sales across 100 products, using a bar chart to display each product’s sales amount. The visualization uses D3.js v7 to load the `product_sales.csv` data, with `d3.scaleBand` for the horizontal product axis and `d3.scaleLinear` for the vertical sales axis. Bars are rendered as SVG rectangles in steelblue, with rotated labels on the x-axis for readability. The axes are generated using `d3.axisBottom` and `d3.axisLeft`, and the chart includes axis labels for "Product Name" and "Sales Amount."

AI-generated description

Student Scores Bar Chart

A D3.js visualization displaying student test scores in a bar chart format.

Setup

  1. Ensure you have a student_scores.csv file with columns: Student and Score
  2. Open index.html in a web browser

Files

  • index.html - Main HTML file
  • index.js - D3.js chart code
  • styles.css - Styling
  • student_scores.csv - Data file (required)
MIT Licensed

Similar vizzes