Chart for WinRT
Axis Annotation Format

You can control the annotation formatting for the values on the X or Y axis using the Axis.AnnoFormat property.

Setting the Axis.AnnoFormat property to a .NET Framework composite format string will format the data entered into the property. For more information on the standard numeric format strings that you can use for the Axis.AnnoFormat property see Standard Numeric Format Strings.

 

DateTime Format Strings

The DateTime format strings are divided into two categories:

 

Numeric Format Strings

 

Custom Numeric Format Strings

You can also customize your format strings by using the custom numeric format strings.

To use the Axis.AnnoFormat property specify a standard or custom format string for it. In the following XAML and code snippets the AnnoFormat property is set to "c" to change the whole values to currency format:

XAML
Copy Code
<Chart:C1Chart.View>
  <Chart:ChartView>
     <Chart:ChartView.AxisX>
        <Chart:Axis Min="0" AnnoFormat="c" AutoMin="false" AutoMax="false" Max="200" />
     </Chart:ChartView.AxisX>
  </Chart:ChartView>
</Chart:C1Chart.View>

 

C#
Copy Code
// Financial formatting
   c1Chart1.View.AxisX.AnnoFormat = "c";
   c1Chart1.View.AxisX.Min = 0;

 

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback