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.1
Syntax
public bool Hidden { get; set; }

Property Value

Type: Boolean
Remarks
Default value is false.
Examples
Shows how to hide chart axises.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

// Insert chart
Shape shape = builder.InsertChart(ChartType.Line, 432, 252);
Chart chart = shape.Chart;
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 });

MemoryStream stream = new MemoryStream();
doc.Save(stream, SaveFormat.Docx);

shape = (Shape)doc.GetChild(NodeType.Shape, 0, true);
chart = shape.Chart;

Assert.AreEqual(true, chart.AxisX.Hidden);
Assert.AreEqual(true, chart.AxisY.Hidden);
See Also