0 Replies Latest reply on Nov 22, 2009 9:22 PM by Bertrand G.

    Vertical axis title in Windowed Application...

    Bertrand G. Level 1

      I am trying to get the simple feature to have a title in a vertical axis of a chart...

      The problem: the vertical axis title is not displayed

       

      I have simplified the code as much as possible to concentrate on the problem:

       

      <?xml version="1.0"?>

      <!-- charts/CustomLabelFunction.mxml -->

      <s:WindowedApplication

                     xmlns:fx="http://ns.adobe.com/mxml/2009"

                     xmlns:mx="library://ns.adobe.com/flex/halo"

                     xmlns:s="library://ns.adobe.com/flex/spark" >

                <mx:PlotChart x="45" y="29" id="plotchart1">

                          <mx:verticalAxis>

                                    <mx:LinearAxis title="vertical axis" />

                          </mx:verticalAxis>

                          <mx:horizontalAxis>

                                    <mx:LinearAxis title="horizontal axis" />

                          </mx:horizontalAxis>

                          <mx:series>

                                    <mx:PlotSeries displayName="Series 1" yField=""/>

                          </mx:series>

                </mx:PlotChart>

      </s:WindowedApplication>

       

      Another very odd remark is that it works when I use the same code in a web application, changing the 'windowedApplication' into 'Application' !!!

       

      Any ideas anyone?

       

      For the record I am using Flex 4.0 on a macOS X