Skip to main content
100%

Reusable Scatter Plot

✓ Published0🌍 Public
VVenkat-Sumith-Thota
Last edited Jul 22, 2023
Created on Jul 22, 2023
Forked from Hello VizHub

This example demonstrates a reusable scatter plot that visualizes student data from a local CSV file, comparing the Standard column against Score1 and Score2 in a rotating animation. The visualization updates every two seconds, toggling between the two score columns while displaying axes, labels, and a title. The code uses D3 v6’s `csv` loader, `scaleLinear` for scaling, `axisBottom` and `axisLeft` for axes, and SVG circles for data points. The plot clears and redraws its entire SVG contents on each interval, showcasing a simple approach to dynamic data updates.

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