You may have also to set dataUnits to "hours".

thomas
---
http://www.web-attitude.fr/
msn : [email protected]
softphone : sip:[email protected] <sip%[email protected]>
téléphone portable : +33601 822 056


2009/6/8 netdeep <[email protected]>

>
>
>
> Here's what I tried, but it doesn't work:
>
> var hAxis:DateTimeAxis = new DateTimeAxis();
> hAxis.displayLocalTime = true;);
> hAxis.labelUnits = "hours"
> hAxis.dataInterval = 1;
> hAxis.minorTickUnits = "hours";
> hAxis.minorTickInterval = 1;
>
> var ar:AxisRenderer = new AxisRenderer();
> ar.axis = hAxis;
> ar.setStyle("canDropLabels", "true");
> ar.setStyle("minorTickPlacement", "cross");
> genericChart.horizontalAxisRenderers = [ar];
> genericChart.horizontalAxis = hAxis;
>
>
> --- In [email protected] <flexcoders%40yahoogroups.com>, thomas
> parquier <mailingli...@...> wrote:
> >
> > I think you have to use datainterval and labelunit.
> >
> > thomas
> > ---
> > http://www.web-attitude.fr/
> > msn : thomas.parqu...@...
> > softphone : sip:webattit...@... <sip%3awebattit...@...>
> > téléphone portable : +33601 822 056
> >
> >
> > 2009/6/4 netdeep <deep...@...>
> >
> > >
> > >
> > > I have a chart which is created in actionscript with parameters
> specified
> > > by the user. So it needs to be flexible enough to accomodate all kinds
> of
> > > different styles and types of charts. One user would like to display
> lines
> > > on the minor ticks marks at every hour. Complicating matters is the
> fact
> > > that the chart can be resized horizontally which would increase or
> decrease
> > > the space available for such lines.
> > >
> > > So how do I create a chart which displays grid lines every hour on
> minor
> > > ticks and let's flex display major grid lines for each label. I'm using
> a
> > > DateTimeAxis, by the way.
> > >
> > > Thanks.
> > >
> > >
> > >
> >
>
>  
>

Reply via email to