0 Replies Latest reply on Jun 17, 2010 7:11 AM by 194642537

    Displaying certain lineSeries in lengend

    194642537 Level 1

      Hi I have an arraycollection

       

       

       

       

      public var expenses:ArrayCollection = new ArrayCollection([

      {Month:

      "Jan", Profit:null, Expenses:1500, Amount:450},

      {Month:

      "Feb", Profit:null, Expenses:200, Amount:600},

      {Month:

      "Mar", Profit:null, Expenses:500, Amount:300}

      ]);

       

       

      and line series is

       

       

      <mx:series>

       

      <mx:LineSeries yField="Profit"

      displayName="

      Profit"

       

      />

       

      </mx:LineSeries>

       

      <mx:LineSeries yField="Expenses"

      displayName="

      Expenses"

       

      />

       

      when I give the legend , I wanted to display the items which are not null in the legend .

       

      How do I solve this ?

       

      Thanks