Tcolorgridseries and speed
Posted: Fri Sep 01, 2006 3:56 pm
I've read the aticle on optimising Tchart for speed, this seems to deal mostly with fastline series. I have a window with 12 chart which each have a single tcolorgrid series. I have x/y/zvalues order set to Ionone. Each series is populated with
for x:=1 to xlimit do
begin
for y:=1 to ylimit do
begin
series.addxyz(x,data[y].values[x],y);
end;
end;
thus chart gets xlimit vertical columns (typically 2000 to 3000)
and ylimit horizontal bars (typically 250 to 350), and the x,y point colour is controlled by the z value and a colour palette.
I have the series.usepalette set true,
series.usecolorrange set false
and am using series.addpalette to control point colors
All works fine, but is very slow (Win XP, 2 Gigs ram, decent PC). Are there any tips for speeding up tcolorgrid series. Would I be better rolling my own and having a chart with 250-350 fastlineseries, and then just setting the individual points on each fastline for colour?
thanks
Sean
for x:=1 to xlimit do
begin
for y:=1 to ylimit do
begin
series.addxyz(x,data[y].values[x],y);
end;
end;
thus chart gets xlimit vertical columns (typically 2000 to 3000)
and ylimit horizontal bars (typically 250 to 350), and the x,y point colour is controlled by the z value and a colour palette.
I have the series.usepalette set true,
series.usecolorrange set false
and am using series.addpalette to control point colors
All works fine, but is very slow (Win XP, 2 Gigs ram, decent PC). Are there any tips for speeding up tcolorgrid series. Would I be better rolling my own and having a chart with 250-350 fastlineseries, and then just setting the individual points on each fastline for colour?
thanks
Sean