You must fill the array, for example. 100, and then use this array to plot. Something like that:
var f1array = [];
for (var i = 1; i <= 100; i++) {
f1array.push([0.1 * i, 1 / (0.1 * i)]);
}
$.plot('#placeholderdiv', [f1array]);
Use this as a starting point and come back if you have additional questions.
Edit: sample script
source
share