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 448

Summary: ColorLine draw out of bound Chart when AllowDrag is false
Product: VCL TeeChart Reporter: sandra pazos <sandra>
Component: ToolsAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement CC: david
Priority: ---    
Version: 131119   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description sandra pazos 2013-11-21 04:01:43 EST
When you there is a ColorLine tool in a Chart with AllowDrag property to false, if you scroll the Chart the ColorLine is drawn out of bounds of Chart.
  TForm1 = class(TForm)
    Chart1: TChart;
    Series1: TFastLineSeries;
    ChartTool1: TColorLineTool;
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
begin
Series1.FillSampleValues(100);
ChartTool1.Axis := Chart1.Axes.Left;
ChartTool1.Value := Series1.YValue[3];
ChartTool1.AllowDrag := False;
ChartTool1.NoLimitDrag := False;
end;
The same problem occurs in TeeChartFor.Net.
Comment 1 sandra pazos 2013-11-21 04:02:12 EST
The TeeChartFor.Net bug number is [id447]
Comment 2 david berneda 2013-11-22 05:37:25 EST
Fixed.

When AllowDrag is True, scrolling outside the chart will force the color line position to be inside, so it will be always visible.

When AllowDrag is False, the color line will not be painted if its outside the axis Min to Max range.