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

Field of an object underneath X Axis

1 Answer 38 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Adigard
Top achievements
Rank 1
Adigard asked on 19 Jan 2012, 11:23 AM
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 :
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/chartandtooltip/defaultcs.aspx?product=chart


1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 24 Jan 2012, 01:14 PM
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,
Evgenia
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
Tags
Chart (Obsolete)
Asked by
Adigard
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or