diff --git a/js/plugins/hit.js b/js/plugins/hit.js index 696af05a..7557d7d1 100644 --- a/js/plugins/hit.js +++ b/js/plugins/hit.js @@ -278,9 +278,9 @@ Flotr.addPlugin('hit', { drawMouseTrack : function (n) { var - pos = '', + pos = '', s = n.series, - p = n.mouse.position, + p = n.mouse.position, m = n.mouse.margin, x = n.x, y = n.y, @@ -334,7 +334,7 @@ Flotr.addPlugin('hit', { } if (!n.mouse.relative) { // absolute to the canvas - pos += 'top:' + pos += 'top:'; if (p.charAt(0) == 'n') pos += (oTop + m + top); else if (p.charAt(0) == 's') pos += (oTop - m + top + this.plotHeight - size.height); pos += 'px;bottom:auto;left:'; @@ -350,13 +350,13 @@ Flotr.addPlugin('hit', { }, radius = (Math.min(this.canvasWidth, this.canvasHeight) * s.pie.sizeRatio) / 2, bisection = n.sAngle= x0) && (x <= x1) && (y <= y0) && (y >= y1)) { + n.x = x0; + n.y = y0 - h; + n.index = i; + n.seriesIndex = options.index; + } + } + }, + + drawHit : function(options) { + }, + + clearHit : function(options) { + }, + extendRange : function (series) { var