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 2496 - Assign chart doesn't copy individual axis items format
Summary: Assign chart doesn't copy individual axis items format
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Axis (show other bugs)
Version: 33.210915
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: yeray alonso
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-24 05:18 EST by yeray alonso
Modified: 2021-12-24 05:20 EST (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2021-12-24 05:18:37 EST
When you have a custom axis item/label with a custom format, that individual label format isn't correctly copied when you clone/assign the chart.
Ie:

  Chart1.View3D:=False;
  Chart1.Legend.Hide;

  with Chart1.AddSeries(TLineSeries) do
  begin
    AddXY(0, 100);
    AddXY(100, 200);
  end;
  with Chart1.Axes.Left.Items.Add(150, 'My Label') do
  begin
    Format.Font.Color:=clRed;
    Format.Font.Size:=24;
  end;

  // Clone test
  CloneChart(Chart2, Chart1, Self, False);

  // Assign test
  {Chart2.Assign(Chart1);
  with Chart2.AddSeries(TLineSeries) do
  begin
    AddXY(0, 100);
    AddXY(100, 200);
  end;}