Page 1 of 1

Setting the Min and Max for a Gantt series

Posted: Fri Feb 27, 2009 8:32 pm
by 10546864
I have a TdbChart with one series, a Gantt. I am also using the Gantt drag tool. The Gantt is built on a Date Time Line.
I would like to set the chart limits to one day. Even before the first Gantt is placed on the chart, I would like the bottom axis to show the hours for one day and not permit the user to go outside of that range.
Right now, my users are dragging a Gantt into days ahead or behind and are becoming totally lost.

What I would like to do is set the extents base on a DateTimer Picker.


Thanks

D 2006 Win 32
Tchart 8.02

Can anyone answer this??

Posted: Thu Apr 02, 2009 8:31 pm
by 10546864
If it cannot be done, than woudl someone say so? This is not a very bizarre question!!!

Posted: Fri Apr 03, 2009 9:52 am
by yeray
Hi SpringerRider,

First of all I'd like to apologize for the delay; I'm afraid we missed this thread.

Regarding your question, have you tried setting your custom min and max for the bottom axis?

Code: Select all

procedure TForm1.Button1Click(Sender: TObject);
var day: TDateTime;
begin
  day := Today+5;
  Chart1.Axes.Bottom.SetMinMax(day, day+1);
end;