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.
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.
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.
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.
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.
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.