Re: [flexcoders] Re: Illegible axis labels
Maciek, just reload the page... a problem with the loaded xml stream which seems to be corrupted sometimes. Sunil, labelUnits is now based on the actual range of dates, which seems to prevent sytematic resizing, but resizing still occurs randomly... thanks anyway, thomas 2009/4/9 sunild99 > > > --- In flexcoders@yahoogroups.com , > "thomas.parquier" wrote: > > > > > Furthermore labels dont get staggered/rotated when canstagger="true" and > labelRotation="-45". > > The label rotation won't work unless the fonts are embedded. > > Another option would be to target Flash Player 10 and use a device font for > your labels. Device fonts in Flash Player 10 can be faded, rotated, etc. > > Just a guess, but maybe it IS staggering your labels. Perhaps it's > difficult to observe because the fonts are so small? > > Are you using a DateTimeAxis? Have you set any of the properties on > DateTimeAxis like: dataUnits, dataInterval, labelUnits, interval, unitSize, > padding, etc? > > Not saying any of those properties will address your problem, but not a bad > place to start. > > Sunil > 2009/4/9 Maciek Sakrejda > > > I get the following error when trying to use your example: > > [RPC Fault faultString="Error #1088: The markup in the document following > the root element must be well-formed." faultCode="Client.CouldNotDecode" > faultDetail="null"] > at mx.rpc. > http::HTTPService/http://www.adobe.com/2006/flex/mx/internal::processResult(http://www.adobe.com/2006/flex/mx/internal::processResult%28> > )[C:\autobuild\3.3.0\frameworks\projects\rpc\src\mx\rpc\http\HTTPService.as:933] > at mx.rpc::AbstractInvoker/ > http://www.adobe.com/2006/flex/mx/internal::resultHandler(<http://www.adobe.com/2006/flex/mx/internal::resultHandler%28> > )[C:\autobuild\3.3.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:208] > at > mx.rpc::Responder/result()[C:\autobuild\3.3.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:43] > at > mx.rpc::AsyncRequest/acknowledge()[C:\autobuild\3.3.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:74] > at > DirectHTTPMessageResponder/completeHandler()[C:\autobuild\3.3.0\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:409] > at flash.events::EventDispatcher/dispatchEventFunction() > at flash.events::EventDispatcher/dispatchEvent() > at flash.net::URLLoader/onComplete() > > > -Original Message- > From: flexcoders@yahoogroups.com on behalf of thomas parquier > Sent: Thu 4/9/2009 10:40 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Illegible axis labels > > Has anyone encountered this problem ? Is there any workaround ? > > thanks, > thomas > > > > 2009/4/9 thomas.parquier > > > > > >> > >> Setting gutterBottom (in chart mxml tag) and height (in axisrenderer > tag) > >> keeps height of axisRenderer fixed (good) but labels still get > resized... ( > >> http://web-attitude.fr/grapheur/grapheur.html, click on 'max' button on > >> the left) > >> > >> Furthermore labels dont get staggered/rotated when canstagger="true" and > >> labelRotation="-45". > >> > >> thomas > >> > >> --- In flexcoders@yahoogroups.com , > >> "sunild99" wrote: > >> > > >> > --- In flexcoders@yahoogroups.com , > >> "Richard Rodseth" wrote: > >> > > > >> > > Is there any way to control how much space is devoted to the axis > >> compared > >> > > to the chart? Or to control the width of a category (not of the > >> column)? Or > >> > > to set a minimum font size, after which the axis is dropped? > >> > > >> > You can use the gutter styles (gutterLeft, gutterRight, etc) to > specify > >> how much space is in > >> > between the chart and the edge of the chart control. Making your > gutters > >> bigger should > >> > allow more space for your axis labels. > >> > > >> > Sunil > >> > > >> > >> > >> > > > > > > > > -- > > http://www.web-attitude.fr/ > > msn : thomas.parqu...@web-attitude.fr > > softphone : sip:webattit...@ekiga.net < > sip%3awebattit...@ekiga.net > > > téléphone portable : +33601 822 056 > > > > > > -- > http://www.web-attitude.fr/ > msn : thomas.parqu...@web-attitude.fr > softphone : sip:webattit...@ekiga.net < > sip%3awebattit...@ekiga.net > > téléphone portable : +33601 822 056 > > > -- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net téléphone portable : +33601 822 056
[flexcoders] Re: Illegible axis labels
--- In flexcoders@yahoogroups.com, "thomas.parquier" wrote: > > Furthermore labels dont get staggered/rotated when canstagger="true" and > labelRotation="-45". The label rotation won't work unless the fonts are embedded. Another option would be to target Flash Player 10 and use a device font for your labels. Device fonts in Flash Player 10 can be faded, rotated, etc. Just a guess, but maybe it IS staggering your labels. Perhaps it's difficult to observe because the fonts are so small? Are you using a DateTimeAxis? Have you set any of the properties on DateTimeAxis like: dataUnits, dataInterval, labelUnits, interval, unitSize, padding, etc? Not saying any of those properties will address your problem, but not a bad place to start. Sunil
RE: [flexcoders] Re: Illegible axis labels
I get the following error when trying to use your example: [RPC Fault faultString="Error #1088: The markup in the document following the root element must be well-formed." faultCode="Client.CouldNotDecode" faultDetail="null"] at mx.rpc.http::HTTPService/http://www.adobe.com/2006/flex/mx/internal::processResult()[C:\autobuild\3.3.0\frameworks\projects\rpc\src\mx\rpc\http\HTTPService.as:933] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[C:\autobuild\3.3.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:208] at mx.rpc::Responder/result()[C:\autobuild\3.3.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:43] at mx.rpc::AsyncRequest/acknowledge()[C:\autobuild\3.3.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:74] at DirectHTTPMessageResponder/completeHandler()[C:\autobuild\3.3.0\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:409] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete() -Original Message- From: flexcoders@yahoogroups.com on behalf of thomas parquier Sent: Thu 4/9/2009 10:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Illegible axis labels Has anyone encountered this problem ? Is there any workaround ? thanks, thomas 2009/4/9 thomas.parquier > > >> >> Setting gutterBottom (in chart mxml tag) and height (in axisrenderer tag) >> keeps height of axisRenderer fixed (good) but labels still get resized... ( >> http://web-attitude.fr/grapheur/grapheur.html, click on 'max' button on >> the left) >> >> Furthermore labels dont get staggered/rotated when canstagger="true" and >> labelRotation="-45". >> >> thomas >> >> --- In flexcoders@yahoogroups.com , >> "sunild99" wrote: >> > >> > --- In flexcoders@yahoogroups.com , >> "Richard Rodseth" wrote: >> > > >> > > Is there any way to control how much space is devoted to the axis >> compared >> > > to the chart? Or to control the width of a category (not of the >> column)? Or >> > > to set a minimum font size, after which the axis is dropped? >> > >> > You can use the gutter styles (gutterLeft, gutterRight, etc) to specify >> how much space is in >> > between the chart and the edge of the chart control. Making your gutters >> bigger should >> > allow more space for your axis labels. >> > >> > Sunil >> > >> >> >> > > > > -- > http://www.web-attitude.fr/ > msn : thomas.parqu...@web-attitude.fr > softphone : sip:webattit...@ekiga.net > téléphone portable : +33601 822 056 > -- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net téléphone portable : +33601 822 056
[flexcoders] Re: Illegible axis labels
Has anyone encountered this problem ? Is there any workaround ? thanks, thomas 2009/4/9 thomas.parquier > > >> >> Setting gutterBottom (in chart mxml tag) and height (in axisrenderer tag) >> keeps height of axisRenderer fixed (good) but labels still get resized... ( >> http://web-attitude.fr/grapheur/grapheur.html, click on 'max' button on >> the left) >> >> Furthermore labels dont get staggered/rotated when canstagger="true" and >> labelRotation="-45". >> >> thomas >> >> --- In flexcoders@yahoogroups.com , >> "sunild99" wrote: >> > >> > --- In flexcoders@yahoogroups.com , >> "Richard Rodseth" wrote: >> > > >> > > Is there any way to control how much space is devoted to the axis >> compared >> > > to the chart? Or to control the width of a category (not of the >> column)? Or >> > > to set a minimum font size, after which the axis is dropped? >> > >> > You can use the gutter styles (gutterLeft, gutterRight, etc) to specify >> how much space is in >> > between the chart and the edge of the chart control. Making your gutters >> bigger should >> > allow more space for your axis labels. >> > >> > Sunil >> > >> >> >> > > > > -- > http://www.web-attitude.fr/ > msn : thomas.parqu...@web-attitude.fr > softphone : sip:webattit...@ekiga.net > téléphone portable : +33601 822 056 > -- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net téléphone portable : +33601 822 056
[flexcoders] Re: Illegible axis labels
Setting gutterBottom (in chart mxml tag) and height (in axisrenderer tag) keeps height of axisRenderer fixed (good) but labels still get resized... (http://web-attitude.fr/grapheur/grapheur.html, click on 'max' button on the left) Furthermore labels dont get staggered/rotated when canstagger="true" and labelRotation="-45". thomas --- In flexcoders@yahoogroups.com, "sunild99" wrote: > > --- In flexcoders@yahoogroups.com, "Richard Rodseth" wrote: > > > > Is there any way to control how much space is devoted to the axis compared > > to the chart? Or to control the width of a category (not of the column)? Or > > to set a minimum font size, after which the axis is dropped? > > You can use the gutter styles (gutterLeft, gutterRight, etc) to specify how > much space is in > between the chart and the edge of the chart control. Making your gutters > bigger should > allow more space for your axis labels. > > Sunil >
Re: [flexcoders] Re: Illegible axis labels
In the case of gutterLeft, the increased gap is on the left of the axis title, which looks a little odd, unless I can compute it based on the size of the numbers on the axis, or at least as a percentage of the container size. It might be more fruitful to do a custom renderer to display 20 as 200K. But thanks for the tips. On Sat, Jan 17, 2009 at 12:09 PM, sunild99 wrote: > --- In flexcoders@yahoogroups.com , > "Richard Rodseth" wrote: > > > > Is there any way to control how much space is devoted to the axis > compared > > to the chart? Or to control the width of a category (not of the column)? > Or > > to set a minimum font size, after which the axis is dropped? > > You can use the gutter styles (gutterLeft, gutterRight, etc) to specify how > much space is in > between the chart and the edge of the chart control. Making your gutters > bigger should > allow more space for your axis labels. > > Sunil > > >
[flexcoders] Re: Illegible axis labels
--- In flexcoders@yahoogroups.com, "Richard Rodseth" wrote: > > Is there any way to control how much space is devoted to the axis compared > to the chart? Or to control the width of a category (not of the column)? Or > to set a minimum font size, after which the axis is dropped? You can use the gutter styles (gutterLeft, gutterRight, etc) to specify how much space is in between the chart and the edge of the chart control. Making your gutters bigger should allow more space for your axis labels. Sunil
[flexcoders] Re: Illegible axis labels
--- In flexcoders@yahoogroups.com, "Richard Rodseth" wrote: > > For the most part, the Flex charts do a reasonable job of scaling to fit a > given area, staggering axis labels, etc. > However, I have a situation with two charts side by side, and the line chart > has legible labels, and the column chart does not. > Is there any way to control how much space is devoted to the axis compared > to the chart? Or to control the width of a category (not of the column)? Or > to set a minimum font size, after which the axis is dropped? > > I know that one option I have is to have a custom label renderer that > displays 2K instead of 2000, but that doesn't really address the diference > between LineChart and ColumnChart. > You might find something useful here: http://www.rphelan.com/2008/05/23/taking-control-of-flex-charting- styles/