Skip Headers

Oracle Discoverer Desktop User's Guide 10g (9.0.4) for Windows Part Number B10272-01 |
Home |  | Contents | Index

# 3
Presenting Data on a Graph

Discoverer Desktop can convert tables and crosstabs to graphs or charts so you can analyze and present data graphically. Graphs and charts of tables and crosstabs are especially effective for presentations of results. This chapter explains how display data on a graph.

The topics covered in this chapter include:

- The Features of a Graph

- Creating a Graph

- Modifying a Graph

## 3.1 The Features of a Graph

The following figure shows a table and its resulting graph. This sample shows a bar graph, but several other styles are also available.

#### Figure 3-1 A Worksheet table and Its Graph

Text description of the illustration 3graph6.gif

Key to Figure 3-1

1. A Worksheet in table format

2. A graph of the data in the Worksheet. Each bar corresponds to one row on the table. In this example, each bar represents the Profit SUM for a Region for the Calendar Year 1998.

3. Graph legend. Each bar is represented in a different color.

To display Worksheet data as a graph:

1. Display the worksheet that you want to see as a graph.

2. Choose Graph | Show or click the Graph button on the worksheet tool bar.

   The first time you display a graph, the Graph Wizard walks you through the process of defining the graph's features. Then, a graphical representation of the worksheet appears in the Graph window.

3. When you are finished working with the graph, click the Close button on Graph window. You can also click the Minimize button on the Graph window.

   The graph retains its design features when closed. The next time you open it, the graph has the same appearance.

   Figure 3-2 shows the features on a typical graph.

   #### Figure 3-2 Graph Window

   Text description of the illustration 3grapha.gif

   Key to Figure 3-2

   1. Tool Bar - click a tool to work with the graph; click a color or pattern and drag it onto the graph to change the data's color or pattern; click the arrows to scroll the colors and patterns.

   2. Y-Axis Scale - shows the scale appropriate for the data in the original table or crosstab; you can reset the scale and add decimal points.

   3. Titles - additional labels that you can add to the graph. Four positions for the titles are Top, Left, Right, and Bottom.

   4. Top title.

   5. Legend - the color and label for data

   6. Data - the graphical representation of the data (in the figure, 3D bars).

   ### 3.1.1 The Graph Tool Bar

   To work with the graph, use the Graph menu on the worksheet window or the Graph tool bar on the Graph window. To show or hide the Graph tool bar, choose Graph | Toolbar. The following figure identifies the icons on the Graph tool bar.

   #### Figure 3-3 The Graph Tool Bar

   Text description of the illustration 3graph3a.gif

   Key to Figure 3-3.

   1. Copy Graph to Clipboard - copies the current graph to the Windows Clipboard.

   2. Print - prints the graph to your computer's printer using the default settings for that printer. If the graph is too large for a single page, prints additional pages as necessary. You can also choose Graph | Print to print the current page with Discoverer's print settings.

   3. New Graph Type - displays a drop-down list for choosing a new type of graph.

   4. Show/Hide Labels - shows/hides a list of labels that correspond to the row numbers along the graph's x-axis. You can also choose Graph | X Labels.

   5. Show/Hide Legend - shows/hides the graphs legend. You can also choose Graph | Legend.

   6. Modify Graph - displays a dialog box for editing and formatting a graph; the options in the dialog box are the same ones offered in the Graph Wizard. You can also choose Graph | Edit Graph.

      #### Figure 3-4 Graph Colors and Patterns

      Text description of the illustration 3graph4a.gif

   Key to Figure 3-4

   1. Scroll to see additional colors

   2. To change colors, click a color and drag it onto a portion of the graph.

   3. Scroll to see additional patterns

   4. To change patterns, click a pattern and drag it onto a portion of the graph.

   Note: You can also show or hide the status bar in the Graph window. Choose Graph | Status Bar.

   ## 3.2 Creating a Graph

   The Graph Wizard walks you through the process of creating a graph. These dialog boxes only appear the first time you create a graph of a table or crosstab. To make any changes to a graph later, use the Modify Graph button on the Graph tool bar.

   To create the initial graph with the Graph Wizard:

   1. Display the worksheet that you want to see as a graph.

   2. Choose Graph | New Graph or click the Graph button on the worksheet tool bar.

      The first Graph Wizard dialog box appears:

      #### Figure 3-5 New Graph: Step 1

      Text description of the illustration gwiz1.gif

   1. Select one of the graph types. Scroll to see additional choices.

      To expand the text description at the bottom of the box, put the pointer on the text.

   2. Click Next.

      #### Figure 3-6 New Graph: Step 2

      Text description of the illustration gwiz2.gif

   1. Select one of the graph formats. Scroll to see additional choices.

   2. Click Next.

      #### Figure 3-7 New Graph: Step 3

      Text description of the illustration gwiz3.gif
   - To add titles to the graph, enter them in the appropriate boxes. See Figure 3-2 to see the locations of the titles.

   - To add a legend to the graph, click Show Legend.

   - To format the axes labels, click the formatting button next to each feature to see the Font dialog box for that element.

     #### Figure 3-8 Font Dialog Box

     Text description of the illustration gfontdb.gif

     Select the font choices and click OK. Repeat for the other design elements that you want to format individually.

