I have a Silverlight 5 Chart (toolkit chart) with Independent Axis ( X ) as DateTime Axis.
I wish to set Minimum to this Axis from the code behind using this :
((DateTimeAxis)(((LineSeries)(EVChart.Series[0])).ActualIndependentAxis)).Minimum
= dtMim;
but it gives me Object Reference error.
What I am missing here?
I have also tried :
- ((DateTimeAxis)(((LineSeries)(EVChart.Series[0])).IndependentAxis)).Minimum
= dtMim;
- Giving name to DateTime Axis and refering that in code behind as dtAxisName.Minimum = dtMim;