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 2347 - Wrong position for Annotation in a ColorLineTool within a SubChart
Summary: Wrong position for Annotation in a ColorLineTool within a SubChart
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Tools (show other bugs)
Version: 29.200113
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: yeray alonso
URL: https://www.steema.com/support/viewto...
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-17 06:34 EDT by yeray alonso
Modified: 2020-07-17 06:36 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-07-17 06:34:38 EDT
Here a test example.
Find a screenshot in the support forums

  with Chart1 do
  begin
    View3D:=False;
    Legend.Hide;
    Gradient.Visible:=False;
    Color:=clWhite;
    Walls.Back.Gradient.Visible:=False;
    Walls.Back.Color:=clWhite;
    Axes.Left.Grid.Hide;
    Axes.Bottom.Grid.Hide;

    AddSeries(TFastLineSeries).FillSampleValues;
  end;

  with TSubChartTool(Chart1.Tools.Add(TSubChartTool)) do
  begin
    with Charts.AddChart do
    begin
      View3D:=False;
      Axes.Left.Grid.Hide;
      Axes.Bottom.Grid.Hide;
      Left:=200;
      Width:=400;
      Height:=300;

      AddSeries(TFastLineSeries).FillSampleValues;

      with TColorLineTool(Tools.Add(TColorLineTool)) do
      begin
        Axis:=Axes.Bottom;
        AnnotationValue:=True;
        Value:=10;
      end;

      with TAnnotationTool(Tools.Add(TAnnotationTool)) do
      begin
        Text:='Annotation in SubChart';
        Shape.CustomPosition:=True;
      end;
    end;
  end;

  with TColorLineTool(Chart1.Tools.Add(TColorLineTool)) do
  begin
    Axis:=Chart1.Axes.Bottom;
    AnnotationValue:=True;
    Value:=2;
  end;

  with TAnnotationTool(Chart1.Tools.Add(TAnnotationTool)) do
  begin
    Text:='Annotation';
    Shape.CustomPosition:=True;
  end;