Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 2372 - Wrong starting point in annotation callout when in 3D
Summary: Wrong starting point in annotation callout when in 3D
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Tools (show other bugs)
Version: 30.200525
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: https://www.steema.com/support/viewto...
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-28 07:37 EDT by yeray alonso
Modified: 2020-09-28 07:37 EDT (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2020-09-28 07:37:20 EDT
Here a simple example:

procedure TForm1.AnnotationCallout;
var i: Integer;
    s: TPoint3DSeries;
begin
  Chart1.View3D:=True;

  s:=TPoint3DSeries(Chart1.AddSeries(TPoint3DSeries));
  with s do
  begin
    for i:=0 to 9 do
      AddXYZ(i, i, 5);

    Pointer.Size:=2;
    LinePen.Hide;
  end;

  Chart1.Draw;

  with TAnnotationTool(Chart1.Tools.Add(TAnnotationTool)) do
  begin
    Text:='Annotation here';
    With Callout do
    begin
      Draw3D:=True;
      Arrow.Visible:=True;
      Arrow.Color:=clRed;

      XPosition:=s.CalcXPos(5);
      YPosition:=s.CalcYPos(5);
      ZPosition:=s.CalcZPos(5);
    end;
  end;
end;