These steps reference the Yahoo-Bonds portlet created as an example in “Creating a portlet with tabular data”, and assume that the portlet is newly created. You can use any portlet containing tabular data.
The steps for creating a pie chart are identical to those for creating a bar graph, with the following exceptions:
After you enter a title in the Chart Title field, select Pie Chart as the format.
When the Define Pie Chart window appears, complete the three drop-down lists.
Data – select which row or column to display as data. For this example select “Column 2,” the Yield column.
Labels – select which row or column to use as labels in the legend. For this example, select “Column 1,” the Maturity column.
Format – add predefined labels to each section. For this example, select “Name and Percent” as labels to display the names of the categories, as well as the size each individual slice occupies in the pie chart.
Click Next for a preview of your chart. To save the results, click Finish.
A confirmation appears, indicating that the portlet has been saved and updated. Click OK.
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |