Enumeration type for the positions at which the legend can be placed
  • laTopLeft: Legend at the top left corner of the chart
  • laCenterLeft: Legend at the left side of the chart, centered vertically
  • laBottomLeft: Legend at the bottom left corner of the chart
  • laTopCenter: Legend above the chart and centered horizontally
  • laBottomCenter: Legend below the chart and centered vertically
  • laTopRight: Legend at the top right corner of the chart
  • laCenterRight: Legend at the right side of the chart, centered vertically
  • laBottomRight: Legend at the bottom right corner of the chart.
Chart legend.

The legend is a list of so-called legend items which contain a symbol and a text.

  • The symbol is a graphical representation of a series or a series part. For example, a line series uses a short line segment as a symbol, while an area series uses a filled rectangle.
  • The text can be selected to be the series title or a selection of data point values.
Controls the location of the legend on the chart.
  • laTopLeft: Legend at the top left corner of the chart
  • laCenterLeft: Legend at the left side of the chart, centered vertically
  • laBottomLeft: Legend at the bottom left corner of the chart
  • laTopCenter: Legend above the chart and centered horizontally
  • laBottomCenter: Legend below the chart and centered vertically
  • laTopRight: Legend at the top right corner of the chart
  • laCenterRight: Legend at the right side of the chart, centered vertically
  • laBottomRight: Legend at the bottom right corner of the chart.
Used to fill the background rectangle of the legend. Set Style to bsClear to get a transparent legend. The font for the legend items text. Used to draw a frame around the legend. Set Visible to false to disable frame drawing. Distance between the legend's border and the border of chart or sidebar, in pixels. Distance between the legend's border and the items inside, in pixels. Also controls the distance between the consecutive items. Width of the legend's symbols, in pixels. If true, the legend is drawn outside the chart's viewport. Otherwise it is drawn over the chart. Allows to show or hide the legend. Basic class for legend items. If you create a new series type, you may specify one of the existing symbol types by overriding GetLegendItems, or create a new symbol by inheriting TLegendItem class. TBasicChartSeries.GetLegendItems List of legend items. Combines a few properties how a series is represented in the legend of the chart. ; Determines whether the series is listed in the legend Determines whether the legend items are assumed to be bare text or to contain HTML codes. Defines the order of the series in the legendBy default a series is listed in the chart's Legend in the same order as in the chart. Using the property Order the legend items can be rearranged. Enumerated type for options about which information of a series is to be displayed in the chart's Legend
  • lmSingle: The series will be repesented by a single legend entry which displays the Title of the series.
  • lmPoint: Every data point of the series will be listed; the items are formatted as specified by the property Format of the legend item.
  • lmStyle: If the series contains several y values, for example as in stacked series, a text will be displayed for each stack level taken from the Text property of the chart style
Determines how the legend items of a series are formatted

The text of a legend item is generated by the corresponding series based on the Legend.Format property. This property is used as a first argument for the SysUtils.Format() function, with the second argument containing the following data items at the specified indexes:

  • For per-series Multiplicity (lmSingle):
    • 0: Series Title
    • 1: Series Index
  • For per-point Multiplicity (lmPoint):
    • 0: Y
    • 1: Y as a percentage of the Y total
    • 2: Text
    • 3: Y total
    • 4: X

    where "Y total" is the sum of all Y values for this source. Note that not all sources supply all the items above.

Determines which information of a series is to be displayed in the chart's Legend
  • lmSingle: The series will be repesented by a single legend entry which displays the Title of the series.
  • lmPoint: Every data point of the series will be listed; the items are formatted as specified by the property Format of the legend item.
  • lmStyle: If the series contains several y values, for example as in stacked series, a text will be displayed for each stack level taken from the Text property of the chart style
Index of the legend group to which the legend item belongs

Legend items can be grouped under sub-headers which are taken from the legend's GroupTitles property.

Each series can use the GroupIndex property to indicate the group to which it should belong.

Controls the degree of transparency with which the legend is drawn (0 = opaque, 255 = fully transparent = invisible)A semi-transparent legend is useful when the legend is drawn inside the chart's viewport (UsePanel = false ) and covers parts of the series. Specifies whether the legend items contain plain text or HTML markupUsing HTML, more advanced text features like sub- or superscripts or various text decorations (bold, italic) can be accomplished. Can be used to draw the legend upside down

Normally the legend is drawn such that the first series of the chart is at the top, and the last series is at the bottom.

Setting Inverted to true paints the legend in the opposite sequence, i.e. first series at the bottom and last series at the top. Series property Legend.Order . If true horizontal lines are drawn between the legend items to separate them visually Determines the number of columns used to display the legend itemsBy setting the ColumnCount equal to the number of legend items a horizontal arrangement of legend items can be achieved. Decides whether a legend with several columns is filled by rows or by columns

When the legend has several columns, i.e. ColumnCount > 0, this property can be used to decide wether the legend items are arranged by rows or by columns:

  • lfoColRow: Fill the legend by columns
  • lfoRowCol: Fill the legend by rows.
Eumeration type deciding whether a legend with several columns is filled by rows or by columns

When the legend has several columns, i.e. ColumnCount > 0, the property ItemFillOrder can be used to decide wether the legend items are arranged by rows or by columns:

  • lfoColRow: First fill the columns
  • lfoRowCol: First fill the rows.