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
TColorGridSeries draw question
-
- Newbie
- Posts: 27
- Joined: Sat Dec 06, 2003 5:00 am
- Location: baltimore
Hi.
Using the code bellow you should be able to define pallete minimum and maximum values.how do I assign the min and max value instead of automatically detected
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;
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).Why it always draw a rectangle region
Not yet. The closest thing you can do is show transparent zones (see Teechart demo for an example).Is there any way I can adjust the transparant value of this series?
Marjan Slatinek,
http://www.steema.com
http://www.steema.com
-
- Newbie
- Posts: 27
- Joined: Sat Dec 06, 2003 5:00 am
- Location: baltimore