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

302
Visualizações
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 à 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