0

所以,我正在尝试绘制图表,我在 Tchart 中有 3 条快线,看起来图表是正确的,但是我需要用轴标签设置一些东西,我得到的是这个,[我的带有 x 标签的图表作为 0 0 0 0 1 1 1 1 ] http://s8.postimage.org/t7tappekl/image.png

[我想要这样的东西]

http://s7.postimage.org/amltkb917/untitled.png 而我想要得到的是这样的东西,实际的 x 标签就是这些。X 标签是秒。我已经尝试为系列和图表标签设置 valueformat。它不起作用,

我该怎么做?而且我正在尝试缩放和向上滚动 y 轴以设置焦点,如图像 2. y 图始终从 0 开始,但最初有什么方法可以将焦点设置在起点 ie81

非常感谢!

4

1 回答 1

1

您可以使用所谓的 Increment 属性为底部轴标签设置所需的增量,例如:

  tChart1.Axes.Bottom.Increment = 0.1;

要更改轴范围,您可以使用 SetMinMax 或 Minimum 和 Maximum 属性:

  tChart1.Axes.Left.SetMinMax(50, 100);

或者

  tChart1.Axes.Left.AutomaticMinimum = false;
  tChart1.Axes.Left.Minimum = 50;
  tChart1.Axes.Left.AutomaticMaximum = false;
  tChart1.Axes.Left.Maximum = 100;

最后,您可以更改图表视图透视图,更改以下一些属性:

  tChart1.Aspect.View3D = true;
  tChart1.Aspect.Orthogonal = false;
  tChart1.Aspect.Chart3DPercent = 50;
  tChart1.Aspect.Elevation = 0;
  tChart1.Aspect.Rotation = 345;
  tChart1.Aspect.Perspective = 50;

顺便说一句,您将在教程 4 中找到有关轴设置的更多信息。教程可以在 TeeChart 的程序组中找到。

于 2012-11-16T11:02:25.480 回答