Hi,
Is there any way to be able to re-scale the X-axis as you zoom in?
For instance, the initial X-axis scale is by day and as you zoom in to a certain day X-axis scale becomes by hour.
Thanks.
Hello Elton,
I know you posted this in the Android section but I just want to make sure. This is a native Android application correct? And you are referring to the data chart control for Android?
Hi Rob,
Correct. I am referring to the Android chart controls.
I have been looking into the SamplesBrowser project but there is no example of re-scaling the X-axis. As mentioned in my first post, my scenario is to scale X-axis with dates (i.e. Jul 5, Jul 6, Jul 7...) and after zooming in on a certain date I want to see the hours (i.e. 10:00, 11:00, 12:00...) on my X-axis to have a more accurate information about my data item.
Hi Rob, I was wondering if you were able to put together some example of CategoryDateTimeXAxis usage. I think just a simple example of CategoryDateTimeXAxis would be enough for us to start, and we can work later on changing the labels while zooming.
Hi Elton,
I ran into a snag while modifying a CategoryXAxis sample to CategoryDateTimeXAxis. I sent our developers an email about this which I am currently waiting for a response. I apologize for the delay.
There appears to be an issue when using the CategoryDateTimeXAxis which is blocking its use. Unfortunately this means it cannot be used at this time. I have asked our engineering staff to examine this further. To ensure that it will receive attention, I have logged this behavior in our internal tracking system with a Development ID of 176048.
The basic gist of the approach, though, would have been to use the setOnActualWindowRectChangedListener to listen for window rect changes that occur when zooming. And then inside the handler you could use the chart's getWindowScaleHorizontal() and getWindowScaleVertical() functions to check the zoom level and based on this zoom level you can change the X axis' interval and label. Since the CategoryDateTimeXAxis is not working, I can't give you a sample demonstrating this.
I have created a private case for you so that you can track the progress of the development issue. The case number is CAS-140345-H7W2F9 and you can access it here: https://ko.infragistics.com/my-account/support-activity
Hi !!
We too are facing the same issue. Do we have a solution to it?
if yes, in which release?if no, when should we expect it?
Thanks !!
Harinder.
Hi Harinder,
The CategoryDateTimeXAxis issue was resolved in the 14.2 CTP release. Originally this issue was reported in the 14.1 CTP. You can download the 14.2 CTP for Android here.