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 - TSeriesBandTool doesn't calculate the points correctly when the series' stairs property is active
Summary: TSeriesBandTool doesn't calculate the points correctly when the series' stair...
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Tools (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-14 06:59 EDT by yeray alonso
Modified: 2014-05-14 07:25 EDT (History)
1 user (show)

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


Attachments
Screenshot of problem (100.90 KB, image/png)
2014-05-14 07:25 EDT, PoLabs
Details

Note You need to log in before you can comment on or make changes to this bug.
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