The PieChart class represents pie charts. It is a subclass of
. In ChartDirector, pie charts includes donut charts.
Method | Inherited | Description |
PieChart | (Self) | Creates a new PieChart object. |
setPieSize | (Self) | Sets the position and size of the pie in the pie chart. |
setDonutSize | (Self) | Sets the position and size of the donut in the donut chart. |
set3D | (Self) | Adds 3D effects to the pie. |
set3D2 | (Self) | Adds 3D effects to the pie, where each sector can have a different 3D depth. |
setStartAngle | (Self) | Sets the angle of the first sector in the pie and the layout direction for the sectors. |
setExplode | (Self) | Explode a sector from the pie. |
setExplodeGroup | (Self) | Explode a group of sectors from the pie. |
setLabelStyle | (Self) | Sets the style used to draw all sector labels. |
setLabelFormat | (Self) | Sets the format of the all sector labels. |
setLabelLayout | (Self) | Sets the layout method and location of the sector labels. |
setLabelPos | (Self) | Sets the circular label layout method, and configure the join lines used to connect the sector labels to the sector perimeter. |
setJoinLine | (Self) | Sets the color and width of the join lines used to connect the sector labels to the sector perimeter. |
setLineColor | (Self) | Sets the sector edge color and join line color. |
setSectorStyle | (Self) | Sets the sector shading style, edge color and edge width. |
setData | (Self) | Sets the data used to draw the pie chart. |
getSector | (Self) | Retrieves the Sector object representing a single sector in the pie chart. |
setSize | BaseChart | Sets the size of the chart, exclusive of the drop shadow (if any). |
getWidth | BaseChart | Gets the width of the chart. |
getHeight | BaseChart | Gets the height of the chart. |
getAbsOffsetX | BaseChart | Gets the x offset of the chart relative to the outermost MultiChart container. |
getAbsOffsetY | BaseChart | Gets the y offset of the chart relative to the outermost MultiChart container. |
setBackground | BaseChart | Sets the background color, border color and 3D border effect of the chart. |
setRoundedFrame | BaseChart | Sets the border style of the chart to rounded corners. |
setThickFrame | BaseChart | Sets a thick frame around the chart. |
setDropShadow | BaseChart | Adds a drop shadow to the chart. |
setBorder | BaseChart | Sets the border color of the chart. |
setWallpaper | BaseChart | Uses the image from the specified file as the wallpaper to repetitively fill the background of the chart. |
setBgImage | BaseChart | Uses the image from the specified file as the background image of the chart. |
setSearchPath | BaseChart | Sets the file system search path for loading image files. |
setTransparentColor | BaseChart | Specifies a certain color to mean transparent when creating a raster image output. |
setAntiAlias | BaseChart | Controls whether anti-alias is used when drawing lines, shapes and text. |
addTitle | BaseChart | Adds a title at the top center of the chart. |
addTitle2 | BaseChart | Adds a title to the chart. |
addLegend | BaseChart | Adds a legend box to the chart. |
addLegend2 | BaseChart | Adds a legend box to the chart with grid layout. |
getLegend | BaseChart | Gets the LegendBox object representing the legend box in the chart. |
layoutLegend | BaseChart | Lays out and gets the LegendBox object representing the legend box in the chart. |
getDrawArea | BaseChart | Retrieves the internal DrawArea object that is used to draw the chart. |
addText | BaseChart | Adds a text box to the chart. |
addTable | BaseChart | Adds a CDML table to the chart. |
addLine | BaseChart | Adds a line to the chart. |
addExtraField | BaseChart | Adds an array of text to be used as an extra field in various places. |
addExtraField2 | BaseChart | Adds an array of numbers/dates to be used as an extra field in various places. |
setColor | BaseChart | Change the color at the specified position in the palette. |
setColors | BaseChart | Change the colors in the palette. |
setColors2 | BaseChart | Change the colors in the palette, starting from the specified position in the palette. |
getColor | BaseChart | Gets the color at the specified position of the palette. |
adjustBrightness | BaseChart | Creates a color that is a darkened or brightened version of the given color. |
halfColor | BaseChart | Creates a color that is half the intensity of the given color. |
dashLineColor | BaseChart | Creates a dash line color. |
patternColor | BaseChart | Creates a pattern color using an array of colors as the bitmap pattern. |
patternColor2 | BaseChart | Creates a pattern color by loading the pattern from an image file. |
linearGradientColor | BaseChart | Creates a two-point linear gradient color. |
linearGradientColor2 | BaseChart | Creates a multi-point linear gradient color. |
radialGradientColor | BaseChart | Creates a two-point radial gradient color. |
radialGradientColor2 | BaseChart | Creates a multi-point radial gradient color. |
gradientColor | BaseChart | Creates a two-point linear gradient color. |
gradientColor2 | BaseChart | Creates a multi-point linear gradient color. |
setDefaultFonts | BaseChart | Sets the defaults for normal, bold, italic and bold-italic fonts. |
setFontTable | BaseChart | Sets an entry in the font table to the specified font name. |
formatValue | BaseChart | Formats a number/date using the ChartDirector formatting syntax as is in Parameter Substitution and Formatting. |
setNumberFormat | BaseChart | Sets the characters used for thousand separator, decimal point, and negative sign. |
setMonthNames | BaseChart | Sets the names of the months for date/time formatting purposes. |
setWeekDayNames | BaseChart | Sets the names of the week days for date/time formatting purposes. |
setAMPM | BaseChart | Sets the names to be used to denote morning and afternoon. |
layout | BaseChart | Perform auto-scaling of the axes (if any) and compute the positions of the various objects in the chart. |
enableVectorOutput | BaseChart | This method is deprecated. It has no effect and may be removed in future versions of ChartDirector. |
setOutputOptions | BaseChart | Sets output format options for the next chart output. Currently, only SVG, SVGZ and PDF output formats support output options. |
makeChart | BaseChart | Generates the chart image and save it into a file. |
makeChart2 | BaseChart | Generates the chart as an image in memory. |
makeChart3 | BaseChart | Generates the chart in internal format and return a DrawArea object to allow adding custom drawings on top of the chart. |
makeTmpFile | BaseChart | Generates the chart as an image and save it to a temporary file, and automatically remove old files. |
initDynamicLayer | BaseChart | Initializes a dynamic layer for drawing text and shapes. |
removeDynamicLayer | BaseChart | Removes the dynamic layer if any. |
getHTMLImageMap | BaseChart | Generates an HTML image map for the chart. |
getJsChartModel | BaseChart | Gets the Javascript Chart Model for passing to WebChartViewer.setChartModel for the purpose of supporting track cursors in a web application. |
getChartMetrics | BaseChart | Gets the chart metrics for passing to WebChartViewer.setChartMetrics to support viewports for web applications. |