Charts are drawn with offset in TeeChart Pro 8.07
Posted: Wed Aug 11, 2010 7:41 am
These days we recognized that with TeeChart Pro 8.07 a chart is drawn with an offset and thus with the unpleasant side-effect that, in case of a bar series (either horizontal or vertical), part of the last bar is partially overlapped by the chart's border.
The reason for this are the source code changes in lines 12232 and 12245 of TeEngine.pas marked with TV52014436 (method TCustomAxisPanel.InternalDraw, CalcSeriesAXisRect):
If I revert to the code in lines 12234 and 12247 of TeEngine.pas, everything's fine:
For the time being we will work with a patched TeEngine.pas, but it would be nice to have this fixed in one of the next maintenance releases.
The reason for this are the source code changes in lines 12232 and 12245 of TeEngine.pas marked with TV52014436 (method TCustomAxisPanel.InternalDraw, CalcSeriesAXisRect):
Code: Select all
// TV52014436
if (Axis.MinimumOffset=0) and Axis.AutomaticMinimum then Axis.MinimumOffset:=a;
if (Axis.MaximumOffset=0) and Axis.AutomaticMaximum then Axis.MaximumOffset:=b;
Code: Select all
// TV52014436
if (Axis.MinimumOffset=0) and Axis.AutomaticMinimum then Axis.MinimumOffset:=b;
if (Axis.MaximumOffset=0) and Axis.AutomaticMaximum then Axis.MaximumOffset:=a;
Code: Select all
// if Axis.AutomaticMinimum then Left :=Math.Max(Left,a);
// if Axis.AutomaticMaximum then Right:=Math.Max(Right,b);
Code: Select all
// if Axis.AutomaticMaximum then Top :=Math.Max(Top,a);
// if Axis.AutomaticMinimum then Bottom:=Math.Max(Bottom,b);