ChartNumberFormatIsLinkedToSource Property |
Namespace: Aspose.Words.Drawing.Charts
Document doc = new Document(); DocumentBuilder builder = new DocumentBuilder(doc); // Insert chart Shape shape = builder.InsertChart(ChartType.Column, 432, 252); Chart chart = shape.Chart; // Clear demo data chart.Series.Clear(); chart.Series.Add("Aspose Test Series", new string[] { "Word", "PDF", "Excel", "GoogleDocs", "Note" }, new double[] { 1900000, 850000, 2100000, 600000, 1500000 }); // Set number format chart.AxisY.NumberFormat.FormatCode = "#,##0"; // Set this to override the above value and draw the number format from the source cell Assert.False(chart.AxisY.NumberFormat.IsLinkedToSource);