Skip to content

Commit

Permalink
fix(Highcharts plugin): remove default point shift+click event (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
korvin89 committed May 7, 2024
1 parent 781708a commit 6fd4dea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 0 additions & 12 deletions src/plugins/highcharts/renderer/helpers/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -1682,18 +1682,6 @@ export function prepareConfig(data, options, isMobile, holidays) {
}
},
},
point: {
events: {
click: function (event) {
if (event.shiftKey) {
this.series.chart.tooltip.hide();
this.series.data[this.index].remove();
return true;
}
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: 20,
slicedOffset: 0,
cursor: 'pointer',
showInLegend: true,
};
Expand Down

0 comments on commit 6fd4dea

Please sign in to comment.