Area chart
✓ Published0🌍 Public
This area chart displays the number of visitors for five selected U.S. states (California, Texas, Florida, New York, Illinois) from 2011 to 2021. The visualization fetches comma-separated data via d3.text and parses it into an array of objects. Using d3.area with a monotone X curve, it draws semi-transparent filled paths for each state, color-coded via d3.scaleOrdinal with d3.schemeCategory10. The SVG rendering includes linear scales for axes, a legend, and both axis labels, all positioned within defined margins.
AI-generated descriptionMIT Licensed