highlight = {
const svg = d3.select(chartYoY);
d3.selectAll(".areas-container path")
.on("mousemove", e => {
const xPosition = d3.pointer(e)[0];
d3.select(".tooltip")
.attr("transform", `translate(${xPosition}, 0)`)
.style("stroke-opacity", 100);
const year = Math.round(xScaleTrend.invert(xPosition));
d3.select(".tooltip-year").text(year);
const yearData = dataTrend.find(item => item.Year === year);
formatsInfo.forEach(type => {
d3.select(`.type-${type.id}`)
.text(`${type.label}: ${d3.format(".0%")(yearData[type.id])}`);
});
})
}