Adding a graph to your analysis

This tutorial shows you how to add a graph to your analysis. Graphs display your analysis in a visual way, which can make it easier to understand or identify patterns or trends.

Learn more by watching the video!

What you'll learn

In this tutorial, we'll show you how to:

  • Add a vertical bar graph to an analysis
  • Configure the graph to show the data we want
  • Format the graph

What you'll need

Step 1: Adding a graph view to your analysis

First, we'll add a bar graph to our analysis results.

To add a graph view to your analysis:

  1. Open the analysis you created in Building your first analysis
  2. Click Save As An image of the Save As icon, and name the graph Emails Sent Within a Date Range - Graph.
  3. Save the graph in /Company Shared/Custom Email Reports/.
  4. Click the Results tab.
  5. Click New View An image of the New View icon, and select Graph > Bar > Vertical from the menu.

    An image demonstrating how to create a vertical graph

    The default Graph view appears in the Compound Layout.

    An image showing the default Graph view

  6. Click Remove View An image highlighting the product totals added to the report for both the Title and Table views from the Compound Layout.

    An image highlighting the remove buttons for the Title and Table views

    Both views are removed from the Compound Layout. Note, however, that the views are still available for use from the Views pane.

    An image showing the new compound layout with the Views panel highlighted

  7. Save the analysis.

Step 2: Configure the graph view

Now, we'll update the default graph. We will update the graph to change which data is used for the bars on the graph as well as remove some data from the bar graph.

To configure the graph:

  1. On the Results tab, click The Edit icon Edit View to begin your changes.

    The Graph editor appears.

    An image showing the Graph in edit mode

    The Graph, like other view editors, is composed of three sections:

    Number 1

    Toolbar

    The toolbar allows you to change graph types and subtypes, print, preview, edit graph properties, and so on.

    Number 2

    Preview pane

    The preview pane is a dynamic view of the graph, allowing you to view the changes instantly.

    Number 3

    Layout

    The layout allows you to change the properties of prompts, sections, measures, and so on, and allows you to regroup columns for graph display.

  2. In the Graph Prompts section, leave Campaign Product as the graph prompt. Drag the rest of the columns from the Graph Prompts to the Excluded section.
  3. In the Bars section, drag Email Subject Line column to the Excluded section.

    An image showing the Group By results

  4. In the Bars section, drag Campaign Name to the Vary Color By section.

    An image showing the Variant By results

    Here is the updated graph.

    An image showing the update graph after changing the layout

  5. Click Done and save the analysis.

Step 3: Format the graph view

Now, we'll format the look and feel of the graph.

To format the graph:

  1. On the Results tab, click An image of the Edit Properties icon Edit Properties.

    An image of the Graph toolbar with the Properties icon highlighted

    The Graph properties dialog appears. The Graph properties dialog allows you to do the following:

    TabDescription
    GeneralSet properties related to the graph canvas, such as canvas width, height, legend location, and so on.
    StyleSet properties that control the appearance of the graph such as plot area and grid lines.
    ScaleSet properties for parts of the graph, that is axis limits and tick marks.
    Titles and LabelsSet properties that control the display of titles and labels for the graph.
  2. Select Enable for Horizontal Axis from the Zoom and Scroll area, and then select Left from the Legend list.

    An image of the Graph Properties dialog with the settings highlighted

    When zooming and scrolling is enabled for a graph, the graph includes a Zoom icon. The Zoom icon allows you to zoom in and out of a graph's plot area via its axes.

    Note: The Animate graph on Display check box specifies whether to show initial rendering effects. For example, the bars on a horizontal graph start at the x-axis and move up the scale on the x-axis to the current measurement level in an animate way.

    Listen to Master-Detail Events allows you to establish a relationship between two or more views. The master view drives data changes in one or more other views, called detailed views. Refer to the Oracle BI documentation to learn more about linking views in master-detail relationships.

    The Canvas Width and Canvas Height manage the size of the graph as it displays on a window.

  3. Click the Style tab. Select Rectangle from the Style list in the Graph Data section.
  4. Select a light blue color in the Background list in the Plot Area section.

    The updated dialog should look like this:

    An image showing the Style tab of the Graph properties dialog

    The Graph Data section allows you to choose a style for specific types of graphs. For example, you might choose pattern fill for to highlight differences on a line-bar graph or gradient for a bar graph to make the data values standout.

  5. Click the Scale tab.

    An image of the Scale tab of the Graph properties dialog

    Specifically setting axis limits and tick marks allows you to control what you see on your graph. If you override the system default for tick marks, the colors you selected for the horizontal and vertical grid lines are applied to both major and minor ticks.

  6. Click the Titles and Labels tab. Deselect the Use measure name as graph title check box and enter Product Email Sends in the Title field. Deselect the Vertical Axis Title check box.

    An image of the Titles and Lables tab of the Graph properties dialog

  7. Click OK.

    The preview pane refreshes. The formatting changes appear along with a new title and a horizontal zoom.

    An image showing the graph after formatting

    Move your mouse over the graph and notice the Zoom icon. When you zoom in, a slider appears that you can use to navigate the graph.

    An image showing the Zoom icon on a graph

  8. Click Edit View The Edit icon to return to the Layout pane.
  9. Move Campaign Product to the Sections area and select the Display as Slider check box.

    The slider appears in the preview. When you move along the slider for a particular product, the graph changes accordingly.

    An image showing the graph with slider sections

  10. Click Done and then save your analysis.

Now that you're done

Now that you added a graph to your analysis, check out the other tutorials.