AxisLabel.TextPattern Property
Gets or sets a string which represents the pattern specifying the text to be displayed within the axis labels that appears for a diagram X - axis or Y- axis.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v14.2.dll
#Declaration
#Property Value
Type | Description |
---|---|
String | A String, which represents the pattern. The default value is Empty. |
#Remarks
Use the TextPattern property to define a pattern for displaying text by axis labels. Various placeholders enclosed in braces correspond to the available display patterns. For example, you can use either the {A} pattern for the X-axis, or the {V} pattern for the Y-axis, together with the format specifiers.
The available placeholders are detailed below.
Pattern | Description |
---|---|
{A} | Use it to display a series point arguments. |
{V} | Use it to display a series point values. |
You can also use standard and custom format specifiers, together with the placeholders to format numeric and date/time values (e.g., {V:F1}).
The image below shows this property in action with {V:F1} patterns that are used to format axis value (Y-axis) labels.