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
Try this:
var that = this; $('#pro1,#pro2,#pro3').click(function () { chart.series[0].update({ data: that[$(this).attr('id')]; }); });