Skip to main content
A newer version of this page is available. .

PercentOptions.ValueAsPercent Property

Gets or sets a value that specifies whether point values are represented as a percentage.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v19.2.dll

Declaration

public bool ValueAsPercent { get; set; }

Property Value

Type Description
Boolean

true if point values are represented as a percentage; false if they are represented as is.

Remarks

Use the ValueAsPercent property to control whether the data values of a series’ data points are represented as percentages, for the series types which support percentages (e.g. 2D Pie or 2D Full-Stacked Area).

By default, this property is set to true, and the values of the data points within a series are shown as percents. This means that the value displayed for each point, is its value expressed as a percentage of the total of all the values in the series. If you need to indicate data points by their real values, set the ValueAsPercent property to false.

The precision of percentage values can be specified by the PercentOptions.PercentageAccuracy property, in effect when the ValueAsPercent is set to true.

Note

In order to display percentages, you can set the NumericOptions.Format property to the NumericFormat.Percent value.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ValueAsPercent 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.

See Also