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 flexcoders@yahoogroups.com, "Andrew Trice" <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > > Office: 866-CYNERGY > > > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Andrew Trice > Sent: Friday, October 27, 2006 5:18 PM > To: flexcoders@yahoogroups.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: [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED] > > Office: 866-CYNERGY > > > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Jonathan Miranda > Sent: Friday, October 27, 2006 5:06 PM > To: flexcoders@yahoogroups.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 [EMAIL PROTECTED] > <mailto:[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: [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED] > > Office: 866-CYNERGY > > > > ________________________________ > > From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com > <http://ups.com> ] On Behalf Of Iko Knyphausen > Sent: Friday, October 20, 2006 3:58 PM > To: flexcoders@yahoogroups.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] On > Behalf Of arnold_charming > Sent: Friday, October 20, 2006 12:27 PM > To: flexcoders@yahoogroups.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 Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/