diff --git a/lib/text.js b/lib/text.js index 77f4219..605bbd5 100644 --- a/lib/text.js +++ b/lib/text.js @@ -39,7 +39,8 @@ proto.drawTicks = (function() { var tickPad = plot.tickPad var textColor = plot.tickColor var textAngle = plot.tickAngle - var tickLength = plot.tickMarkLength + // todo check if this should be used (now unused) + // var tickLength = plot.tickMarkLength var labelEnable = plot.labelEnable var labelPad = plot.labelPad @@ -125,7 +126,6 @@ proto.drawTitle = (function() { var titleCenter = plot.titleCenter var titleAngle = plot.titleAngle var titleColor = plot.titleColor - var titleCenter = plot.titleCenter var pixelRatio = plot.pixelRatio if(!this.titleCount) { @@ -199,29 +199,32 @@ proto.update = function(options) { var vertices = [] var axesTicks = options.ticks var bounds = options.bounds + var i, j, k, data, scale, dimension - for(var dimension=0; dimension<2; ++dimension) { + for(dimension=0; dimension<2; ++dimension) { var offsets = [Math.floor(vertices.length/3)], tickX = [-Infinity] //Copy vertices over to buffer var ticks = axesTicks[dimension] - for(var i=0; i