CT SET LEGEND TEXT

4D - Documentation   Français   English   German   4D Chart, Command Theme List   4D Chart, Command Alphabetical List   Back   Previous   Next

version 1


CT SET LEGEND TEXT (area; object; legendItem; legendtext)

ParameterTypeDescription
areaLongint4D Chart area
objectLongintObject ID
legendItemIntegerLegend item number
legendtextTextText of legend item

Description

The CT SET LEGEND TEXT command sets the text of the specified legend item.

legendItem is the number of the series (or category for a pie chart) in the legend. However, if the legend order has been reversed, legendItem reflects the original order, not the reversed order.

Example

This example changes the legend text of the chart specified by $ChartID.

   ARRAY STRING (20;aLegend;3)
   aLegend{1}:="Sales"
   aLegend{2}:="Marketing"
   aLegend{3}:="Engineering"

   For ($i;1;3)
      CT SET LEGEND TEXT (vArea;$ChartID;$i;aLegend{$i})
   End for 

See Also

CT GET LEGEND ATTRIBUTES, CT Get legend text, CT SET LEGEND ATTRIBUTES.


4D - Documentation   Français   English   German   4D Chart, Command Theme List   4D Chart, Command Alphabetical List   Back   Previous   Next