ChartShapeType

ChartShapeType enumeration

Specifies the shape type of chart elements.

public enum ChartShapeType

Values

NameValueDescription
Default0Indicates that a shape is not defined for the chart element.
Rectangle1Rectangle.
RoundRectangle2Rounded rectangle.
Ellipse3Ellipse.
Diamond4Diamond.
Triangle5Triangle.
RightTriangle6Right triangle.
Parallelogram7Parallelogram.
Trapezoid8Trapezoid.
Hexagon9Hexagon.
Octagon10Octagon.
Plus11Plus.
Star12Star.
Arrow13Arrow.
HomePlate14Home plate.
Cube15Cube.
Arc16Arc.
Line17Line.
Plaque18Plaque.
Can19Can.
Donut20Donut.
StraightConnector121Straight connector 1.
BentConnector222Bent connector 2.
BentConnector323Bent connector 3.
BentConnector424Bent connector 4.
BentConnector525Bent connector 5.
CurvedConnector226Curved connector 2.
CurvedConnector327Curved connector 3.
CurvedConnector428Curved connector 4.
CurvedConnector529Curved connector 5.
Callout130Callout 1.
Callout231Callout 2.
Callout332Callout 3.
AccentCallout133Accent callout 1.
AccentCallout234Accent callout 2.
AccentCallout335Accent callout 3.
BorderCallout136Callout with border 1.
BorderCallout237Callout with border 2.
BorderCallout338Callout with border 3.
AccentBorderCallout139Accent callout with border 1.
AccentBorderCallout240Accent callout with border 2.
AccentBorderCallout341Accent callout with border 3.
Ribbon42Ribbon.
Ribbon243Ribbon 2.
Chevron44Chevron.
Pentagon45Pentagon.
NoSmoking46No smoking.
Seal447Four pointed star.
Seal648Six pointed star.
Seal749Seven pointed star.
Seal850Eight pointed star.
Seal1051Ten pointed star.
Seal1252Twelve pointed star.
Seal1653Sixteen pointed star.
Seal2454Twenty-four pointed star.
Seal3255Thirty-two pointed star.
WedgeRectCallout56Callout wedge rectangle.
WedgeRRectCallout57Callout wedge round rectangle.
WedgeEllipseCallout58Callout wedge ellipse.
Wave59Wave.
FoldedCorner60Folded corner.
LeftArrow61Left arrow.
DownArrow62Down arrow.
UpArrow63Up arrow.
LeftRightArrow64Left and right arrow.
UpDownArrow65Up and down arrow.
IrregularSeal166Irregular seal 1.
IrregularSeal267Irregular seal 2.
LightningBolt68Lightning bolt.
Heart69Heart.
QuadArrow70Quad arrow.
LeftArrowCallout71Callout left arrow.
RightArrowCallout72Callout right arrow.
UpArrowCallout73Callout up arrow.
DownArrowCallout74Callout down arrow.
LeftRightArrowCallout75Callout left and right arrow.
UpDownArrowCallout76Callout up and down arrow.
QuadArrowCallout77Callout quad arrow.
Bevel78Bevel.
LeftBracket79Left bracket.
RightBracket80Right bracket.
LeftBrace81Left brace.
RightBrace82Right brace.
LeftUpArrow83Left up arrow.
BentUpArrow84Bent up arrow.
BentArrow85Bent arrow.
StripedRightArrow86Striped right arrow.
NotchedRightArrow87Notched right arrow.
BlockArc88Block arc.
SmileyFace89Smiley face.
VerticalScroll90Vertical scroll.
HorizontalScroll91Horizontal scroll.
CircularArrow92Circular arrow.
UturnArrow93U-turn arrow.
CurvedRightArrow94Curved right arrow.
CurvedLeftArrow95Curved left arrow.
CurvedUpArrow96Curved up arrow.
CurvedDownArrow97Curved down arrow.
CloudCallout98Callout cloud.
EllipseRibbon99Ellipse ribbon.
EllipseRibbon2100Ellipse ribbon 2.
FlowChartProcess101Process flow.
FlowChartDecision102Decision flow.
FlowChartInputOutput103Input output flow.
FlowChartPredefinedProcess104Predefined process flow.
FlowChartInternalStorage105Internal storage flow.
FlowChartDocument106Document flow.
FlowChartMultidocument107Multi-document flow.
FlowChartTerminator108Terminator flow.
FlowChartPreparation109Preparation flow.
FlowChartManualInput110Manual input flow.
FlowChartManualOperation111Manual operation flow.
FlowChartConnector112Connector flow.
FlowChartPunchedCard113Punched card flow.
FlowChartPunchedTape114Punched tape flow.
FlowChartSummingJunction115Summing junction flow.
FlowChartOr116Or flow.
FlowChartCollate117Collate flow.
FlowChartSort118Sort flow.
FlowChartExtract119Extract flow.
FlowChartMerge120Merge flow.
FlowChartOfflineStorage121Offline storage flow.
FlowChartOnlineStorage122Online storage flow.
FlowChartMagneticTape123Magnetic tape flow.
FlowChartMagneticDisk124Magnetic disk flow.
FlowChartMagneticDrum125Magnetic drum flow.
FlowChartDisplay126Display flow.
FlowChartDelay127Delay flow.
FlowChartAlternateProcess128Alternate process flow.
FlowChartOffpageConnector129Off-page connector flow.
LeftRightUpArrow130Left right up arrow.
Sun131Sun.
Moon132Moon.
BracketPair133Bracket pair.
BracePair134Brace pair.
DoubleWave135Double wave.
ActionButtonBlank136Blank button.
ActionButtonHome137Home button.
ActionButtonHelp138Help button.
ActionButtonInformation139Information button.
ActionButtonForwardNext140Forward or next button.
ActionButtonBackPrevious141Back or previous button.
ActionButtonEnd142End button.
ActionButtonBeginning143Beginning button.
ActionButtonReturn144Return button.
ActionButtonDocument145Document button.
ActionButtonSound146Sound button.
ActionButtonMovie147Movie button.
SingleCornerSnipped148Snip single corner rectangle object.
TopCornersSnipped149Snip same side corner rectangle.
DiagonalCornersSnipped150Snip diagonal corner rectangle.
TopCornersOneRoundedOneSnipped151Snip and round single corner rectangle.
SingleCornerRounded152Rounded single corner rectangle.
TopCornersRounded153Rounded same side corner rectangle.
DiagonalCornersRounded154Rounded diagonal corner rectangle.
Heptagon155Heptagon.
Cloud156Cloud.
SwooshArrow157Swoosh arrow.
Teardrop158Teardrop.
SquareTabs159Square tabs.
PlaqueTabs160Plaque tabs.
Pie161Pie.
WedgePie162Wedge pie.
InverseLine163Inverse line.
MathPlus164Math plus.
MathMinus165Math minus.
MathMultiply166Math multiply.
MathDivide167Math divide.
MathEqual168Math equal.
MathNotEqual169Math not equal.
NonIsoscelesTrapezoid170Non-isosceles trapezoid.
LeftRightCircularArrow171Left-right circular arrow.
LeftRightRibbon172Left-right ribbon.
LeftCircularArrow173Left circular arrow.
Frame174Frame.
HalfFrame175Half frame.
Funnel176Funnel.
Gear6177Six-tooth gear.
Gear9178Nine-tooth gear.
Decagon179Decagon.
Dodecagon180Dodecagon.
DiagonalStripe181Diagonal stripe.
Corner182Corner.
CornerTabs183Corner tabs.
Chord184Chord.
ChartPlus185Chart plus.
ChartStar186Chart star.
ChartX187Chart X.

Examples

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

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

Shape shape = builder.InsertChart(ChartType.Column, 432, 252);
Chart chart = shape.Chart;

// Delete default generated series.
chart.Series.Clear();

// Add new series.
ChartSeries series = chart.Series.Add("AW Series 1",
    new string[] { "AW Category 1", "AW Category 2", "AW Category 3", "AW Category 4" },
    new double[] { 100, 200, 300, 400 });

// Show data labels.
series.HasDataLabels = true;
series.DataLabels.ShowValue = true;

// Format data labels as callouts.
ChartFormat format = series.DataLabels.Format;
format.ShapeType = ChartShapeType.WedgeRectCallout;
format.Stroke.Color = Color.DarkGreen;
format.Fill.Solid(Color.Green);
series.DataLabels.Font.Color = Color.Yellow;

// Change fill and stroke of an individual data label.
ChartFormat labelFormat = series.DataLabels[0].Format;
labelFormat.Stroke.Color = Color.DarkBlue;
labelFormat.Fill.Solid(Color.Blue);

doc.Save(ArtifactsDir + "Charts.FormatDataLables.docx");

See Also