Chart

Inheritance: java.lang.Object, com.aspose.slides.Shape, com.aspose.slides.GraphicalObject

All Implemented Interfaces: com.aspose.slides.IChart

public class Chart extends GraphicalObject implements IChart

Represents an graphic chart on a slide.

Methods

Method Description
validateChartLayout() Calculates actual values of chart elements.
getPlotVisibleCellsOnly() Determines whether the only visible cells are plotted.
setPlotVisibleCellsOnly(boolean value) Determines whether the only visible cells are plotted.
getDisplayBlanksAs() Returns or sets the way to plot blank cells on a chart.
setDisplayBlanksAs(int value) Returns or sets the way to plot blank cells on a chart.
getChartData() Returns information about the linked or embedded data associated with a chart.
hasTitle() Determines whether a chart has a visible title.
setTitle(boolean value) Determines whether a chart has a visible title.
getChartTitle() Returns or sets a chart title.
hasDataTable() Determines whether a chart has a data table.
setDataTable(boolean value) Determines whether a chart has a data table.
hasLegend() Determines whether a chart has a legend.
setLegend(boolean value) Determines whether a chart has a legend.
getLegend() Returns or sets a legend for a chart.
getChartDataTable() Returns a data table of a chart.
getStyle() Returns or sets the chart style.
setStyle(int value) Returns or sets the chart style.
getType() Returns or sets the chart type.
setType(int value) Returns or sets the chart type.
getPlotArea() Represents the plot area of a chart.
getRotation3D() Returns a 3D rotation of a chart.
getBackWall() Returns an object which allows to change format of the back wall of a 3D chart.
getSideWall() Returns an object which allows to change format of the side wall of a 3D chart.
getFloor() Returns an object which allows to change format of the floor of a 3D chart.
getTextFormat() Returns chart text format.
createThemeEffective() Returns an effective theme for this chart.
getThemeManager() Returns theme manager.
getUserShapes() Specify the shapes drawn on top of the chart.
getAxes() Provide access to chart axes.
getShowDataLabelsOverMaximum() Specifies data labels over the maximum of the chart shall be shown.
setShowDataLabelsOverMaximum(boolean value) Specifies data labels over the maximum of the chart shall be shown.
hasRoundedCorners() Specifies the chart area shall have rounded corners.
setRoundedCorners(boolean value) Specifies the chart area shall have rounded corners.
getChart()

validateChartLayout()

public final void validateChartLayout()

Calculates actual values of chart elements. The actual values include position of elements that implement IActualLayout interface (IActualLayout.ActualX, IActualLayout.ActualY, IActualLayout.ActualWidth, IActualLayout.ActualHeight) and actual axes values (IAxis.ActualMaxValue, IAxis.ActualMinValue, IAxis.ActualMajorUnit, IAxis.ActualMinorUnit, IAxis.ActualMajorUnitScale, IAxis.ActualMinorUnitScale)

getPlotVisibleCellsOnly()

public final boolean getPlotVisibleCellsOnly()

Determines whether the only visible cells are plotted. False to plot both visible and hidden cells. Read/write boolean.

Returns: boolean

setPlotVisibleCellsOnly(boolean value)

public final void setPlotVisibleCellsOnly(boolean value)

Determines whether the only visible cells are plotted. False to plot both visible and hidden cells. Read/write boolean.

Parameters:

Parameter Type Description
value boolean

getDisplayBlanksAs()

public final int getDisplayBlanksAs()

Returns or sets the way to plot blank cells on a chart. Read/write DisplayBlanksAsType.

Returns: int

setDisplayBlanksAs(int value)

public final void setDisplayBlanksAs(int value)

Returns or sets the way to plot blank cells on a chart. Read/write DisplayBlanksAsType.

Parameters:

Parameter Type Description
value int

getChartData()

public final IChartData getChartData()

Returns information about the linked or embedded data associated with a chart. Read-only IChartData.

Returns: IChartData

hasTitle()

public final boolean hasTitle()

Determines whether a chart has a visible title. Read/write boolean.

Returns: boolean

setTitle(boolean value)

public final void setTitle(boolean value)

Determines whether a chart has a visible title. Read/write boolean.

Parameters:

