scatter plot and area chart
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed