带垂直线的水平条形图在 D3 中是否可行

Horizontal Bar chart with vertical line is possible or not in D3

我正在尝试在 NVD3 中生成带有垂直线的条形图。 但这是不可能的,请帮助和建议一些建议

带垂直线的水平条形图在 D3 中是否可行

holder.append("line")          // attach a line
.style("stroke", "black")     // colour the line
.attr("x1", 100)     // x position of the first end of the line
.attr("y1", 50)      // y position of the first end of the line
.attr("x2", 300)     // x position of the second end of the line
.attr("y2", 150);    // y position of the second end of the line