[Newbie question]
Hi,
I'm trying to set up a simple line chart.
My code is very simple:
Hi,
I'm trying to set up a simple line chart.
My code is very simple:
DataSeries ds1 = new DataSeries(); |
ds1.LegendLabel = "Random"; |
ds1.Definition = new Telerik.Windows.Controls.Charting.LineSeriesDefinition(); |
FillDataSeries(ds1); // Fills series data points with XValue and YValue |
chartArea1.DataSeries.Add(ds1); |
When the code runs, a NullReferenceException is thrown.
----------------------------------------------------------------------------------------------------------
System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Windows.Controls.Charting.BaseAnimationConverter.GetAnimationSettings() in c:\Builds\WPF_Scrum\Chart_WPF_2009_Q2_SP1\Sources\Development\Controls\Chart\Chart\Animations\BaseAnimationConverter.cs:line 163
-----------------------------------------------------------------------------------------------------------
what am I missing?
Thanks.