shapeLegends.font

Sets the font for labels within a shape-key legend on Charts that have multiple shape legends.

Type

java.awt.Font or font description

Example

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

shapeLegendsFont

Either syntax below can be used in component script:

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

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