Skip to content

Legend

Introduction

The Legend Properties allow you to configure the chart legend, which provides a key to understanding the different series or categories represented in your chart.


Purpose

To customize the visibility, layout, and appearance of the chart legend, making it easier for users to interpret the visualization.


Legend Properties

Click to view Legend Properties
  • Show Legend

    Toggle this switch ON to display the legend, or OFF to hide it.

    legend


  • Type

    Defines the layout style of legend items.

    • Plain: Displays all legend items in a list format without scrolling or pagination.

      legend

    • Scroll: Displays legend items in a scrollable or paginated format, useful when the chart has many items.

      legend


  • Item Gap

    Sets the horizontal spacing (in pixels) between legend items.

    legend


  • Alignment

    Controls how legend items are aligned within the legend container.

    • Auto: Adjusts alignment automatically based on available space.

      legend

    • Left: Aligns items to the left.

      legend

    • Right: Aligns items to the right.

      legend


  • Orientation

    Defines how legend items are arranged.

    • Horizontal: Items are displayed side by side.

      legend

    • Vertical: Items are stacked vertically.

      legend


  • Horizontal Alignment

    Aligns the legend horizontally within the chart area.

    • Left: Positions the legend on the left.

      legend

    • Center: Positions the legend in the middle.

      legend

    • Right: Positions the legend on the right.

      legend


  • Vertical Alignment

    Aligns the legend vertically within the chart area.

    • Top: Places the legend at the top.

      legend

    • Center: Places the legend in the center.

      legend

    • Bottom: Places the legend at the bottom.

      legend


  • Icon

    Sets the shape of the icon displayed next to each legend item.

    Options: Circle, Rect, RoundRect, Triangle, Diamond, Pin, Arrow.

    legend

  • Text Style (Expand to view options)

    Customize the appearance of legend text:

    • Color -> Set the legend text color (e.g., #000000).

    • Font Style -> Choose Normal, Italic, or Oblique.

    • Font Weight -> Choose Normal, Bold, Bolder, Lighter, or numeric values like 100, 200, 300, 400.

    • Font Size -> Set the size of the legend text in pixels (e.g., 14).

    • Width -> Define a fixed width (in pixels) for legend text (e.g., 100). If not set, it adjusts automatically.

      legend

  • Overflow -> Determines how text behaves when it exceeds the defined width. Options:

    • None -> Text may overflow beyond the container.

      legend

    • Truncate -> Cuts off overflowing text with ellipsis.

      legend

    • Break -> Moves text to a new line when it reaches the width limit.

      legend

    • BreakAll -> Breaks text at any character to fit within width.

      legend

  • Legend 3D Settings (Expand to view options)

    Customize how the legend appears when working with 3D charts.

    • Position -> Defines where the legend is placed relative to the 3D chart.

      • Auto -> Automatically positions the legend based on available space.

        legend

      • Top -> Places the legend above the chart.

        legend

      • Right -> Places the legend on the right side.

        legend

      • Bottom -> Places the legend below the chart.

        legend

      • Left -> Places the legend on the left side.

        legend

    • Width → Sets a fixed width (in pixels) for the legend container (e.g., 100).
      If not specified, it adjusts automatically based on the chart layout.

      legend


Use Cases

Legends provide quick visual identification of chart categories and series. Examples include:

Use CaseExampleWhy It Helps
Sales BreakdownLegend lists product categories with unique colorsUsers can quickly associate data series with their meaning.
Time Series DataLegend shows multiple years or metricsHelps distinguish between overlapping trends in the chart.
Comparative AnalysisLegend identifies business units or regionsEnables easy comparison without confusion.

Summary

The Legend Properties give you full control over how chart series are represented. By adjusting visibility, alignment, orientation, icons, and text style, you can make legends both clear and space-efficient, ensuring users interpret your visualization correctly.