First YValue using THistogramFunction is nonsense

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
bm
Newbie
Newbie
Posts: 1
Joined: Mon Dec 03, 2007 12:00 am

First YValue using THistogramFunction is nonsense

Post by bm » Fri Jan 25, 2008 2:43 pm

The fist YValue of Serie1 is much to high.
It seems always to be : 1000 - rest of all. Where is the bug ?
Example (Delphi 5 enterprise, TeeChart pro 8 VCL)

unit Main;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Series, TeEngine, ExtCtrls, TeeProcs, Chart, StdCtrls, TeeHistogram;

type
TForm1 = class(TForm)
Chart1: TChart;
Series1: TBarSeries;
Series2: TPointSeries;
Panel1: TPanel;
Fill: TButton;
Histogram: TButton;
procedure FillClick(Sender: TObject);
procedure HistogramClick(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;

var
Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.FillClick(Sender: TObject);
var i :integer;
begin
for i:=0 to 100 do
Series2.AddXY ( random(1000),random(1000) );
end;

procedure TForm1.HistogramClick(Sender: TObject);
begin
Series1.SetFunction(THistogramFunction.create(Self));
Series1.DataSource:=Series2;
end;
end.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Jan 25, 2008 4:07 pm

Hi bm,

I've been able to reproduce the issue here and added it (TV52012772) to our defect list to be fixed for next releases.

There's no workaround I can think of at the moment.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Feb 11, 2009 3:57 pm

Hi bm,

This issue has been fixed now for the next maintenance release.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply