ChartAxisHidden Property

Gets or sets a flag indicating whether this axis is hidden or not.

Namespace:  Aspose.Words.Drawing.Charts
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.7.0

Syntax

public bool Hidden { get; set; }

Property Value

Type: Boolean

Remarks

Default value is false.

Examples

Shows how to hide chart axes.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

// Insert chart
Shape shape = builder.InsertChart(ChartType.Line, 432, 252);
Chart chart = shape.Chart;

// Hide both the X and Y axes
chart.AxisX.Hidden = true;
chart.AxisY.Hidden = true;

// Clear demo data
chart.Series.Clear();
chart.Series.Add("AW Series 1",
    new string[] { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" },
    new double[] { 1.2, 0.3, 2.1, 2.9, 4.2 });

doc.Save(ArtifactsDir + "Charts.HideChartAxis.docx");

See Also