I cannot figure out how to change the time axis extents in a QCRtGraph.NET once the graph is created. In my program
I create the initialize the graph when the form loads. The scroll frame is an RT_MAXEXTENT_FIXEDSTART_AUTOSCROLL. If the form is loaded at 10:00AM then the time axis starts at 10:00 AM
User clicks the start button at 10:05. Data is fed to the graph and the first point is plotted at 10:05. This is acceptable.
User clicks Stop at 11:00. Data is stopped and the graph extent is now from 10 AM to 11AM User clicks Start again 1 PM
Now I clear the graph by using TruncateProcessVarDataset method and then update draw method. This also works.
But I want the time axis to start anew from 1 PM and continue. I cannot get this to happen - I tried transform's SetTimeScaleStart method, scrollframes RescaleAxesToCurrentTransform method etc, but whatever I tried, it either does not work or the program crashes with an invalid argument error inside the chart DLL.
I appreciate any help.I have searched these forums for any clue but cannot find anything that I have not tried.