views:

614

answers:

2

Hi there,

I have a line chart that sometimes contains a number of data points. I have solved how to prevent the horizontal axis from displaying too many labels using custom label functions and data functions. My problem is forcing the AxisRenderer not to scale down my labels.

I'm using the labelRotation property so the canDropLabels and canStagger properties are not an option.

Thanks in advance for any replies.

A: 

I believe this can be done by editing the labelRenderer property. Take a look at the second example on this page (Formatting charts), they define a custom component to use as the label. You can do something like that to maintain whatever look you want.

CookieOfFortune
A: 

Try use gutter, gutter set are for the axis labels (if you want u can try to read the code of the AxisRenderer, and see how it use the gutter and other parameters to scale if need the text.

You can set the gutter by style like this (this work for me):

LineChart {
     gutterLeft:50;
     gutterRight:50;
     gutterBottom:50;
}