Last active
April 6, 2025 13:34
-
-
Save pranitkhadilkar7/3cf2e33b831ee27abdf19d9c2bef9358 to your computer and use it in GitHub Desktop.
Event Handling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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