Pie Chart DataBinding Problems

6 posts, 1 answers
  1. Raj Maverick
    Raj Maverick avatar
    12 posts
    Member since:
    Jul 2009

    Posted 25 Jan 2010 Link to this post

    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

     

  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 27 Jan 2010 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Raj Maverick
    Raj Maverick avatar
    12 posts
    Member since:
    Jul 2009

    Posted 03 Feb 2010 Link to this post

    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.

  5. Raj Maverick
    Raj Maverick avatar
    12 posts
    Member since:
    Jul 2009

    Posted 15 Feb 2010 Link to this post

    Hi Telerik,

    Can someone help me on this?????

    Regards,
    Raj
  6. Answer
    Ves
    Admin
    Ves avatar
    2879 posts

    Posted 17 Feb 2010 Link to this post

    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.
  7. Raj Maverick
    Raj Maverick avatar
    12 posts
    Member since:
    Jul 2009

    Posted 23 Feb 2010 Link to this post

    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
Back to Top
UI for WinForms is Visual Studio 2017 Ready