I have an array .I map the array data to plot the line chart using Jqplot. goog has two set of arrays.
goog={[arr1],[arr2]}
I map the data to the chart.
- for (var i = 0; i <= goog.length; i++) {
- plot1 = $.jqplot('chart1', [goog[i]], opts); }
Here the Line chart is plotted for the last iteration only .The previous data are not plotted.