ChartShapeType enumeration
ChartShapeType enumeration
Specifies the shape type of chart elements.
Members
Name | Description |
---|---|
DEFAULT | Indicates that a shape is not defined for the chart element. |
RECTANGLE | Rectangle. |
ROUND_RECTANGLE | Rounded rectangle. |
ELLIPSE | Ellipse. |
DIAMOND | Diamond. |
TRIANGLE | Triangle. |
RIGHT_TRIANGLE | Right triangle. |
PARALLELOGRAM | Parallelogram. |
TRAPEZOID | Trapezoid. |
HEXAGON | Hexagon. |
OCTAGON | Octagon. |
PLUS | Plus. |
STAR | Star. |
ARROW | Arrow. |
HOME_PLATE | Home plate. |
CUBE | Cube. |
ARC | Arc. |
LINE | Line. |
PLAQUE | Plaque. |
CAN | Can. |
DONUT | Donut. |
STRAIGHT_CONNECTOR1 | Straight connector 1. |
BENT_CONNECTOR2 | Bent connector 2. |
BENT_CONNECTOR3 | Bent connector 3. |
BENT_CONNECTOR4 | Bent connector 4. |
BENT_CONNECTOR5 | Bent connector 5. |
CURVED_CONNECTOR2 | Curved connector 2. |
CURVED_CONNECTOR3 | Curved connector 3. |
CURVED_CONNECTOR4 | Curved connector 4. |
CURVED_CONNECTOR5 | Curved connector 5. |
CALLOUT1 | Callout 1. |
CALLOUT2 | Callout 2. |
CALLOUT3 | Callout 3. |
ACCENT_CALLOUT1 | Accent callout 1. |
ACCENT_CALLOUT2 | Accent callout 2. |
ACCENT_CALLOUT3 | Accent callout 3. |
BORDER_CALLOUT1 | Callout with border 1. |
BORDER_CALLOUT2 | Callout with border 2. |
BORDER_CALLOUT3 | Callout with border 3. |
ACCENT_BORDER_CALLOUT1 | Accent callout with border 1. |
ACCENT_BORDER_CALLOUT2 | Accent callout with border 2. |
ACCENT_BORDER_CALLOUT3 | Accent callout with border 3. |
RIBBON | Ribbon. |
RIBBON2 | Ribbon 2. |
CHEVRON | Chevron. |
PENTAGON | Pentagon. |
NO_SMOKING | No smoking. |
SEAL4 | Four pointed star. |
SEAL6 | Six pointed star. |
SEAL7 | Seven pointed star. |
SEAL8 | Eight pointed star. |
SEAL10 | Ten pointed star. |
SEAL12 | Twelve pointed star. |
SEAL16 | Sixteen pointed star. |
SEAL24 | Twenty-four pointed star. |
SEAL32 | Thirty-two pointed star. |
WEDGE_RECT_CALLOUT | Callout wedge rectangle. |
WEDGE_R_RECT_CALLOUT | Callout wedge round rectangle. |
WEDGE_ELLIPSE_CALLOUT | Callout wedge ellipse. |
WAVE | Wave. |
FOLDED_CORNER | Folded corner. |
LEFT_ARROW | Left arrow. |
DOWN_ARROW | Down arrow. |
UP_ARROW | Up arrow. |
LEFT_RIGHT_ARROW | Left and right arrow. |
UP_DOWN_ARROW | Up and down arrow. |
IRREGULAR_SEAL1 | Irregular seal 1. |
IRREGULAR_SEAL2 | Irregular seal 2. |
LIGHTNING_BOLT | Lightning bolt. |
HEART | Heart. |
QUAD_ARROW | Quad arrow. |
LEFT_ARROW_CALLOUT | Callout left arrow. |
RIGHT_ARROW_CALLOUT | Callout right arrow. |
UP_ARROW_CALLOUT | Callout up arrow. |
DOWN_ARROW_CALLOUT | Callout down arrow. |
LEFT_RIGHT_ARROW_CALLOUT | Callout left and right arrow. |
UP_DOWN_ARROW_CALLOUT | Callout up and down arrow. |
QUAD_ARROW_CALLOUT | Callout quad arrow. |
BEVEL | Bevel. |
LEFT_BRACKET | Left bracket. |
RIGHT_BRACKET | Right bracket. |
LEFT_BRACE | Left brace. |
RIGHT_BRACE | Right brace. |
LEFT_UP_ARROW | Left up arrow. |
BENT_UP_ARROW | Bent up arrow. |
BENT_ARROW | Bent arrow. |
STRIPED_RIGHT_ARROW | Striped right arrow. |
NOTCHED_RIGHT_ARROW | Notched right arrow. |
BLOCK_ARC | Block arc. |
SMILEY_FACE | Smiley face. |
VERTICAL_SCROLL | Vertical scroll. |
HORIZONTAL_SCROLL | Horizontal scroll. |
CIRCULAR_ARROW | Circular arrow. |
UTURN_ARROW | U-turn arrow. |
CURVED_RIGHT_ARROW | Curved right arrow. |
CURVED_LEFT_ARROW | Curved left arrow. |
CURVED_UP_ARROW | Curved up arrow. |
CURVED_DOWN_ARROW | Curved down arrow. |
CLOUD_CALLOUT | Callout cloud. |
ELLIPSE_RIBBON | Ellipse ribbon. |
ELLIPSE_RIBBON2 | Ellipse ribbon 2. |
FLOW_CHART_PROCESS | Process flow. |
FLOW_CHART_DECISION | Decision flow. |
FLOW_CHART_INPUT_OUTPUT | Input output flow. |
FLOW_CHART_PREDEFINED_PROCESS | Predefined process flow. |
FLOW_CHART_INTERNAL_STORAGE | Internal storage flow. |
FLOW_CHART_DOCUMENT | Document flow. |
FLOW_CHART_MULTIDOCUMENT | Multi-document flow. |
FLOW_CHART_TERMINATOR | Terminator flow. |
FLOW_CHART_PREPARATION | Preparation flow. |
FLOW_CHART_MANUAL_INPUT | Manual input flow. |
FLOW_CHART_MANUAL_OPERATION | Manual operation flow. |
FLOW_CHART_CONNECTOR | Connector flow. |
FLOW_CHART_PUNCHED_CARD | Punched card flow. |
FLOW_CHART_PUNCHED_TAPE | Punched tape flow. |
FLOW_CHART_SUMMING_JUNCTION | Summing junction flow. |
FLOW_CHART_OR | Or flow. |
FLOW_CHART_COLLATE | Collate flow. |
FLOW_CHART_SORT | Sort flow. |
FLOW_CHART_EXTRACT | Extract flow. |
FLOW_CHART_MERGE | Merge flow. |
FLOW_CHART_OFFLINE_STORAGE | Offline storage flow. |
FLOW_CHART_ONLINE_STORAGE | Online storage flow. |
FLOW_CHART_MAGNETIC_TAPE | Magnetic tape flow. |
FLOW_CHART_MAGNETIC_DISK | Magnetic disk flow. |
FLOW_CHART_MAGNETIC_DRUM | Magnetic drum flow. |
FLOW_CHART_DISPLAY | Display flow. |
FLOW_CHART_DELAY | Delay flow. |
FLOW_CHART_ALTERNATE_PROCESS | Alternate process flow. |
FLOW_CHART_OFFPAGE_CONNECTOR | Off-page connector flow. |
LEFT_RIGHT_UP_ARROW | Left right up arrow. |
SUN | Sun. |
MOON | Moon. |
BRACKET_PAIR | Bracket pair. |
BRACE_PAIR | Brace pair. |
DOUBLE_WAVE | Double wave. |
ACTION_BUTTON_BLANK | Blank button. |
ACTION_BUTTON_HOME | Home button. |
ACTION_BUTTON_HELP | Help button. |
ACTION_BUTTON_INFORMATION | Information button. |
ACTION_BUTTON_FORWARD_NEXT | Forward or next button. |
ACTION_BUTTON_BACK_PREVIOUS | Back or previous button. |
ACTION_BUTTON_END | End button. |
ACTION_BUTTON_BEGINNING | Beginning button. |
ACTION_BUTTON_RETURN | Return button. |
ACTION_BUTTON_DOCUMENT | Document button. |
ACTION_BUTTON_SOUND | Sound button. |
ACTION_BUTTON_MOVIE | Movie button. |
SINGLE_CORNER_SNIPPED | Snip single corner rectangle object. |
TOP_CORNERS_SNIPPED | Snip same side corner rectangle. |
DIAGONAL_CORNERS_SNIPPED | Snip diagonal corner rectangle. |
TOP_CORNERS_ONE_ROUNDED_ONE_SNIPPED | Snip and round single corner rectangle. |
SINGLE_CORNER_ROUNDED | Rounded single corner rectangle. |
TOP_CORNERS_ROUNDED | Rounded same side corner rectangle. |
DIAGONAL_CORNERS_ROUNDED | Rounded diagonal corner rectangle. |
HEPTAGON | Heptagon. |
CLOUD | Cloud. |
SWOOSH_ARROW | Swoosh arrow. |
TEARDROP | Teardrop. |
SQUARE_TABS | Square tabs. |
PLAQUE_TABS | Plaque tabs. |
PIE | Pie. |
WEDGE_PIE | Wedge pie. |
INVERSE_LINE | Inverse line. |
MATH_PLUS | Math plus. |
MATH_MINUS | Math minus. |
MATH_MULTIPLY | Math multiply. |
MATH_DIVIDE | Math divide. |
MATH_EQUAL | Math equal. |
MATH_NOT_EQUAL | Math not equal. |
NON_ISOSCELES_TRAPEZOID | Non-isosceles trapezoid. |
LEFT_RIGHT_CIRCULAR_ARROW | Left-right circular arrow. |
LEFT_RIGHT_RIBBON | Left-right ribbon. |
LEFT_CIRCULAR_ARROW | Left circular arrow. |
FRAME | Frame. |
HALF_FRAME | Half frame. |
FUNNEL | Funnel. |
GEAR6 | Six-tooth gear. |
GEAR9 | Nine-tooth gear. |
DECAGON | Decagon. |
DODECAGON | Dodecagon. |
DIAGONAL_STRIPE | Diagonal stripe. |
CORNER | Corner. |
CORNER_TABS | Corner tabs. |
CHORD | Chord. |
CHART_PLUS | Chart plus. |
CHART_STAR | Chart star. |
CHART_X | Chart 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
- module aspose.words.drawing.charts
- property ChartFormat.shape_type