Define a Legend for a Chart Widget

Use the Legend page (accessed from within the Chart Widget Properties window) to define how a legend looks and behaves on a Chart Widget. Properties include:

  • Show Legend: Shows/hides a legend.
  • Docking: Top, Left, Right, or Bottom, and aligned Near, Center, or Far.
  • Alignment: Near, Center, or Far.

    Chart Widget Legend Example

  • Wrapping: Enable or disable wrapping of legend text.
  • Constraint legend width: Set the maximum width of legend item text.

The Chart Widget Properties window is accessed from within the Widget Manager when you create or edit a Chart Widget.

To define the legend for a Chart Widget:

  1. Create a Widget.
  2. In the Type drop-down, select Chart.
  3. Click the Legend page.
  4. Define properties:
    1. Show Legend:

      Select this check box to display a legend on the chart. The legend identifies the series on the chart; the text is defined in the Series Name field (Series window).

    2. Docking:

      Select a docking option for the legend:

      • Top
      • Left
      • Right
      • Bottom
    3. Alignment:

      Select an alignment option for the legend:

      • Near
      • Center
      • Far
  5. Wrap Legend Items:

    Select this check box to wrap text for legend items to improve readability. Legend items are arranged in columns and ordered from top to bottom, then left to right.

    Legend items are added to fill approximately half of the chart's width (left to right docking) or height (top or bottom docking). Remaining legend items can be viewed by clicking the ellipses at the bottom of the legend.

  6. Constrain Legend Width

    Select this check box to control the width of legend text, and then specify the maximum legend item width in pixels.

    The Wrap Legend Items and Constrain Legend Width options do not apply to Pipeline charts.

  7. Select OK.