reuse jqplot object to load or replot data

Hunt picture Hunt · Dec 23, 2010 · Viewed 29.5k times · Source

I am using JqPlot for charts , my problem is i want to load different data on different click events.

But once the chart is created and loaded with the data for the first time; i don't know then how to load data when another event fires that means i want to reuse the chart object and want to load/replot the data when events get fired something like...

chartObj.data = [graphData]

Answer