1 Reply Latest reply on Oct 21, 2007 9:27 PM by atta707

    How to make chart labels come on side of chart and not below

    vinjvinj
      Do I have put the mx:legend in a vbox container? The legend displaying the chart series end's up below the chat instead of on the right of the chart.

      Thanks,

      VJ

      <mx:Panel title="Chart showing normalized performance compared to the major indices" height="100%" width="100%" paddingLeft="5" paddingRight="5">
      <mx:LineChart id="mychart" dataProvider="{chartData}" showDataTips="true">
      <mx:backgroundElements>
      <mx:GridLines direction="both"
      />
      </mx:backgroundElements>
      <mx:horizontalAxis>
      <mx:DateTimeAxis dataUnits="months" parseFunction="myParseFunction"
      labelUnits="months" displayLocalTime="true"/>
      </mx:horizontalAxis>
      <mx:horizontalAxisRenderer>
      <mx:AxisRenderer canStagger="true" canDropLabels="false"/>
      </mx:horizontalAxisRenderer>
      <mx:series>
      <mx:LineSeries id="portfolio" yField="normalizedValue" xField="date" displayName="portfolio" />
      <mx:LineSeries id="qqqq" yField="qqqqNormalizedValue" xField="date" displayName="qqqq"/>
      <mx:LineSeries id="ndx" yField="ndxNormalizedValue" xField="date" displayName="ndx"/>
      <mx:LineSeries id="spx" yField="spNormalizedValue" xField="date" displayName="spx"/>
      </mx:series>
      </mx:LineChart>
      <mx:Legend dataProvider="{mychart}" labelPlacement="right"/>
      </mx:Panel>