TAChart: Display major axis marks at the edges of the clip range

git-svn-id: trunk@37565 -
This commit is contained in:
ask 2012-06-07 13:40:04 +00:00
parent 59834c98ec
commit 1f29550b44
2 changed files with 3 additions and 1 deletions

View File

@ -466,6 +466,7 @@ procedure TChartAxis.Draw;
FValueMax := Min(FAxisTransf(AMax), FValueMax);
if FValueMax <= FValueMin then continue;
ExpandRange(FValueMin, FValueMax, -EPS);
FClipRangeDelta := 1;
try
BeginDrawing;
for m in minorMarks do

View File

@ -211,6 +211,7 @@ type
public
FAxis: TChartBasicAxis;
FAxisTransf: TTransformFunc;
FClipRangeDelta: Integer;
FClipRect: ^TRect;
FDrawer: IChartDrawer;
FPrevCoord: Integer;
@ -357,7 +358,7 @@ var
rmin, rmax: Integer;
begin
GetClipRange(rmin, rmax);
Result := InRange(ACoord, rmin + 1, rmax - 1);
Result := InRange(ACoord, rmin + FClipRangeDelta, rmax - FClipRangeDelta);
end;
procedure TAxisDrawHelper.LineZ(AP1, AP2: TPoint);