Field of an object underneath X Axis

Thread is closed for posting
2 posts, 0 answers
  1. Adigard
    Adigard avatar
    61 posts
    Member since:
    Oct 2011

    Posted 19 Jan 2012 Link to this post

    Currently, my RadChart's datasource receives what a method returns (a request LINQ to SQL). What i return is more precisely
    a list of objects...

    I would like to display underneath the X Axis a field of this objet ( a name for instance )

    How is it possible to chose between the fields of an object those i want to use for my histogram

    Thanks in advance for your help

    PS: what i'm looking for looks a bit like this :

  2. Evgenia
    Evgenia avatar
    1396 posts

    Posted 24 Jan 2012 Link to this post

    Hi Rambert,

    You may review our demo which uses a SQLDataSource to bind the chart. You can easily customize this sample and bind your chart with LinqDataSource by converting the sql query in Linq.
    To be able to show strings as XAxis Labels you'll need to use a DataLabelsColumn property as shown in this help topic.

    Kind regards,
    the Telerik team
    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 their blog feed now
  3. DevCraft R3 2016 release webinar banner
Back to Top