Chart Class |
Namespace: Aspose.Words.Drawing.Charts
The Chart type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | AxisX |
Provides access to properties of the X axis of the chart.
|
![]() ![]() | AxisY |
Provides access to properties of the Y axis of the chart.
|
![]() ![]() | AxisZ |
Provides access to properties of the Z axis of the chart.
|
![]() ![]() | Legend |
Provides access to the chart legend properties.
|
![]() ![]() | Series |
Provides access to series collection.
|
![]() ![]() | Title |
Provides access to the chart title properties.
|
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
Document doc = new Document(); DocumentBuilder builder = new DocumentBuilder(doc); // Use a document builder to insert a bar chart Shape chartShape = builder.InsertChart(ChartType.Bar, 400, 300); Assert.AreEqual(ShapeType.NonPrimitive, chartShape.ShapeType); Assert.True(chartShape.HasChart); // Get the chart object from the containing shape Chart chart = chartShape.Chart; // Set the title text, which appears at the top center of the chart and modify its appearance ChartTitle title = chart.Title; title.Text = "MyChart"; title.Overlay = true; title.Show = true; doc.Save(ArtifactsDir + "Charts.ChartTitle.docx");