How to draw a Multiple line chart using Jqplot?

Jan 6 2017 4:43 AM
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. 
  1. for (var i = 0; i <= goog.length; i++) {  
  2.   plot1 = $.jqplot('chart1', [goog[i]], opts);    }  
 
Here the Line chart is plotted for the last iteration only .The previous data are not plotted.

Answers (2)