function draw_trajectories(svg) {
svg.append("g").selectAll("path").data(viz_data).join("path")
.attr("class", d => `${d.country_code}`)
.attr("stroke", d => color(d.region)).attr("fill", "none")
.attr("stroke-opacity", params.opac_weak)
.attr("d", d => get_path(d.shifted))
.on("mouseover", onMouseOver).on("mouseout", onMouseOut)
svg.append("g").selectAll("circle").data(viz_data).join("circle")
.attr("class", d => `${d.country_code}`)
.attr("fill", d => color(d.region)).attr("fill-opacity", params.opac_weak)
.attr("cx", d => x(d.shifted.length-1)).attr("cy", d => y(d.shifted[d.shifted.length - 1])).attr("r", 3)
.on("mouseover", onMouseOver).on("mouseout", onMouseOut);
svg.append("g").selectAll("text").data(viz_data).join("text").text(d => d.country_code)
.attr("class", d => d.country_code)
.attr("fill", d => color(d.region)).attr("fill-opacity", params.opac_weak)
.attr("x", d => d3.min( [x(d.shifted.length-1)+4, x(params.xmax)-10] ))
.attr("y", d => y(d.shifted[d.shifted.length - 1]))
.on("mouseover", onMouseOver).on("mouseout", onMouseOut);
}