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)
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:
@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.