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.
RoundRectangleRounded rectangle.
EllipseEllipse.
DiamondDiamond.
TriangleTriangle.
RightTriangleRight triangle.
ParallelogramParallelogram.
TrapezoidTrapezoid.
HexagonHexagon.
OctagonOctagon.
PlusPlus.
StarStar.
ArrowArrow.
HomePlateHome plate.
CubeCube.
ArcArc.
LineLine.
PlaquePlaque.
CanCan.
DonutDonut.
StraightConnector1Straight connector 1.
BentConnector2Bent connector 2.
BentConnector3Bent connector 3.
BentConnector4Bent connector 4.
BentConnector5Bent connector 5.
CurvedConnector2Curved connector 2.
CurvedConnector3Curved connector 3.
CurvedConnector4Curved connector 4.
CurvedConnector5Curved connector 5.
Callout1Callout 1.
Callout2Callout 2.
Callout3Callout 3.
AccentCallout1Accent callout 1.
AccentCallout2Accent callout 2.
AccentCallout3Accent callout 3.
BorderCallout1Callout with border 1.
BorderCallout2Callout with border 2.
BorderCallout3Callout with border 3.
AccentBorderCallout1Accent callout with border 1.
AccentBorderCallout2Accent callout with border 2.
AccentBorderCallout3Accent callout with border 3.
RibbonRibbon.
Ribbon2Ribbon 2.
ChevronChevron.
PentagonPentagon.
NoSmokingNo 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.
WedgeRectCalloutCallout wedge rectangle.
WedgeRRectCalloutCallout wedge round rectangle.
WedgeEllipseCalloutCallout wedge ellipse.
WaveWave.
FoldedCornerFolded corner.
LeftArrowLeft arrow.
DownArrowDown arrow.
UpArrowUp arrow.
LeftRightArrowLeft and right arrow.
UpDownArrowUp and down arrow.
IrregularSeal1Irregular seal 1.
IrregularSeal2Irregular seal 2.
LightningBoltLightning bolt.
HeartHeart.
QuadArrowQuad arrow.
LeftArrowCalloutCallout left arrow.
RightArrowCalloutCallout right arrow.
UpArrowCalloutCallout up arrow.
DownArrowCalloutCallout down arrow.
LeftRightArrowCalloutCallout left and right arrow.
UpDownArrowCalloutCallout up and down arrow.
QuadArrowCalloutCallout quad arrow.
BevelBevel.
LeftBracketLeft bracket.
RightBracketRight bracket.
LeftBraceLeft brace.
RightBraceRight brace.
LeftUpArrowLeft up arrow.
BentUpArrowBent up arrow.
BentArrowBent arrow.
StripedRightArrowStriped right arrow.
NotchedRightArrowNotched right arrow.
BlockArcBlock arc.
SmileyFaceSmiley face.
VerticalScrollVertical scroll.
HorizontalScrollHorizontal scroll.
CircularArrowCircular arrow.
UturnArrowU-turn arrow.
CurvedRightArrowCurved right arrow.
CurvedLeftArrowCurved left arrow.
CurvedUpArrowCurved up arrow.
CurvedDownArrowCurved down arrow.
CloudCalloutCallout cloud.
EllipseRibbonEllipse ribbon.
EllipseRibbon2Ellipse ribbon 2.
FlowChartProcessProcess flow.
FlowChartDecisionDecision flow.
FlowChartInputOutputInput output flow.
FlowChartPredefinedProcessPredefined process flow.
FlowChartInternalStorageInternal storage flow.
FlowChartDocumentDocument flow.
FlowChartMultidocumentMulti-document flow.
FlowChartTerminatorTerminator flow.
FlowChartPreparationPreparation flow.
FlowChartManualInputManual input flow.
FlowChartManualOperationManual operation flow.
FlowChartConnectorConnector flow.
FlowChartPunchedCardPunched card flow.
FlowChartPunchedTapePunched tape flow.
FlowChartSummingJunctionSumming junction flow.
FlowChartOrOr flow.
FlowChartCollateCollate flow.
FlowChartSortSort flow.
FlowChartExtractExtract flow.
FlowChartMergeMerge flow.
FlowChartOfflineStorageOffline storage flow.
FlowChartOnlineStorageOnline storage flow.
FlowChartMagneticTapeMagnetic tape flow.
FlowChartMagneticDiskMagnetic disk flow.
FlowChartMagneticDrumMagnetic drum flow.
FlowChartDisplayDisplay flow.
FlowChartDelayDelay flow.
FlowChartAlternateProcessAlternate process flow.
FlowChartOffpageConnectorOff-page connector flow.
LeftRightUpArrowLeft right up arrow.
SunSun.
MoonMoon.
BracketPairBracket pair.
BracePairBrace pair.
DoubleWaveDouble wave.
ActionButtonBlankBlank button.
ActionButtonHomeHome button.
ActionButtonHelpHelp button.
ActionButtonInformationInformation button.
ActionButtonForwardNextForward or next button.
ActionButtonBackPreviousBack or previous button.
ActionButtonEndEnd button.
ActionButtonBeginningBeginning button.
ActionButtonReturnReturn button.
ActionButtonDocumentDocument button.
ActionButtonSoundSound button.
ActionButtonMovieMovie button.
SingleCornerSnippedSnip single corner rectangle object.
TopCornersSnippedSnip same side corner rectangle.
DiagonalCornersSnippedSnip diagonal corner rectangle.
TopCornersOneRoundedOneSnippedSnip and round single corner rectangle.
SingleCornerRoundedRounded single corner rectangle.
TopCornersRoundedRounded same side corner rectangle.
DiagonalCornersRoundedRounded diagonal corner rectangle.
HeptagonHeptagon.
CloudCloud.
SwooshArrowSwoosh arrow.
TeardropTeardrop.
SquareTabsSquare tabs.
PlaqueTabsPlaque tabs.
PiePie.
WedgePieWedge pie.
InverseLineInverse line.
MathPlusMath plus.
MathMinusMath minus.
MathMultiplyMath multiply.
MathDivideMath divide.
MathEqualMath equal.
MathNotEqualMath not equal.
NonIsoscelesTrapezoidNon-isosceles trapezoid.
LeftRightCircularArrowLeft-right circular arrow.
LeftRightRibbonLeft-right ribbon.
LeftCircularArrowLeft circular arrow.
FrameFrame.
HalfFrameHalf frame.
FunnelFunnel.
Gear6Six-tooth gear.
Gear9Nine-tooth gear.
DecagonDecagon.
DodecagonDodecagon.
DiagonalStripeDiagonal stripe.
CornerCorner.
CornerTabsCorner tabs.
ChordChord.
ChartPlusChart plus.
ChartStarChart star.
ChartXChart X.

Examples

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

let doc = new aw.Document();
let builder = new aw.DocumentBuilder(doc);

let shape = builder.insertChart(aw.Drawing.Charts.ChartType.Column, 432, 252);
let chart = shape.chart;

// Delete default generated series.
chart.series.clear();

// Add new series.
let series = chart.series.add("AW Series 1",
  [ "AW Category 1", "AW Category 2", "AW Category 3", "AW Category 4" ],
  [ 100, 200, 300, 400 ]);

// Show data labels.
series.hasDataLabels = true;
series.dataLabels.showValue = true;

// Format data labels as callouts.
let format = series.dataLabels.format;
format.shapeType = aw.Drawing.Charts.ChartShapeType.WedgeRectCallout;
format.stroke.color = "#006400";
format.fill.solid("#008000");
series.dataLabels.font.color = "#FFFF00";

// Change fill and stroke of an individual data label.
let labelFormat = series.dataLabels.at(0).format;
labelFormat.stroke.color = "#00008B";
labelFormat.fill.solid("#0000FF");

doc.save(base.artifactsDir + "Charts.FormatDataLables.docx");

See Also