Fix endpoints in context view a bit

This commit is contained in:
Jan Philipp Timme 2017-12-31 14:42:39 +01:00
parent 5e77b4c4ae
commit 0feed1236c
1 changed files with 2 additions and 2 deletions

View File

@ -266,8 +266,8 @@ function createLineGraph(containerId, raceData){
.attr("data-highlighted", 0)
.attr("data-elemtype", elemTypes.endpoint)
.attr("fill", getColorValue(driverIndex, enhancedLapData.length))
.attr("x", function(d, i) { return x2(d.lap) - rectSize * 1/2; })
.attr("y", function(d, i) { return y2(d.position) - rectSize * 1/2; })
.attr("x", function(d, i) { return x2(d.lap) - rectSize * 1/4; })
.attr("y", function(d, i) { return y2(d.position) - rectSize * 1/4; })
.attr("height", rectSize * 0.4)
.attr("width", rectSize * 0.4)
.attr("d", lineDataDefinition);