The DateTimeAxis doesn't currently do business weeks. It's something
we're looking at adding for the next version.

 

In the meantime, you have three choice, in increasing order of
difficulty:

 

1)      Use a category axis, and deal with tiny labels

2)      Use a category axis, set dropLabels to true on your
axisRenderer, and accept that fact that you can't control the amount of
time between labels.

3)      Write a custom axis that acts like a category axis, but
generates labels based on your heuristic (i.e., only on the first of
each month, etc). You might be able to do this by extending the existing
category axis.

4)      Write a custom axis that acts like a date/time axis but drops
weekends.  This would be difficult to do with the existing date time
axis as a base class.

 

 

Ely.

 

 

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of pgherveou
Sent: Thursday, May 31, 2007 2:37 PM
To: [email protected]
Subject: [flexcoders] Re: Charts and Business day axis

 

In fact I can not use the dateAndTimeAxis because i don t want to
display non business day. 
If I use the dateAndTime axis there will be a space and plateau
between the sunday and the monday for example.

To be clear in fact I would like the same axis as google finance charts.

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Brendan Meutzner" <[EMAIL PROTECTED]>
wrote:
>
> Look at the DateTimeAxis, and the dataUnits, labelUnits properties...
> 
> 
> Brendan
> 
> On 5/30/07, pgherveou <[EMAIL PROTECTED]> wrote:
> >
> > Hello there,
> >
> > I try to display a chart based on a one year business day axis. (no
> > week ends for the moment)
> >
> > I used a categoryAxis to draw my chart. It works perfectly. the only
> > problem is the axis. There are not enough space to display all ticks
> > and labels (one per business day).
> >
> > Ideally what I would like to do is to controls label and ticks to
> > display for example only the label of the first business day of each
> > month.
> >
> > I tried to use a custom LabelFunction to do that, but I can't fix
the
> > labelSize (they are still to small)
> >
> > Thanks in advance for your help
> >
> > Pierre
> >
> > 
> >
> 
> 
> 
> -- 
> Brendan Meutzner
> Stretch Media - RIA Adobe Flex Development
> [EMAIL PROTECTED]
> http://www.stretchmedia.ca
>

 

<<image001.jpg>>

<<image002.jpg>>

Reply via email to