Has anyone had any issues with getting the charts to work in Visual Studio 2010 going against .Net 4.0?
Im having a problem where i get the following error:"Missing Key value on ChartParameter object".
I seem to have narrowed it down the the theme property. If I set the theme then I get this error, if I do not include the theme property then it renders.
Also worth nothing is that I can take the code below, put it into VS 2008 and it renders fine.
Here is the code for the chart that I am using. This came straight from the sample browser. Again Remove the Theme tag and it renders a very basic chart:
<igCA:XamChart MaxHeight="500" MaxWidth="700" Theme="Neon" > <igCA:XamChart.Series> <igCA:Series Label="Series 1"> <igCA:Series.DataPoints> <igCA:DataPoint Label="2001" Value="3"/> <igCA:DataPoint Label="2002" Value="5"/> <igCA:DataPoint Label="2003" Value="4"/> <igCA:DataPoint Label="2004" Value="7"/> <igCA:DataPoint Label="2005" Value="5"/> </igCA:Series.DataPoints> </igCA:Series> <igCA:Series Label="Series 2"> <igCA:Series.DataPoints> <igCA:DataPoint Label="2001" Value="5"/> <igCA:DataPoint Label="2002" Value="2"/> <igCA:DataPoint Label="2003" Value="7"/> <igCA:DataPoint Label="2004" Value="2"/> <igCA:DataPoint Label="2005" Value="6"/> </igCA:Series.DataPoints> </igCA:Series> </igCA:XamChart.Series> </igCA:XamChart>
Any Ideas?
it looks like a bug in the .NET Framework 4.0 right now, as DependencyPropertyChangedEventArgs.NewValue.get() is throwing an exception.
the line of our code it breaks on is:
if (control != null && e.NewValue != e.OldValue)
i tried "fixing" this with a try/catch block, but the exception continued to be raised for some odd reason.
hopefully this isn't a blocking issue for you... we are hoping this gets resolved in .NET 4 beta 2, but if not we might have to change the way that theme works.
FYI, when the exception is raised, it is trying to set the Series.ExtraParameters collection.
Thanks for taking a look at that David.
It sounds like 1 way or another it will be fixed (Either by .Net 4 beta 2 or by you changing the way the themes work).
I have not even looked but can you styles the charts? Or is the theme the only way at the moment?
We are still in the trial phase of testing out the controls and still have a ways to go before we may need to implement a chart so hopefully by then it will be fixed. Although our demo app will not look as sexy as it could have!
Again thanks for taking a look at this.
yes, the charts are stylable. that's how the themes work, using Styles. the Neon theme (and probably most of the others) has one property setter that is breaking due to an issue with deferred resource references on one particular property.