Chart Label、Style Format References : Using Keywords、Standard Numeric Format Strings
Using Keywords (from Dudas Chart Online Document)
The following table provides a list of supported keywords.
| Keyword | Replaced By | Applicable To | Supports Multiple Y Values | 
|---|---|---|---|
| #VALX | X value of the data point. | Data points only. | 
 | 
| #VAL, #VALY,            | Y values of the data point. | Data points only. | 
 | 
| #SERIESNAME | Series name. | Data points and series. | - | 
| #LABEL | Data point label. | Data points only. | - | 
| #AXISLABEL | Axis data point label. | Data points only. | - | 
| #INDEX | Data point index. | Data points only. | - | 
| #PERCENT | Percentage of the data point Y value. | Data points only. | 
 | 
| #TOTAL | Total of all Y values in the series. | Series only. | 
 | 
| #LEGENDTEXT | Legend text. | Legend only. | - | 
| #AVG | Average of all Y values in the series. | Series only. | 
 | 
| #MIN | Minimum data point of all Y values in the series. | Series only. | 
 | 
| #MAX | Maximum data point of all Y values in the series. | Series only. | 
 | 
| #FIRST | First data point of all Y values in the series. | Series only. | 
 | 
| #LAST | Last data point of all Y values in the series. | Series only. | 
 | 
Standard Numeric Format Strings (from MSDN Library)
- C or c(Currency)        
 double value = 12345.6789;
 "C" // Displays 12,345.68
 "C3" // Displays 12,345.679
 
- D or d(Decimal)       
 int value = 12345;
 "D" // Displays 12345
 "D8" // Displays 00012345
 
 int value = -12345;
 "D" // Displays -12345
 "D8" // Displays -00012345
 
- E or e(Scientific)       
 double value = 12345.6789;
 "E" // Displays 1.234568E+004
 "E10" // Displays 1.2345678900E+004
 "e4" // Displays 1.2346e+004
 
- F or f(Fixed-point)      
 int integerNumber = 17843;
 "F" // Displays 17843.00
 
 int integerNumber = -29541;
 "F3" // Displays -29541.000
 
 double doubleNumber = 18934.1879;
 "F" // Displays 18934.19
 "F0" // Displays 18934
 
 double doubleNumber = -1898300.1987;
 "F1" // Displays -1898300.2
 "F3", // Displays -1898300.199
 
- N or n(Number)       
 double dblValue = -12445.6789;
 "N" // Displays -12,445.68
 
 int intValue = 123456789;
 "N1" // Displays 123,456,789.0
 
- P or p(Percent)       
 double number = .2468013;
 "P" // Displays 24.68 %
 "P1" // Displays 24.7 %
 
- R or r(Round-trip)       
 double value = Math.PI;
 "r" // Displays 3.1415926535897931
 
- X or x(Hexadecimal)        
 int value = 0x2045e;
 "x" // Displays 2045e
 "X" // Displays 2045E
 "X8" // Displays 0002045E
 
 int value = 123456789;
 "X" // Displays 75BCD15
 "X2" // Displays 75BCD15