4. Click Next on the New Graph wizard dialog box.

   #### Figure 3-9 New Graph: Step 4

   Text description of the illustration gwiz4.gif

   1. Select options for the data on the graph:

      Y-Axis Scale - enter numbers in the Minimum and Maximum boxes to set the upper and lower boundaries of the y-axis; usually the Minimum value is zero. The Maximum value is normally a value higher than the maximum data point value.

      Decimals - enter a number for the number of decimal places on the y-axis scale; enter 2, for example, to display the scale numbers as 100.00.

      Show Gridlines--click each option to show gridlines on the background of the graph.

      Graph Series By--select one or the other option:

      - Column - plots the rows on the x-axis and the data for each row in the graph.

      - Row - plots the columns on the x-axis and the data for each column in the graph.

   2. Click Finish. The Graph window appears with the new graph in it.

   ### 3.2.1 Updating the Data on a Graph

   You do not have to update a graph manually. As you analyze data on tables and crosstabs, additional data displayed as part of the analysis is automatically added to the graph and appears the next time you display the graph.

   For example, if you display a column of percentages for the data, that column's data becomes data points on the graph. Likewise if you pivot a column to the page axis, the graph is automatically updated to reflect that change.

   ## 3.3 Modifying a Graph

   To modify a graph:

   1. Click the Modify Graph tool on the Graph window's tool bar or choose Graph | Edit Graph.

      - If you choose Graph | Edit Graph, the first Graph Wizard dialog box for modifying the graph appears. It has the same options as the original Graph Wizard dialog box. You can then step through the dialog boxes modifying the graph in the same manner that you created the original graph.

      - If you click the Modify Graph tool, a dialog box appears for modifying the graph.

        #### Figure 3-10 Modify Graph Dialog Box

        Text description of the illustration gphmdfy.gif

   The tabs across the top of the dialog box offer the same features as the Graph Wizard dialog boxes that you initially used to create the graph.

   Here the Options tab is selected. Compare the options shown in the figure above with Figure 3-9 on page 3-8. You can see that the two provide the same options.

   1. Use the Type, Format, Titles and Legends, and Options tabs to change the graph details as required.

   2. Click OK.

   In addition to modifying the y-axis scale with the Modify Graph dialog box shown above, you can also choose Graph | Scale. The dialog box that appears includes additional options to set the y-axis scale units, plot the scale linearly or logarithmically, and to set the size of the gap between plotted data points.

   ### 3.3.1 Selecting a New Graph Type

   To select a new graph type:

   1. In the Graph window, click the New Graph Type button on the Graph window tool bar.

      The dialog box for a new graph type appears.

      #### Figure 3-11 New Graph Type Drop-Down List

      Text description of the illustration graphtyp.gif

   1. Click the new graph type. The graph changes to its new type.

      If you do not want to change the graph's current type, click on the Graph window (off the drop-down list) and the list closes.

   Here are samples of two types of graph that plot the same data.

   #### Figure 3-12 A Horizontal Bar Graph

   Text description of the illustration gtype1.gif

   #### Figure 3-13 A Cube Chart

   Text description of the illustration gtype2.gif

   ### 3.3.2 Displaying the Graph Legend and X Labels

   You can show or hide the legend and X labels by clicking the buttons on the tool bar.

   To display the legend and X labels:

   1. Click the Show/Hide Legend and Show/Hide Labels buttons on the Graph window tool bar. You can also choose Graph | Legend and Graph | X Labels.

      Note: These buttons and commands are toggles--that is, click a button to show the data; click it again to hide the data.

   Here is a sample graph showing both the legend and X labels from the rows on the original table or crosstab.

   #### Figure 3-14 Graph Showing Legend and X Labels

   Text description of the illustration 3graph19.gif

   Key to Figure 3-14

   1. Each row in the table is represented on the Bar Graph as a bar.

   2. The X labels.

   3. The legend corresponds to the rows in the table.

   ### 3.3.3 Resizing the Window and Graph

   You may need to resize the graph or its window depending on the type of graph and the amount of plotted data. You can resize most portions of the window and graph.

   To select the window or graph so you can resize it:

   1. Put the pointer on the edge of the window, edge of the graph, or on one of the other resizable sections of the graph. The pointer changes to a resize arrow.

   2. Drag the mouse pointer to resize the window or graph.

   The following figure shows some of the places you can drag the pointer to resize.

   #### Figure 3-15 Resizable Sections

   Text description of the illustration resize.gif

   Key to Figure 3-15

   1. Drag the edge of the graph itself to enlarge it vertically and horizontally.

   2. Drag these lines from side to side or up and down to enlarge the columns so that text can fit.

   3. When the pointer is on the edge of the window, drag the edge to resize the window. The other edges are also resizable.

   ### 3.3.4 Reference Lines and Pull-outs on a Graph

   On most of the graph types, dragging on the graph produces a set of reference lines that you can use to visually correlate the graph's data points with the vertical and horizontal scales. On the pie graph and donut graph types, however, dragging pulls sections of the graph out so you can call special attention to them.

   Here are some examples:

   #### Figure 3-16 Sample Pull-Outs on a Pie Graph and Donut Graph

   Text description of the illustration 3graph18.gif

   Key to Figure 3-16

   1. You can point at sections of a Pie Chart and drag out sections for emphasis. To replace a section of the Pie Chart, drag it back to its original position.

   2. If you change the graph type to a Donut Graph, any pulled out sections remain emphasized. To replace a section of the Donut Graph, drag it back to its original position.

   #### Figure 3-17 Sample Reference Lines on a Bar Graph

   Text description of the illustration 3graph2.gif

   Key to Figure 3-17

   1. Drag the cursor over a graph to display reference lines. Reference lines allow you to see how points on the graph relate to the vertical and horizontal axes.

   ### 3.3.5 Rotating Graphs

   You can rotate 3D graphs to view them from a different perspective.

   To rotate a graph:

   1. Choose Graph | 3D View.

      A dialog box for rotating the graph appears.

      #### Figure 3-18 3D View Properties Dialog Box

      Text description of the illustration 3graph25.gif

   Key to Figure 3-18

   1. Drag these dots around the edge of the sphere rotates the graph in the corresponding x and y direction.

   2. These numbers show the amount of rotation in each axis.

   3. Drag this slider to rotate the graph in the z-axis plane.

   Hint: Before you begin to rotate a graph, write down the X Angle and Y Angle numbers and note the position of the slider so you can return the graph to its unrotated position after experimenting with rotation.

   1. Select the options for displaying the graph:

      - 3D - displays the graph with both the X Angle and Y Angle set at 45 degrees; this is the standard 3D display.

      - Full 3D View - displays the graph based on the positions of the dots and slider on the dialog box; this option must be selected to drag the dots. Turning off this option returns the graph to the standard 3D display.

      - Shadows - displays shading on the edges of the graph's features to enhance the 3D representation.

   2. Drag the dots around the x- and y-axis circles.

      - Dragging the x-axis dot rotates the graph from left to right.

      - Dragging the y-axis dot rotates the graph from top to bottom.

      As you drag the dots, the reference figure represents the amount of rotational change to the graph. The X Angle and Y Angle numbers also change as you drag the dots.

      Hint: You can also enter numbers for the X Angle and Y Angle in the respective boxes. Entering numbers instead of dragging the dots is often a good way to get the exact rotation for a series of graphs.

   3. To rotate the graph in the z-axis, drag the slider under the reference figure.

      Dragging the slider increases or decreases the amount of depth to the graph.

   4. Click Apply to rotate the graph based on the settings in the dialog box.

   5. Click OK when the graph is rotated as you want it.

      #### Figure 3-19 Sample Rotated Graphs

      Text description of the illustration rotatedg.gif

