Before You Begin

This tutorial shows you how to create an overlay chart in Oracle Analytics.

Background

You can use an overlay chart to stack data in a visualization providing more levels of details than is available in a single visualization. This tutorial shows you how to create an overlay chart with two layers. You can add more layers with data that shares a common category axis. In this tutorial example, Customer Segment is the common category axis with Sales and Profit data elements formatting the different layers.

You can create an overlay chart with bar, stacked bar, area, line, category, and stacked category chart types.

What Do You Need?

  • Access to Oracle Analytics
  • Download sample_order_lines2023.xlsx to your computer

Create a Dataset

In this section, you create a dataset to use as the data source for the overlay chart.

  1. Sign in to Oracle Analytics.
  2. On the Home page, click Create, and then click Dataset.
  3. In Create Dataset, click Drop data file here or click to browse. In File Upload, select sample_order_lines2023.xlsx and click Open.
  4. In Create Dataset Table from sample_order_lines2023.xlsx, click OK.
  5. Click Save Save icon. In Save Dataset As, enter sample_order_lines2023, and then click OK.


    Description of sample_order_lines2023_ds.png follows
    Description of the illustration sample_order_lines2023_ds.png

Create an Overlay Chart

In this section, you select data elements from the dataset to create an overlay chart.

  1. Click Create Workbook. Click Visualizations Visualization pane icon.
  2. In Visualizations, select Overlay Chart Overlay Chart icon and drag it to the canvas.


    Description of empty_overlay.png follows
    Description of the illustration empty_overlay.png
  3. In the first layer under Related columns, click List to change the visualization type and select Bar Bar chart icon.
  4. Click Data Data pane icon. In the Data pane, hold down the Ctrl key, select Customer Segment and Sales, and then drag them to the canvas.


    Description of overlay_bar_chart.png follows
    Description of the illustration overlay_bar_chart.png
  5. In the Grammar pane, click Add Layer and click Line.
  6. In the Data pane, select Profit and drag it to Values (Y-Axis) in the Line layer.


    Description of overlay_line_layer.png follows
    Description of the illustration overlay_line_layer.png

Learn More