Re: [flexcoders] Re: X-axis values in flex chart

2008-11-19 Thread Sefi Ninio
Anyone?

On Tue, Nov 18, 2008 at 8:44 PM, Sefi Ninio [EMAIL PROTECTED] wrote:

 Hi Sunil.

 Thanks for the time you took to answer.
 Unfortunately, this doesn't work either. I just tried it...


 On Tue, Nov 18, 2008 at 7:19 PM, Sunil Bannur [EMAIL PROTECTED] wrote:

   Did you try using labelRenderer property in AxisRenderer. Here is a
 sample from livedocs

 http://livedocs.adobe.com/flex/3/html/help.html?content=charts_formatting_11.html

 -Sunil


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Sefi
 Ninio [EMAIL PROTECTED] wrote:
 
  Hey.
 
  I ended up calculating the number of tick labels to skip and used the
  labelFunction to return the value every calculated value.
  This works great - I have a label every 10th value, and all values are
  displayed in the chart as they should.
  Only problem is that the label font size is still very small
 (actually, it's
  exactly the same size as when all labels are displayed).
 
  I even tried to define horizontalAxisRenderers and in it a custom
 renderer
  with a specified fontSize but tis didn't work either...
 
  Does anyone have any ideas on how this can be accomplished? What I
 need is
  to display every Xth label, with a readable font size...
 
  Thanks,
  Sefi
 
  On Tue, Nov 18, 2008 at 10:36 AM, sefi.ninio [EMAIL PROTECTED] wrote:
 
   Hey
  
   I have a Flex LineChart with a lot of x values (around 300) - which
   makes them not readable within the chart's container height/width.
  
   Is there a way to make the chart display, say, every fifth value?
  
   I am using:
   mx:horizontalAxis
   mx:CategoryAxis dataProvider={row} categoryField=x
   labelFunction=formatHorizontalAxis /
   /mx:horizontalAxis
  
   The formatHorizontalAxis function formats unix-time into MM/DD/
   using DateFormatter, and I suppose I could also implement it to return
   every 5th value, but I was wondering if there is a better way to
 do this.
  
   Thanks,
   Sefi
  
  
  
 

  





[flexcoders] Re: X-axis values in flex chart

2008-11-19 Thread sunild999999
Have you tried using the AxisRenderer styles canDropLabels and/or 
canStagger?

Also, the docs for canDropLabels seem to say that behavior may be different 
based on 
the type of axis ... maybe you can try using another type of axis like 
DateTimeAxis instead 
of CategoryAxis?

Regards,
the other Sunil

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

 Anyone?
 
 On Tue, Nov 18, 2008 at 8:44 PM, Sefi Ninio [EMAIL PROTECTED] wrote:
 
  Hi Sunil.
 
  Thanks for the time you took to answer.
  Unfortunately, this doesn't work either. I just tried it...
 
 
  On Tue, Nov 18, 2008 at 7:19 PM, Sunil Bannur [EMAIL PROTECTED] wrote:
 
Did you try using labelRenderer property in AxisRenderer. Here is a
  sample from livedocs
 
  http://livedocs.adobe.com/flex/3/html/help.html?
content=charts_formatting_11.html
 
  -Sunil
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Sefi
  Ninio sefi.ninio@ wrote:
  
   Hey.
  
   I ended up calculating the number of tick labels to skip and used the
   labelFunction to return the value every calculated value.
   This works great - I have a label every 10th value, and all values are
   displayed in the chart as they should.
   Only problem is that the label font size is still very small
  (actually, it's
   exactly the same size as when all labels are displayed).
  
   I even tried to define horizontalAxisRenderers and in it a custom
  renderer
   with a specified fontSize but tis didn't work either...
  
   Does anyone have any ideas on how this can be accomplished? What I
  need is
   to display every Xth label, with a readable font size...
  
   Thanks,
   Sefi
  
   On Tue, Nov 18, 2008 at 10:36 AM, sefi.ninio sefi.ninio@ wrote:
  
Hey
   
I have a Flex LineChart with a lot of x values (around 300) - which
makes them not readable within the chart's container height/width.
   
