Home forums Using CanvasJS Pie chart, add text in the middle? Reply To: Pie chart, add text in the middle?

#24216

Vishwas R
Keymaster

@crystalcode,

As suggested by @shashiranjan, title & subtitle can be positioned in the center of the pie/doughnut by setting dockInsidePlotArea and verticalAlign properties. However as your requirement includes having a title to the top of the chart, you can use subtitle to be positioned at the center of the chart ( You can add as many subtitles as you want to a chart – So even if you like to have a subtitle at the top of the chart, you can still add another subtitle at the center of the chart). Please take a look at this updated JSFiddle.


Vishwas R
Team CanvasJS