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

145
Visualizações
How can I make the legend change colors when unselected in React-Chartjs

I have a bar chart and I made some edits to the legend, but there is one I'm struggling to add in.

I have an onClick action that makes the chart only show one dataset and I put the sum of the dataset values next to the legend labels using generateLabels, and all I need now is to make the unselected labels become a lighter tone of color instead of having a strikethrough line but I've been looking everywhere for a solution but I can't find it.

This is the chart I'm working on: https://codesandbox.io/s/agitated-christian-0byxz

about 4 years ago · Juan Pablo Isaza
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