Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

242
Views
Plot 400K graphs of 2 points from CSV with Highcharts

I am trying to plot ~400K graphs in Highcharts from a CSV file which has the following structure:

x1, x2, y
0.03, 0.034, 1
0.2, 0.23, -1
0.3, 0.31, 0.4
0.32, 0.37, 0.7
[...]

Each line contains a function going from (x1, y) to (x2, y).

My first approach was to transform this CSV data to the series format of Highcharts and hardcode it in the JS snippet. This does work, as it can be seen on my Fiddle:

https://jsfiddle.net/4kt7f8w3/

The problem is that this is completely inefficient. Therefore, when the number of functions plotted is over 10K, the web browser crashes.

I have also seen that there is a way to read CSVs on Highcharts, but as it can be seen on the example, the read csv function on Highcharts expects a different format.

Also, I have seen that there are examples on Highcharts with huge loads using boost module. Therefore, I believe that it is possible to plot these ~400K functions from a csv file within a graph using Highcharts, but I have not found a way to do this. Any guesses?

PS: the csv comes from a Python module that I can modify as I wish in order to read the given data from there.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Mapping series data.seriesMapping should help for first questions.

An array containing dictionaries for each series. A dictionary exists of Point property names as the key and the CSV column index as the value.

API References: https://api.highcharts.com/highcharts/data.seriesMapping


Questions:

So you want to render over 400k series with single points, right? Why don't you want to use the boost module?

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!