Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 QCChart2D and QCChart2D CF (VB and C#)
 Showing elapsed time on the x-axis
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

soundar

32 Posts

Posted - 28 Feb 2008 :  21:45:53  Show Profile  Reply with Quote
Is there any way to show the elapsed time on the x-axis, starting at 00:00:00 instead of the actual time?
Thanks.

quinncurtis

1164 Posts

Posted - 29 Feb 2008 :  09:19:46  Show Profile  Reply with Quote
There is no "elapsed time" scale; time scales must be initialized with valid date/time record.

You cannot use a start time of January 1, 1 AD, which would coorespond to a start time of 0.

But all you are interested in representation of an elapsed time scale. So just start your time scale with todays date (or any date really), initial time - 0:00:00. And end you time scale with todays date, some other time - 3:30:00. Use a TimeAxisLabels time label format that does not shoe the date, only the time. See the example program ScatterPlots.ScatterPoints.

ChartCalendar currentDate = new ChartCalendar();
ChartCalendar.SetTOD(currentDate,0,0,0);
.
.
.
TimeAxisLabels xAxisLab = new TimeAxisLabels(xAxis);
// Get rid of the initial date crossover label under the 0:00:00
xAxisLab.DateCrossoverMode = ChartObj.NO_DATECROSSOVER;

xAxisLab.AxisLabelsFormat = ChartObj.TIMEDATEFORMAT_24HMS;


Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07