Hi i m new to telerik charts... i need some help from you guys...
1.I copied sample code from the rad chart and paste it in my application."seriesextensions.fillwithsampledata(barseries" is showing error and the remaining things is fine.
2. i want to display months in the x-axis.i wrote some code
dim months as string()= new string(){"jan","feb",....}
for i= 0 to months.length-1
radchart1.defaultview.chartarea.axisx.label=months(i)
next
it is not showing the item labels
quick reply is appreciable.
1.I copied sample code from the rad chart and paste it in my application."seriesextensions.fillwithsampledata(barseries" is showing error and the remaining things is fine.
2. i want to display months in the x-axis.i wrote some code
dim months as string()= new string(){"jan","feb",....}
for i= 0 to months.length-1
radchart1.defaultview.chartarea.axisx.label=months(i)
next
it is not showing the item labels
quick reply is appreciable.
7 Answers, 1 is accepted
0
Hello Pradeep,
Please check the code for this example: http://demos.telerik.com/silverlight/#Chart/FirstLook
Especially this part:
All the best,
Vladimir Milev
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.
Please check the code for this example: http://demos.telerik.com/silverlight/#Chart/FirstLook
Especially this part:
Dim months As String() = New String() {"Jan", "Feb", "Mar", "Apr", "May", "Jun", _ |
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"} |
For i As Integer = 0 To months.Length - 1 |
ChartArea2.AxisX.TickPoints(i).Label = months(i) |
Next |
All the best,
Vladimir Milev
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.
0
Matt
Top achievements
Rank 1
answered on 25 Jun 2009, 08:24 PM
Which namespace does it belong to?
0
Hello Matt Schaunaman,
You are probably just copy-pasting code from the examples. The SeriesExtensions class is simply a utility library which is part of the examples library which generates random data for the charts. You should substitute it with your own code supplying business data to the control.
Regards,
Vladimir Milev
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.
You are probably just copy-pasting code from the examples. The SeriesExtensions class is simply a utility library which is part of the examples library which generates random data for the charts. You should substitute it with your own code supplying business data to the control.
Regards,
Vladimir Milev
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.
0
Abdul
Top achievements
Rank 1
answered on 30 Jul 2009, 10:36 AM
I am also new to Telerik Charts and want to know what is the namespace used for "SeriesExtensions".
Please Reply ASAP.
Please Reply ASAP.
0
James
Top achievements
Rank 1
answered on 06 Sep 2009, 05:15 AM
Hi Vladimir
suggestion - you should include the utility code of SeriesExtensions in the demo http://demos.telerik.com/silverlight/#Chart/FlexibleAPI to avoid the confusion that Pradeep or Just had.
hi Pardeep, Just
I tried below code replacing with the line of "seriesextensions.fillwithsampledata(barseries",7) in the demo code and it worked for me (vb.net):
For Each data As ChartDataViewModel In Model.ChartElementDataList
dataSerie.Add(New DataPoint() With {.XCategory = data.ChartXY.X.ToString(), .YValue = CDbl(data.ChartXY.Y)})
Next
chart.DefaultView.ChartArea.DataSeries.Add(dataSerie)
James
http://highviewsoft.com
suggestion - you should include the utility code of SeriesExtensions in the demo http://demos.telerik.com/silverlight/#Chart/FlexibleAPI to avoid the confusion that Pradeep or Just had.
hi Pardeep, Just
I tried below code replacing with the line of "seriesextensions.fillwithsampledata(barseries",7) in the demo code and it worked for me (vb.net):
For Each data As ChartDataViewModel In Model.ChartElementDataList
dataSerie.Add(New DataPoint() With {.XCategory = data.ChartXY.X.ToString(), .YValue = CDbl(data.ChartXY.Y)})
Next
chart.DefaultView.ChartArea.DataSeries.Add(dataSerie)
James
http://highviewsoft.com
0
Shrikant
Top achievements
Rank 1
answered on 02 Mar 2011, 05:51 AM
Hi Telerik Admin,
I have downloaded demo telerik controls for Silverlight. The Problem discussed above , the same problem came through in my coding also. i.e. code of SeriesExtensions in the demo .
Here Pradeep Explained vb.net code but i am C# developer, so can you plz convert that code in C# or any new solution
Vb.net code :-
For Each data As ChartDataViewModel In Model.ChartElementDataList
dataSerie.Add(New DataPoint() With {.XCategory = data.ChartXY.X.ToString(), .YValue = CDbl(data.ChartXY.Y)})
Next
chart.DefaultView.ChartArea.DataSeries.Add(dataSerie)
Please Help me out
Thanks
I have downloaded demo telerik controls for Silverlight. The Problem discussed above , the same problem came through in my coding also. i.e. code of SeriesExtensions in the demo .
Here Pradeep Explained vb.net code but i am C# developer, so can you plz convert that code in C# or any new solution
Vb.net code :-
For Each data As ChartDataViewModel In Model.ChartElementDataList
dataSerie.Add(New DataPoint() With {.XCategory = data.ChartXY.X.ToString(), .YValue = CDbl(data.ChartXY.Y)})
Next
chart.DefaultView.ChartArea.DataSeries.Add(dataSerie)
Please Help me out
Thanks
0
Hello Matt,
Both the VB and C# versions of the SeriesExtensions are available in the download for RadControls for Silverlight.
All the best,
Vladimir Milev
the Telerik team
Both the VB and C# versions of the SeriesExtensions are available in the download for RadControls for Silverlight.
All the best,
Vladimir Milev
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!