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); }
Code
Here the Line chart is plotted for the last iteration only .The previous data are not plotted.
Shekhar Pankaj86 reputationPosted Jan 9, 2017, 1:21 AM EST
in your current logic. the chart is rebuild in every iteration so at last iteration your chart will plot the data for last iteration only.
Dinesh SanthalingamRank #2,085 · 690 reputationPosted Jan 9, 2017, 2:03 AM EST
Shekhar Pankaj