hybridBarLineChart = {
const svg = d3.create("svg")
.attr("viewBox", [0, 0, width+100, height]);
svg.append("g")
.attr("fill", "steelblue")
.attr("fill-opacity", 0.8)
.selectAll("rect")
.data(idiom2Data)
.join("rect")
.attr("x", d => x(d.year))
.attr("width", x.bandwidth())
.attr("y", d => y1(d.h1b_count))
.attr("height", d => y1(0) - y1(d.h1b_count));
svg.append("path")
.attr("fill", "none")
.attr("stroke", "currentColor")
.attr("stroke-miterlimit", 1)
.attr("stroke-width", 3)
.attr("d", line(idiom2Data));
svg.append("g")
.attr("fill", "none")
.attr("pointer-events", "all")
.selectAll("rect")
.data(idiom2Data)
.join("rect")
.attr("x", d => x(d.year))
.attr("width", x.bandwidth())
.attr("y", 0)
.attr("height", height)
.append("title")
.text(d => `${d.year}
${d.h1b_count.toLocaleString("en")} H1B Petition Count
${d.unemployment.toLocaleString("en")} Unemployment Rate`);
svg.append("g")
.call(xAxis);
svg.append("g")
.call(y1Axis);
svg.append("g")
.call(y2Axis);
return svg.node();
}