Page 1 of 1

TChartSeries.Assign

Posted: Fri Jul 18, 2014 4:05 pm
by 16464432
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

Re: TChartSeries.Assign

Posted: Mon Jul 21, 2014 11:29 am
by 10050769
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,