How can I send you an example of a line with the name d3.js?

Making a chart using d3 js, there is a style for a line like this:
.lineone path.line {
 fill: none;
 stroke: red;
 stroke-width: 2;
 stroke-dasharray: 10, 5;

circle.lineone {
 fill: red;
 stroke: red;


And the code add a label for the line below the graph.
 .attr("class", "chart-label-actual")
 .text(' Label for lineone')
 .attr('x', 1)
 .attr('y', height - 50)

The question how to draw a straight line in the example on the right side of the label ? A straight line with the styles .lineone ?
July 2nd 19 at 17:53
1 answer
July 2nd 19 at 17:55
 .attr("x1", width - 100)
 .attr("y1", height - 55)
 .attr("x2", width - 30)
 .attr("y2", height - 55)
 .attr("class", "lineone");

Find more questions by tags SVGCSSJavaScript