Skip to main content
100%

Activity 7

✓ Published0🌍 Public
SSwapna1915
Last edited Jul 13, 2023
Created on Jul 13, 2023
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes