Fork of HTML Starter
✓ Published0🌍 Public
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 descriptionStudent Scores Bar Chart
A D3.js visualization displaying student test scores in a bar chart format.
Setup
- Ensure you have a
student_scores.csvfile with columns:StudentandScore - Open
index.htmlin a web browser
Files
index.html- Main HTML fileindex.js- D3.js chart codestyles.css- Stylingstudent_scores.csv- Data file (required)
MIT Licensed