Back to Devexpress

PercentOptions.PercentageAccuracy Property

wpf-devexpress-dot-xpf-dot-charts-dot-percentoptions-2563428b.md

latest2.2 KB
Original Source

PercentOptions.PercentageAccuracy Property

Gets or sets the percentage accuracy, when the PercentOptions.ValueAsPercent property is enabled.

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public int PercentageAccuracy { get; set; }
vb
Public Property PercentageAccuracy As Integer

Property Value

TypeDescription
Int32

An integer value which specifies the number of decimal places used in the percentage display.

|

Remarks

Use the PercentageAccuracy property to specify the precision level of the percentage value for series point labels, when the PercentOptions.ValueAsPercent property is set to true.

The default value is 2 , indicating that two decimal places are displayed.

Example

This example demonstrates how to customize the PointOptions.ValueNumericOptions and PercentOptions properties.

xaml
<dxc:AreaFullStackedSeries2D.PointOptions>
    <dxc:PointOptions>
        <dxc:PointOptions.ValueNumericOptions>
            <dxc:NumericOptions Format="Percent" Precision="2" />
        </dxc:PointOptions.ValueNumericOptions>
        <dxc:AreaFullStackedSeries2D.PercentOptions>
            <dxc:PercentOptions PercentageAccuracy="3" />
        </dxc:AreaFullStackedSeries2D.PercentOptions>
    </dxc:PointOptions>
</dxc:AreaFullStackedSeries2D.PointOptions>

See Also

PercentOptions Class

PercentOptions Members

DevExpress.Xpf.Charts Namespace