In JavaScript I am using click event to change chart data. Below is a method for click event.
$(\'#pro1\').click(function () { chart.series[0].up
Using each function() you can do it
var i =0; $("#pro"+i+", #pro"+i+", #pro"+i+"").each(function(){ $(this).on('click', function(){ chart.series[0].update({ data: pro+i }); });});