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

303
Vistas
How can I add gradient colors at borders in Chartjs

I'm working on a multiple level doughnut chart and I'm trying to make the colors of the two sets of data blend in at the borders within each ring and I'm not sure if it's even possible.

I'll be using dynamic data in the chart. I added radial gradient colors to two of the datasets but that's not what I need because it's using the whole canvas so the gradient continues from one dataset to another and I need a separate one for each dataset.

I need the Data2 part to be blue and the Data1 to be red and for them to just blend near the border.

I also tried using a gradient plugin but it seems that it's not working on doughnut charts.

I'm using the React wrapped Chartjs version btw.

Here is the chart in question:
https://codesandbox.io/s/sharp-leftpad-ls98m?file=/src/charts/doughnut.js

Any help would be appreciated!

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