Allow linepoints to scale
This commit is contained in:
parent
b299ab7eeb
commit
b2bb2bc441
|
@ -523,6 +523,7 @@ function createLineGraph(containerId, raceData){
|
||||||
focus.selectAll(".pathLines").attr("d", lineDataDefinition);
|
focus.selectAll(".pathLines").attr("d", lineDataDefinition);
|
||||||
focus.selectAll(".pitstopdot").attr("cx", function(d, i) {return x(d.lap) });
|
focus.selectAll(".pitstopdot").attr("cx", function(d, i) {return x(d.lap) });
|
||||||
focus.selectAll(".endpointdot").attr("x", function(d, i) { return x(d.lap) - rectSize * 1/2; });
|
focus.selectAll(".endpointdot").attr("x", function(d, i) { return x(d.lap) - rectSize * 1/2; });
|
||||||
|
focus.selectAll(".linedot").attr("cx", function(d, i) {return x(d.lap) });
|
||||||
// Update xAxis
|
// Update xAxis
|
||||||
focus.select(".axis--x").call(xAxis);
|
focus.select(".axis--x").call(xAxis);
|
||||||
// Update gridlines
|
// Update gridlines
|
||||||
|
|
Loading…
Reference in New Issue