diff --git a/components/tachart/tacustomseries.pas b/components/tachart/tacustomseries.pas index d6d47aac1d..1243c92514 100644 --- a/components/tachart/tacustomseries.pas +++ b/components/tachart/tacustomseries.pas @@ -816,12 +816,17 @@ end; constructor TChartSeries.Create(AOwner: TComponent); const BUILTIN_SOURCE_NAME = 'Builtin'; +var + nx, ny: Integer; begin inherited Create(AOwner); FListener := TListener.Create(@FSource, @SourceChanged); FBuiltinSource := TListChartSource.Create(Self); FBuiltinSource.Name := BUILTIN_SOURCE_NAME; + GetXYCountNeeded(nx, ny); + FBuiltinSource.XCount := nx; + FBuiltinSource.YCount := ny; FBuiltinSource.Broadcaster.Subscribe(FListener); FMarks := TChartMarks.Create(FChart); FStylesListener := TListener.Create(@FStyles, @StyleChanged);