
I put arrows showing the lines.
Is something like this possible? (I have attached a demo--if it can be done, do you mind updating the demo).
Much appreciated.
Ed Dressel
![]() | Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) |
![]() ![]() ![]() ![]() ![]() ![]() |
Please read our Bug Fixing Policy |
Code: Select all
var
Form1: TForm1;
aWidth, chartWidth : Integer; ///<-- these
Code: Select all
procedure TForm1.FormCreate(Sender: TObject);
var
I: Integer;
lValue: Double;
begin
aWidth:=Chart1.Width; //<-- here
chartWidth:=aWidth; //<-- and here
Series1.Clear;
Code: Select all
lCanvasClass := TCanvas3DClass(aChart.Canvas.ClassType);
if lCanvasClass <> TTeeCanvas3D then
aChart.Canvas := TTeeCanvas3D.Create;
aWidth:=aRect.Right; //<--- here
lHoldGradientVisible := aChart.Gradient.Visible;
Code: Select all
procedure TForm1.Chart1AfterDraw(Sender: TObject);
begin
with Chart1.Canvas do begin
Pen.Color := clRed;
Pen.Width := Chart1.BottomAxis.Axis.Width;
HorizLine3D(10,aWidth-10,Chart1.ChartRect.Top,0);
HorizLine3D(10,aWidth-10,Chart1.Axes.Bottom.PosAxis+1,0);
aWidth:=chartWidth; //reset
end;
end;