Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
90
NullReferenceException on modifying axis properties of xamchart
posted

Hi, I recently upgraded from 2009.1 to 2009.2 of the Silverlight Data Visualization package.

Code which used to work when modifying axis properties  of a xamchart now results in a null reference exception.

eg

slChart.Axes[0].AutoRange = false;

slChart.Axes[0].Maximum = 100;

slChart.Axes[0].Minimum = data.Ymin;

slChart.Axes[0].Unit = 10;

 

the exception occurs on the first set.

The axis object definitely exists and the properties even have values.

Parents Reply Children
No Data