Skip to content

Commit

Permalink
feat(Highcharts plugin): add preventDefaultForPointClick option (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzmadom authored Sep 17, 2024
1 parent 6787ae6 commit dfc7ea7
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/plugins/highcharts/renderer/helpers/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -1701,14 +1701,18 @@ export function prepareConfig(data, options, isMobile, holidays) {
}
},
},
point: {
events: {
click: function () {
// Prevent slicing of pie segment after clicking it
return false;
},
},
},
...(options.preventDefaultForPointClick !== false
? {
point: {
events: {
click: function () {
// Prevent slicing of pie segment after clicking it
return false;
},
},
},
}
: {}),
marker: options.splitTooltip
? {
states: {
Expand Down

0 comments on commit dfc7ea7

Please sign in to comment.