font property

ChartDataLabel.font property

Provides access to the font formatting of this data label.

get font(): Aspose.Words.Font

Examples

Shows how to use 3D effects with bubble charts.

let doc = new aw.Document();
let builder = new aw.DocumentBuilder(doc);

let shape = builder.insertChart(aw.Drawing.Charts.ChartType.Bubble3D, 500, 350);
let chart = shape.chart;

expect(chart.series.count).toEqual(1);
expect(chart.series.at(0).name).toEqual("Y-Values");
expect(chart.series.at(0).bubble3D).toEqual(true);

// Apply a data label to each bubble that displays its diameter.
for (let i = 0; i < 3; i++)
{
  chart.series.at(0).hasDataLabels = true;
  chart.series.at(0).dataLabels.at(i).showBubbleSize = true;
  chart.series.at(0).dataLabels.at(i).font.size = 12;
}

doc.save(base.artifactsDir + "Charts.bubble3D.docx");

See Also