ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Problem while ZoomIn
Posted by Himanshu on Jun-21-2009 17:41
Sir,
I am have problem while zooming the graph......the graph keeps on zooming even after last data points...

There are 2 scenario:
Scenario 1:

I am getting day data from 9 to 5pm......
sometimes it happens say full data is not received.............
so i have 2 points from 9 to 10am,2 points from 10 to 11am,etc......
so if i have only say 50 points from 9 to 5 pm...then there comes problem while zoomin....
means if there are few points and more time scale from 9am to 5 pm then graphs keeps on zooming....
here is the code....

minduration = 60// 60seconds
firstpoint = m_timestamps[0];
maxduration = m_timestamps[noofpoints -1] - firstpoint;
chartviewer.setzoominwidthlimit(minduration / maxduration);

This code doesn't works..........
please help me out...............


Scenario2:
if i am having complete day data from 9 to 5pm then this code works

minduration = 60// 60seconds
firstpoint = m_timestamps[0];
maxduration = m_timestamps[noofpoints -1] - firstpoint;
chartviewer.setzoominwidthlimit(minduration / maxduration);

now i am having to edit control fields say starttime and endtime....
if i set starttime as 9 and endtinme as 5pm then there is no problem while zooming....zooming stop after sometime....................

but if i set starttime as 9 and endtinme as 3pm on same data  and then if i try to zoom at the end of the graph the graph disappears and zooming continues..........

please help me out of this zooming and scrolling problems................




In both cases i want to stop zooming to a particular limit say last 5 points....etc how do i achieve this.its urgent........