Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

A2 Ques2

Public visualization

Viewing a saved revision (read-only)

687fe10ebef14093a83f0c366e53ddf6

A2 Ques2

0 stars1🌍 Public
Rrahulnathmukkolla@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This example visualizes the relationship between international cricket players’ runs and wickets, using an area chart to show cumulative trends and colored circles to distinguish individual players. The chart loads CSV data from a GitHub gist, converts numeric string values, and applies D3’s scaleOrdinal with the Category10 scheme for player colors. It renders an SVG area path via d3.area, plots circles per player, and adds a legend using SVG rect and text elements. The code uses d3.csv, d3.scaleLinear, d3.axisBottom, d3.axisLeft, and d3.max from D3 v6.

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.