XValue

XValue determines the position of the DataPoint on AxisX. It can be numeric or a DateTime value and it is shown when AxisXLabel property is not set in DataPoints for all DataSeries.

 

Type: Double

Namespace: Visifire.Charts

Assembly:

Silverlight:

SLVisifire.Charts (in SLVisifire.Charts.dll)

WPF:

WPFVisifire.Charts (in WPFVisifire.Charts.dll)

 

This attribute applies to:

 

Syntax:

<vc:Chart ... >

<vc:Chart.Series>

<vc:DataSeries>

<vc:DataSeries.DataPoints>

<vc:DataPoint XValue="1" />

</vc:DataSeries.DataPoints>

</vc:DataSeries>

</vc:Chart.Series>

</vc:Chart>

 

or

 

<vc:Chart ... >

<vc:Chart.Series>

<vc:DataSeries>

<vc:DataSeries.DataPoints>

<vc:DataPoint XValue="2/1/2009" />

</vc:DataSeries.DataPoints>

</vc:DataSeries>

</vc:Chart.Series>

</vc:Chart>

 

Below is the chart after setting XValue property in DataPoints.

 

 

 

 

Remarks:

    1. If XValue is not set in DataPoints, it will be generated internally according to the index of the DataPoint.

    2. Also, if XValue is not set in DataPoints, the internally generated XValue will not be accessible from outside. If you want to access the value for XValue property, you have to set it in DataPoint.

    3. For DateTime values, XValue can be set depending upon the XValueType property in DataSeries.

 

See Also: