Skip to content

Commit

Permalink
fix(Highcharts plugin): return old value for pie.slicedOffset (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
korvin89 committed May 13, 2024
1 parent cff5a3a commit d8b61d9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/plugins/highcharts/renderer/helpers/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -1682,6 +1682,14 @@ export function prepareConfig(data, options, isMobile, holidays) {
}
},
},
point: {
events: {
click: function () {
// Prevent slicing of pie segment after clicking it
return false;
},
},
},
marker: options.splitTooltip
? {
states: {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/highcharts/renderer/helpers/config/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const first = {

const second = {
allowPointSelect: true,
slicedOffset: 0,
slicedOffset: 20,
cursor: 'pointer',
showInLegend: true,
};
Expand Down

0 comments on commit d8b61d9

Please sign in to comment.