Back to Devexpress

How to: Use the Percent Options of Series Points

wpf-9237-controls-and-libraries-charts-suite-chart-control-examples-miscellaneous-how-to-use-the-percent-options-of-series-points.md

latest1.3 KB
Original Source

How to: Use the Percent Options of Series Points

  • Jun 07, 2019

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>

The result is shown in the following image.

See Also

How to: Use the Numeric Options of Series Points

How to: Display Values Instead of Percents in the Legend