legendPosition

Sets the legend position relative to the chart. Set the property to Chart.NONE to hide the legend.

Type

A Legend Position constant:

Chart.NONE      // (0) No legend
Chart.BOTTOM    // (3) Below X-axis title, aligned left
Chart.TOP       // (1) Above graph, aligned left
Chart.LEFT      // (4) To left of Y-axis title, aligned top
Chart.RIGHT     // (2) To right of graph, aligned top (default)
Chart.IN_PLACE  // (5) Superimposed on graph

Example

Chart1.legendPosition = Chart.LEFT;

legendPosition

Either syntax below can be used in component script:

legendPosition          // unqualified
Chart1.legendPosition   // qualified

For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required.