Which allows me to to fill all series with data, and only after the endupdate call will recalculate dependant series and redraw the chart.
It's already there -> let me apologize? where?
BeginUpdate/Endupdate at TChart level (not single series)
-
- Newbie
- Posts: 31
- Joined: Thu Feb 22, 2007 12:00 am
- Location: Nijmegen, Netherlands
- Contact:
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Hans,
I'm afraid there are no such methods at TChart level. However, you could try using TChart's OnBeforeDraw and OnAfterDraw events.
I'm afraid there are no such methods at TChart level. However, you could try using TChart's OnBeforeDraw and OnAfterDraw events.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 31
- Joined: Thu Feb 22, 2007 12:00 am
- Location: Nijmegen, Netherlands
- Contact:
This is my ever-easy patch
// HH This allows for an enormous optimization. Just call BeginUpdate before adding
// a lot of datapoints, and afterwards call EndUpdate
// All calculated series will be delayed until after adding all datapoints
procedure TCustomChart.BeginUpdate;
VAR i:integer;
begin
for i:=0 to SeriesList.Count-1 do
begin
SeriesList.BeginUpdate;
end;
end;
procedure TCustomChart.EndUpdate;
VAR i:integer;
begin
for i:=0 to SeriesList.Count-1 do
begin
SeriesList.EndUpdate;
end;
end;
// a lot of datapoints, and afterwards call EndUpdate
// All calculated series will be delayed until after adding all datapoints
procedure TCustomChart.BeginUpdate;
VAR i:integer;
begin
for i:=0 to SeriesList.Count-1 do
begin
SeriesList.BeginUpdate;
end;
end;
procedure TCustomChart.EndUpdate;
VAR i:integer;
begin
for i:=0 to SeriesList.Count-1 do
begin
SeriesList.EndUpdate;
end;
end;
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Hans,
Thanks for your suggestion. I've also added it to the list to be reviewed for next releases.
Thanks for your suggestion. I've also added it to the list to be reviewed for next releases.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |