This is a migrated thread and some comments may be shown as answers.

Data Bind to Chart

1 Answer 115 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Milan
Top achievements
Rank 1
Milan asked on 28 Aug 2008, 03:10 PM
I can't show data from report in chart. All i've found to bind data from datasource to chart is chart.datasourceid but it doesn't exist. Is there any step by step manual how to show sql results in a chart?

1 Answer, 1 is accepted

Sort by
0
Chavdar
Telerik team
answered on 29 Aug 2008, 11:26 AM
Hello Milan,

To populate the chart with data you have to use its NeedDataSource event. You can find an example which demonstrates this functionality in the sample solutions (C# and VB.NET) which are installed with Telerik Reporting. The sample is called Product Line Sales and it uses a Chart report item which is populated with custom data from an SQL query.

All the best,
Chavdar
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Milan
Top achievements
Rank 1
Answers by
Chavdar
Telerik team
Share this question
or