
1043
DEVELOPING
COLDFUSION 9 APPLICATIONS
Working with Documents, Charts, and Reports
Las
t
upda
te
d 8/5/2010
3
Click the Next button. Then click the Add button:
a
In the Series Label field, type
Total Sales
.
b
In the Paint Style field, choose Light.
c
In the Data Label field, choose Value.
d
In the Color List, type
Teal,Gray
.
e
In the Chart Data Source area, ensure that the Data From A Fixed List of Values option is selected.
4
Click the Add button:
a
In the Label field, type
Sold
.
b
In the Value field, choose #calc.Sold# from pop-up menu.
c
Click OK.
5
Click the Add button again:
a
In the Label field, type
Unsold
.
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.
6
Click the Next button. In the Chart Formatting dialog box, click the Titles & Series tab and make the following
changes:
a
In the Chart Title field, type
Total Sales
for #query.LASTNAME#.
b
In the X Axis Title field, type
Sold
.
c
In the Y Axis Title field, type
Unsold
.
d
In the Label Format field, choose Currency from the pop-up menu.
e
Click the 3-D Appearance tab and ensure that Show 3-D is selected.
7
Click the Font tab and make the following changes:
a
Change the Font Name to Arial.
b
Change the Font Size to 9.
8
Click the Finish button. Report Builder adds a place holder for the pie chart in the report.
9
Resize and move the chart to the desired location within the LASTNAME Footer band.
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
1
Create two calculated fields to use in the report footer pie chart with the following parameters:
Name
TotalSold
TotalUnsold
Default Label Text:
Total Sold
Total Unsold
Data Type:
Big Decimal
Big Decimal
Calculation:
Sum
Sum
Perform Calculation On:
Iif(IsBoolean(query.ISSOLD) and
query.ISSOLD, query.Price,0)
Iif(IsBoolean(query.ISSOLD) and
not(query.ISSOLD), query.Price,0)
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...