colorLegends.title

Sets the legend title within a color-key legend (on charts that have multiple color legends).

Type

String

Examples

Chart1.colorLegends['Sum(Product:Quantity Purchased)'].title = 'Salesperson Color';
Chart1.colorLegends['Sum(Product:Total)'].title = 'Year Color';

colorLegendsTitle

Either syntax below can be used in component script:

colorLegends['...'].title           // unqualified
Chart1.colorLegends['...'].title    // qualified

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