*********************************
 我从D6,DEMO拷贝过来的,我要实现所说的方法,可是无法使用,请教如何解决,
我要把丛轴和横轴(时间)加入
 *********************************Use the  AddGantt or AddGanttColor methods.( This demo do not uses this methods )Example:   GanttSeries1.AddGantt(  EncodeDate( 1997, 1,  1 ),
                           EncodeDate( 1997, 1, 31 ),
                           0,
                           'Programming' );Or...   GanttSeries1.AddGanttColor(  EncodeDate( 1997, 1,  1 ),
                                EncodeDate( 1997, 1, 31 ),
                                0,
                                'Programming',
                                clGreen );
   Where "0" is the desired vertical position for this bar.
   Choose the vertical position you prefer.

解决方案 »

  1.   

    series设置中有一个选项是datetime,选中就行了啊。用Series.addxy(datetime,value)就行了啊
    估计time为横轴的话,可能datetime只有小数值,应该就行了吧(没试过)
      

  2.   

    向Series添加数据时使用 AddXY(XVlue,YValue,XLabel,Color)
    可以将XLabel传入你所要显示的时间(字符串)
    也可以设置
    Chart1.BottomAxis.DateTimeFormat:='hh:mm:ss' 试试