Back to Devexpress

PercentOptions Class

wpf-devexpress-dot-xpf-dot-charts-c9898705.md

latest2.9 KB
Original Source

PercentOptions Class

Provides settings for presenting point values as percents.

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public class PercentOptions :
    ChartDependencyObject
vb
Public Class PercentOptions
    Inherits ChartDependencyObject

Remarks

The PercentOptions class allows you to control whether point values should be presented as percents (see the PercentOptions.ValueAsPercent property) and specify the accuracy of percent values (see the PercentOptions.PercentageAccuracy property).

A PercentOptions object is available via the PercentOptions property of the corresponding Series descendant (e.g. AreaFullStackedSeries2D.PercentOptions).

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>

Inheritance

Object DispatcherObject DependencyObject Freezable ChartDependencyObject PercentOptions

See Also

PercentOptions Members

How to: Use the Numeric Options of Series Points

How to: Use the Percent Options of Series Points

DevExpress.Xpf.Charts Namespace