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

How to bind SQL date to RadHtmlChart control?

1 Answer 153 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 25 Aug 2013, 06:19 AM
Hi All,

How to bind SQL data to RadHtmlChart-pie control? All example are just binding static data only, i want to know how to bind sql query result (Name and total) columns in RadHtmlChart-pie?

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 28 Aug 2013, 08:51 AM
Hello Sam,

You have several responses in the ticket you have opened with the same question and I am adding a shorter version here as a resource that can help other people with similar questions:

On binding data:
first, examining this demo will help you: http://demos.telerik.com/aspnet-ajax/htmlchart/examples/databinding/database/defaultcs.aspx.
The column names you get from the datasource need to be passed to the corresponding series properties: http://www.telerik.com/help/aspnet-ajax/htmlchart-server-side-api-configure-series.html.

Pie chart configuration is also explained here so it is clearer to which configuration element each property corresponds: http://www.telerik.com/help/aspnet-ajax/htmlchart-types-pie-chart.html.



Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Chart (Obsolete)
Asked by
Sam
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or