Chart Class

Chart class

Encapsulates the object that represents a single Excel chart.


type Chart struct  {
	ptr unsafe.Pointer
}

Constructors

MethodDescription

Methods

MethodDescription
IsNullChecks whether the implementation object is nullptr.
GetStyleGets and sets the builtin style.
SetStyleGets and sets the builtin style.
GetChartObjectRepresents the chartShape;
GetHidePivotFieldButtonsIndicates whether hide the pivot chart field buttons only when the chart is PivotChart.
SetHidePivotFieldButtonsIndicates whether hide the pivot chart field buttons only when the chart is PivotChart.
GetPivotOptionsSpecifies the pivot controls that appear on the chart
GetPivotSourceThe source is the data of the pivotTable.If PivotSource is not empty ,the chart is PivotChart.
SetPivotSourceThe source is the data of the pivotTable.If PivotSource is not empty ,the chart is PivotChart.
IsCellReferedByChartReturns whether the cell refered by the chart.
IsChartDataChangedDetects if a chart’s data source has changed.
GetPlotByGets and sets whether plot by row or column.
RefreshPivotDataRefreshes chart’s data from pivot table.
GetPlotEmptyCellsTypeGets and sets how to plot the empty cells.
SetPlotEmptyCellsTypeGets and sets how to plot the empty cells.
GetPlotVisibleCellsOnlyIndicates whether plot visible cells only.
SetPlotVisibleCellsOnlyIndicates whether plot visible cells only.
GetDisplayNaAsBlankIndicates whether displaying #N/A as blank value.
SetDisplayNaAsBlankIndicates whether displaying #N/A as blank value.
GetNameGets and sets the name of the chart.
SetNameGets and sets the name of the chart.
GetSizeWithWindowTrue if Microsoft Excel resizes the chart to match the size of the chart sheet window.
SetSizeWithWindowTrue if Microsoft Excel resizes the chart to match the size of the chart sheet window.
GetWorksheetGets the worksheet which contains this chart.
GetShapesReturns all drawing shapes in this chart.
GetPrintSizeGets and sets the printed chart size.
SetPrintSizeGets and sets the printed chart size.
GetTypeGets or sets a chart’s type.
SetTypeGets or sets a chart’s type.
MoveMoves the chart to a specified location.
GetNSeriesGets a collection representing the data series in the chart.
GetFilteredNSeriesGets a collection representing the data series that are filtered in the chart.
GetTitleGets the chart’s title.
GetSubTitleGets the chart’s sub-title.Only for ODS format file.
GetPlotAreaGets the chart’s plot area which includes axis tick labels.
GetChartAreaGets the chart area in the worksheet.
GetCategoryAxisGets the chart’s X axis.
GetValueAxisGets the chart’s Y axis.
GetSecondValueAxisGets the chart’s second Y axis.
GetSecondCategoryAxisGets the chart’s second X axis.
GetSeriesAxisGets the chart’s series axis.
GetLegendGets the chart legend.
GetChartDataTableRepresents the chart data table.
GetShowLegendGets or sets a value indicating whether the chart legend will be displayed. Default is true.
SetShowLegendGets or sets a value indicating whether the chart legend will be displayed. Default is true.
IsRectangularCorneredGets or sets a value indicating whether the chart area is rectangular cornered.Default is true.
SetIsRectangularCorneredGets or sets a value indicating whether the chart area is rectangular cornered.Default is true.
GetShowDataTableGets or sets a value indicating whether the chart displays a data table.
SetShowDataTableGets or sets a value indicating whether the chart displays a data table.
GetFirstSliceAngleGets or sets the angle of the first pie-chart or doughnut-chart slice, in degrees (clockwise from vertical).Applies only to pie, 3-D pie, and doughnut charts, 0 to 360.
SetFirstSliceAngleGets or sets the angle of the first pie-chart or doughnut-chart slice, in degrees (clockwise from vertical).Applies only to pie, 3-D pie, and doughnut charts, 0 to 360.
GetGapWidthReturns or sets the space between bar or column clusters, as a percentage of the bar or column width.The value of this property must be between 0 and 500.
SetGapWidthReturns or sets the space between bar or column clusters, as a percentage of the bar or column width.The value of this property must be between 0 and 500.
GetGapDepthGets or sets the distance between the data series in a 3-D chart, as a percentage of the marker width.The value of this property must be between 0 and 500.
SetGapDepthGets or sets the distance between the data series in a 3-D chart, as a percentage of the marker width.The value of this property must be between 0 and 500.
CalculateCalculates the custom position of plot area, axes if the position of them are auto assigned.
Calculate_ChartCalculateOptionsCalculates the custom position of plot area, axes if the position of them are auto assigned, with Chart Calculate Options.
GetFloorReturns a object that represents the walls of a 3-D chart.
GetWallsReturns a object that represents the walls of a 3-D chart.
GetBackWallReturns a object that represents the back wall of a 3-D chart.
GetSideWallReturns a object that represents the side wall of a 3-D chart.
GetWallsAndGridlines2DTrue if gridlines are drawn two-dimensionally on a 3-D chart.
SetWallsAndGridlines2DTrue if gridlines are drawn two-dimensionally on a 3-D chart.
GetRotationAngleRepresents the rotation of the 3-D chart view (the rotation of the plot area around the z-axis, in degrees).
SetRotationAngleRepresents the rotation of the 3-D chart view (the rotation of the plot area around the z-axis, in degrees).
GetElevationRepresents the elevation of the 3-D chart view, in degrees.
SetElevationRepresents the elevation of the 3-D chart view, in degrees.
GetRightAngleAxesTrue if the chart axes are at right angles. Applies only for 3-D charts(except Column3D and 3-D Pie Charts).
SetRightAngleAxesTrue if the chart axes are at right angles. Applies only for 3-D charts(except Column3D and 3-D Pie Charts).
GetAutoScalingTrue if Microsoft Excel scales a 3-D chart so that it’s closer in size to the equivalent 2-D chart.The RightAngleAxes property must be True.
SetAutoScalingTrue if Microsoft Excel scales a 3-D chart so that it’s closer in size to the equivalent 2-D chart.The RightAngleAxes property must be True.
GetHeightPercentReturns or sets the height of a 3-D chart as a percentage of the chart width (between 5 and 500 percent).
SetHeightPercentReturns or sets the height of a 3-D chart as a percentage of the chart width (between 5 and 500 percent).
GetPerspectiveReturns or sets the perspective for the 3-D chart view. Must be between 0 and 100.This property is ignored if the RightAngleAxes property is True.
SetPerspectiveReturns or sets the perspective for the 3-D chart view. Must be between 0 and 100.This property is ignored if the RightAngleAxes property is True.
GetIs3DIndicates whether the chart is a 3d chart.
GetDepthPercentRepresents the depth of a 3-D chart as a percentage of the chart width (between 20 and 2000 percent).
SetDepthPercentRepresents the depth of a 3-D chart as a percentage of the chart width (between 20 and 2000 percent).
ToImage_StringCreates the chart image and saves it to a file.The extension of the file name determines the format of the image.
ToImage_String_ImageTypeCreates the chart image and saves it to a file in the specified image type.
ToImage_String_IntCreates the chart image and saves it to a file in the Jpeg format.
ToPdf_StringSaves the chart to a pdf file.
ToPdf_String_Float_Float_PageLayoutAlignmentType_PageLayoutAlignmentTypeSaves the chart to a pdf file.
ToImage_String_ImageOrPrintOptionsCreates the chart image and saves it to a file.The extension of the file name determines the format of the image.
GetPlacementRepresents the way the chart is attached to the cells below it.
SetPlacementRepresents the way the chart is attached to the cells below it.
GetPageSetupRepresents the page setup description in this chart.
HasAxisReturns which axes exist on the chart.
SwitchRowColumnSwitches row/column.
GetChartDataRangeGets the data source range of the chart.
SetChartDataRangeSpecifies data range for a chart.
GetLineGets the line.