vinhnguyen
vinhnguyen

Reputation: 46

How to add circle points for multiline chart?

In this example (jsfiddle.net/vinhnguyenle/LG8Qe/2/), how can I add circle points for 2 line charts?

Upvotes: 2

Views: 1807

Answers (1)

vassilag
vassilag

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

Related Questions