From d5e176b5c01bb60402c1f6347993a818e2ab4035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torstein=20H=C3=B8nsi?= Date: Mon, 9 Dec 2013 13:36:46 +0100 Subject: [PATCH] Fixed issue with hidden pie slices affecting the positions of data labels. Closes #2510. --- js/highcharts.src.js | 2 +- js/highstock.src.js | 2 +- js/parts/PieSeries.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/highcharts.src.js b/js/highcharts.src.js index c01a38af6d1..aebcb4f4b0a 100644 --- a/js/highcharts.src.js +++ b/js/highcharts.src.js @@ -16812,7 +16812,7 @@ var PieSeries = { // arrange points for detection collision each(data, function (point) { - if (point.dataLabel) { // it may have been cancelled in the base method (#407) + if (point.dataLabel && point.visible) { // #407, #2510 halves[point.half].push(point); } }); diff --git a/js/highstock.src.js b/js/highstock.src.js index fa0226fcb43..489b0a498ad 100644 --- a/js/highstock.src.js +++ b/js/highstock.src.js @@ -16512,7 +16512,7 @@ var PieSeries = { // arrange points for detection collision each(data, function (point) { - if (point.dataLabel) { // it may have been cancelled in the base method (#407) + if (point.dataLabel && point.visible) { // #407, #2510 halves[point.half].push(point); } }); diff --git a/js/parts/PieSeries.js b/js/parts/PieSeries.js index fe428681345..789d59b1caf 100644 --- a/js/parts/PieSeries.js +++ b/js/parts/PieSeries.js @@ -482,7 +482,7 @@ var PieSeries = { // arrange points for detection collision each(data, function (point) { - if (point.dataLabel) { // it may have been cancelled in the base method (#407) + if (point.dataLabel && point.visible) { // #407, #2510 halves[point.half].push(point); } });