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
Setting the Min and Max for a Gantt series
-
- Newbie
- Posts: 5
- Joined: Fri Sep 28, 2007 12:00 am
-
- Newbie
- Posts: 5
- Joined: Fri Sep 28, 2007 12:00 am
Can anyone answer this??
If it cannot be done, than woudl someone say so? This is not a very bizarre question!!!
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?
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;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |