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?
Mike,
Thanks for the update. I will keep an eye out for your new sample when you add it to this thread.
Due to the way I currently have the series data separated I do not think I can use the same method demonstrated in the sample you provided. Each series is a separate set of DateTime/double pairs. Some series will have 100 points while another will have 10000 but the DateTimes will all be relative to each other. In the sample you provided all the data is in the same set with the same number of points.
The reason I am trying to get all the series to use the same axis is that I have recently run into an issue where if the series date ranges are different enough then they do not line up on the chart together properly. For example I have a series that only covers about a few hours at a few second intervals and another that covers 4 days. The first series starts at 8:52:39 and the second starts at 8:52:44. However, when zoomed enough to see the difference between the two it appears that the first series starts nearly 2 minutes after the second when the data shows it starts 4 seconds before. If I remove the second series then the first series displays correctly. I am still working on a sample outside of our main app to reproduce this issue but it appears to be highly dependent on the data input.
One of my colleagues provided a sample which I believe demonstrates the functionality you are asking about. Please review the attached sample and let me know if this is helpful.
Thanks,
I am working on this. I will consult our chart experts here and post back here with more information.