- use the d3 data join to add a "path" element for every country (dataByCountry) to the svg.
- add a "d" attribute to the "path" elements and use the lineGenerator to generate the path commands
- add these attributes to the "path" elements: stroke is "lightgrey"; stroke-width is 2; fill is "none"
- add axes and anything else to complete the chart as described in the task description
*/
returnsvg.node();
}
d3=require("d3@6")
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.