Donut Chart Title Different Font

Hi, how can I add different font and new lines into the “Chart Title” in the word file?

return object from API

// In C# code
class data {
    public int No {get;set;}
}
engine.BuildReport(document, data);

// in Aspose word (template.docx)
<<[No]>> (font:15)


Category (font:8)

@leoteoh

Unfortunately, setting of different font for chart title parts is not supported. A font applied to the first chart title part is used for the whole title in a result document.

New lines can be added by using '\r' character. For example, the following expression in a chart title would produce a new line:

<<["value1\rvalue2"]>>

Hi @ivan.lyagin, may I know is any other way to populate for different font for the chart title, or using any custom textbox?

@leoteoh You can put a textbox shape with transparent background above the chart and put the formatted text into the textbox. The textbox should be a separate shape, not a part of the chart.