app/assets/javascripts/highcharts/highcharts-3d.js in highcharts-rails-4.1.4 vs app/assets/javascripts/highcharts/highcharts-3d.js in highcharts-rails-4.1.5

- old
+ new

@@ -1,10 +1,10 @@ // ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS /** - * @license Highcharts JS v4.1.4 (2015-03-10) + * @license Highcharts JS v4.1.5 (2015-04-13) * * (c) 2009-2013 Torstein Hønsi * * License: www.highcharts.com/license */ @@ -847,11 +847,13 @@ // Translate the tooltip position in 3d space tooltipPos = perspective([{ x: tooltipPos[0], y: tooltipPos[1], z: z }], chart, false)[0]; point.tooltipPos = [tooltipPos.x, tooltipPos.y]; } - }); + }); + // store for later use #4067 + series.z = z; }); Highcharts.wrap(Highcharts.seriesTypes.column.prototype, 'animate', function (proceed) { if (!this.chart.is3d()) { proceed.apply(this, [].slice.call(arguments, 1)); @@ -927,18 +929,19 @@ }); function draw3DPoints(proceed) { // Do not do this if the chart is not 3D if (this.chart.is3d()) { var grouping = this.chart.options.plotOptions.column.grouping; - if (grouping !== undefined && !grouping && this.group.zIndex !== undefined) { + if (grouping !== undefined && !grouping && this.group.zIndex !== undefined && !this.zIndexSet) { this.group.attr({zIndex : (this.group.zIndex * 10)}); + this.zIndexSet = true; // #4062 set zindex only once } var options = this.options, states = this.options.states; - this.borderWidth = options.borderWidth = options.edgeWidth || 1; + this.borderWidth = options.borderWidth = defined(options.edgeWidth) ? options.edgeWidth : 1; //#4055 Highcharts.each(this.data, function (point) { if (point.y !== null) { var pointAttr = point.pointAttr; @@ -963,10 +966,10 @@ chart = series.chart; var args = arguments, alignTo = args[4]; - var pos = ({x: alignTo.x, y: alignTo.y, z: 0}); + var pos = ({x: alignTo.x, y: alignTo.y, z: series.z}); pos = perspective([pos], chart, true)[0]; alignTo.x = pos.x; alignTo.y = pos.y; }