Home Forums Chart Support Doughnut Chart with Center Label Reply To: Doughnut Chart with Center Label

#44627

@codetonight,

You can update the chart title dynamically to reflect the name of the selected datapoint upon clicking. Please find the code-snippet below:

click: function(e) {
  e.chart.title.set("text", e.dataPoint.name);
}

Please take a look a this JSFiddle for an example of the same.

Doughnut Chart with Title in the Center


Vishwas R
Team CanvasJS