Activity 7
✓ Published0🌍 Public
This bar chart displays the top 10 items from a diamonds prices dataset, plotting each item's title against its release year on a linear scale. The visualization uses React with D3 v5 scaleLinear and scaleBand to position SVG rectangles, with axis components rendering tick marks and labels. Data loads asynchronously via d3.csv from a GitHub-hosted CSV file, and the chart includes hover tooltips using SVG title elements. The x-axis labels are formatted with d3.format, while the y-axis shows categorical values with a light green mark color.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed