TColorGridSeries ADDXYZ bug ?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
HGG
Newbie
Newbie
Posts: 2
Joined: Fri Apr 30, 2004 4:00 am
Location: Denmark
Contact:

TColorGridSeries ADDXYZ bug ?

Post by HGG » Tue May 04, 2004 11:48 am

Hi,

I'm having a problem with TColorGridSeries ADDXYZ differences between version 5 (and 6) and 7. I'm in the process of updating to the new version, but I get some strange errors. In my example is the onclick event of a button on a form which holds a chart. In version 5 the chart is filled with values from 0 to 90 following the values but in version 7 the chart is only filled with vales from 0 to 9 follwoing the index of Z NOT the value (as you would expect).

Does anybody have any ideas how to get arround this annoying bug ? Is there a new property in version 7 I must set, or is it a bug in teechart.

-Torben/HGG





procedure TForm1.Button1Click(Sender: TObject);
var
FColorSeries : TColorGridSeries;
I : Integer;
step : Real;
begin
FColorSeries := TColorGridSeries.Create(Chart1);
FColorSeries.IrregularGrid := True;
FColorSeries.ParentChart := Chart1;
FColorSeries.Pen.Visible := False;
FColorSeries.ShowInLegend := False;
FColorSeries.UseColorRange := False;
FColorSeries.UsePalette := True;

//Add pallette
FColorSeries.Clear;
FColorSeries.ClearPalette;
FColorSeries.PaletteSteps := 10;

for I := 0 to 9 do begin
FColorSeries.AddPalette(I*10, RGB(255-I*10, 255-I*20, I*10));
end;

Chart1.BottomAxis.SetMinMax(1, 2);
Chart1.LeftAxis.SetMinMax(0, 90);

step := 10;
//Add values
for I := 0 to 9 do begin
FColorSeries.AddXYZ(1, I*step, I*step);
FColorSeries.AddXYZ(2, I*step, I*step);
end;
end;

Pep
Site Admin
Site Admin
Posts: 3273
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed May 05, 2004 9:31 pm

Hi Torben,

I'm able to see the problem here. It seems to be a bug. We'll review it for the next maintenance release of TeeChart.
In meantime I suggest you use the version 6 which works fine. If I find a workaround I'll notify asap.

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Thu May 06, 2004 5:05 am

Hi.

The "problem" is in version 7 we intruduced new algorithm which allows virtually unlimited zooming (up to single cell and more). But right now the algorithm works only for indexed cells i.e. integer equidistant valued cells. We're working on improving this so that the algorithm will support and work with non-integer uneqidistant cells.
Marjan Slatinek,
http://www.steema.com

Post Reply