Is there a way to make the chart display, say, every fifth value?
   
I am using:
mx:horizontalAxis
mx:CategoryAxis dataProvider={row} categoryField=x
labelFunction=formatHorizontalAxis /
/mx:horizontalAxis
   
The formatHorizontalAxis function formats unix-time into MM/DD/
using DateFormatter, and I suppose I could also implement it to return
every 5th value, but I was wondering if there is a better way to
  do this.
   
Thanks,
Sefi
   
   
   
  
 
   
 
 
 






[flexcoders] Re: X-axis values in flex chart

2008-11-18 Thread Sunil Bannur
Did you try using labelRenderer property in AxisRenderer. Here is a
sample from livedocs
http://livedocs.adobe.com/flex/3/html/help.html?content=charts_formatting_11.html


-Sunil

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

 Hey.
 
 I ended up calculating the number of tick labels to skip and used the
 labelFunction to return the value every calculated value.
 This works great - I have a label every 10th value, and all values are
 displayed in the chart as they should.
 Only problem is that the label font size is still very small
(actually, it's
 exactly the same size as when all labels are displayed).
 
 I even tried to define horizontalAxisRenderers and in it a custom
renderer
 with a specified fontSize but tis didn't work either...
 
 Does anyone have any ideas on how this can be accomplished? What I
need is
 to display every Xth label, with a readable font size...
 
 Thanks,
 Sefi
 
 On Tue, Nov 18, 2008 at 10:36 AM, sefi.ninio [EMAIL PROTECTED] wrote:
 
Hey
 
  I have a Flex LineChart with a lot of x values (around 300) - which
  makes them not readable within the chart's container height/width.
 
  Is there a way to make the chart display, say, every fifth value?
 
  I am using:
  mx:horizontalAxis
  mx:CategoryAxis dataProvider={row} categoryField=x
  labelFunction=formatHorizontalAxis /
  /mx:horizontalAxis
 
  The formatHorizontalAxis function formats unix-time into MM/DD/
  using DateFormatter, and I suppose I could also implement it to return
  every 5th value, but I was wondering if there is a better way to
do this.
 
  Thanks,
  Sefi
 
   
 





Re: [flexcoders] Re: X-axis values in flex chart

2008-11-18 Thread Sefi Ninio
Hi Sunil.

Thanks for the time you took to answer.
Unfortunately, this doesn't work either. I just tried it...

On Tue, Nov 18, 2008 at 7:19 PM, Sunil Bannur [EMAIL PROTECTED] wrote:

   Did you try using labelRenderer property in AxisRenderer. Here is a
 sample from livedocs

 http://livedocs.adobe.com/flex/3/html/help.html?content=charts_formatting_11.html

 -Sunil


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Sefi
 Ninio [EMAIL PROTECTED] wrote:
 
  Hey.
 
  I ended up calculating the number of tick labels to skip and used the
  labelFunction to return the value every calculated value.
  This works great - I have a label every 10th value, and all values are
  displayed in the chart as they should.
  Only problem is that the label font size is still very small
 (actually, it's
  exactly the same size as when all labels are displayed).
 
  I even tried to define horizontalAxisRenderers and in it a custom
 renderer
  with a specified fontSize but tis didn't work either...
 
  Does anyone have any ideas on how this can be accomplished? What I
 need is
  to display every Xth label, with a readable font size...
 
  Thanks,
  Sefi
 
  On Tue, Nov 18, 2008 at 10:36 AM, sefi.ninio [EMAIL PROTECTED] wrote:
 
   Hey
  
   I have a Flex LineChart with a lot of x values (around 300) - which
   makes them not readable within the chart's container height/width.
  
   Is there a way to make the chart display, say, every fifth value?
  
   I am using:
   mx:horizontalAxis
   mx:CategoryAxis dataProvider={row} categoryField=x
   labelFunction=formatHorizontalAxis /
   /mx:horizontalAxis
  
   The formatHorizontalAxis function formats unix-time into MM/DD/
   using DateFormatter, and I suppose I could also implement it to return
   every 5th value, but I was wondering if there is a better way to
 do this.
  
   Thanks,
   Sefi