ShowLegend(true/false)

Determines whether to show or hide the legend for the chart.

Parameters

Boolean. Sets whether or not to show the chart legend. Can take one of the following values:

  • True. Specifies to show the legend.
  • False. Specifies to hide the legend.
Examples

ChartGraph.ShowLegend(true);

Shows the chart legend.