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#)
 Suppress 2o line in TimeAxis
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

carlao

54 Posts

Posted - 28 Mar 2006 :  07:26:15  Show Profile  Reply with Quote
When I plot a chart using time in x axis I notice that when the time is midinight I have the date in the 2o. line. Is there a way to suppress this 2o. line? I would like to have only the time in x axis.

quinncurtis

1164 Posts

Posted - 28 Mar 2006 :  08:38:47  Show Profile  Reply with Quote
We don't really know what the "2o" line that you refer to is. You may need to explain that in a different way.

If you want to get rid of what we call the cross-over date, which would be the date displayed in place of the time at midnight, use the DateCrossoverMode property of the time axis labels.

xAxisLab1.DateCrossoverMode = ChartObj.NO_DATECROSSOVER
Go to Top of Page

carlao

54 Posts

Posted - 28 Mar 2006 :  12:50:10  Show Profile  Reply with Quote
When I run charts I get the following:

20:00----21:00----22:00----23:00----00:00----1:00----
00:00

Note that below midinight (00:00) I have another time/date that sometimes is 00:00 and other times is change of date.
I would like to hide or disable this second line. Is it possible?
Thanks.
Go to Top of Page

carlao

54 Posts

Posted - 28 Mar 2006 :  13:02:09  Show Profile  Reply with Quote
Sorry, after post I saw that my draw was not the same.
Here I tried draw the dynamic axis time again.

20:00----21:00----22:00----23:00----00:00----1:00----
....................................00:00

In the second line I used points just to position 00:00 below the time label. In real chart these points does not exist.
See that I would like to hide the second 00:00
Thanks.
Go to Top of Page

quinncurtis

1164 Posts

Posted - 28 Mar 2006 :  13:05:26  Show Profile  Reply with Quote
What happend when you used the TimeAxisLabels.DateCrossoverMode property we described ?
Go to Top of Page

carlao

54 Posts

Posted - 28 Mar 2006 :  14:31:05  Show Profile  Reply with Quote
Nothing. The second line is still there.
Go to Top of Page

quinncurtis

1164 Posts

Posted - 28 Mar 2006 :  15:47:20  Show Profile  Reply with Quote
It works for us. We added the line to our ScatterPoints example program (found in ScatterPlots or ChartTabDemo).

TimeAxisLabels xAxisLab = new TimeAxisLabels(xAxis);
xAxisLab.SetTextFont(theFont);
// Only this line was added
xAxisLab.DateCrossoverCondition = ChartObj.NO_DATECROSSOVER;
chartVu.AddChartObject(xAxisLab);

Make sure you are not overriding it by somewhere, perhaps by calling an CalcAutoAxisLabels.

If you still have problems post all of the code you use to create and initialize the TimeAxisLabel object.
Go to Top of Page

carlao

54 Posts

Posted - 28 Mar 2006 :  16:59:01  Show Profile  Reply with Quote
Yeah! It works now!
Seems that CalcAutoAxisLabels was overriding.
To be sure not have this problem I added
XAxisLab.DateCrossoverCondition = ChartObj.NO_DATECROSSOVER;
just before UpdateDraw()
Any way, I could not find the meaning of this flag in manual.
Thanks a lot.
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