app/assets/javascripts/highcharts/modules/funnel.js in highcharts-rails-4.2.5 vs app/assets/javascripts/highcharts/modules/funnel.js in highcharts-rails-4.2.6

- old
+ new

@@ -107,11 +107,11 @@ return y > neckY || height === neckHeight ? neckWidth : neckWidth + (width - neckWidth) * (1 - (y - top) / (height - neckHeight)); }; series.getX = function (y, half) { - return centerX + (half ? -1 : 1) * ((getWidthAt(reversed ? plotHeight - y : y) / 2) + options.dataLabels.distance); + return centerX + (half ? -1 : 1) * ((getWidthAt(reversed ? 2 * centerY - y : y) / 2) + options.dataLabels.distance); }; // Expose series.center = [centerX, centerY, height]; series.centerX = centerX; @@ -174,12 +174,12 @@ y3 = neckY; } if (reversed) { - y1 = height - y1; - y3 = height - y3; - y5 = (y5 ? height - y5 : null); + y1 = 2 * centerY - y1; + y3 = 2 * centerY - y3; + y5 = (y5 ? 2 * centerY - y5 : null); } // save the path path = [ 'M', x1, y1,