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

Create a simple line chart...

2 Answers 29 Views
Chart
This is a migrated thread and some comments may be shown as answers.
jfkrueger
Top achievements
Rank 1
jfkrueger asked on 20 Nov 2011, 01:43 AM
I am needing to create a simple line chart with decimal values for the y-axis, years on the x-axis and several data series. Pretty much just like the one in the Charts "First Look" example (chart on lower left). My only problem is that I have no idea how the data is supposed to be structed in silverlight for this to work. Could someone please provide an example of this type of chart so I can see how the data is being structured that is set to the charts ItemsSource? Nothing is working for me, I have tried the DataTable and creating my own data object, but the year is never displayed along the x-axis and there is always only 1 series.

Thanks! 

2 Answers, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 23 Nov 2011, 12:56 PM
Hi Joe,

1)
You can check our line chart demos here.
In the upright corner you have an Example tab and a Code tab where you can check out the code to the examples.

2)
If you have installed the Telerik Silverlight Controls you should have all the examples under you local installation path i.e. C:\Program Files (x86)\Telerik
There you should see a folder named  "RadControls for Silverlight Q2 2011 SP1" for example depending on the controls' version that you have installed.
There you should see a "Demos" folder which contains a VS solution "ExamplesCS_SL.sln".

3)
RadChart provides full support of DateTime values and allows you to show dates on the X-Axis. You can find more information about this here.

4)
Most of our demos use the MVVM pattern to set the ItemsSource. There are plenty of resources online that should make you familiar with the MVVM. For example this information about MVVM on MSDN.

If you have more questions about our controls we'll be happy to assist you.

Greetings,
Petar Marchev
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
jfkrueger
Top achievements
Rank 1
answered on 23 Nov 2011, 05:10 PM
Thanks, yeah I have your samples downloaded but they won't build so I don't really get to see how the data is structured. I figured it out though using the Simple Filtering example. Thanks!
Tags
Chart
Asked by
jfkrueger
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
jfkrueger
Top achievements
Rank 1
Share this question
or