Chart class

Represents a chart sheet in the workbook.

Constructors

Chart(Worksheet sheet)
Create an instances of Chart class.

Properties

bottomRow int
Represent the chart bottom row.
getter/setter pair
chartTitle String?
Gets chart title.
getter/setter pair
chartTitleArea ChartTextArea
Gets chart text area.
no setter
chartType ExcelChartType
Excel chart type
getter/setter pair
dataRange ↔ Range?
Gets the data range for the chart series.
getter/setter pair
depthPercent int
Returns the depth of a 3-D chart as a percentage of the chart width (between 20 and 2000 percent).
getter/setter pair
elevation int
Get the elevation of the 3-D chart view, in degrees (-90 to +90 degrees).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasLegend bool
Gets the boolean value to display the chart legend, True by default.
getter/setter pair
hasPlotArea bool
Gets a boolean value indicating whether the chart has plot area.
no setter
hasTitle bool
Gets indicates whether to display chart title or not.
getter/setter pair
index int
Represent chart index.
getter/setter pair
is3DChart bool
no setter
isCategoryAxisAvail bool
True if chart has a category axis. False otherwise. Read-only.
no setter
isChartBar bool
True if chart is a bar chart. False otherwise. Read-only.
no setter
isColumnOrBar bool
no setter
isdefaultElevation bool
no setter
isDefaultRotation bool
no setter
isSeriesInRows bool
True if chart has a series in row. False otherwise. Read-only.
getter/setter pair
isValueAxisAvail bool
True if chart has a value axis. False otherwise. Read-only.
no setter
leftColumn int
Represent the chart left colunm.
getter/setter pair
legend ChartLegend?
Gets the chart legend.
no setter
linePattern ExcelChartLinePattern
Represents ChartArea border line property.
getter/setter pair
linePatternColor String?
ChartArea border line color property.
getter/setter pair
name String
Represents charts name.
getter/setter pair
perspective int
Get the perspective for the 3D chart view (0 to 100).
getter/setter pair
plotArea ChartPlotArea
Get a plotArea
getter/setter pair
primaryCategoryAxis ChartCategoryAxis
Get the primaryCategoryAxis
getter/setter pair
primaryValueAxis ChartValueAxis
Get the primary value axis.
getter/setter pair
rightAngleAxes bool
True if the chart axes are at right angles, independent of chart rotation or elevation. otherwise False. Returns the RightAngleAxes of a 3-D chart as a percentage of the chart width (between 20 and 2000 percent).
getter/setter pair
rightColumn int
Represents the chart right colunm.
getter/setter pair
rotation int
sets the rotation of the 3D chart view (the rotation of the plot area around the z-axis, in degrees)-(0 to 360 degrees). The value of this property must be from 0 to 360, except for 3-D bar charts, where the value must be from 0 to 44. The default value is 20. Applies only to 3-D charts. The following code illustrates how to set
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
series ChartSeriesCollection
Gets the collection of series of the chart. Read-only.
getter/setter pair
topRow int
Represents the chart top row.
getter/setter pair
worksheet ↔ Worksheet
getter/setter pair

Methods

getIs100(ExcelChartType chartType) bool
getIsClustered(ExcelChartType chartType) bool
getIsStacked(ExcelChartType chartType) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited