TColorGridSeries draw question

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
windmaomao
Newbie
Newbie
Posts: 27
Joined: Sat Dec 06, 2003 5:00 am
Location: baltimore

TColorGridSeries draw question

Post by windmaomao » Wed May 26, 2004 6:10 pm

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

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

Post by Marjan » Wed May 26, 2004 7:46 pm

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).
Marjan Slatinek,
http://www.steema.com

windmaomao
Newbie
Newbie
Posts: 27
Joined: Sat Dec 06, 2003 5:00 am
Location: baltimore

Post by windmaomao » Wed May 26, 2004 8:32 pm

thanks for the help.

Post Reply