[flexcoders] Re: DateTimeAxis does not work correctly when minField set?

2008-02-29 Thread Nate Pearson
Bump again.  Someone has to have run into this before.

I appreciate any help.

-Nate

--- In flexcoders@yahoogroups.com, Nate Pearson [EMAIL PROTECTED] wrote:

 Anyone?
 
 Bump.
 
 
 
 --- n flexcoders@yahoogroups.com, Nate Pearson napearson99@ wrote:
 
  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
 





[flexcoders] Re: DateTimeAxis does not work correctly when minField set?

2008-02-29 Thread Geoffrey
I thought that I read somewhere that Flex assumes 2 digit dates are 
based off of 1900.  Try setting the dates in your xml file to 4 
character dates(2007, 2008, and 2009).

  Geoff

--- In flexcoders@yahoogroups.com, Nate Pearson [EMAIL PROTECTED] 
wrote:

 Bump again.  Someone has to have run into this before.
 
 I appreciate any help.
 
 -Nate
 
 --- In flexcoders@yahoogroups.com, Nate Pearson napearson99@ 
wrote:
 
  Anyone?
  
  Bump.
  
  
  
  --- n flexcoders@yahoogroups.com, Nate Pearson napearson99@ 
wrote:
  
   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
  
 





[flexcoders] Re: DateTimeAxis does not work correctly when minField set?

2008-02-29 Thread Nate Pearson
Thanks for the reply!

That worked, now it says 2008 and 2009. 

I set my dataUnits to months on my datetimeaxis.  I still only see
years though

Is there a way to custom render the tick marks on that axis?

Thanks!

Nate

--- In flexcoders@yahoogroups.com, Geoffrey [EMAIL PROTECTED] wrote:

 I thought that I read somewhere that Flex assumes 2 digit dates are 
 based off of 1900.  Try setting the dates in your xml file to 4 
 character dates(2007, 2008, and 2009).
 
   Geoff
 
 --- In flexcoders@yahoogroups.com, Nate Pearson napearson99@ 
 wrote:
 
  Bump again.  Someone has to have run into this before.
  
  I appreciate any help.
  
  -Nate
  
  --- In flexcoders@yahoogroups.com, Nate Pearson napearson99@ 
 wrote:
  
   Anyone?
   
   Bump.
   
   
   
   --- n flexcoders@yahoogroups.com, Nate Pearson napearson99@ 
 wrote:
   
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
   
  
 





[flexcoders] Re: DateTimeAxis does not work correctly when minField set?

2008-02-29 Thread Geoffrey
Try setting labelUnits=months on your DateTimeAxis.  If that 
doesn't work, then I'm not sure what the answer is.

  Geoff

--- In flexcoders@yahoogroups.com, Nate Pearson [EMAIL PROTECTED] 
wrote:

 Thanks for the reply!
 
 That worked, now it says 2008 and 2009. 
 
 I set my dataUnits to months on my datetimeaxis.  I still only see
 years though
 
 Is there a way to custom render the tick marks on that axis?
 
 Thanks!
 
 Nate
 
 --- In flexcoders@yahoogroups.com, Geoffrey gtb104@ wrote:
 
  I thought that I read somewhere that Flex assumes 2 digit dates 
are 
  based off of 1900.  Try setting the dates in your xml file to 4 
  character dates(2007, 2008, and 2009).
  
Geoff
  
  --- In flexcoders@yahoogroups.com, Nate Pearson napearson99@ 
  wrote:
  
   Bump again.  Someone has to have run into this before.
   
   I appreciate any help.
   
   -Nate
   
   --- In flexcoders@yahoogroups.com, Nate Pearson 
napearson99@ 
  wrote:
   
Anyone?

Bump.



--- n flexcoders@yahoogroups.com, Nate Pearson 
napearson99@ 
  wrote:

 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

   
  
 





[flexcoders] Re: DateTimeAxis does not work correctly when minField set?

2008-02-27 Thread Nate Pearson
Anyone?

Bump.



--- n flexcoders@yahoogroups.com, Nate Pearson [EMAIL PROTECTED] wrote:

 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