Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
540
Ganttchart : Y-axis Position of Box
posted

 Hi,

 

we have data that needs to be presented in a Gantt-chart due to it's timeframe and it's context. I need to "draw" a background using the FillSceneGraph and then position the individual data-elements relative on the Y-axis.

This is the purpose; we need to display whatever happened to a specific house from it' s building to this day. So image that a house was build in the 50's, got seperated into 2 appartments in the 1980's en then merged together again in the 1990's. This needs to be drawn on the background (semi-transparant) using the FillSceneGraph. Something like this :

|                | House 1A | 

|House 1    | ________ | House 1

|                | House 1B | 

 

Then I need to put GanttItems "on top" of it. These ganttitems represent the inhabitants of the specific house at that moment in time.

 

Let's say Person 1 started living in the house when it still was House 1, when it got divided , he continued living in House 1A and another person, Person 2, started living in 1B. For this example let's say they both left at the same time and another person, Person 3, merged the 2 appartments back together and started living (till now) in the new House 1.

Since the X-axis is the time axis the Gantt-items will be shown correctly inthe right timeframe but I need to make sure that the ganttitem of Person 1 is drawn above the FillSceneGraph of House 1 and House1A. Person 2 has to be drawn on the bottom of the graph over House 1B and Person 3 has to be drawn in the middle over the new House 1.

 

To make a long story short I repeat the question. Is there a possibility to exactly place the Gantt-items on the y-axis ?? During the creation of the FillSceneGraph I can determine the start en end y-value of each drawn Box using the IAdvanceAxis yAxis = e.Grid["Y"] as IAdvanceAxis;

 

I really hope somebody can help ...

 

Thanks,

 

Wim

 

Parents
No Data
Reply
  • 28496
    Offline posted

    The only way to place two GanttItems in the same space on the Y-axis is to use FillSceneGraph and add custom primitives.  You can either use the y-axis's Map function to get the right coordinates, or loop through e.SceneGraph and find the existing boxes, and use their coordinates.

    Also, Gantt chart has the ability to show "owners labels" over each item, if you set GanttChart.ShowOwners = true.

     

Children
No Data