🌍 Public
Viewing a saved revision (read-only)
1c78316403aa4cbaa20c82d412fdc03e
Melting data with multiple lines
This visualization shows suicide generation numbers over time from 1985 to 2016, with multiple colored lines representing different regions and countries sorted by their final values. The chart uses d3.line with curveBasis smoothing, d3.scaleTime for the x-axis, and d3.scaleOrdinal with schemeCategory10 for line colors. Data is melted from wide CSV format using d3.nest and d3.range, and a custom color legend is rendered alongside the SVG axes.
AI-generated description