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

109
Visualizações
Update Chart using react

I really struggle to find a solution and to even find if what I want to do is possible...

I have a react application that basically displays a chart (thanks to react-chartjs-2).

Here is the basic content of my chart. I successfully managed to delete the desired column thanks to labels[]. However by doing the same with data[], I manage to modify it (saw it by printing it) but it doesn't display on the chart. Is there a way to do this ? Easily ?

I thank everyone that has at least read my problem, I hope I'll find a solution soon... Thanks !

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

OK I finally found that I could manage what I wanted. By adding the "redraw" tag in the parameters of my element and By setting a key=Date.now() in my initial state : so that every time I want to update my chart, I'll reset my key=Date.now() so that the state will understand that something has changed.

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