My json file generally contains 2 million lines of data as below.
Below is how a line from file will look:
{"dt1":53656,"dt2":1216440,"te":7987,"item":337.91,"dt3":"WPDRILL","time":"09/27/2022 12:43:24.602","dt5":2687.14}
Takes around 12 to 15 seconds to generate chart by parsing this data. Am I missing something? How long does it take to parse and generate highchart for 2 million lines of data.
// Takes around 15 seconds to compute below and generate chart
if (data.item === undefined) {
data.item = null
}
item.push(data.item)
if (data.time === undefined) {
data.time = null
}
fulldate.push(data.time);
/* even filtering data as below takes more than 12 seconds to generate chart.
if (data.dt=== "something") {
item.push(data.item)
fulldate.push(data.time);
} */
I have attached fiddle to show my basic file which takes 12 to 15 seconds to generate data:
https://jsfiddle.net/01t23jef/3//