|
|
@ -1114,7 +1114,7 @@ LineGraph.prototype._convertXcoordinates = function (datapoints) { |
|
|
|
var toScreen = this.body.util.toScreen; |
|
|
|
|
|
|
|
for (var i = 0; i < datapoints.length; i++) { |
|
|
|
xValue = toScreen(datapoints[i].x) + this.width - 1; |
|
|
|
xValue = toScreen(datapoints[i].x) + this.width; |
|
|
|
yValue = datapoints[i].y; |
|
|
|
extractedData.push({x: xValue, y: yValue}); |
|
|
|
} |
|
|
@ -1144,7 +1144,7 @@ LineGraph.prototype._convertYcoordinates = function (datapoints, group) { |
|
|
|
} |
|
|
|
|
|
|
|
for (var i = 0; i < datapoints.length; i++) { |
|
|
|
xValue = toScreen(datapoints[i].x) + this.width - 1; |
|
|
|
xValue = toScreen(datapoints[i].x) + this.width; |
|
|
|
yValue = Math.round(axis.convertValue(datapoints[i].y)); |
|
|
|
extractedData.push({x: xValue, y: yValue}); |
|
|
|
} |
|
|
|