MindFusion.Charting Programmer's Guide

LineChart.XData Property

See Also
 





Gets or sets the numerical data, which is used for calculating the X - coordinates of line points.

Namespace: MindFusion.Charting
Assembly: MindFusion.Charting

 Syntax

C#  Copy Code

public IList XData { get; set; }

Visual Basic  Copy Code

Public Property XData As IList

 Property Value

An instance of type .NET IList that holds other lists with numbers.

 Remarks

The property holds the data used for calculating the X-coordinates of chart points. The data can be numbers or DateTime values. There is no restriction as to the format of the data as long as it can safely be converted to numbers or DateTime values using the standard .NET DoubleConverter and DateTimeConverter classes.

If the XData list is empty, the control fills it with consequent integers starting from 0, 1, 2...  up till the count of data in the respective YData series. In this case, the data is equally distributed along the X-axis.

There is no limit to the count of series XData can hold.

You can also set a function that calculates the result (y) values in a given numerical interval by means of the CalculateFunctionDelegate.

XData can be sorted in two ways - both the arrays can be sorted in comparison with each other and the numbers in each series can also be sorted. The properties for this are SortSeriesBy and SortOrder.

Default value for the XData property is an empty list.

 See Also