Is there a way to force the x-axis to display labels at specific interval? For example if the x-axis is a DateTime and goes from 11:23AM to 1:39PM but I only want to show labels at 11:30, 11:45, 12:00, 12:15, etc, is there a way to do this?
Ah, I should have looked a little harder...I have attached it now.
Mike,
Did you mean you can't find how to attach it or you are unable to attach it? The file attachment options are on the option tab when you are posting. You can also email files to gmurray@infragistics.com
Graham,
I have created a messy sample to demonstrate what I am trying to do but using the CategoryXAxis. If I simple change the x axis to CategoryDateTimeAxis (and add the DateTimeMemberPath and DisplayType) then nothing works any longer. Queuing/Dequeuing seem to always be invalid index (although that seems to be ok in my full app), the HoveredCategoryItems behavior does not work and nothing shows up on the chart. Can you tell me where I should dent the sample as I cannot attach it here?
Mike
I'm not sure if even the CategoryDateTimeXAxis will help keep your label intervals rounded if you are removing and adding the points in real time. You can set an interval, but if x axis span isn't evenly divisible by the interval then your labels will fall on non even values. I believe there may be some smart snapping features in our backlog for the CategoryDateTimeXAxis, but you may want to make a feature request also. Its important to note that the CategoryDateTimeXAxis does not let you manually set the minimum and maximum values currently, so you couldn't keep those updated along with the data to ensure the span was evenly divisible.
From my testing, there may be an floating point arithmetic issue with the CategoryDateTimeXAxis currently if your first and last values are very close together in terms of ticks, as may be your case. If you can send us a sample of how you have it configured, we can identify any potential bugs and try and assert that the scenario works for the first service release of the chart, or earlier if it is only a configuration issue.
Based on this I believe I will have to go with the CategoryDateTimeXAxis. However, my initial attemp at using it does not display the line (none of the y value points are visible). The xaxis datetimes are displayed and as new values come in they are moving but no points are visible.
Essentially I just changed my type from CategoryXAxis to CategoryDateTimeXAxis, set the Displaytype and DateTimeMemberPath and removed the interval property. Is there more to it than that?