ValueFormatString

ValueFormatString can be used to set the format of the numeric AxisLabel values or DateTime values.

 

Type: String

Namespace: Visifire.Charts

Assembly:

Silverlight:

SLVisifire.Charts (in SLVisifire.Charts.dll)

WPF:

WPFVisifire.Charts (in WPFVisifire.Charts.dll)

Windows Phone:

SLWpVisifire.Charts (in SLWpVisifire.Charts.dll)

Windows 8:

Win8Visifire.Charts (in Win8Visifire.Charts.dll)

 

This attribute applies to:

 

Syntax:

<vc:Chart ... >

<vc:Chart.AxesY>

<vc:Axis ValueFormatString="#,0.0#"/>

</vc:Chart.AxesY>

</vc:Chart>

 

or

 

<vc:Chart ... >

<vc:Chart.AxesX>

<vc:Axis ValueFormatString="dd/MM/yyyy"/>

</vc:Chart.AxesX>

</vc:Chart>

 

Below is the chart after setting ValueFormatString property to  "#,0.0#" in AxisY.

 

valueformatstring.jpg

 

 

Related Links:

  1. For more info, refer to Custom Numeric Format Strings.

  2. For more info, refer to Custom Date and Time Format Strings.