Answer the question
In order to leave comments, you need to log in
How to make an example of a line with a title in d3.js?
I make a graph using d3 js, there is a style for the line like this:
.lineone path.line {
fill: none;
stroke: red;
stroke-width: 2;
stroke-dasharray: 10, 5;
}
circle.lineone {
fill: red;
stroke: red;
}
svg.append("g")
.append('text')
.attr("class", "chart-label-actual")
.text(' Label for lineone')
.attr('x', 1)
.attr('y', height - 50)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question