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

255
Views
How can I show percentage value in title of donut c3.js chart

Can any one suggest me the way of showing percentage instead of title in the C3.js donut chart ?

For any donut c3 chart is there any option to change the title value to percentage value of the selected part of the donut chart ?

I am using this code for my Donut chart.

var chart3 = c3.generate({
                bindto: '#chart3',
                data: {
                    columns: [
                        ['data1', data1],
                        ['data2', data2],
                        ['data3', data3],
                        ['data4', data4],
                        ['data5', data5],
                    ],
                    type: 'donut',
                    onclick: function (d, i) { console.log("onclick", d, i); },
                    onmouseover: function (d, i) { console.log("onmouseover", d, i); },
                    onmouseout: function (d, i) { console.log("onmouseout", d, i); }
                },
                donut: {
                    title: "Iris Petal Width"
                }
            });

and getting the following as output Donut Chart

Any Help is 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!