beltrams Posted April 7, 2011 Report Share Posted April 7, 2011 Dear forum, I have a big problem on a chart I cant sort out. I have tried to write a demo application but I cannot replicate it not sure why. I have the following: A 3D chart with the following transform <cfx:Chart.DataTransforms><cfxData:CrosstabTransform RowPath="Name" ColumnPath="Ccy" ValuePath="Sales" /></cfx:Chart.DataTransforms> And binding to a List of public class Employee{public object Name { get; set; } public object Ccy { get; set; } public double Sales { get; set; }} When the chart first load the list is empty (new List<Employee>()) and the chart display "no data", which is fine When I refresh the first time it loads some data and it is correctly displayed and it is always fien if I provide data But if I refresh and provide again an emtry list (new List<Employee>(); the application crash with the followinf message: "Object reference not set to an instance of an object." at ChartFX.WPF.Internal.ResolvedAttributes3D.a(Brush A_0, Double A_1, Double A_2, Color A_3, Brush A_4) at ChartFX.WPF.Internal.ResolvedAttributes3D.get_Material() This does not happens if I change the chart to 2D or if I remove the DataTransform. I understand there are not a lot of details but I have been trying to replicate on a demo all the day without success. Quote Link to comment Share on other sites More sharing options...
beltrams Posted April 8, 2011 Author Report Share Posted April 8, 2011 This can actually be somethng with the style in my application. I am investigating more. Quote Link to comment Share on other sites More sharing options...
beltrams Posted April 11, 2011 Author Report Share Posted April 11, 2011 This is now ok, the error was on my side. Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.