原創(chuàng)|其它|編輯:郝浩|2012-10-15 14:26:59.000|閱讀 2115 次
概述:主要說(shuō)明在delphi中TeeChart的各種屬性,以及提供一個(gè)TeeChart的使用實(shí)例。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
TeeChart控件介紹
TeeChart
TeeChart使用目的
如果你需要在程序中制作曲線圖、條狀圖、餅狀圖等等,使用這個(gè)控件都將是你的明智選擇。它因?yàn)槭且呀?jīng)被封裝好的產(chǎn)品,所以使用方便,可控性強(qiáng),不過(guò)有的時(shí)候會(huì)有點(diǎn)小BUG。最好能找到源碼,并自己打幾個(gè)補(bǔ)丁。
TeeChart配置說(shuō)明
Chart Series(序列)
Add…
Fast
Line(TLineSeries
Bar(TBarSeries豎條狀圖)、
Horiz.
Area(TAreaSeries
Point(TPointSeries
Pie(TPieSeries
Shape(TChartShape
Gantt(TGanttSeries
Arrow(TArrowSeries
Bubble(TBubbleSeries
Series Format:修改序列的格式
Series Point:修改序列中點(diǎn)的樣子
Series General:對(duì)序列的配置,包括Axis,Legend,F(xiàn)ormats,Cursor。
Series Marks:是否顯示序列中每個(gè)點(diǎn)的值。
Series Data
Title…
Change…
Chart General:一些基本的參數(shù)設(shè)置。
Print
Export…:輸出
Margins:頁(yè)邊空白
Allow
Animated
Allow
Chart Axis
Show
Chart Axis Scales:調(diào)整坐標(biāo)軸的比例
Automatic:可以自動(dòng)處理最大與最小值,也可以手工設(shè)置。
Change…:可以自動(dòng)處理增量,也可以手工設(shè)置。
Logarithmic:對(duì)數(shù)的
Inverted:反向的
Chart Axis Title:設(shè)置坐標(biāo)軸的標(biāo)題
Title:標(biāo)題
Angle:標(biāo)題的角度
Size:標(biāo)題的寬度
Font…:標(biāo)題的字體
Chart Axis Labels:設(shè)置坐標(biāo)軸的標(biāo)簽
Titles
Chart Legend(圖例):圖表中的一個(gè)長(zhǎng)方形的用來(lái)顯示圖例標(biāo)注的區(qū)域??梢詷?biāo)注Series的名稱或者Series中的項(xiàng)目和數(shù)值。
Visible
Back
Font
Frame
Position
Margin
Legend
Text
Resize
Inverted
%Top
%Color
Dividing
Shadow
Chart Panel
Bevel
Bevel
Back
Style:(Stretch伸展,
Inside:只顯示在背后壁上
Panel
Border:給控件加邊界
Gradient(梯度):梯度顯示顏色
Visible、Start
Direction(方向):上下、左右、從中間
Chart Paging
Points
Scale
Chart Walls(壁)
Left
Bottom
Back
Pattern…(模式):=(Solid實(shí)心,None無(wú),Horizontal豎條紋,Vertical橫條紋,
Diagonal對(duì)角線,Back.Diagonal反向?qū)蔷€,Cross十字線,DiagonalCross對(duì)角十字線);
Border…(邊線):=(Solid實(shí)線,
Dash
Transparent
Chart 3D
3Dimensions(維):是否3維顯示
Orthogonal(直角的):3維顯示為直角顯示,則Elevation,Rotaion,Perspective被屏蔽
ZoomText:坐標(biāo)數(shù)字與圖形一起縮放
Zoom:圖形的縮放
Rotaion(旋轉(zhuǎn)):關(guān)閉Orthogonal后,可以在Y軸上旋轉(zhuǎn)
Elevation(正視圖)
Horiz.
Vert.
Perspective(透視)
TeeChart使用實(shí)例:
// 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('網(wǎng)間結(jié)算' + 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();
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自:新浪博客