Glad you like the example.  I agree that this is not the “best” solution, but it is a very reasonable solution for 2 reasons:

 

1)       It’s quick and easy and will get the job done for a large number of scenarios.

2)       Not all clients want/need the full dependencies.

 

Karl’s solution is actually very similar to mine, although it uses a tree instead of a datagrid (and it is done in Flex 1.5).  Having full dependencies and linked tasks will definitely require a custom control.  Trying to add those by extending a datagrid would be a lot of work, and would still be very “clunky”.  It really depends on your requirements and schedule to determine which solution works best, this can be just another weapon in the “flex arsenal”.

 

-Andy

 

_____________________________________

Andrew Trice

Cynergy Systems, Inc.

http://www.cynergysystems.com

 

Blog: http://www.cynergysystems.com/blogs/page/andrewtrice

Email: [EMAIL PROTECTED]

Office: 866-CYNERGY 

 


From: [email protected] [mailto:[email protected]] On Behalf Of iko_knyphausen
Sent: Tuesday, October 31, 2006 1:02 AM
To: [email protected]
Subject: [flexcoders] Re: gant chart

 



Nice work, Andrew. It sure illustrates the flex-ibility of the dataGrid.
I am not entirely convinced that the dataGrid is the best way to go
though... I mean for a pro-component. I think a combination of datagrid
(or tree) and canvas could be easier down the road. By this I mean, once
you get into drawing dependency lines - as an example - (which can go
across multiple rows either up or down, backwards, and sometimes around
objects) a grid and the itemrenderer could face a hard time. I believe
there is a colleague of yours at cynergy, by the name of Karl Johnson,
who has done some work on this subject too - I am sure he can offer some
valuable input as well. Have seen some earlier posts coming from him...
Hey, don't get me wrong, thanks for putting up these samples - really
appreciate this kind of "pro-bono" work; this is very helpful to study,
especially for newbies like myself.

