diff --git a/js/diagrams.js b/js/diagrams.js index cca6294..e1d3f2a 100644 --- a/js/diagrams.js +++ b/js/diagrams.js @@ -168,7 +168,6 @@ function createLineGraph(containerId, raceData){ .attr("cy", function(d, i) { return y(d.position) }) .attr("r", linePointSize * 1.2) .on("click", handleClickOnPoint) - .on("dblclick", handleDoubleClickOnPoint) .on("mouseover", handleMouseOverLinePoint) .on("mouseout", handleMouseOutLinePoint); @@ -221,7 +220,6 @@ function createLineGraph(containerId, raceData){ .attr("cy", function(d, i) { return y(d.position) }) .attr("r", linePointSize*2.4) .on("click", handleClickOnPoint) - .on("dblclick", handleDoubleClickOnPoint) .on("mouseover", handleMouseOverLinePoint) .on("mouseout", handleMouseOutLinePoint) .style("opacity", 0); @@ -248,7 +246,6 @@ function createLineGraph(containerId, raceData){ .attr("height", rectSize) .attr("width", rectSize) .on("click", handleClickOnPoint) - .on("dblclick", handleDoubleClickOnPoint) .on("mouseover", handleMouseOverLinePoint) .on("mouseout", handleMouseOutLinePoint); @@ -358,11 +355,6 @@ function createLineGraph(containerId, raceData){ } } - function handleDoubleClickOnPoint(d,i){ - var lapNr = d.lap; - console.log(["doubleClick", d.lap]); - } - function handleMouseOverLinePoint(d, i) { var elemType = d3.select(this).attr("data-elemtype"); //depending on Pitstop and lap different Texts