Permalink
Browse files

Fixed #5818, render halo in a series group, not under all of the groups.

  • Loading branch information...
pawelfus committed Oct 13, 2016
1 parent 66a8587 commit 08c75bb27ec7f803809a8a880b12ecc14fa501c3
Showing with 4 additions and 5 deletions.
  1. +3 −4 js/parts/Interaction.js
  2. +1 −1 js/parts/PieSeries.js
View
@@ -665,7 +665,7 @@ extend(Point.prototype, {
if (haloOptions && haloOptions.size) {
if (!halo) {
series.halo = halo = chart.renderer.path()
.add(chart.seriesGroup);
.add(series.group);
}
halo[move ? 'animate' : 'attr']({
d: point.haloPath(haloOptions.size)
@@ -699,13 +699,12 @@ extend(Point.prototype, {
haloPath: function (size) {
var series = this.series,
chart = series.chart,
plotBox = series.getPlotBox(),
inverted = chart.inverted,
plotX = Math.floor(this.plotX);
return chart.renderer.symbols.circle(
plotBox.translateX + (inverted ? series.yAxis.len - this.plotY : plotX) - size,
plotBox.translateY + (inverted ? series.xAxis.len - plotX : this.plotY) - size,
(inverted ? series.yAxis.len - this.plotY : plotX) - size,
(inverted ? series.xAxis.len - plotX : this.plotY) - size,
size * 2,
size * 2
);
View
@@ -478,7 +478,7 @@ seriesType('pie', 'line', {
var shapeArgs = this.shapeArgs,
chart = this.series.chart;
return this.sliced || !this.visible ? [] : this.series.chart.renderer.symbols.arc(chart.plotLeft + shapeArgs.x, chart.plotTop + shapeArgs.y, shapeArgs.r + size, shapeArgs.r + size, {
return this.sliced || !this.visible ? [] : this.series.chart.renderer.symbols.arc(shapeArgs.x, shapeArgs.y, shapeArgs.r + size, shapeArgs.r + size, {
innerR: this.shapeArgs.r,
start: shapeArgs.start,
end: shapeArgs.end

0 comments on commit 08c75bb

Please sign in to comment.