Skip to main content
100%

scatter plot and area chart

✓ Published0🌍 Public
HHarinathChakali33@gmail.com
Last edited Apr 26, 2024
Created on Apr 26, 2024
Forked from Hello VizHub

This example combines a scatter plot and an area chart to visualize COVID-19 data for Indian states and union territories. The scatter plot maps confirmed cases on the x-axis and deaths on the y-axis, with each circle representing a data point. Tooltips provide detailed state-specific information on hover, implemented via the `d3.select` and `d3.csv` APIs. The area chart, rendered with SVG, displays the data's distribution using D3 scales and axes. The code uses `d3.scaleLinear`, `d3.axisBottom`, and `d3.axisLeft` to construct the charts.

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