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 767

Summary: TSeriesBandTool doesn't calculate the points correctly when the series' stairs property is active
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: ToolsAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: enhancement CC: aljosa
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=14883
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: Screenshot of problem

Description yeray alonso 2014-05-14 06:59:47 EDT
TSeriesBandTool doesn't calculate the points correctly when the series' stairs property is active.

uses Chart, Series, TeeSeriesBandTool;

var Chart1: TChart;

procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
  Chart1:=TChart.Create(Self);
  Chart1.Parent:=Self;
  Chart1.Align:=alClient;

  Chart1.View3D:=false;

  for i:=0 to 1 do
    with Chart1.AddSeries(TFastLineSeries) as TFastLineSeries do
    begin
      FillSampleValues(10);
      Stairs:=true;
    end;

  with Chart1.Tools.Add(TSeriesBandTool) as TSeriesBandTool do
  begin
    Series:=Chart1[0];
    Series2:=Chart1[1];
    Brush.Gradient.Visible:=true;
  end;
end;
Comment 2 PoLabs 2014-05-14 07:25:20 EDT
Created attachment 203 [details]
Screenshot of problem