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
- Sign in to Oracle Analytics.
- On the Home page, click Create, and then click Dataset.
- In Create Dataset, click Drop data file here or click to browse, select the
sample_revenue.xlsxfile, and then click Open. - In Create Dataset from sample_revenue.xlsx, click OK.
- Click Save
. In Save Dataset As, enter sample_revenue, and then click OK.
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.
- Click Create Workbook.
- From the Data panel, select and drag Revenue to the canvas.

Description of the illustration rev_tile.png - 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.

Description of the illustration rev_spark_chart.png
Change the Spark Chart Type
- In the visualization, click Menu
, select Edit, and then select Duplicate Visualization. - In the new visualization's Properties, click Line in the Chart row, and then select Area.

Description of the illustration area_spark_chart.png - In the visualization, click Menu
, select Edit, and then select Duplicate Visualization. - In the new visualization's Properties
, click Area in the Chart row, and then select Bar.
Description of the illustration 3_spark_charts.png - Click the area spark chart visualization, click Menu
, and then select Delete Visualization. - Click the bar spark chart visualization, click Menu
, and then select Delete Visualization.
Add a Filter
In this section, you add a time-series filter to the revenue and units visualizations.
- In the Data panel, right-click Units, and then select Create Best Visualization.
- In the Data panel under BILL_DAY_DT, select Month, and then it to Category (Chart).

Description of the illustration units_spark_chart.png - In the Data panel under BILL_DAY_DT, right-click Year, and then select Create Filter.
- 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.

Description of the illustration spark_charts_filtered.png
Add an Average Reference Line
- 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.
- 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.

Description of the illustration avg_ref_line.png
Learn More
Examine Trends with Spark Charts
F31963-04
September 2022
Copyright © 2022, Oracle and/or its affiliates.
Learn how to use performance tiles and a spark chart to show trends in your Oracle Analytics data.
This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.
If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, then the following notice is applicable:
U.S. GOVERNMENT END USERS: Oracle programs (including any operating system, integrated software, any programs embedded, installed or activated on delivered hardware, and modifications of such programs) and Oracle computer documentation or other Oracle data delivered to or accessed by U.S. Government end users are "commercial computer software" or "commercial computer software documentation" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, reproduction, duplication, release, display, disclosure, modification, preparation of derivative works, and/or adaptation of i) Oracle programs (including any operating system, integrated software, any programs embedded, installed or activated on delivered hardware, and modifications of such programs), ii) Oracle computer documentation and/or iii) other Oracle data, is subject to the rights and limitations specified in the license contained in the applicable contract. The terms governing the U.S. Government's use of Oracle cloud services are defined by the applicable contract for such services. No other rights are granted to the U.S. Government.
This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
Intel and Intel Inside are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Epyc, and the AMD logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group.
This software or hardware and documentation may provide access to or information about content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services unless otherwise set forth in an applicable agreement between you and Oracle. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services, except as set forth in an applicable agreement between you and Oracle.