simple line chart

Hi
I am using Visual Studio C# to create a simple windows phone app
and I am wanting to add a simple line chart using sfChart
This is what I have done so far:
I drop a sfChart onto the form and name it chart
then from a button click I have
LineSeries lineChart = new LineSeries();
double[] valueList = new double[10];
valueList[0] = 0.5;
valueList[1] = 0.6;
valueList[2] = 0.7;
valueList[3] = 0.8;
lineChart.ItemsSource = valueList;
chart.Series.Add(lineChart);
but I run it and click on the button nothing happens....i.e the graph still looks like default...i.e x scale is 0 to 1 and y scale is 0 to 1 and no line is drawn
I must be missing something simple
thanks for any help!
Brian

4 Replies

BH Brian Hamilton November 20, 2015 04:02 AM UTC

making progress
using the code shown here (which has spaces missing after the word new)
http://help.syncfusion.com/winrt/sfchart/getting-started
I do get that graph to show
so will push on :)


SA Santhiya Arulsamy Syncfusion Team November 20, 2015 08:42 AM UTC

Hi Brian,

Thanks for your update.

We are glad to know that you found the solution.

Please let us know if you have any query.

Regards,

Santhiya A


BH Brian Hamilton November 20, 2015 07:32 PM UTC

Hi
I got it all working, having the graph update from real time data
great components!
:)
Brian


SA Santhiya Arulsamy Syncfusion Team November 23, 2015 04:56 AM UTC

Hi Brian,

Thanks for your update.

We are glad to know that the solution works for you.

Please contact us if you need any further assistance.

Thanks,

Santhiya A

Loader.
Up arrow icon