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

3D Charts Change XCategory String Values to 1 2 3 4

1 Answer 37 Views
Chart
This is a migrated thread and some comments may be shown as answers.
rouf
Top achievements
Rank 1
rouf asked on 10 Jan 2011, 07:40 AM
Hello ,

I am using following vb.net code to generate a bar chart. But instead of XCategory values "India","Saudi Arabia" ,"United States of America" it shows 1 2 3  sequence. But if i change  Bar3DSeriesDefinition to BarSeriesDefinition  , it works fine.
Desparatly looking for the solution.

Thanks

 

 

 

 

chart1 = New RadChart
chart1.SamplingSettings.SamplingThreshold = 0
Dim sr As New Telerik.Windows.Controls.Charting.DataSeries
sr.Definition = New Bar3DSeriesDefinition
Dim dtpt As Telerik.Windows.Controls.Charting.DataPoint
  
  
  
dtpt = New Telerik.Windows.Controls.Charting.DataPoint
  
dtpt.YValue =1000
dtpt.XCategory = "India"
sr.add(dtpt)
  
dtpt = New Telerik.Windows.Controls.Charting.DataPoint
  
dtpt.YValue =2500
dtpt.XCategory = "Saudi Arabia"
sr.add(dtpt)
  
  
  
dtpt = New Telerik.Windows.Controls.Charting.DataPoint
  
dtpt.YValue =1000
dtpt.XCategory = "United States of America"
sr.add(dtpt)
  
  
With chart1
.DefaultView.ChartArea.DataSeries.Add(sr)
.DefaultView.ChartArea.AxisX.LabelRotationAngle = 90
.FontSize = 8
End With

 

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 12 Jan 2011, 08:48 AM
Hi rouf,

Indeed, the observed behavior is present.
It is a known issue, and is logged into our system. Our developers are working on it, and it should be addressed for one of the upcoming versions of the control, although I cannot commit to a definite timeframe.
I hope this information helps.

Regards,
Yavor
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
Chart
Asked by
rouf
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or