Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

159
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda