Activity 7.2_Question 2
✓ Published0🌍 Public
This example shows an area chart of star absolute magnitude by luminosity, using a light green, semi-transparent filled region to highlight the relationship between the two variables. The visualization loads CSV data from a GitHub repository and renders it as an SVG using D3 v6, with a logarithmic x-axis for luminosity and a linear y-axis for absolute magnitude. The code employs `d3.csv`, `d3.scaleLog`, `d3.scaleLinear`, `d3.area`, and `d3.axisBottom`/`d3.axisLeft` to generate the chart, applying `curveMonotoneX` for smooth area boundaries.
AI-generated descriptionMIT Licensed