This topic explains conceptually how to add the UltraSparkline control and introduces to the available adding options.
The following table lists the materials required as a prerequisite to understanding this topic.
This topic contains the following sections:
Sparkline can be displayed in Windows Forms application as a stand-alone control, in small spaces such as grid cells, or in-line with text. The UltraSparkline control can be added through the designer, as well as in-code.
In order to determine what data is to be displayed, you need a data source with at least two numeric fields in the class as the data points. This is handled by the ItemsSource and ValueMemberPath properties, respectively. These are the minimum set of properties you need to configure for the UltraSparkline control.
The project requirements for adding the UltraSparkline control include adding assembly references and namespaces as well as some data requirements.
The UltraSparkline supports any one-dimensional data source, as long as the data contains at least two numeric fields in order to render the chart.
Add the following Infragistics assemblies to the your main project:
Infragistics.Win.DataVisualization.UltraSparkline.dll
Infragistics.Win.DataVisualization.Shared.dll
Infragistics.dll
Infragistics.Win.Portable.Core.dll
Also, add the following Infragistics namespaces:
Final requirement to create UltraSparkline control, is one-dimensional data that contains numeric values. Note: With the Win/Loss display type of Sparkline, only two values will be used for the chart – the highest one and the lowest one. The rest of the values in the data set will be ignored.
The following table lists the ways in which you can add the UltraSparkline control.
The following topics provide additional information related to this topic.