Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在此示例中(jsfiddle.net/vinhnguyenle/LG8Qe/2/),如何为 2 个折线图添加圆点?
在脚本底部添加:
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);