control.Region(n).DataAxis(n).AxisUnit

Type:String
Purpose:Sets a value unit (like %, $, and so on) for the labels.
Default:

""

Accessible:Runtime
Remarks:

The maximum length of the value unit is 15 chars. The default alignment of the sign is on the left side of the data label (e.g. "$100.000"). Exception: the percent sign (%) aligns by default on the right side. You can force the sign either right ot left:

  • Add /R or /r behind the value sign to force it to the right side of the data label ("/r").
  • Add /L or /l behind the value sign to force it to the left side of the data label ("% /L").
If you want to have a space between the sign and the data label, add CHR(255) in front or behind the sign.
Example:RMChartX1.AddRegion
RMChartX1.Region(1).AddDataAxis
' the percent sign will be printed behind the value label:
RMChartX1.Region(1).DataAxis(1).AxisUnit = " %"
' add a second data axis:
RMChartX1.Region(1).AddDataAxis
' the EURO sign will also be printed behind the value label:
RMChartX1.Region(1).DataAxis(2).AxisUnit = " /r""