Author |
Topic  |
|
pachart
15 Posts |
Posted - 17 Feb 2004 : 13:29:26
|
When I use Crossover Mode, Format sometimes the lables at first and second line are not shown as expected. To reproduce the problem you can change the timelength at the first line in the following code, which is from the ChartTabDemo DateAxes2 Graph 7.
If you change the timelength from 21 to 30, 60, 80, 100, and 150 then you can see the labal sometimes showup and some times dispeare. Please give me more information about how to use the Crossover function.
Dim pTransform7 As TimeCoordinates = DefineTransform(ChartObj.DAY_OF_YEAR, 21, ChartObj.WEEK_5D) pTransform7.SetGraphBorderDiagonal(0.05, 0.575, 0.95, 0.675) AutoDefineAxis(pTransform7, ChartObj.TIMEAXIS_DAY, "Day (5 Day Week)") xAxisLab1.SetAxisLabelsFormat(ChartObj.TIMEDATEFORMAT_D) xAxisLab1.SetDateCrossoverMode(ChartObj.UNDER_DATECROSSOVER) xAxisLab1.SetCrossoverLabelFormat(ChartObj.TIMEDATEFORMAT_MDY) xAxisLab1.SetDateCrossoverCondition(ChartObj.CROSSOVER_WEEK)
|
|
quinncurtis
1164 Posts |
Posted - 17 Feb 2004 : 17:42:51
|
It does not sound like your problem has anything to do with the time/date crossover function. If axis labels are too close together they are automatically deleted by default See the FAQ's for QCChart2D, item 16.
16. Sometimes the major tick marks of an axis are missing the associated tick mark label ? |
 |
|
pachart
15 Posts |
Posted - 18 Feb 2004 : 11:22:58
|
Maybe you are right. The problem is that I set the same properties for a X axis with time length changed. Sometimes the labels are crowed it can show all labels but overlap eachother. Sometimes the labels are not crowed but it missed lable for some ticks. What is the rules for this issue?
On the other hand in the user manual there is no place discussing the Crossover Functions. We can only try to figure out from the demo examples. I want to learn more about the function. Is there any document about the functions?
Thanks |
 |
|
quinncurtis
1164 Posts |
Posted - 18 Feb 2004 : 13:03:19
|
Sorry, no additional documentation on the cross over functions exits, other than the examples and what is in the manuals.
The bounding box for the text labels that is used to check for overlap is larger than the text itself. Even though the actual text appears not to overlap, the bounding boxes may. If you want to create closely spaced axis tick mark labels then always set the OverlapLabelMode of the AxisLabels object to ChartObj.OVERLAP_LABEL_DRAW.
axislabels.OverlapLabelMode = ChartObj.OVERLAP_LABEL_DRAW;
or
axislabels.SetOverlapLabelMode(ChartObj.OVERLAP_LABEL_DRAW)
|
 |
|
|
Topic  |
|
|
|