hey, I'm trying to make some floating bars with dates.  If minField is
set under my bar series the dates come up at 1908 and 1909.  If i
remove minField the dates work correctly. Any ideas?

Code below.  Place the xml file in date/SampleData.xml.  Try it once
the way it is and once without the "minField"

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute">
        <mx:Model id="dataSet" source="/data/sampleData.xml" />
        
        <mx:Panel height="100%" width="100%">
                <mx:BarChart height="100%" width="100%" 
dataProvider="{dataSet.Sample}">
                        <mx:series>
                                <mx:BarSeries  xField="end" minField="start"/>
                        </mx:series>
                        <mx:horizontalAxis>
                        <mx:DateTimeAxis  id="chartDTAxis"   dataUnits="days"  
/>      
                </mx:horizontalAxis>
                
                <mx:verticalAxis>
                        <mx:CategoryAxis  categoryField="desc"/>
                </mx:verticalAxis>
                </mx:BarChart>
        </mx:Panel>
</mx:Application>

<YearlyData>
        <Sample start="05/01/07" end="01/01/09" desc="Project"/>
        <Sample start="09/01/07" end="01/01/08" desc="Project"/>
        <Sample start="06/01/07" end="10/01/08" desc="Project"/>
        <Sample start="07/01/07" end="11/01/09" desc="Project"/>
        <Sample start="06/01/07" end="01/01/08" desc="Project"/>
        <Sample start="02/01/07" end="01/01/09" desc="Project"/>
        <Sample start="04/01/07" end="04/01/08" desc="Project"/>
        <Sample start="01/01/07" end="06/01/08" desc="Project"/>
        <Sample start="02/01/07" end="01/01/08" desc="Project"/>
        <Sample start="01/01/07" end="01/01/08" desc="Project"/>
</YearlyData>



Reply via email to