TChartSeries.Assign

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
SDE
Newbie
Newbie
Posts: 18
Joined: Thu Dec 20, 2012 12:00 am

TChartSeries.Assign

Post by SDE » Fri Jul 18, 2014 4:05 pm

Hello,

It appears that you are no longer copying Marks.Style in TChartSeries.Assign. I am not using your latest version of TeeChart Pro, but the one prior to that. So perhaps you have already fixed it in your latest release, but if not, could that be added back in?

Thanks!
SND

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: TChartSeries.Assign

Post by Sandra » Mon Jul 21, 2014 11:29 am

Hello SND,
I couldn't reproduce the problem you are experiencing using latest release of Teechart VCL/FMX 2014 build number 2014.11.140512 and next code:

Code: Select all

uses VCLTee.Series;
var Series1:TLineSeries;
var series2:TLineSeries;
procedure TForm2.FormCreate(Sender: TObject);
begin
 Series1 := TLineSeries.Create(self);
 Series2 := TLineSeries.Create(self);
 Chart1.AddSeries(Series1);
 Chart1.AddSeries(Series2);
 Chart1.Align:=alClient;
 Series1.FillSampleValues(10);
 Series1.Marks.Visible:=true;
 Series1.Marks.Style := smsPercent;
 Series2.Assign(Series1);
end;
Therefore, I recommend you update your Teechart Pro VCL/FMX and check the problem is fixed. You can check our trial version previously. You can download it from here.
Also there is an alternative that can be useful for you. It consists in use the CloneChartSeries function instead of Assign property. The below code shows as you do it:

Code: Select all

uses VCLTee.Series;
var Series1:TLineSeries;
procedure TForm2.FormCreate(Sender: TObject);
begin
 Series1 := TLineSeries.Create(self);
 Chart1.AddSeries(Series1);
 Chart1.Align:=alClient;
 Series1.FillSampleValues(10);
 Series1.Marks.Visible:=true;
 Series1.Marks.Style := smsPercent;
 CloneChartSeries(Series1)
end;
Hoping it will helps, otherwise don't hesitate to contact us.

Thanks in advance,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply