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

NameTypeAccessDescription
seriesChartSeriesCollectionReadProvides access to series collection.
seriesGroupsChartSeriesGroupCollectionReadProvides access to a series group collection of this chart.
titleChartTitleReadProvides access to the chart title properties.
legendChartLegendReadProvides access to the chart legend properties.
dataTableChartDataTableReadProvides access to properties of a data table of this chart.
axisXChartAxisReadProvides access to properties of the primary X axis of the chart.
axisYChartAxisReadProvides access to properties of the primary Y axis of the chart.
axisZChartAxisReadProvides access to properties of the Z axis of the chart.
axesChartAxisCollectionReadGets a collection of all axes of this chart.
sourceFullNameStringRead/WriteGets the path and name of an xls/xlsx file this chart is linked to.
formatChartFormatReadProvides access to fill and line formatting of the chart.
styleintRead/WriteGets 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

SignatureDescription
getSeries() → ChartSeriesCollectionProvides access to series collection.
getSeriesGroups() → ChartSeriesGroupCollectionProvides access to a series group collection of this chart.
getTitle() → ChartTitleProvides access to the chart title properties.
getLegend() → ChartLegendProvides access to the chart legend properties.
getDataTable() → ChartDataTableProvides access to properties of a data table of this chart.
getAxisX() → ChartAxisProvides access to properties of the primary X axis of the chart.
getAxisY() → ChartAxisProvides access to properties of the primary Y axis of the chart.
getAxisZ() → ChartAxisProvides access to properties of the Z axis of the chart.
getAxes() → ChartAxisCollectionGets a collection of all axes of this chart.
getSourceFullName() → StringGets the path and name of an xls/xlsx file this chart is linked to.
setSourceFullName(value: String)Sets the source full name value.
getFormat() → ChartFormatProvides access to fill and line formatting of the chart.
getStyle() → intGets or sets the style of the chart.
setStyle(value: int)Sets the style value.

See Also