Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 272

Summary: [TV52016012] A customer suggests to add a line in TCustomAxisPanel.InternalAddSeri...
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: Other ComponentsAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2013-11-20 10:35:43 EST
A customer suggests to add a line in TCustomAxisPanel.InternalAddSeries (TeEngine.pas) to check if the current series is active before repainting the whole chart:
Procedure TCustomAxisPanel.InternalAddSeries(ASeries:TCustomChartSeries);
Begin
  if SeriesList.IndexOf(ASeries)=-1 then
  begin
    with ASeries do
    begin
      FParent:=Self;
      Added;
    end;
    FSeriesList.Add(ASeries);
    BroadcastSeriesEvent(ASeries,seAdd);
    if ASeries.Active then // ADDED HERE
      Invalidate;
  end;
end;
See the attached project that demonstrates the performance improvement in the case you have some series active and you add a considerable ammount of inactive series.
Customer:
Marcin Wiazowski: marcinwiazowski@poczta.onet.pl [created:2012-01-24T09:51:36.000+01:00 reported by:yeray@steema.com reported in version:2011.04.41118 (TeeChart VCL)]