Adding a Title and Legend to a Chart

Last Updated: 06/29/2018 Introduced in Version: 2.0

Charts present report results in a graphical form. To enhance these charts visually, a title and legend can be added in the Report Designer.

To add a title to a chart, select the Show Title checkbox in the Chart Settings section of the Properties Panel.  To add a legend to a chart, drag a Chart Legend component to the workspace from the Reports > Charts category of the Components Panel, then under the Settings section of the Properties Panel, select the chart in the Chart drop down list.

Example

The goal of this example is to:

  1. Edit a portal page to include a pie chart.
  2. Add a title to the chart.
  3. Remove the title and add a legend to the chart.

Begin by navigating to a Designer Folder.  Right click a previously created page and select the Edit Page.

 

Next, click and drag a Pie Chart into the workspace from the Reports > Charts category of the Toolbox Panel.

 

In the Properties Panel, under the section Chart Data, open the Source selector and select the report to be used as a data source for the chart.

 

Under the Chart Settings section, select the Show Title checkbox and fill in the Title field with “Pie Chart”.  The new title will appear above the chart in the workspace and can be viewed in by previewing the page.

 

Next, drag a Chart Legend component into the workspace from the Reports > Charts category of the Toolbox Panel.

 

 

In the Properties Panel, under the Settings section, select the chart in the Chart drop down list.

The result will be similar to the below image.

 

To remove the chart title, select the chart and under the Chart Settings section, clear the Show Title checkbox. This completes the page.  

Save the page.

 

 

To preview the page and chart, click the Preview link at the top of the Page Designer

The chart and its corresponding legend will appear in the new window.

Additional Resources