CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
不看会后悔的Windows XP之经验谈 简单快捷DIY实用家庭影院
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Delphi >  VCL组件开发及应用

请教一下?

楼主newnewworm(蜡笔小新)2002-12-20 16:30:18 在 Delphi / VCL组件开发及应用 提问

请问以下的TBarSeries是什么东东?  
  怎么编译不通过啊!  
   
  操作TChar的简单示例  
  下面是简单的例子:  
   
  var  
      i,   j,   kum:   Integer;  
      s,   t:   TBarSeries;  
  begin  
      with   Chart1   do  
      begin  
          //   Title   of   the   Chart  
          SeriesList.Clear;  
          Title.Text.Clear;  
          Title.Text.Add('My   Title   for   Char');  
          Legend.Visible   :=True;  
          Legend.LegendStyle   :=lsAuto;  
          Legend.TextStyle   :=   ltsLeftValue;  
   
          //   Create   first   Series  
          s   :=   TBarSeries.Create(nil);  
          //   Clear   it  
          s.Clear;  
          s.BarStyle   :=bsRectGradient;  
          s.ColorEachPoint   :=True;  
          //   set   the   title  
          s.Title   :=   'Bar   1';  
          //   determine   the   chart,   this   series   belongs   to  
          s.ParentChart   :=   Chart1;  
          //   the   x-axis   shall   use   date  
          s.XValues.DateTime   :=   False;  
          s.AutoBarSize   :=False;  
          s.BarWidthPercent   :=   70;  
          s.OffsetPercent   :=0;  
          s.Marks.Style   :=smsPercent;  
   
   
          //   create   the   second   Series  
          t   :=   TBarSeries.Create(nil);  
          t.Clear;  
          t.Title               :=   'Bar   2';  
          t.ParentChart   :=   Chart1;  
          t.XValues.DateTime   :=   False;  
          //   this   series   uses   the   right   axis  
          t.VertAxis   :=   aLeftAxis;  
   
          //   now   add   the   random   values  
          Randomize;  
          for   i   :=   0   to   5   do  
          begin  
              j   :=   Random(100)   +   1;  
              s.AddXY(i,   j);  
              kum   :=   j;  
              t.AddXY(i   ,   kum   +   Random(20));  
          end;  
      end;  
  end;  
   
  问题点数:50、回复次数:1Top

1 楼findcsdn(searchcsdn)回复于 2002-12-20 16:51:25 得分 50

TBarSeries;     chart控件的一个系列类型,用于显示柱状图。  
  他的定义在   Series   单元中。  
  uses    
      Series;Top

相关问题

  • 请看一下
  • 请教一下
  • 帮一下忙!!!!
  • Kingron,来一下
  • see一下!!!
  • 解释一下:
  • 调查一下!!!!!!
  • 记录一下
  • 恭喜一下^_^
  • 庆祝一下

关键词

  • series
  • tbarseries
  • chart
  • legend
  • clear
  • title
  • create

得分解答快速导航

  • 帖主:newnewworm
  • findcsdn

相关链接

  • Delphi类图书
  • Delphi类源码下载
  • Delphi控件下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo