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

146
Vistas
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 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