About Graphs and Graph Wizards

39-4 Publishing Reports to the Web with Oracle Reports Services

39.2 New Features and Benefits

Oracle Reports provides a convenient way for you to add a wide variety of graphs to both paper-based and JSP-based Web Reports. Oracle Reports 11g Release 1 11.1.1 supports the following features: ■ Scalable Vector Graphics SVG image support ■ Plotting Irregular time periods. For more information, see Plotting Irregular Time Periods . ■ New Chart Style in Graph Wizard. For more information, see New Chart Styles . ■ Number formatting support in Graph Wizard With the new graph types and features, Reports Builder provides the following benefits: ■ More graph types for the varied usage ■ Better graph image output without loosing resolution ■ Plot time data without restrictions ■ Format the numbers in the graph independent of the data model Plotting Irregular Time Periods Oracle Reports 11g Release 1 11.1.1 provides support for plotting irregular time periods on time axis. For more information see Figure 39–1, Plotting Irregular Time Period . Figure 39–1 Plotting Irregular Time Period New Chart Styles Oracle Reports 11g Release 1 11.1.1 supports the following new chart styles: ■ Autumn ■ Black and White ■ Earth ■ Executive ■ Financial ■ Projection Building a Report with Graphs 39-5 ■ Regatta For more information, see Figure 39–2, New Chart Styles . Figure 39–2 New Chart Styles

39.3 New Graph Types

Oracle Reports 11g Release 1 11.1.1 supports the following and graph types: ■ Funnel Graph ■ Curved Line or Fit To Curve Graph ■ Enhanced Pie

39.3.1 Funnel Graph

A funnel graph is a visual representation of data related to steps in a process. As the value for a given step of the funnel approaches the quota for that slice, the slice fills. A funnel renders a three-dimensional chart that represents the target and actual values, and levels by color. For more information, see Figure 39–3, Funnel Graph . Figure 39–3 Funnel Graph

39.3.2 Curved Line or Fit To Curve Graph

A curved line or fit-to-curve is a graph in which data is represented as a curved line, as a series of data points, or as data points that are connected by a line. Curved line 39-6 Publishing Reports to the Web with Oracle Reports Services graphs require data for at least two points for each member in a group. For more information, see Figure 39–4, Curved LIne Graph . Figure 39–4 Curved LIne Graph

39.3.3 Enhanced Pie

A pie graph represents data as sections of one or more circles, making the circles look like sliced pies. With the enhanced pie, you can include any combination of data value, percent, and text label. Building a Report that Includes PLSQL 40-1 40 Building a Report that Includes PLSQL In this chapter, you will learn about reports that include PLSQL. By following the steps in this chapter, you can generate the report output shown in Figure 40–1 . Figure 40–1 PLSQL report output Concepts ■ There are a variety of ways to incorporate PLSQL into your reports. You have already created formula columns that used simple PLSQL expressions to compute their values, and format triggers that used PLSQL to conditionally determine the formatting of mailing labels. Here, you will create external libraries and local functions and procedures. ■ External PLSQL libraries are modules that contain named PLSQL functions and procedures. They may be stored either in the database or in a file, and can be referenced from not only any report, but from other Oracle products. External libraries eliminate the need to re-enter commonly-used PLSQL constructs, whether in reports, forms, or graphs. This, in turn, eliminates the problem of maintaining several versions of the same PLSQL code. ■ Local PLSQL consists of named PLSQL functions and procedures that are saved in a report definition. Local PLSQL may be referenced only by objects within the report for example, group filters, formula columns, format triggers, and so on. However, the usefulness of storing PLSQL in a single location still applies. Data Relationships This report uses one query. You will add a function stored in an external library, a report-level function, two formula columns, and a parameter governing the number of records to display before inserting a space. Layout This report uses the tabular layout style, with minor modifications.