Pages

Sunday, May 23, 2010

Step 12 – Apex Developer day - Adding a Flash Chart

You want to create a flash chart. You need to create a 2D pie chart that shows the number of tasks per project. Perform the following steps:

1.

Click Create Page > in the Project Tasks Application home page.

clip_image002

2.

Select the Chart Page Type and click Next >.

clip_image004

3.

Select the Flash Chart radio button and click Next >.

clip_image006

4.

Enter the page name as Tasks per Project Chart, accept the other default values, and click Next >.

clip_image008

5.

Select the Do not use tabs option and click Next >.

clip_image010

6.

Select 2D Pie as the Chart Type, enter Tasks per Project as the Chart Title and click the Update button to refresh the chart preview.

clip_image012

7.

The preview of the Tasks per Project flash chart is displayed. Click Next >.

clip_image014

8.

Enter the following query into the query field. Click Next >.

select null link,

p.project label,

t.task_count value

from (select project_id,   count(*) task_count

               from apex_tasks

                group by project_id) t,

                apex_project_lookup p

where t.project_id = p.project_id

clip_image016

9.

Click Finish to create the chart.

clip_image018

10.

The flash chart has been created. Click the Run Page icon to view the flash chart.

clip_image020

11.

The flash chart shows the number of tasks per project. The first number for each slice of pie is the project and the second number is the number of tasks. Click the Application <n> link in the developer tool bar.

clip_image022

No comments:

Post a Comment