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

119
Views
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 answers
Answer question

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 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!