delphi中TeeChart的各种属性1

来源:百度文库 编辑:神马文学网 时间:2024/04/23 18:17:22
delphi中TeeChart的各种属性
2007-05-14 10:41
可以看这个地址:
http://www.powerba.com/develop/web/asp/article/20010417001.htm
下面的是我写的,你也可以参考一下吧。
TeeChart使用指南
TeeChart控件介绍
TeeChart   Pro   ActiveX是西班牙Steema   SL公司开发的图表类控件,主要用来生成各种复杂的图表。熟悉Delphi和C++   Builder的编程人员对它不会陌生,因为在Delphi和C++   Builder里包括了TeeChart的VCL版本。
TeeChart使用目的
如果你需要在程序中制作曲线图、条状图、饼状图等等,使用这个控件都将是你的明智选择。它因为是已经被封装好的产品,所以使用方便,可控性强,不过有的时候会有点小BUG。最好能找到源码,并自己打几个补丁。
TeeChart名词解释
Series
Axis
Scales
Line
Bar
Pie
TeeChart配置说明
Chart?Series(序列)   :   在一个图表中可以有一个或多个序列,每个序列可以有不同的显示类型,如Line、Bar、Pie等等。
Add…   添加新的序列
Fast   Line(TFastLineSeries简单曲线图)、
Line(TLineSeries   3D曲线图)、
Bar(TBarSeries竖条状图)、
Horiz.   Bar(THorizBarSeries横条状图)
Area(TAreaSeries   区域图)、
Point(TPointSeries   点状图)、
Pie(TPieSeries   饼状图)、
Shape(TChartShape   实体图)、
Gantt(TGanttSeries   甘特图)、
Arrow(TArrowSeries   箭头图)、
Bubble(TBubbleSeries   泡泡图)
Series?Format:修改序列的格式
Series?Point:修改序列中点的样子
Series?General:对序列的配置,包括Axis,Legend,Formats,Cursor。
Series?Marks:是否显示序列中每个点的值。
Series?Data   Source:数据源。可以采用No   Data,Random   Values,Function。
Title…   修改序列的名称。
Change…   修改序列的类型,可以从Line改变成Bar或者Pie。
Chart?General:一些基本的参数设置。
Print   Priview…:打印及打印预览
Export…:输出
Margins:页边空白
Allow   Zoom:允许缩放
Animated   Zoom:缩放过程是否是动态的,还是一次成功。(如果图的点太多时,可以打开这个功能)
Allow   Scroll:滚动条
Chart?Axis   :   控制图表坐标轴(上、下、左、右、深)的属性
Show   Axis:是否显示坐标轴
Chart?Axis?Scales:调整坐标轴的比例
Automatic:可以自动处理最大与最小值,也可以手工设置。
Change…:可以自动处理增量,也可以手工设置。
Logarithmic:对数的
Inverted:反向的
Chart?Axis?Title:设置坐标轴的标题
Title:标题
Angle:标题的角度
Size:标题的宽度
Font…:标题的字体
Chart?Axis?Labels:设置坐标轴的标签
Titles   :
Chart?Legend(图例):图表中的一个长方形的用来显示图例标注的区域。可以标注Series的名称或者Series中的项目和数值。
Visible
Back   Color
Font
Frame
Position
Margin
Legend   Style
Text   Style
Resize   Chart
Inverted
%Top   Pos
%Color   Width
Dividing   Lines…
Shadow
Chart?Panel   (面板):Panel可以设置图表的背景。可以使用渐变的颜色或者图像文件作为整个图表的背景
Bevel   Inner?   (Bevel   Innner   )   Width
Bevel   Outer   ?(Bevel   Outer)   Width
Back   Image:图表的背景图
Style:(Stretch伸展,   Tile瓦片,   Center居中)
Inside:只显示在背后壁上
Panel   Color:Panel的Inner的颜色
Border:给控件加边界
Gradient(梯度):梯度显示颜色
Visible、Start   Color…、End   Color…、
Direction(方向):上下、左右、从中间
Chart?Paging   :图表有几页组成
Points   Per   Page(每页显示几个点):0为所有的点显示在一页,其他按数字处理。
Scale   Last   Page:最后一页按比例显示,使之充满整个图表。
Chart?Walls(壁)
Left   Walls:Y轴的平面
Bottom   Walls:X轴的平面
Back   Walls:背后的平面
Pattern…(模式):=(Solid实心,None无,Horizontal竖条纹,Vertical横条纹,
Diagonal对角线,Back.Diagonal反向对角线,Cross十字线,DiagonalCross对角十字线);
Border…(边线):=(Solid实线,   Dash划线,   Dot点,
Dash   Dot线点,   Dash   Dot   Dot线点点,   Small   Dots小点)
Transparent   (透明)
Chart?3D
3Dimensions(维):是否3维显示
Orthogonal(直角的):3维显示为直角显示,则Elevation,Rotaion,Perspective被屏蔽
ZoomText:坐标数字与图形一起缩放
Zoom:图形的缩放
Rotaion(旋转):关闭Orthogonal后,可以在Y轴上旋转
Elevation(正视图)   :关闭Orthogonal后,可以在X轴上旋
Horiz.   Offset:在X轴移动图形
Vert.   Offset:在Y轴移动图形
Perspective(透视)   :关闭Orthogonal后,将焦点沿Z轴移动。
TeeChart使用实例
//   AddPages
NewTabSheet   :=   TTabSheet.Create(pgMain);
with   NewTabSheet   do
begin
Parent   :=   pgMain;
PageControl   :=   pgMain;
Tag   :=   Ord(CountTypeIndex);
Caption   :=   arrCountType[CountTypeIndex];
end;
//   AddCharts
NewChart   :=   TChart.Create(NewTabSheet);
with   NewChart   do
begin
Parent   :=   NewTabSheet;
Title.Text.Add('网间结算'   +   arrCountType[CountTypeIndex]   +   '/天分布图');
LeftAxis.Title.Caption   :=   arrCountType[CountTypeIndex];
BottomAxis.Title.Caption   :=   '话单日期';
Legend.Visible   :=   sbLegend.Down;
Legend.Alignment   :=   laBottom;
Legend.LegendStyle   :=   lsSeries;
View3D   :=   sb3D.Down;
Width   :=   NewTabSheet.Width;
Height   :=   NewTabSheet.Height;
end;
//   ClearSeries
AChart.Series[SeriesIndex].Free;
//   AddSeries
NewSeries   :=   TLineSeries.Create(AChart);
NewSeries.Title   :=   ANameList.Strings[SeriesIndex];
NewSeries.Marks.Visible   :=True;
AChart.AddSeries(NewSeries);
//   AddNameForSeries
AChart.SeriesList[SeriesIndex].Title:=   NewName;
//   ShowSeries
AChart.Series[SeriesIndex].Active   :=   True;
//   EmptySeries
AChart.Series[SeriesIndex].Clear;
//   FillSeries
AChart.Series[SeriesIndex].AddXY();