|
Toad for Oracle:
Downloads:
Resources:
|
- How do I put a chart in my report?
How do I put a chart in my report?
For this example, we'll use a bar chart and the SCOTT.EMP table. Actually, any result set which has at least
one textual (label) and one numeric (data) column in it will do.
- First, write your query. We'll use 'select ename, sal from scott.emp;'.
- Execute the query.
- Make sure the GRID is the active panel in Toad.
- In the GRID menu, select 'Report' (you can also r-click in the Grid and choose 'Report')
- Use the Toad Report Wizard to select the columns, grouping, layout, and style options.
- You should now be in the Report Design View.
- On the far left side of the screen, you should see a toolbar like so -
- Place the 'Chart object' on the report area where you want your chart to appear. For this
report we'll place it below the PageFooter1 object.
- Double Click on the Report Object.
- In the Chart Editor, click on the 'Add Series' button to the right of the Chart object
in the tree list and choose 'Horiz. Bar'
- You should now have a 'Series1' object.
- Click on 'Series1'
- Choose the Data from DB radio control - this tells FastReports to populate the graph
with the data returned from our query in step1.
- On the DataSet, choose 'Master'
- On the X Values, choose 'Master."ENAME"
- On the Y Values, choose 'Master."SAL"
- On the "Left Axis - Labels" control, set it to false.
- Close the chart editor.
- Now, making sure the 'Chart1' object is selected in the 'Page1' tree editor in the
design view, let's size the object as we want it to appear in our report.
- On the 'Properties' tab, select Frame Height and set it to 10.00.
- Select Left and set it to 1.00.
- Select Top and set it to 8.30.
- Select Width and set it to 15.00.
- You can perfect the size of the graph by resizing it on the design view with your mouse.
- Ok, now Preview the report - hit the 'Preview' button on the Main toolbar.
- Save your report - it will be available next time you run this query.
- Starting with 9.0 you can schedule this query.
For questions or comments on this site: webmaster@toadsoft.com All
content Copyright © 2006 Quest Software, Inc.
All rights reserved.
|