Page 1 of 1

TColorGridSeries draw question

Posted: Wed May 26, 2004 6:10 pm
by 8439796
Hi all,
I've been using TColorGridSeries for a while. I got a few questions here,

(1) how do I assign the min and max value instead of automatically detected? My workaround is to add min and max value manually to the chart. But it'll be handy if I can assign these two values instead of changing color range.

(2) Why it always draw a rectangle region even though the data is not rectangle shape? It overlapps the grid lines which make it look crappy.

(3) Is there any way I can adjust the transparant value of this series?

Thanks in advance
Fang

Posted: Wed May 26, 2004 7:46 pm
by Marjan
Hi.
how do I assign the min and max value instead of automatically detected
Using the code bellow you should be able to define pallete minimum and maximum values.

Code: Select all

var Max : double;
    Min : double;
    Steps: Integer;
begin
  Min := -2.5;
  Max := 5.1;
  Steps := 10;
  With Series1 do
  begin
    PaletteMin := Min;
    PaletteSteps := Steps;
    PaletteStep := (Max-Min)/Steps;
    UseColorRange := False;
    UsePalette := True;
    UsePaletteMin := True;
  end;

  Series1.FillSampleValues(10);
end;
Why it always draw a rectangle region
The problem is internal drawing algorithm at the moment support only integer (indexed) x and z values. Old version did support the irregular grid, but it had problems with internal bitmap size when zooming was being used. We fixed that but new code does not yet support irregular grid size (working on it).
Is there any way I can adjust the transparant value of this series?
Not yet. The closest thing you can do is show transparent zones (see Teechart demo for an example).

Posted: Wed May 26, 2004 8:32 pm
by 8439796
thanks for the help.