Before you Begin

This 10-minute tutorial shows you how to add a spark chart to a performance tile.

Background

Spark charts visualize trends over time in your dataset. Spark charts can show high and low data points while individual data points aren't revealed in the visualization. You can create line, area, and bar spark charts as attributes to a performance tile.

What Do You Need?

  • Access to Oracle Analytics Cloud or Oracle Analytics Desktop
  • Download sample_revenue_xlsx to your computer

Create a Dataset

  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, select the sample_revenue.xlsx file, and then click Open.
  4. In Create Dataset from sample_revenue.xlsx, click OK.
  5. Click Save Save icon. In Save Dataset As, enter sample_revenue, and then click OK.


    Description of sample_rev_jd.png follows
    Description of the illustration sample_rev_jd.png

Create a Visualization

In this section, you select revenue, an aggregated (measure) data element, and let Oracle Analytics generate the best data visualization, a performance tile. You add a time-series attribute to the performance tile to create a spark chart.

  1. Click Create Workbook.
  2. From the Data panel, select and drag Revenue to the canvas.


    Revenue Tile
    Description of the illustration rev_tile.png
  3. In the Data panel, expand BILL_DAY_DT, and then drag Month to Category (Chart).


    The red dot on the spark chart line shows the lowest value, and the green dot shows the highest value.

    Revenue Tile with Spark Chart
    Description of the illustration rev_spark_chart.png

Change the Spark Chart Type

  1. In the visualization, click Menu Menu icon, select Edit, and then select Duplicate Visualization.
  2. In the new visualization's Properties, click Line in the Chart row, and then select Area.


    Revenue Tile with Area Spark Chart
    Description of the illustration area_spark_chart.png
  3. In the visualization, click Menu Menu icon, select Edit, and then select Duplicate Visualization.
  4. In the new visualization's Properties Properties General tab icon, click Area in the Chart row, and then select Bar.


    Types of Spark Charts
    Description of the illustration 3_spark_charts.png
  5. Click the area spark chart visualization, click Menu Menu icon, and then select Delete Visualization.
  6. Click the bar spark chart visualization, click Menu Menu icon, and then select Delete Visualization.

Add a Filter

In this section, you add a time-series filter to the revenue and units visualizations.

  1. In the Data panel, right-click Units, and then select Create Best Visualization.
  2. In the Data panel under BILL_DAY_DT, select Month, and then it to Category (Chart).


    Units Spark Chart
    Description of the illustration units_spark_chart.png
  3. In the Data panel under BILL_DAY_DT, right-click Year, and then select Create Filter.
  4. Under BILL_DAY_DT (Year) in the filter bar, click All, and then select 2010. Click outside of the filter area.


    The filter changes the spark lines to show the high and low values for both revenue and the number of units. The tooltip shows the average number of units is 15,704 during 2010.

    Units and Revenue Spark Charts with Filter
    Description of the illustration spark_charts_filtered.png

Add an Average Reference Line

  1. Select the UNITS by BILL_DAY_DT (Month) visualization. In UNITS by BILL_DAY_DT (Month) Properties, click None in the Reference Line row, and then select Average.
  2. Select the REVENUE by BILL_DAY_DT (Month) visualization. In REVENUE by BILL_DAY_DT (Month) Properties, click None in the Reference Line row, and then select Average.


    Average Reference Line on Spark Charts
    Description of the illustration avg_ref_line.png

Learn More