Thanks
I had not appreciated that the bar chart had a minfield

Using your reply and the column chart example in livedocs, I came up
with the code below. But allit soes is produce one vertical line for
each player at the tight edge of the graph with a colour strength
apparantly based on the length of career!?

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml";>

    <mx:Script>
        <![CDATA[
                [Bindable]
    public var baseballers:Object = [
        {Player: "Joe", Start: 1955, End: 1968},
        {Player: "Fred", Start: 1960, End: 1965},
        {Player: "Max", Start: 1965, End: 1967},
        {Player: "Abe", Start: 1970, End: 1981}
];
        ]]>
</mx:Script>
    <mx:Panel>
        <mx:BarChart id="column" dataProvider="{baseballers}">
            <mx:verticalAxis>
                <mx:CategoryAxis dataProvider="{baseballers}"
categoryField="Player"/>
            </mx:verticalAxis>
            <mx:series>
                <mx:Array>
                 <mx:BarSeries  xField="End"  minField="Start"
name="Career"/>
                 
                </mx:Array>
            </mx:series>
        </mx:BarChart>
        
    </mx:Panel>
</mx:Application>





--- In [email protected], "Ely Greenfield" <[EMAIL PROTECTED]> wrote:
>
> 
> 
> You want a BarChart. This won't compile (at least without warnings), but
> it will get you pointed in the right direction:
> 
> 
> var data:Array = [
>       { name: "Bob", start: 1955, end: 1970},
>       { name: "Sally", start: 1930, end: 1968}
> ]
> 
> <BarChart dataProvider="{data}">
>       <verticalAxis>
>               <CategoryAxis dataProvider="{data}"
> categoryField="{name}" />
>       </verticalAxis>
>       <series>
>               <BarSeries yField="end" minField="start" />
>       </series>
> </BarChart>
> 
> Ely.
> 
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of yaagcur
> Sent: Friday, November 11, 2005 8:25 AM
> To: [email protected]
> Subject: [flexcoders] Chart types (Flex 2)
> Importance: High
> 
> I am looking to present graphically data on a list of baseball players
> longevity at a club e.g all New York Yankees players who were at the
> club at a particular date say 1960 would show those who had careers from
> 1955-1961 and 1960-1970 etc.
> 
> I want to have the y axis listing the player names and the x axis
> showing years. The graph would show each players length of career as a
> band
> 
> How would I best go about this in Flex 2. I have played around with the
> hi-lo chart to some degree of success but that has the axes in the
> opposite way to my requirements
> 
> Is there some standard chart I could use? The livedocs article on custom
> charts has yet to be written
> 
> 
> 
> 
> 
> 
> 
> 
> --
> 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
>







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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/

<*> 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/
 


Reply via email to