DataSet bind to Chart

2 posts, 0 answers
  1. DavidT
    DavidT avatar
    67 posts
    Member since:
    Dec 2005

    Posted 09 Jul 2009 Link to this post

    Hi,

    In C# .Net 3.5, I have a DataSet that I would like to Bind to a horizontal Telerik Reporting Bar Chart.

    The DataSet data essentially contains 2 column fields, NameOfGroup and NumberOfHits.

    So for example, a name of a group could be "The Beatles" and the number of hits could be 43.

    Another row in the DataSet could be "Led Zeplin" and the number of hits could be 22.

    As my DataSet data comes from a Store Procedure which does a SUM of "Hits" and groups by group name I will be adding more groups and new hits to the database.

    How do I build a Reporting Chart that will automatically represent dynamically the number of horizontal bars to the number of Groups I have in my DataSet.  My Hits column will be the length of the bars.

    Any online examples would be most appreciated.

    Thanks

    David
  2. Chavdar
    Admin
    Chavdar avatar
    898 posts

    Posted 15 Jul 2009 Link to this post

    Hello DavidT,

    You will find all the necessary information in the following documentation topic for the chart report item: Building Charts. Let us know if you are experiencing any particular problems.

    Regards,
    Chavdar
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft banner
Back to Top