I have a multiple series column chart. When I have data in both series
it charts fine.  When I have data in only one series the charting fails.

 

Here is a simplified version of the code that reproduces the problem. 

With all four datapoints in the collection I get four lines in the
series.

If I comment out the data associated with series1 then no data is
graphed

If I comment out the data associated with series2 then series 1 data is
graphed

Any suggestions?

 

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute">

    <mx:Script>

        <![CDATA[         

        import mx.collections.ArrayCollection;

        [Bindable]

        private var dat:ArrayCollection = new ArrayCollection( [

        //Uncomment the following 3 lines to get the chart to work.

           // { y: 3, bottom1: 35, top1: 70 },

           // { y: 5, bottom1: 30 , top1:60},

           // { y: 7, bottom1: 40, top1: 50},

                { y: 6, bot1:10,tp1:20}

           ]);

        ]]>

    </mx:Script>

            <mx:ColumnChart x="59" y="68" id="hlocchart1"
dataProvider="{dat}">

<mx:horizontalAxis>

            <mx:LinearAxis baseAtZero="false" padding="10"/>

 

</mx:horizontalAxis>                 

                        <mx:series>

                                    <mx:ColumnSeries
displayName="Series2" yField="y" minField="bot1" xField="tp1" />

 

                                    <mx:ColumnSeries
displayName="Series1" yField="y" minField="bottom1" xField="top1" />

 

                        </mx:series>

 

            </mx:ColumnChart>

            <mx:Legend dataProvider="{hlocchart1}"/>

            

</mx:Application>




-------------------------------------------------------------

To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line



For more info, see http://www.affug.com

Archive @ http://www.mail-archive.com/discussion%40affug.com/

List hosted by http://www.fusionlink.com

-------------------------------------------------------------

Reply via email to