Skip to content

Commit d5e176b

Browse files
committed
Fixed issue with hidden pie slices affecting the positions of data labels. Closes #2510.
1 parent a11d41a commit d5e176b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

js/highcharts.src.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16812,7 +16812,7 @@ var PieSeries = {
1681216812

1681316813
// arrange points for detection collision
1681416814
each(data, function (point) {
16815-
if (point.dataLabel) { // it may have been cancelled in the base method (#407)
16815+
if (point.dataLabel && point.visible) { // #407, #2510
1681616816
halves[point.half].push(point);
1681716817
}
1681816818
});

js/highstock.src.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16512,7 +16512,7 @@ var PieSeries = {
1651216512

1651316513
// arrange points for detection collision
1651416514
each(data, function (point) {
16515-
if (point.dataLabel) { // it may have been cancelled in the base method (#407)
16515+
if (point.dataLabel && point.visible) { // #407, #2510
1651616516
halves[point.half].push(point);
1651716517
}
1651816518
});

js/parts/PieSeries.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ var PieSeries = {
482482

483483
// arrange points for detection collision
484484
each(data, function (point) {
485-
if (point.dataLabel) { // it may have been cancelled in the base method (#407)
485+
if (point.dataLabel && point.visible) { // #407, #2510
486486
halves[point.half].push(point);
487487
}
488488
});

0 commit comments

Comments
 (0)