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

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