Click or drag to resize

UniversalGeneratorsGetChartDataTableT Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Makes data table for chart

Namespace:  imbSCI.Graph.Graphics
Assembly:  imbSCI.Graph (in imbSCI.Graph.dll) Version: 0.3.70.
Syntax
C#
public static DataTable GetChartDataTable<T>(
	this IEnumerable<T> source,
	Func<T, string> titleSelector,
	Func<T, double> valueSelector,
	string name = "ChartData"
)

Parameters

source
Type: System.Collections.GenericIEnumerableT
The source.
titleSelector
Type: SystemFuncT, String
The title selector.
valueSelector
Type: SystemFuncT, Double
The value selector.
name (Optional)
Type: SystemString
The name.

Type Parameters

T

Return Value

Type: DataTable

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also