MindFusion.Charting Programmer's Guide

LineChart.YData Property

See Also
 





Gets or sets the data, which is used to calculate the Y-coordinates of the chart points.

Namespace: MindFusion.Charting.WebForms
Assembly: MindFusion.Charting.WebForms

 Syntax

C#  Copy Code

public IList YData { get; }

Visual Basic  Copy Code

Public ReadOnly Property YData As IList

 Property Value

An object of type .NET IList that holds other lists.

 Remarks

The property holds the numbers, which are used to calculate the Y-coordinates of chart points. The data can be either numbers or DateTime values. Data can be in any format (for example strings) that can safely be converted to numbers or DateTime values using the standard .NET DoubleConverter and DateTimeConverter classes. 

If the YData list is empty, the control automatically fills it with consequent numbers starting from 0,1,2,3... till the count of data in the respective XData series. In this case, the points are equally spread along the axes.

There is no limit to the count of data in YData - you can add as many series with as many numbers as you need.

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

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

Default value for the YData property is an empty list.

 See Also