New to Telerik Reporting? Download free 30-day trial
This article is obsolete. The Chart item is now superseded by the more advanced Graph item. The Graph item is most often used for building powerful OLAP/Pivot charts.
To provide flexibility and best ease-of-use, Telerik provides multiple avenues to populate chart. There are three main techniques for building the chart: interactively at design-time, programmatically at runtime and by data binding.
In simple scenarios or to test out a design you can use the design-time interface to build the entire chart. Collection editors provide a consistent interface and easy navigation over all your chart series and series items. You can also use the Chart Wizard to display a subset of the data.
Most business applications display some sort of database data so Chart fully supports binding data source data to labels and data elements via the Data Source Components. The chart item also supports data binding to the X-Axis.
- At design time by using the editors for ChartSeries and ChartSeriesItem collections.
- Binding to a datasource at run time or design time.
Bind to a datasource programmatically to populate the ChartSeries and ChartSeriesItem collections. See this minimal example of creating and populating a Chart programmatically or this more complex example.