ChartShapeType enumeration

ChartShapeType enumeration

Specifies the shape type of chart elements.

Members

NameDescription
DEFAULTIndicates that a shape is not defined for the chart element.
RECTANGLERectangle.
ROUND_RECTANGLERounded rectangle.
ELLIPSEEllipse.
DIAMONDDiamond.
TRIANGLETriangle.
RIGHT_TRIANGLERight triangle.
PARALLELOGRAMParallelogram.
TRAPEZOIDTrapezoid.
HEXAGONHexagon.
OCTAGONOctagon.
PLUSPlus.
STARStar.
ARROWArrow.
HOME_PLATEHome plate.
CUBECube.
ARCArc.
LINELine.
PLAQUEPlaque.
CANCan.
DONUTDonut.
STRAIGHT_CONNECTOR1Straight connector 1.
BENT_CONNECTOR2Bent connector 2.
BENT_CONNECTOR3Bent connector 3.
BENT_CONNECTOR4Bent connector 4.
BENT_CONNECTOR5Bent connector 5.
CURVED_CONNECTOR2Curved connector 2.
CURVED_CONNECTOR3Curved connector 3.
CURVED_CONNECTOR4Curved connector 4.
CURVED_CONNECTOR5Curved connector 5.
CALLOUT1Callout 1.
CALLOUT2Callout 2.
CALLOUT3Callout 3.
ACCENT_CALLOUT1Accent callout 1.
ACCENT_CALLOUT2Accent callout 2.
ACCENT_CALLOUT3Accent callout 3.
BORDER_CALLOUT1Callout with border 1.
BORDER_CALLOUT2Callout with border 2.
BORDER_CALLOUT3Callout with border 3.
ACCENT_BORDER_CALLOUT1Accent callout with border 1.
ACCENT_BORDER_CALLOUT2Accent callout with border 2.
ACCENT_BORDER_CALLOUT3Accent callout with border 3.
RIBBONRibbon.
RIBBON2Ribbon 2.
CHEVRONChevron.
PENTAGONPentagon.
NO_SMOKINGNo smoking.
SEAL4Four pointed star.
SEAL6Six pointed star.
SEAL7Seven pointed star.
SEAL8Eight pointed star.
SEAL10Ten pointed star.
SEAL12Twelve pointed star.
SEAL16Sixteen pointed star.
SEAL24Twenty-four pointed star.
SEAL32Thirty-two pointed star.
WEDGE_RECT_CALLOUTCallout wedge rectangle.
WEDGE_R_RECT_CALLOUTCallout wedge round rectangle.
WEDGE_ELLIPSE_CALLOUTCallout wedge ellipse.
WAVEWave.
FOLDED_CORNERFolded corner.
LEFT_ARROWLeft arrow.
DOWN_ARROWDown arrow.
UP_ARROWUp arrow.
LEFT_RIGHT_ARROWLeft and right arrow.
UP_DOWN_ARROWUp and down arrow.
IRREGULAR_SEAL1Irregular seal 1.
IRREGULAR_SEAL2Irregular seal 2.
LIGHTNING_BOLTLightning bolt.
HEARTHeart.
QUAD_ARROWQuad arrow.
LEFT_ARROW_CALLOUTCallout left arrow.
RIGHT_ARROW_CALLOUTCallout right arrow.
UP_ARROW_CALLOUTCallout up arrow.
DOWN_ARROW_CALLOUTCallout down arrow.
LEFT_RIGHT_ARROW_CALLOUTCallout left and right arrow.
UP_DOWN_ARROW_CALLOUTCallout up and down arrow.
QUAD_ARROW_CALLOUTCallout quad arrow.
BEVELBevel.
LEFT_BRACKETLeft bracket.
RIGHT_BRACKETRight bracket.
LEFT_BRACELeft brace.
RIGHT_BRACERight brace.
LEFT_UP_ARROWLeft up arrow.
BENT_UP_ARROWBent up arrow.
BENT_ARROWBent arrow.
STRIPED_RIGHT_ARROWStriped right arrow.
NOTCHED_RIGHT_ARROWNotched right arrow.
BLOCK_ARCBlock arc.
SMILEY_FACESmiley face.
VERTICAL_SCROLLVertical scroll.
HORIZONTAL_SCROLLHorizontal scroll.
CIRCULAR_ARROWCircular arrow.
UTURN_ARROWU-turn arrow.
CURVED_RIGHT_ARROWCurved right arrow.
CURVED_LEFT_ARROWCurved left arrow.
CURVED_UP_ARROWCurved up arrow.
CURVED_DOWN_ARROWCurved down arrow.
CLOUD_CALLOUTCallout cloud.
ELLIPSE_RIBBONEllipse ribbon.
ELLIPSE_RIBBON2Ellipse ribbon 2.
FLOW_CHART_PROCESSProcess flow.
FLOW_CHART_DECISIONDecision flow.
FLOW_CHART_INPUT_OUTPUTInput output flow.
FLOW_CHART_PREDEFINED_PROCESSPredefined process flow.
FLOW_CHART_INTERNAL_STORAGEInternal storage flow.
FLOW_CHART_DOCUMENTDocument flow.
FLOW_CHART_MULTIDOCUMENTMulti-document flow.
FLOW_CHART_TERMINATORTerminator flow.
FLOW_CHART_PREPARATIONPreparation flow.
FLOW_CHART_MANUAL_INPUTManual input flow.
FLOW_CHART_MANUAL_OPERATIONManual operation flow.
FLOW_CHART_CONNECTORConnector flow.
FLOW_CHART_PUNCHED_CARDPunched card flow.
FLOW_CHART_PUNCHED_TAPEPunched tape flow.
FLOW_CHART_SUMMING_JUNCTIONSumming junction flow.
FLOW_CHART_OROr flow.
FLOW_CHART_COLLATECollate flow.
FLOW_CHART_SORTSort flow.
FLOW_CHART_EXTRACTExtract flow.
FLOW_CHART_MERGEMerge flow.
FLOW_CHART_OFFLINE_STORAGEOffline storage flow.
FLOW_CHART_ONLINE_STORAGEOnline storage flow.
FLOW_CHART_MAGNETIC_TAPEMagnetic tape flow.
FLOW_CHART_MAGNETIC_DISKMagnetic disk flow.
FLOW_CHART_MAGNETIC_DRUMMagnetic drum flow.
FLOW_CHART_DISPLAYDisplay flow.
FLOW_CHART_DELAYDelay flow.
FLOW_CHART_ALTERNATE_PROCESSAlternate process flow.
FLOW_CHART_OFFPAGE_CONNECTOROff-page connector flow.
LEFT_RIGHT_UP_ARROWLeft right up arrow.
SUNSun.
MOONMoon.
BRACKET_PAIRBracket pair.
BRACE_PAIRBrace pair.
DOUBLE_WAVEDouble wave.
ACTION_BUTTON_BLANKBlank button.
ACTION_BUTTON_HOMEHome button.
ACTION_BUTTON_HELPHelp button.
ACTION_BUTTON_INFORMATIONInformation button.
ACTION_BUTTON_FORWARD_NEXTForward or next button.
ACTION_BUTTON_BACK_PREVIOUSBack or previous button.
ACTION_BUTTON_ENDEnd button.
ACTION_BUTTON_BEGINNINGBeginning button.
ACTION_BUTTON_RETURNReturn button.
ACTION_BUTTON_DOCUMENTDocument button.
ACTION_BUTTON_SOUNDSound button.
ACTION_BUTTON_MOVIEMovie button.
SINGLE_CORNER_SNIPPEDSnip single corner rectangle object.
TOP_CORNERS_SNIPPEDSnip same side corner rectangle.
DIAGONAL_CORNERS_SNIPPEDSnip diagonal corner rectangle.
TOP_CORNERS_ONE_ROUNDED_ONE_SNIPPEDSnip and round single corner rectangle.
SINGLE_CORNER_ROUNDEDRounded single corner rectangle.
TOP_CORNERS_ROUNDEDRounded same side corner rectangle.
DIAGONAL_CORNERS_ROUNDEDRounded diagonal corner rectangle.
HEPTAGONHeptagon.
CLOUDCloud.
SWOOSH_ARROWSwoosh arrow.
TEARDROPTeardrop.
SQUARE_TABSSquare tabs.
PLAQUE_TABSPlaque tabs.
PIEPie.
WEDGE_PIEWedge pie.
INVERSE_LINEInverse line.
MATH_PLUSMath plus.
MATH_MINUSMath minus.
MATH_MULTIPLYMath multiply.
MATH_DIVIDEMath divide.
MATH_EQUALMath equal.
MATH_NOT_EQUALMath not equal.
NON_ISOSCELES_TRAPEZOIDNon-isosceles trapezoid.
LEFT_RIGHT_CIRCULAR_ARROWLeft-right circular arrow.
LEFT_RIGHT_RIBBONLeft-right ribbon.
LEFT_CIRCULAR_ARROWLeft circular arrow.
FRAMEFrame.
HALF_FRAMEHalf frame.
FUNNELFunnel.
GEAR6Six-tooth gear.
GEAR9Nine-tooth gear.
DECAGONDecagon.
DODECAGONDodecagon.
DIAGONAL_STRIPEDiagonal stripe.
CORNERCorner.
CORNER_TABSCorner tabs.
CHORDChord.
CHART_PLUSChart plus.
CHART_STARChart star.
CHART_XChart X.