--- In [EMAIL PROTECTED]ups.com, "Andrew Trice" <andrew.trice@...>
wrote:
>
> I threw together an example over the weekend using a datagrid to show
a
> very basic Gantt Chart. It really wasn't that difficult. It would take
> more time to get it looking polished, but definitely less effort than
> creating chart, series, and renderers as a custom component. You can
> check it out here:
>
>
>
>
http://www.cynergysystems.com/blogs/page/andrewtrice?entry=gantt_charts_
> in_flex_datagrids
>
>
>
> _____________________________________
>
> Andrew Trice
>
> Cynergy Systems, Inc.
>
> http://www.cynergysystems.com
>
>
>
> Blog: http://www.cynergysystems.com/blogs/page/andrewtrice
>
> Email: andrew.trice@...
>
> Office: 866-CYNERGY
>
>
>
> ________________________________
>
> From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com]
On
> Behalf Of Andrew Trice
> Sent: Friday, October 27, 2006 5:18 PM
> To: [EMAIL PROTECTED]ups.com
> Subject: RE: [flexcoders] gant chart
>
>
>
> If you want a full gantt chart with dependencies and links to other
> tasks, yes this is a huge undertaking. If you just want a visual
> display of a duration over time it is not so difficult.
>
>
>
> The datagrid approach can easily represent something like:
>
>
>
> [[]]--------------------
>
> --[[]]------------------
>
> ----[[[[]]]]------------
>
> -----------[[[[[]]]]]---
>
> -------------------[[[]]
>
>
>
> (hopefully flexcoders doesn't kill the formatting on that)
>
> _____________________________________
>
> Andrew Trice
>
> Cynergy Systems, Inc.
>
> http://www.cynergysystems.com <http://www.cynergysystems.com>
>
>
>
> Blog: http://www.cynergysystems.com/blogs/page/andrewtrice
> <http://www.cynergysystems.com/blogs/page/andrewtrice>
>
> Email: andrew.trice@...
> <mailto:andrew.[EMAIL PROTECTED]
>
> Office: 866-CYNERGY
>
>
>
> ________________________________
>
> From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com]
On
> Behalf Of Jonathan Miranda
> Sent: Friday, October 27, 2006 5:06 PM
> To: [EMAIL PROTECTED]ups.com
> Subject: Re: [flexcoders] gant chart
>
>
>
> Having dove into this long ago with many discussions with people from
> FlexCoders (Ely mostly), I can tell you this is a huge undertaking.
You
> need a:
>
> -GantChart
> -GantSeries
> -GantChartItem
> -GantSeriesRenderData
> -GantRenderer
>
> Just to name a few :) I've got a Gantt chart abou 49% done but haven't
> had time to crank on it....but as Ely said at MAX, people would kill
for
> it if you finished it and released it.
>
> On 10/20/06, Andrew Trice andrew.trice@...
> <mailto:andrew.[EMAIL PROTECTED] > wrote:
>
> You could create itemrenderers for a datagrid that utilize the drawing
> API to draw the horizontal lines for your data.
>
>
>
> For instance, have a grid like this:
>
>
>
> Column 1: task name
>
> Column 2: duration
>
> Column 3: start date
>
> Column 4: item renderer that draws out task length with respect to
width
> of column. Use the drawing api to draw lines/rectangles to represent a
> duration of time.
>
>
>
> You could also have a custom datagrid column header that uses the
> drawing API to draw a scale for the time shown in column 4.
>
>
>
> Using a datagrid component for this also keeps it very easy to get
data
> into your Gantt chart.
>
>
>
> _____________________________________
>
> Andrew Trice
>
> Cynergy Systems, Inc.
>
> http://www.cynergysystems.com <http://www.cynergysystems.com>
>
>
>
> Blog: http://www.cynergysystems.com/blogs/page/andrewtrice
> <http://www.cynergysystems.com/blogs/page/andrewtrice>
>
> Email: andrew.trice@...
> <mailto:andrew.[EMAIL PROTECTED]
>
> Office: 866-CYNERGY
>
>
>
> ________________________________
>
> From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@yahoogro ups.com
> <http://ups.com> ] On Behalf Of Iko Knyphausen
> Sent: Friday, October 20, 2006 3:58 PM
> To: [EMAIL PROTECTED]ups.com
> Subject: RE: [flexcoders] gant chart
>
>
>
> There is a flash component out there
> (http://www.anychart.com/products/anychartgantt.shtml
> <http://www.anychart.com/products/anychartgantt.shtml> ). I have
emailed
> them with some questions, but have not yet received a response. If you
> know others, please let me know. I would be quite interested in such a
> chart for my flex apps too...
>
>
>
> I have written a Gantt in DHTML and _javascript_ and it's not entirely
> trivial. It also depends on the kind of features you want to offer,
for
> example dependency lines, summary tasks, task progress, time line
scale,
> just to name a few.
>
>
>
> At the time, I wrote a container and then added task objects on the
fly.
> The container would know how to render the task objects, and the task
> objects themselves carried their information such as start and end
date,
> dependencies, progress status, etc. If your chart is supposed to be
> interactive, you should also offer some events to be raised: e.g. Task
> was clicked, dependency was dragged, chart was scrolled down (so that
> you can connect the chart to a grid and scroll them in parallel). As
you
> can see, it quickly gets complex.
>
>
>
> There is another company that offers interactive Gantts, ILOG
> (http://www.ilog.com/products/jviews/gantt/
> <http://www.ilog.com/products/jviews/gantt/> ) but I am not sure what
> they offer in terms of licensing and whether they will offer anything
in
> the flash/flex space.
>
>
>
> Hope this helps -Iko
>
> ________________________________
>
> From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED]ups.com]
On
> Behalf Of arnold_charming
> Sent: Friday, October 20, 2006 12:27 PM
> To: [EMAIL PROTECTED]ups.com
> Subject: [flexcoders] gant chart
>
>
>
> Hello!
>
> I'm currently working on builidng a gant chart for my application. And
> I have some question for which I would be very gratefull if you could
> help me out.
>
> 1. Because gant chart doesn't have a fix number of tasks, how to setup
> a chart legend?
> 2. How can I build a gant chart from XML file? Till now I just found
> solutions with ArrayColletions.
> 3. How to build a dynamic (programmable) gant chart?
>
> Thank you.
>

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to