z axis on gantt series

TeeChart FireMonkey (Windows,OSX,iOS & Android) for Embarcadero RAD Studio, Delphi and C++ Builder (XE5+)
Post Reply
hcamacho
Newbie
Newbie
Posts: 7
Joined: Tue Apr 16, 2019 12:00 am

z axis on gantt series

Post by hcamacho » Wed Jan 29, 2020 7:56 pm

Hi guys , is it possible used to z axis on gantt series?

I need to represent in a gantt series the following, I have rooms where vehicles are parked, but I can have several
vehicles parked in the same room on the same dates, which I can represent with the gantt series but the bars appear overlapped, or is there any other series that I can use to represent this

thanks

Pep
Site Admin
Site Admin
Posts: 3306
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: z axis on gantt series

Post by Pep » Thu Jan 30, 2020 10:11 pm

Hi,
Hi guys , is it possible used to z axis on gantt series?
I'm sorry but, Gantt series does not support z axis.
But, I've been thinking about the way to represent the different vehicles at the same rooms, with the possibility to have some on the same dates and found a way that maybe could help :
It would be to repressent the rooms by using different Gantt Series, each one with different color, then you can add each car to specific Series (room) on specific dates (start and end) and set a unique Y Value for each one (entry).

This way all vehicles will be displayed, and not overlapped. Here the example :
parking.gif
parking.gif (158.64 KiB) Viewed 56630 times

hcamacho
Newbie
Newbie
Posts: 7
Joined: Tue Apr 16, 2019 12:00 am

Re: z axis on gantt series

Post by hcamacho » Fri Jan 31, 2020 10:57 pm

Thanks Pep, I had already thought about that solution but it really does not help me, your example is clear because you only have two rooms, I have 30 rooms, another detail that I see is that on the "Y" axis 9 cars fit very well, I can store up to 100 cars in the rooms so the Y axis would have to move it(Up, Down), so it would be very difficult to visualize which spaces I have empty and in which rooms, I think I will continue drawing my empty spaces in excel, it would be great if you could add the "Z" axis to the gantt series

regards

Pep
Site Admin
Site Admin
Posts: 3306
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: z axis on gantt series

Post by Pep » Mon Feb 03, 2020 8:35 am

Hi,
ok, I add this feature as a wish to be considered for next releases.
Please, if you can, send or attach an example image of the result that you'd like to get, it's just to investigate if there a way to accomplish it with TeeChart now.

Thanks.

hcamacho
Newbie
Newbie
Posts: 7
Joined: Tue Apr 16, 2019 12:00 am

Re: z axis on gantt series

Post by hcamacho » Tue Feb 04, 2020 5:08 pm

Thanks Pep, if you can add the Z axis that has the tower series to the gannt series, it would be great, I add an image of how it could work, the purple bars represent the spaces available in the rooms (I do this with a series of gannt), the other bars represent the cars inside the rooms (this I do with a series of gannt using the Z axis), so you could easily visualize the empty spaces inside the rooms

gannt.png
gannt.png (45.01 KiB) Viewed 56610 times

Pep
Site Admin
Site Admin
Posts: 3306
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: z axis on gantt series

Post by Pep » Wed Feb 05, 2020 3:11 pm

Ok, looking at your example or by using a 3D Gantt series I still thinking that could be complidated at the time to control for exmple more 100 cars in a room or several rooms.
Wouldn't be better to use a Chart for each room?
Do you have an image of a real crokis, although it's done by pencil that you can attach? This way we can look at it and try to find the best way to do it with the TeeChart

hcamacho
Newbie
Newbie
Posts: 7
Joined: Tue Apr 16, 2019 12:00 am

Re: z axis on gantt series

Post by hcamacho » Wed Feb 05, 2020 3:49 pm

Thanks Pep, I attached a sketch of a part of the parking lot, it is only possible to park a maximum of 4 cars per space, making a graphic per space it would be very difficult to visualize the empty spaces, the measures of the sketch are in feet

Thank you
marina1.png
marina1.png (57.51 KiB) Viewed 56588 times

Pep
Site Admin
Site Admin
Posts: 3306
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: z axis on gantt series

Post by Pep » Fri Feb 14, 2020 11:48 am

Hello,

ok, looking for other alternatives I forgot a to mention a way that could be done by using the actual version. It's by using Gantt series with the ZOrder, and also use the Legend checkboxes in order to manage which ones you want to activate or not.

A code example could be :

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
var i : integer;
begin
  for i := 0 to 2 do
  begin
    Chart1[i].FillSampleValues();
    (Chart1[i] as TGanttSeries).Pointer.Draw3D := False;
    (Chart1[i] as TGanttSeries).ConnectingPen.Visible := False;
    (Chart1[i] as TGanttSeries).ZOrder := Chart1[i].SeriesIndex;
  end;

  Chart1.Legend.CheckBoxes := True;
  Chart1.Chart3DPercent := 200;
end;
And the result would be :
GanttZOrder.png
GanttZOrder.png (25.46 KiB) Viewed 56470 times

hcamacho
Newbie
Newbie
Posts: 7
Joined: Tue Apr 16, 2019 12:00 am

Re: z axis on gantt series

Post by hcamacho » Fri Feb 14, 2020 5:55 pm

Thanks Pep, this could work, although visualization is a bit difficult

hcamacho
Newbie
Newbie
Posts: 7
Joined: Tue Apr 16, 2019 12:00 am

Re: z axis on gantt series

Post by hcamacho » Fri Feb 14, 2020 7:10 pm

Hi Pep, how do I change this property with code? , this improves the view of the chart
pep.png
pep.png (27.47 KiB) Viewed 56452 times

Pep
Site Admin
Site Admin
Posts: 3306
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: z axis on gantt series

Post by Pep » Mon Feb 17, 2020 10:25 am

It can be done via code using :

Code: Select all

Chart1.Chart3DPercent := 200;

Marc
Site Admin
Site Admin
Posts: 1274
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: z axis on gantt series

Post by Marc » Mon Feb 17, 2020 4:22 pm

Hello,

An extra note on this. If you enable the DepthAxis it may help to distinguish between the different Series.

eg.

Code: Select all

chart1.DepthAxis.Visible := True;
Regards,
Marc Meumann
Steema Support

hcamacho
Newbie
Newbie
Posts: 7
Joined: Tue Apr 16, 2019 12:00 am

Re: z axis on gantt series

Post by hcamacho » Tue Feb 18, 2020 7:30 pm

Thanks Pep and Marc

Post Reply