Accepted answer

the current issue is that you're attaching event handlers to dom nodes that are destroyed when the chart is redrawn.


$('.label_wrapper').click(function() {
  console.log('still working...');


$(document).on('click','.label_wrapper', function() {
  console.log('still working...');

the handlers will be attached to the document instead of the nodes that are being redrawn, meaning that the event handler will never be destroyed.

see the updated fiddle here.

Related Query

More Query from same tag