Skip to main content
100%

Question 3 act 6

✓ Published0🌍 Public
Sskykarthik97@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

This example visualizes product ratings as a categorical scatterplot in SVG, plotting the percentage of low ratings for each product along a horizontal axis. It uses D3 v7 to load data from a local CSV file, mapping products to the y-axis via `d3.scaleBand` and percentages to the x-axis via `d3.scaleLinear`. Interactive tooltips appear on mouseover, displaying the product name and formatted percentage using D3’s `d3.select` and event handling. The code uses a color scale from `d3.scaleOrdinal` and custom fonts from Google Fonts.

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