colorLegends.font

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

Type

java.awt.Font or font description

Example

Chart1.colorLegends['Sum(Product:Quantity Purchased)'].font = new java.awt.Font('Serif', java.awt.Font.BOLD, 12);
Chart1.colorLegends['Sum(Product:Total)'].font = 'Comic Sans MS-BOLD-14';

colorLegendsFont

Either syntax below can be used in component script:

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

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