How can I add a title to c3.js chart

smart987 picture smart987 · Feb 23, 2015 · Viewed 16.3k times · Source

Can any one suggest me the way of adding title to the C3.js line and bar charts ? I have got the following sample but it is for gauge chart. For any c3 chart is there any option to set the chart title?

donut: {
  title: 'Title'
}

Answer

dbone picture dbone · Feb 4, 2016

This was a top google result, so I thought I'd add that this is now part of the library:

title: {
  text: 'My Title'
}

More info @ https://github.com/masayuki0812/c3/pull/1025