sizeLegend.format
Sets the format for data values displayed in the size legend.
Type
|
date display |
|
number display |
|
text display |
|
fraction display |
|
locale-adapting currency display |
For the Date, Decimal, and Message formats, use the formatSpec property to assign a format specification using the appropriate masks: [formatType, formatSpec]. See the examples below.
Examples
Number Format
Chart1.sizeLegend.format = [Chart.DECIMAL_FORMAT,"$#,##0.00"];

Text Format
Chart1.sizeLegend.format = [Chart.MESSAGE_FORMAT,"{0} Inc."];

|
Either syntax below can be used in component script:
For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required. |