Reputation: 46
In this example (jsfiddle.net/vinhnguyenle/LG8Qe/2/), how can I add circle points for 2 line charts?
Upvotes: 2
Views: 1807
Reputation: 470
Add this at the bottom of the script:
svg.selectAll("circle.line2")
.data(data)
.enter().append("svg:circle")
.attr("class", "line")
.style("fill", "blue")
.attr("cx", valueline2.x())
.attr("cy", valueline2.y())
.attr("r", 4.5);
Upvotes: 2