
This example demonstrates the basic steps in creating pie charts.
- Create a pie chart object using PieChart.PieChart.
- Specify the center and size of the pyramid using PieChart.setPieSize.
- Specify the data used to draw the pie using PieChart.setData.
- Generate the chart using BaseChart.makeChart.
- Pass the chart to the CChartViewer for display using CChartViewer.setChart (MFC version) or QChartViewer.setChart (Qt version), or generate the chart as an image file using BaseChart.makeChart (Command Line version).
- Generate tool tips for the chart using BaseChart.getHTMLImageMap (MFC/Qt version)