### 3.3.6 Changing the Graph's Colors and Patterns

The tool bar on the Graph window includes a set of colors and patterns for changing the colors and adding patterns to the graph.

To change a color or pattern:

1. Drag the color or pattern from the tool bar onto the portion of the graph you want to change.

   The pointer becomes a paint jar.

2. Put the paint jar onto the portion to recolor, and release the mouse button.

You can recolor the plotted data, the axes, the legend background, and the graph's background.

#### Figure 3-20 Changing a Graph's Colors and Patterns

Text description of the illustration 3graph23.gif

Key to Figure 3-20

1. Drag a color from the color bar over a section of the graph to change the color of that section. Note that the legend also changes.

2. Drag a pattern from the pattern bar over a section of the graph to change the pattern of that section. Note that the legend also changes.

If you apply a pattern to a graph that has a color, the black bits of the pattern become the color. A graph can be patterned or solid colors, but not both.

If you want a colored pattern, first drag a color down to the graph, then drag a pattern down to the graph.

To remove a pattern from the graph:

1. Drag one of the colors from the tool bar onto the pattern on the graph.

2. The pattern is removed and the graph becomes a color.

#### 3.3.6.1 Creating Custom Patterns

To create a custom pattern:

1. Double-click on a pattern on the tool bar.

   The Pattern Editor appears.

   #### Figure 3-21 Pattern Editor

   Text description of the illustration pat_edit.gif
