Skip to main content

ApiChart

ApiChart is a subclass of ApiDrawing.

Methods

MethodReturnsDescription
AddBreakbooleanInserts a break at the specified location in the main document.
ApplyChartStylebooleanSets a style to the current chart by style ID.
CopyApiDrawingCopies the current graphic object.
DeletebooleanDeletes the current graphic object.
FillbooleanSets the fill formatting properties to the current graphic object.
GetAllSeriesApiChartSeries[]Returns all series from the chart space.
GetChartTypeChartTypeReturns a type of the chart object.
GetClassType"chart"Returns a type of the ApiChart class.
GetContentApiDocumentContentReturns the drawing inner contents where a paragraph or text runs can be inserted if it exists.
GetFlipHboolean | nullGet horizontal flip of current drawing.
GetFlipVboolean | nullGet vertical flip of current drawing.
GetHeightEMUReturns the height of the current drawing.
GetLockValuebooleanReturns the lock value for the specified lock type of the current drawing.
GetNamestringReturns the name of the current drawing.
GetNextChartApiChart | nullReturns the next inline chart if exists.
GetNextDrawingApiDrawing | nullReturns the next inline drawing object if exists.
GetParentContentControlApiBlockLvlSdt | nullReturns a parent content control that contains the graphic object.
GetParentParagraphApiParagraph | nullReturns a parent paragraph that contains the graphic object.
GetParentTableApiTable | nullReturns a parent table that contains the graphic object.
GetParentTableCellApiTableCell | nullReturns a parent table cell that contains the graphic object.
GetPrevChartApiChart | nullReturns the previous inline chart if exists.
GetPrevDrawingApiDrawing | nullReturns the previous inline drawing object if exists.
GetRotationnumberReturns the rotation angle of the current drawing object.
GetSeriesApiChartSeriesReturns the series with a specific index.
GetTitlestring | nullReturns the chart title text.
GetWidthEMUReturns the width of the current drawing.
InsertInContentControlApiDrawing | ApiBlockLvlSdtWraps the graphic object with a rich text content control.
InsertParagraphApiParagraph | ApiDrawingInserts a paragraph at the specified position.
RemoveSeriabooleanRemoves the specified series from the current chart.
ScaleHeightbooleanScales the height of the figure using the specified coefficient.
ScaleWidthbooleanScales the width of the figure using the specified coefficient.
SelectbooleanSelects the current graphic object.
SetAxieNumFormatbooleanSets the specified numeric format to the axis values.
SetCategoryNamebooleanSets a name to the specified chart category.
SetDataPointFillbooleanSets the fill to the data point in the specified chart series.
SetDataPointNumFormatbooleanSets the specified numeric format to the chart data point.
SetDataPointOutLinebooleanSets the outline to the data point in the specified chart series.
SetDistancesbooleanSpecifies the minimum distance which will be maintained between the edges of the current drawing object and any subsequent text.
SetDrawingPrFromDrawingbooleanSets the properties from another drawing to the current drawing. The following properties will be copied: horizontal and vertical alignment, distance between the edges of the current drawing object and any subsequent text, wrapping style, drawing name, title and description.
SetFlipHbooleanSets the horizontal flip of the current drawing.
SetFlipVbooleanSets the vertical flip of the current drawing.
SetHorAlignbooleanSpecifies how the floating object will be horizontally aligned.
SetHorAxisLabelsFontSizebooleanSpecifies font size for labels of the horizontal axis.
SetHorAxisMajorTickMarkbooleanSpecifies major tick mark for the horizontal axis.
SetHorAxisMinorTickMarkbooleanSpecifies minor tick mark for the horizontal axis.
SetHorAxisOrientationbooleanSpecifies the horizontal axis orientation.
SetHorAxisTickLabelPositionbooleanSpicifies tick labels position for the horizontal axis.
SetHorAxisTitlebooleanSpecifies the chart horizontal axis title.
SetHorFlipbooleanFlips the current drawing horizontally.
SetHorPositionbooleanSets the absolute measurement for the horizontal positioning of the floating object.
SetLegendFillbooleanSets the fill to the chart legend.
SetLegendFontSizebooleanSpecifies the legend font size.
SetLegendOutLinebooleanSets the outline to the chart legend.
SetLegendPosbooleanSpecifies the chart legend position.
SetLockValuebooleanSets the lock value to the specified lock type of the current drawing.
SetMajorHorizontalGridlinesbooleanSpecifies major horizontal gridline visual properties.
SetMajorVerticalGridlinesbooleanSpecifies major vertical gridline visual properties.
SetMarkerFillbooleanSets the fill to the marker in the specified chart series.
SetMarkerOutLinebooleanSets the outline to the marker in the specified chart series.
SetMinorHorizontalGridlinesbooleanSpecifies minor horizontal gridline visual properties.
SetMinorVerticalGridlinesbooleanSpecifies minor vertical gridline visual properties.
SetNamebooleanSets the name of the current drawing. If another drawing with the same name already exists, that drawing's name will be reset to a default auto-generated name.
SetOutLinebooleanSets the outline properties to the specified graphic object.
SetPlotAreaFillbooleanSets the fill to the chart plot area.
SetPlotAreaOutLinebooleanSets the outline to the chart plot area.
SetRelativeHeightbooleanSets the relative height of the object (image, shape, chart) bounding box.
SetRelativeWidthbooleanSets the relative width of the object (image, shape, chart) bounding box.
SetRotationbooleanSets the rotation angle to the current drawing object.
SetSeriaNamebooleanSets a name to the specified chart series.
SetSeriaNumFormatbooleanSets the specified numeric format to the chart series.
SetSeriaValuesbooleanSets values to the specified chart series.
SetSeriesFillbooleanSets the fill to the specified chart series.
SetSeriesOutLinebooleanSets the outline to the specified chart series.
SetShowDataLabelsbooleanSpecifies which chart data labels are shown for the chart.
SetShowPointDataLabelbooleanSpicifies the show options for data labels.
SetSizebooleanSets the size of the object (image, shape, chart) bounding box.
SetTitlebooleanSpecifies the chart title.
SetTitleFillbooleanSets the fill to the chart title.
SetTitleOutLinebooleanSets the outline to the chart title.
SetVerAlignbooleanSpecifies how the floating object will be vertically aligned.
SetVerAxisOrientationbooleanSpecifies the vertical axis orientation.
SetVerAxisTitlebooleanSpecifies the chart vertical axis title.
SetVerPositionbooleanSets the absolute measurement for the vertical positioning of the floating object.
SetVertAxisLabelsFontSizebooleanSpecifies font size for labels of the vertical axis.
SetVertAxisMajorTickMarkbooleanSpecifies major tick mark for the vertical axis.
SetVertAxisMinorTickMarkbooleanSpecifies minor tick mark for the vertical axis.
SetVertAxisTickLabelPositionbooleanSpicifies tick labels position for the vertical axis.
SetVertFlipbooleanFlips the current drawing vertically.
SetWrappingStylebooleanSets the wrapping type of the current object (image, shape, chart). One of the following wrapping style types can be set: "inline" - the object is considered to be a part of the text, like a character, so when the text moves, the object moves as well. In this case the positioning options are inaccessible. If one of the following styles is selected, the object can be moved independently of the text and positioned on the page exactly: "square" - the text wraps the rectangular box that bounds the object. "tight" - the text wraps the actual object edges. "through" - the text wraps around the object edges and fills in the open white space within the object. "topAndBottom" - the text is only above and below the object. "behind" - the text overlaps the object. "inFront" - the object overlaps the text.
SetXValuesbooleanSets the x-axis values to all chart series. It is used with the scatter charts only.
ToJSONJSONConverts the ApiDrawing object into the JSON object.
UnselectbooleanRemoves the current graphic object from the selection.