Examples

Shows how to set fill, stroke and callout formatting for chart data labels.

doc = aw.Document()
builder = aw.DocumentBuilder(doc=doc)
shape = builder.insert_chart(chart_type=aw.drawing.charts.ChartType.COLUMN, width=432, height=252)
chart = shape.chart
# Delete default generated series.
chart.series.clear()
# Add new series.
series = chart.series.add(series_name='AW Series 1', categories=['AW Category 1', 'AW Category 2', 'AW Category 3', 'AW Category 4'], values=[100, 200, 300, 400])
# Show data labels.
series.has_data_labels = True
series.data_labels.show_value = True
# Format data labels as callouts.
format = series.data_labels.format
format.shape_type = aw.drawing.charts.ChartShapeType.WEDGE_RECT_CALLOUT
format.stroke.color = aspose.pydrawing.Color.dark_green
format.fill.solid(aspose.pydrawing.Color.green)
series.data_labels.font.color = aspose.pydrawing.Color.yellow
# Change fill and stroke of an individual data label.
label_format = series.data_labels[0].format
label_format.stroke.color = aspose.pydrawing.Color.dark_blue
label_format.fill.solid(aspose.pydrawing.Color.blue)
doc.save(file_name=ARTIFACTS_DIR + 'Charts.FormatDataLables.docx')

See Also