Skip to main content
100%

Fork of Scatter Plot with Shape

✓ Published0🌍 Public
Bbogasamudramvamsikrishnareddy
Last edited Jul 22, 2023
Created on Jul 22, 2023
Forked from Hello VizHub

This example visualizes automobile data from a CSV file, plotting Horsepower against Mileage with points colored by vehicle Make using distinct shapes. The scatter plot uses D3 scales for axes and an ordinal scale mapped to symbol types via `symbolsFill`. A custom shape legend explains the mapping. The code demonstrates D3 v7 modular imports, including `scaleLinear`, `scaleOrdinal`, `symbol`, and `axisLeft`/`axisBottom`, while handling data loading asynchronously through `d3.csv` and updating the visualization via a state-based render loop.

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