Welcome to the WPF feedback portal. We’re happy you’re here! If you have feedback on how to improve the WPF, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Hello,
we recently upgraded Syncfusion from version 15.4.0.20 to 19.2.0.46 and experienced, that in some of our charts a Null reference exception was thrown. The stack trace only contains code from Syncfusion:
Because the code is a bit complicated and written by a colleague, I cannot provide a minimal example application.
But I have already found the root cause for the problem and a working solution:
In the past, we feeded the data in the following format to the bar chart:
- Category1
--- SubCategory1
--- SubCategory2
- Category2
--- SubCategory1
which means, that each category does not have the same amount of sub categories.
This was working fine until the upgrade. Now I changed the code, such that all categories will have the same number of sub categories, while the ones, that were not present in the past, just have a value of 0:
- Category1
--- SubCategory1
--- SubCategory2
- Category2
--- SubCategory1 --- SubCategory2 (with value 0, such that it is not visible in the bar chart)
I hope you can do something with that description. This is only meant for a notification, I do not need any urgent fixes at the moment, because I have identified the root cause and found a solution.
Thanks and kind regards,
Christian