*********************************
我从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.
我从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.
估计time为横轴的话,可能datetime只有小数值,应该就行了吧(没试过)
可以将XLabel传入你所要显示的时间(字符串)
也可以设置
Chart1.BottomAxis.DateTimeFormat:='hh:mm:ss' 试试