Sure.  To make a standard bar chart, you need to generate data that has the value that the right edge of each bar should represent in a named field:

 

Var dp = [

            { value: 24 },

            { value: 47 },

            { value: 15 }

];

 

<BarChart dataProvider=”{dp}”>

            <series>

                        <Array>

                                    <BarSeries xField=”value” />

                        </>

            </>

</>

 

By default, the chart will place the base (the left edge) of each bar at zero.  But in addition to specifying the xField for the bar chart—what value to use for the right edge of the bar – you can specify a minField as well – what value to use for the left edge of the bar:

 

Var dp = [

            { value: 24, start: 12 },

            { value: 47, start: 15 },

            { value: 15, start: 3 }

];

 

<BarChart dataProvider=”{dp}”>

            <series>

                        <Array>

                                    <BarSeries xField=”value” minField=”start” />

                        </>

            </>

</>

 

 

Ely.

 

 

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of nithya karthik
Sent: Wednesday, May 11, 2005 11:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RE: [flexcoders-Ely Greenfield ] Gantt chart in flex?
Importance: High

 

I have never come across a 'floating bar chart' in flex 1.5... Could u pls tell me how to use it?

Ely Greenfield <[EMAIL PROTECTED]> wrote:

 

 

Nithya –

 

Flex 1.5 supports a ‘floating bar chart’ component, which is sufficient for what most people mean when they ask for a gantt chart.

 

If you’re looking for something more complex than that…with dependencies, etc….you’ll have to write it yourself in Flex 1.5.  In Flex 2.0 we are looking at ways to open up the charting platform even more so you can build a custom gantt chart on top of the built in types that ship with the product.

 

Ely.

 

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of nithya karthik
Sent: Wednesday, May 11, 2005 1:21 AM
To: flexcoders
Subject: [flexcoders] Gantt chart in flex?
Importance: High

 

hai,

    I'd like to know if there is any possibility of creating a gantt chart in flex, if yes how?

 

thanks,

nithya


Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now


Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now



Yahoo! Groups Links

Reply via email to