1 Reply Latest reply on Oct 2, 2011 11:50 PM by Vishallad

    Flex Mobile Charts -- Less Than Symbol in Axis labels

    Vishallad

      Hi,

         I am creating a Mobile Project and want to display a column chart. My problem is I want to display "<" in  Axis label of charts.But somehow its not working.I have tried using "&lt;" and is working fine in Web and Desktop project.But somehow it is not working in Flex mobile project. I have attached the source code for the same please help me to resolve this issue.

       

      Thanks & Regards

          Vishal Lad

        • 1. Re: Flex Mobile Charts -- Less Than Symbol in Axis labels
          Vishallad Level 1

          No attachment option found so pasting my mobile project code.I am doing same thing in Web and destop project this is working fine.But for mobile project somehow I am getting blank label.

           

          <?xml version="1.0" encoding="utf-8"?>

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

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

          <fx:Declarations>

          <!-- Place non-visual elements (e.g., services, value objects) here -->

          </fx:Declarations>

          <fx:Script>

          <![CDATA[

          import mx.collections.ArrayCollection;

          [Bindable]

          public var expenses:ArrayCollection = new ArrayCollection([

          {Month:"&lt;200", Profit:2000, Expenses:1500},

          {Month:"200-400", Profit:1000, Expenses:200},

          {Month:">400", Profit:1500, Expenses:500}

          ]);

           

          ]]>

          </fx:Script>

          <mx:ColumnChart id="myChart" dataProvider="{expenses}" showDataTips="true">

          <mx:horizontalAxis>

          <mx:CategoryAxis

          dataProvider="{expenses}"

          categoryField="Month"

          />

          </mx:horizontalAxis>

          <mx:series>

          <mx:ColumnSeries

          xField="Month"

          yField="Profit"

          displayName="Profit"

          />

          <mx:ColumnSeries

          xField="Month"

          yField="Expenses"

          displayName="Expenses"

          />

          </mx:series>

          </mx:ColumnChart>

           

          </s:View>