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

Pie Chart DataBinding Problems

5 Answers 158 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Raj Maverick
Top achievements
Rank 1
Raj Maverick asked on 25 Jan 2010, 11:46 AM
Hi Telerik,

I am gonna use RadChart for the first time in a Windows application using VB.Net.

I need to display the pie chart for the total amount  with 7 divisions namely - Visa, Master, Amex, Cheque, Cash, Discover, Paypal.

This is my stored procedure output -

Amount     TenderType     NoOfPeople

300.00      Amex                  2
600.00      Cash                  4
450.00      Cheque              3
450.00      Discover             3
300.00      Master                2
300.00      Paypal                2
300.00      Visa                    2

The pie chart has to display Amount of the respective tendertype.   

Plz help me with how to code and display in Windows application using VB.Net.

Thank you in advance.

Regards,
Raj

 

5 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 27 Jan 2010, 09:57 AM
Hi Raj,

I have attached a small example of RadChart with the data you have provided. You can also check our online help, point to the Chart chapter and explore the topics in it. You can also check our examples.

Best regards,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Raj Maverick
Top achievements
Rank 1
answered on 03 Feb 2010, 12:23 PM
Hi Ves,

    That sample code worked and helped a lot to understand it. One small clarification - 

        Is it possible to show the pie chart section values as the pie chart label and the Types in legend?

        For Eg. Please see the attached image file in which I have used picture box as legends.

0
Raj Maverick
Top achievements
Rank 1
answered on 16 Feb 2010, 04:44 AM
Hi Telerik,

Can someone help me on this?????

Regards,
Raj
0
Accepted
Ves
Telerik team
answered on 17 Feb 2010, 03:24 PM
Hi Raj,

I am sorry for the delay. Please, find attached an updated version. By default RadChart will show the value as pie slice label, so I have removed the DataLabelsColumn setting. I have wired the ItemDataBound event and updated the Name property for every item.

Best regards,
Ves
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Raj Maverick
Top achievements
Rank 1
answered on 23 Feb 2010, 08:59 AM
Hi Ves,

    Thanks a lot for your reply and it has worked for me. I was breaking my head on this for more than 2 weeks. But still I am unable to understand the code flow in that. Anyway, ur code has worked and the task is done.

Thanls again for ur support.

Have a happy day...!

Regards,
Raj
Tags
Chart (obsolete as of Q1 2013)
Asked by
Raj Maverick
Top achievements
Rank 1
Answers by
Ves
Telerik team
Raj Maverick
Top achievements
Rank 1
Share this question
or