2. Put the pointer on the pattern bitmap. The pointer becomes a pencil tool.

3. Click on the squares to reverse their color. The sample on the right shows the new pattern.

4. Click OK when you're finished.

The new pattern replaces the original one you started with on the tool bar.

#### 3.3.6.2 Creating Custom Colors

To create a custom color:

1. Double-click on a color on the tool bar.

   The Color dialog box appears.

   #### Figure 3-22 Color Dialog Box

   Text description of the illustration col_edit.gif
2. Click Define Custom Colors.

   The dialog box expands to show the tools for defining a custom color.

   #### Figure 3-23 Color Dialog Box with Custom Colors

   Text description of the illustration 3graph22.gif

Key to Figure 3-23

1. Reference marker indicating the position of the current color in the color spectrum.

2. Slider bar for adjusting the color hue, saturation, and luminosity.

1. Click on one of the empty spaces in the Custom colors panel.

   To edit one of the custom colors already in the panel, click on it instead.

2. Drag the reference marker around in the colors.

   As you drag the Reference Marker, the Color|Solid box shows the new color. Color refers a dithered color if your computer is set to show dithered colors. Solid refers to the nearest solid (undithered) color. Note that luminance remains constant as you drag the marker.

3. Drag the slider up and down to change luminance. Hue and Saturation (Sat) remain constant.

   You can also type the color numbers directly in their boxes.

4. When the new color is correct, click Add to Custom Colors. The new color is added to the panel of new colors.

5. Click OK when you're finished.

The new color replaces the original one you started with on the tool bar.

| Copyright © 1996, 2003 Oracle Corporation. All Rights Reserved. |
|  | Contents | Index