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#)
 Show Time passed on xAssis
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Tomaso

16 Posts

Posted - 10 Sep 2007 :  05:03:44  Show Profile  Reply with Quote
How I can visualize on xAxis the time passed (hh:mm) from the first date (xMin)?
Example:
------------------------------------------------------------------
| | | | |
00:00 12:00 24:00 36:00 48:00

quinncurtis

1164 Posts

Posted - 10 Sep 2007 :  08:41:21  Show Profile  Reply with Quote
There is no way to display time axis labels across multiple days without a rollover of the hours at 24, so that the axis labels would go 0, 12, 0, 12.

Instead you should use CartesianCoordinates, with standard LinearAxis, and StandardAxisLabels. Then you just scale the axis for the hours that you want.

We made this simple change to the ScatterPlots.SimpleScatter example program.

LinearAxis xAxis = new LinearAxis(pTransform1, ChartObj.X_AXIS);
// added the following two lines
xAxis.AxisTickSpace = 2;
xAxis.AxisMinorTicksPerMajor = 6;
// end of change
chartVu.AddChartObject(xAxis);

If you scale the x-axis for hours, then the x-data that you plot would be in expressed in hours, i.e. a data point at 5 minutes would have a value of(5/60 = 0.083333) of an hour.

Go to Top of Page

Tomaso

16 Posts

Posted - 11 Sep 2007 :  03:14:41  Show Profile  Reply with Quote
Thanks of the suggestion
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