0 Replies Latest reply on Aug 3, 2010 10:29 AM by Haleh2

    Flex 4 Chart title won't move when positioned




      I have an issue with my horizontal chart title in my Flex 4 bar chart--it just won't move when I try to position it someplace other than the default (which is center).


      I followed the example in the livedocs: http://livedocs.adobe.com/flex/3/html/help.html?content=charts_displayingdata_05.html, specifically the one using the 'titleRenderer" property of the AxisRenderer, and setting it to my custom AxisRenderer class. Here is my code:


      package classes.view
          import mx.charts.*;
          import mx.charts.chartClasses.ChartLabel;


          public class ChartTitleRenderer extends ChartLabel
              public function ChartTitleRenderer()
              override protected function updateDisplayList(w:Number, h:Number):void {
                  super.updateDisplayList(w, h);




      Setting the textAlign property doesn't work. I have tried setting this property in the css as well and applying it directly to the axis, which also doesn't work. I have also tried "this.x = -100" etc, to no effect. Any ideas?