Hi,
I am use an example where the XamDataChart is a control that can be used in win forms. In the example the x Axis does not show. I am not sure how the styling functions work. How do I display the x Axis and format it to DateTime and set the interval to daily.
Thanks
Pieter
Ok I got this to work, in the samples on the web they show that we must use a CategoryXAxis and just format the label as date time, in my DataContext the X Axis is already a DateTime field then this solution does not work. I change it to CategoryDateTimeXAxis and format the label the way I want it. It works now but now I have a new problem when you Zoom in is cutting of the trace, not sure way but I think its something to do with the intervals of the X Axis, It’s not making the intervals smaller when I zoom. I don’t know how to set the intervals on the CategoryDateTimeXAxis.
I am not getting any response on my other posts hope someone will respond on this one.
Thanks,
Pieter,
Unfortunately the Interval on the CategoryDateTimeXAxis is not currently user configurable. But you should see each gridline represent a smaller interval as you zoom in, from my understanding. You can use the CategoryXAxis to display datetime types but they will only be treated as strings, so they won't be further subdivided as you zoom. You will see labels that might have been hidden from further out, but the labels will always exactly corellate with the values on the actual items.
It feels like it was potentially an oversight rather than a deferral that the interval of the CategoryDateTimeXAxis is not configurable, so I've created a bug report to try and sort that out (Bug 36850).
You can also see this post for into about how you can use the NumericXAxis to have greater control over the intervals in the meantime. http://community.infragistics.com/forums/p/41666/244821.aspx#244821
But note there are various benefits and trade-offs to working with numeric axes vs. category axes. If you can share a sample and more information as to how you want it to look I may be able to further advise you how to achieve your goal.
-Graham