🌍 Public
Viewing a saved revision (read-only)
e9f5fd4003554f28ab18511ec7fc5d41
Q3
A scatter plot maps book reviews against price for the BestSellers dataset, with each point colored blue or green to distinguish Fiction from Non Fiction genres. The visualization loads CSV data via `d3.csvParse`, scales axes with `d3.scaleLinear`, and renders circles in an SVG. It uses `d3.axisBottom` and `d3.axisLeft` for labeled axes, while an ordinal `d3.scaleOrdinal` assigns genre colors and a custom legend displays the two categories.
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.