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/YYYY > > > 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 > > > > > > > > > > > > > >