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

154
Views
Pagination for Chart.js line chart?

So I have tons of data, about 10000 rows of data which all needs to be shown in the line chart somehow. I would like it if there was a pagination system. Like click on an arrow and it shows the next 20 data points etc.

Currently my app just crashes if I try to load all of the 10000 points into the chart. Is there something I can do to prevent this performance issue, lazyload orsmth?

Oh and I'm using chart js and react-chart-js-2

Big thanks ahead

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

0

Thanks to @LeeLenalee!

So chart js doesn't have pagination options. What I did was make 2 buttons which onClick show me the next 20 data values or previous 20 data values. I slice the arrays which get sent into the Line chart label, datasets.

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!