Skip to content

Instantly share code, notes, and snippets.

@pranitkhadilkar7
Last active April 6, 2025 13:34
Show Gist options
  • Save pranitkhadilkar7/3cf2e33b831ee27abdf19d9c2bef9358 to your computer and use it in GitHub Desktop.
Save pranitkhadilkar7/3cf2e33b831ee27abdf19d9c2bef9358 to your computer and use it in GitHub Desktop.
Event Handling
const options = {
chart: {
events: {
load: function() {
// Chart loaded callback
console.log('Chart loaded');
},
redraw: function() {
// Chart redrawn callback
console.log('Chart redrawn');
}
}
},
plotOptions: {
series: {
cursor: 'pointer',
point: {
events: {
click: function() {
// Handle point click
console.log('Point clicked:', this.category);
},
mouseOver: function() {
// Handle mouse over
this.update({
color: '#ff0000'
});
}
}
}
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment