Adobe COLDFUSION 9 Manual page 1048

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Working with Documents, Charts, and Reports
3
Click the Next button. Then click the Add button:
In the Series Label field, type Total Sales.
a
In the Paint Style field, choose Light.
b
c
In the Data Label field, choose Value.
In the Color List, type Teal,Gray.
d
In the Chart Data Source area, ensure that the Data From A Fixed List of Values option is selected.
e
4
Click the Add button:
In the Label field, type Sold.
a
In the Value field, choose #calc.Sold# from pop-up menu.
b
c
Click OK.
Click the Add button again:
5
In the Label field, type Unsold.
a
b
In the Value field, choose #calc.Unsold# from the pop-up menu.
c
Click OK twice to return to the Chart Series dialog box.
Click the Next button. In the Chart Formatting dialog box, click the Titles & Series tab and make the following
6
changes:
In the Chart Title field, type Total Sales for #query.LASTNAME#.
a
In the X Axis Title field, type Sold.
b
In the Y Axis Title field, type Unsold.
c
In the Label Format field, choose Currency from the pop-up menu.
d
e
Click the 3-D Appearance tab and ensure that Show 3-D is selected.
Click the Font tab and make the following changes:
7
Change the Font Name to Arial.
a
b
Change the Font Size to 9.
Click the Finish button. Report Builder adds a place holder for the pie chart in the report.
8
Resize and move the chart to the desired location within the LASTNAME Footer band.
9
10
Choose File > Save to save your changes to the report.
11
Press F12 to preview the report.
Add a pie chart to the report footer
Create two calculated fields to use in the report footer pie chart with the following parameters:
1
Name
Default Label Text:
Data Type:
Calculation:
Perform Calculation On:
TotalSold
Total Sold
Big Decimal
Sum
Iif(IsBoolean(query.ISSOLD) and
query.ISSOLD, query.Price,0)
Last updated 8/5/2010
TotalUnsold
Total Unsold
Big Decimal
Sum
Iif(IsBoolean(query.ISSOLD) and
not(query.ISSOLD), query.Price,0)
1043

Advertisement

Table of Contents
loading

Table of Contents