Parameter Type Description
value boolean

getChartTitle()

public final IChartTitle getChartTitle()

Returns or sets a chart title. Read-only IChartTitle.

Returns: IChartTitle

hasDataTable()

public final boolean hasDataTable()

Determines whether a chart has a data table. Read/write boolean.

Returns: boolean

setDataTable(boolean value)

public final void setDataTable(boolean value)

Determines whether a chart has a data table. Read/write boolean.

Parameters:

Parameter Type Description
value boolean

hasLegend()

public final boolean hasLegend()

Determines whether a chart has a legend. Read/write boolean.

Returns: boolean

setLegend(boolean value)

public final void setLegend(boolean value)

Determines whether a chart has a legend. Read/write boolean.

Parameters:

Parameter Type Description
value boolean

getLegend()

public final ILegend getLegend()

Returns or sets a legend for a chart. Read-only ILegend.

Returns: ILegend

getChartDataTable()

public final IDataTable getChartDataTable()

Returns a data table of a chart. Read-only IDataTable.

Returns: IDataTable

getStyle()

public final int getStyle()

Returns or sets the chart style. Read/write StyleType.

Returns: int

setStyle(int value)

public final void setStyle(int value)

Returns or sets the chart style. Read/write StyleType.

Parameters:

Parameter Type Description
value int

getType()

public final int getType()

Returns or sets the chart type. Read/write ChartType.

Returns: int

setType(int value)

public final void setType(int value)

Returns or sets the chart type. Read/write ChartType.

Parameters:

Parameter Type Description
value int

getPlotArea()

public final IChartPlotArea getPlotArea()

Represents the plot area of a chart. Read-only IChartPlotArea.

Returns: IChartPlotArea

getRotation3D()

public final IRotation3D getRotation3D()

Returns a 3D rotation of a chart. Read-only IRotation3D.

Returns: IRotation3D

getBackWall()

public final IChartWall getBackWall()

Returns an object which allows to change format of the back wall of a 3D chart. Read-only IChartWall.

Returns: IChartWall

getSideWall()

public final IChartWall getSideWall()

Returns an object which allows to change format of the side wall of a 3D chart. Read-only IChartWall.

Returns: IChartWall

getFloor()

public final IChartWall getFloor()

Returns an object which allows to change format of the floor of a 3D chart. Read-only IChartWall.

Returns: IChartWall

getTextFormat()

public final IChartTextFormat getTextFormat()

Returns chart text format. The property is not applicable for the following types: ChartType#Treemap, ChartType#Sunburst, ChartType#Waterfall, ChartType#Histogram, ChartType#Funnel,ChartType#BoxAndWhisker. Read-only IChartTextFormat.

Returns: IChartTextFormat

createThemeEffective()

public final IThemeEffectiveData createThemeEffective()

Returns an effective theme for this chart.

Returns: IThemeEffectiveData

getThemeManager()

public final IOverrideThemeManager getThemeManager()

Returns theme manager. Read-only IOverrideThemeManager.

Returns: IOverrideThemeManager

getUserShapes()

public final IGroupShape getUserShapes()

Specify the shapes drawn on top of the chart. Read-only IGroupShape.

Returns: IGroupShape

getAxes()

public final IAxesManager getAxes()

Provide access to chart axes. Read-only IAxesManager.

Returns: IAxesManager

getShowDataLabelsOverMaximum()

public final boolean getShowDataLabelsOverMaximum()

Specifies data labels over the maximum of the chart shall be shown. Read/write boolean.

Returns: boolean

setShowDataLabelsOverMaximum(boolean value)

public final void setShowDataLabelsOverMaximum(boolean value)

Specifies data labels over the maximum of the chart shall be shown. Read/write boolean.

Parameters:

Parameter Type Description
value boolean

hasRoundedCorners()

public final boolean hasRoundedCorners()

Specifies the chart area shall have rounded corners. Read/write boolean.

Returns: boolean

setRoundedCorners(boolean value)

public final void setRoundedCorners(boolean value)

Specifies the chart area shall have rounded corners. Read/write boolean.

Parameters:

Parameter Type Description
value boolean

getChart()

public final IChart getChart()

Returns the chart. Read-only IChart.

Returns: IChart