This topic explains how to bind the igSparkline
™ control to various data sources (JavaScript array, IQueryable<T>
, web service).
The following table lists the prerequisite materials required to understanding this topic.
Concepts
Topics
igDataSource Overview: General description of the igDataSource
control which serves as an intermediate layer between the data bound controls and the actual data source.
igSparkline Overview: This topic provides conceptual information about the igSparkline
control including its main features.
The igDataChart
control supports the following data sources:
Data Source | Binding |
---|---|
igDataSource |
Used internally by the control to manage data operations |
IEnumerable<T> |
Used to supply data from an MVC controller method |
Requirements for binding to the igDataSource
control vary from data source to data source. The following table lists each requirement category.
Requirement category | Requirement listing |
---|---|
Data structure |
|
Data types |
|
The igSparkline
control’s data binding is identical to that of the other controls in the Ignite UI for jQuery™ library. The way to bind data is either by assigning a data source to the dataSource
option or by providing a URL in the dataSourceUrl
in the event that data is provided by a web or WCF service.
Data structure | Related Topic/Sample |
---|---|
Data binding to a JavaScript Array | Related Topic Adding igSparkline to an HTML Document |
Data binding to an IEnumerable |
Related Topic Adding igSparkline to an ASP.NET MVC View |
Data binding to remote Data | Refer to the sample below |
The following topic provides additional information related to this topic.
igSparkline
control.The following samples provide additional information related to this topic.
igSparkline
bound to a JavaScript array.View on GitHub