PointOptions.Pattern Property
Gets or sets a string which represents the pattern specifying the text to be displayed within series labels and legend items.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v24.2.dll
NuGet Package: DevExpress.Wpf.Charts
Declaration
Property Value
Type | Description |
---|---|
String | A String, which represents the pattern. The default value is Empty. |
Remarks
The PointOptions.Pattern property is now obsolete. Use the AxisLabel.TextPattern, SeriesLabel.TextPattern, and Series.LegendTextPattern properties instead.
Use the Pattern property to define a pattern for displaying text by series labels or the legend. Various placeholders enclosed in braces correspond to the available display patterns. For example, a pair of placeholders specified together (e.g., {A} - {V}), will cause each data point to be represented by both its argument and value, separated by a hyphen.
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. |
{S} | Use it to display the name of the series. |
In addition to the Pattern property, you can specify the text to be displayed in a simpler way with the PointOptions.PointView property. Note that if both properties are set to non-default values, the Pattern property has a higher priority than the PointOptions.PointView property.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Pattern property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.