In this section, we will discuss how to create pie charts using ChartDirector through a number of examples.
Title | Description |
Simple Pie Chart | Demonstrates the basic steps in creating pie charts. |
3D Pie Chart | Extends the Simple Pie Chart example by drawing the chart in 3D, adding a title, and exploding a sector. |
Multi-Depth Pie Chart | Demonstrates a 3D pie chart where sectors have different 3D heights. |
Side Label Layout | Demonstrates the "side label layout" method for positioning the sector labels. Also demonstrates metallic background colors, and sector labels with glass shading effect and rounded corners. |
Circular Label Layout | Demonstrates label positioning in the "circular label layout" method. |
Pie Chart with Legend (1) | Demonstrates how to add a legend box to a pie chart. Also demonstrates alternative sector label format and rounded edge sector shading. |
Pie Chart with Legend (2) | Demonstrates a pie chart with a legend box, together with many effects, such as gradient color background, rounded frame, soft drop shadow, custom sector colors, sector gradient shading, customized sector labels and using CDML and Parameter Substitution and Formatting to format legend text. |
Exploded Pie Chart | Demonstrates a pie chart with all sectors exploded. Also demonstrates many effects, such as gradient color background, rounded frame, soft drop shadow, custom sector colors, sector gradient shading, thick sector border, and using CDML and Parameter Substitution and Formatting to format sector labels. |
Icon Pie Chart (1) | Demonstrates using CDML and Parameter Substitution and Formatting to include icons in sector labels. Also demonstrates gradient background color, glass shading effect for the title and rounded corners for the chart frame. |
Icon Pie Chart (2) | Extends the Icon Pie Chart (1) example to demonstrate using CDML to include multiple fonts and colors in chart title, sector labels and to draw logo. Also demonstrates silver background color, rounded corners, and glass shading effect for title. |
Multi-Pie Chart | Demonstrates drawing multiple pies with different data and colors. Also demonstrates putting labels on the sectors and using sector borders. |
Donut Chart | Demonstrates a donut chart with ring shading effects. Also demonstrates brushed metal background, rounded frame, customized sector labels and using CDML and Parameter Substitution and Formatting to format legend text. |
3D Donut Chart | Demonstrates a 3D donut chart with sector gradient shading. Also demonstrates gradient color background, rounded frame, custom sector colors, and using CDML and Parameter Substitution and Formatting to format sector labels |
Icon Donut Chart | Modifies the Icon Pie Chart example by using a semi-transparent donut instead of a pie, and using metallic background color. |
Texture Donut Chart | Demonstrates wooden, rocky and marble texture effects by using pattern colors to load image patterns. |
Concentric Donut Chart | Demonstrates creating concentric donut chart by merging two donuts of different radii. |
2D Pie Shading | Demonstrates various sector shading effects applicable to 2D pie charts. |
3D Pie Shading | Demonstrates various sector shading effects applicable to 3D pie charts. |
2D Donut Shading | Demonstrates various sector shading effects applicable to 2D donut charts. |
3D Donut Shading | Demonstrates various sector shading effects applicable to 3D donut charts. |
Text Styles and Colors | Demonstrates various text styles, text colors, background colors and text box border effects. |
3D Angle | Demonstrates the effects of different 3D angles. |
3D Depth | Demonstrates the effects of different 3D depths. |
3D Shadow Mode | Demonstrates an alternative 3D drawing method that uses shadows. |
Start Angle and Direction | Demonstrates different sector layout angles and directions. |
Donut Width | Demonstrates the effects of different donut widths. |