Hi,
I created a Gantt-Chart and set the x-axis (HorizontalDateAxis) to a certain range, because the tasks displayed in the chart didn't start at the origin of the x-axis.
After doing that the first and the last date are no longer shown. I tried everything I could but it didn't work. I saw examples where the horizontal date-labels start at the origin of the x-axis so I know there must be a possibility =)
I am grateful for any help.
Greetings,
Jost
Display date in the origin
Re: Display date in the origin
As far as I know, in the refreshTicks of HorizontalDateAxis, last date is never displayed, first displayable date is calculated by method calculateLowestVisibleDate. Depending on ur DateTickUnit, it uses a general algorithm to round up dates...
Now for displaying dates from origin of xAxis, u have to call method setLowerMargin( 0 ), this will assure u that ticks are displayed from origin of x-axis, but doesn't assure u that the first date displayed is the min(date) u provided in ur dataset...
Hope this helps
Morpheus
Now for displaying dates from origin of xAxis, u have to call method setLowerMargin( 0 ), this will assure u that ticks are displayed from origin of x-axis, but doesn't assure u that the first date displayed is the min(date) u provided in ur dataset...
Hope this helps
Morpheus
Re: Display date in the origin
Thank you at first!
Yes and no,
i think you understood my problem but it is not yet solved.
For you and everybody else I loaded up three examples to show what I mean. Please visit the following link and have a look at my problem: http://geocities.com/duller_jeff/
Thank you in advance, I would be glad if anyone could help me with this.
Jost
Yes and no,
i think you understood my problem but it is not yet solved.
For you and everybody else I loaded up three examples to show what I mean. Please visit the following link and have a look at my problem: http://geocities.com/duller_jeff/
Thank you in advance, I would be glad if anyone could help me with this.
Jost
Re: Display date in the origin
Hi Jost,
I think Morpheus gave the answer I would have given for your original post. But your second post seems to be something different...but I'm not sure what you are getting at.
Regards,
Dave Gilbert
I think Morpheus gave the answer I would have given for your original post. But your second post seems to be something different...but I'm not sure what you are getting at.
Regards,
Dave Gilbert