We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

UnsetValue error in SfChart3D

Hello,

Using the 13.1451.0.21 version, I am trying to set the visibility of the numeric axis labels in a SfChart3D depending on their value. I am binding the Interval property in the ViewModel and I have created a converter for the LabelTemplate of the NumericalAxis.

The problem is that when debugging the converter, the expected values are shown, and then there are some unknown values and an "Unable to cast object of type 'MS.Internal.NamedObject' to type 'System.IConvertible'" exception is thrown, because the value of the internal has UnsetValue. Can you provide me with a solution?

I am attaching a sample which you can run to reproduce the problem.

Thanks in advance,


Theodosia




Attachment: Bar_32ff8277.zip

3 Replies

SA Santhiya Arulsamy Syncfusion Team November 3, 2015 12:31 PM UTC

Hi Theodosia,

Thanks for contacting Syncfusion support.

We have analyzed your problem, it is a framework level problem. We have resolved it in an alternate way. Please change the binding as like in below code sample.

[XAML]

<Binding Source="{x:Reference columnChart}" Path="SecondaryAxis.Interval"/>




 

 

Thanks,

Santhiya A.



TK Theodosia Konstantinidou November 3, 2015 12:49 PM UTC

Thank you very much for your help Santhiya. This change solved my issue.


Theodosia


SA Santhiya Arulsamy Syncfusion Team November 4, 2015 10:47 AM UTC

Hi Theodosia,

Thanks for your update.

Please let us know if you have any query.

Thanks,

Santhiya A.

Loader.
Live Chat Icon For mobile
Up arrow icon