valueFormats

  • valueColor to specify value color in a single-style chart.

  • valueFont to specify value font in a single-style chart.

  • valueFormat to specify value format in a single-style chart.

  • valueRotation to specify value rotation in a single-style chart.

Provides access to value formatting for Charts that have ‘Multiple Styles’ enabled. (See Multiple Style Chart for information about the ‘Multiple Styles’ property in Dashboards.) To format a measure in a multiple-style chart, set the valueFormats property for the desired measure.

Type

See the following properties for the appropriate value type: valueColor, valueFont, valueFormat, valueRotation.

Example

Chart1.valueFormats['Sum(Quantity Purchased)'].color = [255,0,0];
Chart1.valueFormats['Sum(Quantity Purchased)'].rotation = 30;
Chart1.valueFormats['Sum(Total)'].color = [0,0,255];
Chart1.valueFormats['Sum(Total)'].format = [Chart.DECIMAL_FORMAT,"$#,###.00"]
Chart1.valueFormats['Sum(Total)'].font = 'Lucida Sans Unicode-BOLD-8';

valueFormats

Either syntax below can be used in component script:

valueFormats['...'].property         // unqualified
Chart1.valueFormats['...'].property  // qualified

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