【问题标题】:Delphi TeeChart ContourSeries StartColor EndColorDelphi TeeChart ContourSeries StartColor EndColor
【发布时间】:2014-12-23 20:15:57
【问题描述】:

我需要将 series1 的 StartColor 和 EndColor 复制到 series2 这在将 TeeChart 升级到版本 2014.12.14 之前有效:

procedure TForm1.FormCreate(Sender: TObject);
var
  k1, k2 : Integer;
  X, Y, Z: real;
begin

  Series2.Clear;
  Series2.NumXValues := 20;
  Series2.NumZValues := 20;
  Series2.ColorEachPoint := false;
  Series2.Filled := true;
  Series2.Marks.Visible := true;
  Series2.AutomaticLevels := true;
  Series2.IrregularGrid := true;

  Series2.StartColor := clYellow;
  Series2.EndColor := clRed;

  for k1 := 1 to 20 do
  begin
      X:= k1 + 1;
      for k2 := 1 to 20 do
      begin
          Y := k2 + 1;
          Z := k1 / 10 + k2 / 10;
          Series2.AddXYZ(X, Z, Y);
      end;
  end;

  Series1.Assign(Series2);
  Series1.StartColor := series2.StartColor;
  Series1.EndColor := series2.EndColor;
end;

这两条指令好像没有效果:

Series1.StartColor := series2.StartColor;
Series1.EndColor := series2.EndColor;

有人知道如何解决这个问题吗? 谢谢

【问题讨论】:

  • 能否请您说明您认为这对您有用的版本?

标签: delphi teechart


【解决方案1】:

这是一个错误 (ID1065)。我发现它工作的最后一个版本是 2013.09.131119。到目前为止,我还没有找到解决该问题的方法。请随时在 bugzilla 注册并将自己添加到 CC 列表以接收状态更新。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-06
    • 2012-12-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多