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

Values of X Axis

10 Answers 164 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Iosu Buenetxea
Top achievements
Rank 1
Iosu Buenetxea asked on 11 Nov 2008, 06:01 PM
Hi,
I have create a RadChart based on a datatable that has 2 columns "XValue" and "YValue".

Dim

 

seriesMapping2 As New SeriesMapping

 

seriesMapping2.SeriesDefinition =

New BarSeriesDefinition

 

 

Dim itemMapping2 As New ItemMapping

 

itemMapping2.DataPointMember = DataPointMember.YValue

itemMapping2.FieldName =

"YValue"

 

seriesMapping2.ItemMappings.Add(itemMapping2)

RadChart1.SeriesMappings.Add(seriesMapping2)

 

When i execute the chart, the X axis labels values are 1,2,3, .... and i would like to put here the values of "XValue" column on my datatable. How can i do it?


Also, If I try to put string values to "YValue" column in mi datatable, the chart fails, that is, only numeric values can be put as source of a serie?.

Thanks a lot.

10 Answers, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 12 Nov 2008, 09:54 AM
Hello Juan,

Thanks for writing. Indeed, the column which is set to DataPointMember.YValue should be numeric. This column will provide the value for YValue property of the item, which is essentially its "value" (ex. the height of the bar or the hight at which the point of a line chart is placed). I hope this explains why this column should be numeric. On the other hand axis item labels cannot be customized for the moment and we plan to provide means to manipulate them in a future version of the control.

All the best,
Evtim
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Michael
Top achievements
Rank 1
answered on 12 Nov 2008, 07:37 PM
You may have just explained my next issue.  So that means we are stuck with our X-Axis only being able to show "1, 2, 3, 4, 5, ..." as its labels until a future update?  If so, that is quite disappointing, and seems like a big block for people to use it in a production system.  For example, in my application, I have lots of charts that all require the X-Axis to show the abbreviated month of the year.  Any chance we can get a hotfix as soon as that gets added to the chart component?

0
Andrew
Top achievements
Rank 2
answered on 13 Nov 2008, 09:33 PM
i also need to display custom X Axis labels. In my case dates and hours of the day.
0
Ves
Telerik team
answered on 14 Nov 2008, 07:59 AM
Guys,

Thanks for the great feedback. I can see this feature appears to be a must in a lot of apps, so it will be implemented for the upcoming service pack release. Stay tuned let us know of any other features you would like to see implemented in RadChart.

Sincerely,
Ves
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Malky
Top achievements
Rank 1
answered on 14 Nov 2008, 07:59 AM

I'm planning to purchase RAD Control for WPF soon, do you have time frame when label feature will be available ? Other features is Radar chart is quite important to me....


0
Ves
Telerik team
answered on 14 Nov 2008, 01:07 PM
Hi Malky,

The service pack release is expected within a month and the axis labels will be included. As for radar charts -- our Q1 plans are pretty much stable now and unfortunately radar charts are not included. Still, your feedback is appreciated and your vote will be taken into account in our future considerations.

Best regards,
Ves
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
g
Top achievements
Rank 1
answered on 26 Dec 2008, 12:16 PM
Myself I see setting the X Axis value is a must.
and I cannot purchase the control without it.
And to be honest, I am buying the chart control, because I want to purchase the grid control as well, so I thought I will buy the chart control from the same vendor, but without this, I will not buy it.
The problem I have a release in the middle of January, and I cannot go without it.

0
Giuseppe
Telerik team
answered on 29 Dec 2008, 11:50 AM
Hello g,

The latest release of the chart control supports axis and series label formatting and customization. You can find more information here and you can find the XBAP demos here (the "Custom Axis Labels" example is placed under the Chart > Customization > Axes category).

Hope this helps.


Regards,
Manuel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Kurt
Top achievements
Rank 1
answered on 04 Jun 2009, 04:25 PM
Just an FYI:

The blog post shows eactly what I'm looking to do (bind string values to the x-axis), but provides zero code examples.  Awesome.  Also, there is no Chart > Customization > Axes category. 
0
Giuseppe
Telerik team
answered on 05 Jun 2009, 03:09 PM
Hi Kurt,

We would suggest you to review these help articles here and here that describe the label customization options supported by RadChart. As for the missing example -- indeed it was removed in the latest versions of the demos but its features can be seen in the Chart / FlexibleAPI example.

Hope this helps.


Greetings,
Manuel
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.
Tags
Chart
Asked by
Iosu Buenetxea
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Michael
Top achievements
Rank 1
Andrew
Top achievements
Rank 2
Ves
Telerik team
Malky
Top achievements
Rank 1
g
Top achievements
Rank 1
Giuseppe
Telerik team
Kurt
Top achievements
Rank 1
Share this question
or