
Can that be done?
I've attached a simple demo of the app.
Thank you,
Ed Dressel
Code: Select all
lSrs := TChartShape.Create(self);
lSrs.ParentChart := Chart1;
lSrs.Style := chasInvertTriangle;
lSrs.SeriesColor := clGreen;
lSrs.Pen.Visible := false;
lSrs.X0 := 23;
lSrs.X1 := 37;
lSrs.Y0 := 15;
lSrs.Y1 := 25;
Code: Select all
procedure TForm1.Chart1AfterDraw(Sender: TObject);
var points: array of TPoint;
begin
setLength(points, 3);
with Chart1.Axes do
begin
points[0]:=Point(Bottom.CalcPosValue(23), Left.CalcPosValue(25));
points[1]:=Point(Bottom.CalcPosValue(30), Left.CalcPosValue(25));
points[2]:=Point(Bottom.CalcPosValue(30), Left.CalcPosValue(15));
end;
with Chart1.Canvas do
begin
Pen.Style:=psClear;
Brush.Style:=bsSolid;
Brush.Color:=clGreen;
Polygon(points);
end;
end;
![]() | Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) |
![]() ![]() ![]() ![]() ![]() ![]() |
Please read our Bug Fixing Policy |