Chart
Overview
Chart is a class in Aspose.Words FOSS for Java.
Inherits from: IChartFormatSource.
Provides access to the chart shape properties.
Edition status of its 26 listed members (a property and its accessor methods are listed separately, overloads once): 26 not yet exercised by a verified example.
This class declares 14 methods for Chart objects in Java programs.
Available methods include: getAxes, getAxisX, getAxisY, getAxisZ, getDataTable, getFormat, getLegend, getSeries, getSeriesGroups, getSourceFullName, getStyle, getTitle, and 2 additional methods.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: axes, axisX, axisY, axisZ, dataTable, format, and 6 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
series | ChartSeriesCollection | Read | Provides access to series collection. |
seriesGroups | ChartSeriesGroupCollection | Read | Provides access to a series group collection of this chart. |
title | ChartTitle | Read | Provides access to the chart title properties. |
legend | ChartLegend | Read | Provides access to the chart legend properties. |
dataTable | ChartDataTable | Read | Provides access to properties of a data table of this chart. |
axisX | ChartAxis | Read | Provides access to properties of the primary X axis of the chart. |
axisY | ChartAxis | Read | Provides access to properties of the primary Y axis of the chart. |
axisZ | ChartAxis | Read | Provides access to properties of the Z axis of the chart. |
axes | ChartAxisCollection | Read | Gets a collection of all axes of this chart. |
sourceFullName | String | Read/Write | Gets the path and name of an xls/xlsx file this chart is linked to. |
format | ChartFormat | Read | Provides access to fill and line formatting of the chart. |
style | int | Read/Write | Gets or sets the style of the chart. Calling the setter on a chart created with DocumentBuilder.insertChart throws a NullPointerException in this edition (run on Java 8, 17 and 21). |
Methods
| Signature | Description |
|---|---|
getSeries() → ChartSeriesCollection | Provides access to series collection. |
getSeriesGroups() → ChartSeriesGroupCollection | Provides access to a series group collection of this chart. |
getTitle() → ChartTitle | Provides access to the chart title properties. |
getLegend() → ChartLegend | Provides access to the chart legend properties. |
getDataTable() → ChartDataTable | Provides access to properties of a data table of this chart. |
getAxisX() → ChartAxis | Provides access to properties of the primary X axis of the chart. |
getAxisY() → ChartAxis | Provides access to properties of the primary Y axis of the chart. |
getAxisZ() → ChartAxis | Provides access to properties of the Z axis of the chart. |
getAxes() → ChartAxisCollection | Gets a collection of all axes of this chart. |
getSourceFullName() → String | Gets the path and name of an xls/xlsx file this chart is linked to. |
setSourceFullName(value: String) | Sets the source full name value. |
getFormat() → ChartFormat | Provides access to fill and line formatting of the chart. |
getStyle() → int | Gets or sets the style of the chart. |
setStyle(value: int) | Sets the style value. |