ChartDirector 7.1 (.NET Edition)

BaseChart.formatValue


Usage

[C#]public string formatValue({double | DateTime} value, string formatString);
[VB]Public Function formatValue(value As {Double | DateTime}, formatString As String) As String

Description

Formats a number/date using the ChartDirector formatting syntax as is in Parameter Substitution and Formatting.

Arguments

ArgumentDefaultDescription
value(Mandatory)The value to be formatted.
formatString(Mandatory)The format string, using {value} to denote the value. For example, ${value|2,} can be used to format the value to 2 decimal points, using "," as the thousand separator, and with a '$' sign in front.

Return Value

A text string containing the formatted result.