Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

156
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda