I want to display curves of data in JSON format using flot.js
but the data file contains two many lines (over than 50,000) and it takes too much time to render the graph. So I would like to keep only one line out of n.
For example for n=3, I want to keep lines with indexes : 1,4,7,10 etc
The JSON data file has the following format :
[{"t":"22.40",
"lumi":"738.00",
"h":"31.20",
"f":"72.32",
"hi":"76.43",
"date":"2015-02-28T13:38:41.025Z",
"_id":"54f1c4e17cb06e5e09015b63"},
... 50,000 other lines
What is the simplest way to achieve this ?