Question 3 act 6
✓ Published0🌍 Public
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 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