Hey Tom, Thanks for the reply
I've got the labels visible='false' and includeInLayout="false" so that shouldn't come into play... although i've never looked too closely at what the includeInLayout does... i just have trusted it to work... anyway, my code is fairly simple i've got some base container that runs through some xml and creates this component based on the xml elements. StudiesBaseContainer.mxml extends VBox private function setupStudy(val:XML):void { if([EMAIL PROTECTED]() != '') { var studyChart:StudyChart = new StudyChart(); studyChart.setStyle('horizontalAlign','center'); studyChart.setStyle('verticalAlign','middle'); studyChart.studyXML = val; studyChart.maxHeight = 100; studyChart.percentWidth = 100; this.addChild(studyChart); } } in the container that actually holds the chart, i've got some code that calls events to get the data for that component and what not, but i'm going to slim it down for our sake. I add my series dynamically based on more xml configurable elements and attributes and all of that comes back fine... all my style does is takes away the drop shadow from the line (stroke)... StudyChart.mxml extends VBox <mx:LineChart id="studyChart" width="100%" height="100%" showDataTips="true" color="#FFFFFF" fontWeight="bold" verticalAxisStyleName="vAxis" seriesFilters="[]" > <mx:horizontalAxis> <mx:DateTimeAxis dataUnits="days" /> </mx:horizontalAxis> <mx:horizontalAxisRenderer> <mx:AxisRenderer visible="false" includeInLayout="false"/> </mx:horizontalAxisRenderer> <mx:verticalAxis> <mx:LinearAxis baseAtZero="false" autoAdjust="true" minimum="-10000" /> </mx:verticalAxis> <mx:verticalAxisRenderer> <mx:AxisRenderer placement="right" visible="false" includeInLayout="false" tickPlacement="outside"/> </mx:verticalAxisRenderer> </mx:LineChart> here is two images... please ignore the top selector chart with the handles on the right and left side... the first one shows the charts loading, the top one with the yellow stroke for the data line is finished, the the one below it is still loading image 1 <http://axel.cfwebtools.com/chartWidth.jpg> the second one is the charts loaded... but if you compare the two images you can see the chart is shifted to the left, and it's not as wide as it should be... image 2 <http://axel.cfwebtools.com/chartWidth2.jpg> thanks for the help... i'm open to anything. --- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> wrote: > > On Friday 30 Nov 2007, jensen.axel wrote: > > I have a vbox with a line chart in it's got 100% width at first until > > the data comes back, when the data gets back it shortens it's own > > width... i'm a little confused why it doesn't stretch out... > > Could it be adjusting itself due to having to draw labels for the axis' or > something. > > -- > Tom Chiverton > Helping to globally supply bleeding-edge bandwidth > on: http://thefalken.livejournal.com > > **************************************************** > > Please note, as of 10th December 2007 the registered office address of Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester, M3 3EB > > **************************************************** > > This email is sent for and on behalf of Halliwells LLP. > > Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. > > CONFIDENTIALITY > > This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. > > For more information about Halliwells LLP visit www.halliwells.com. >