I have several series all using independent x axis but I have had to add code to make sure they are all showing the exact same range. Is it not possible to have them all share the same x axis? Each time I add a series I tried simply finding the current CategoryDateTimeXAxis and setting it to the series's xaxis but the axis labels are never displayed.
Is there an example of adding a CategoryDateTimeXAxis to the xaml and then programmatically adding the a series which uses that CategoryDateTimeXAxis?
I see. The reason that you cannot use MinimumValue and MaximumValue on the DateTimeXAxis is because these were introduced in the last Service Release after the major 10.3 Release.
I will talk with our Development Support team and my manager here to see how best we can help you in this regard.
Thanks,
Shilpa
Thanks Shilpa. I haven't had a chance to test this yet because I get a build error. In my version of SL Data Visualization controls there is no MinimumValue or MaximumValue member in the CategoryDateTimeXAxis class. I have version 10.3.20103.1006 of the controls installed. Am I missing something?
We worked on your sample and think that we were able to achieve the desired result that you were expecting .
Note that we used two CategoryDateTimeAxis as that would give a proper spacing and scale to the Axes as compared to CategoryXAxis.One has the itemsource set to Data, and the other has its ItemsSource set to SummaryData. Since the ranges of Data and SummaryData are different , MinimumValue and MaximumValue properties were set for each CategoryDateTimeXAxis so that both the axes can have the same range.
I also set the Visibility of the AxisLabels on the CategoryDateTimeXAxis to "collapsed" as it seemed redundant to have two pairs of same AxisLabels. Attached is the edited sample application.Please let me know if this solution solves your issue.
I have forwarded your application to our development team for review. Someone from the team will respond to this thread shortly .
We appreciate your patience.
No problem. The data is fed to the Silverlight app using a polling duplex web service so you will need to use the new polling duplex libraries provided with the Silverlight 4 toolkit.