0 Replies Latest reply on Jan 20, 2014 11:13 PM by Minakshi Soni

    Dynamic Data in hitdata hd.item

    Minakshi Soni

      Hello everyone,

       

      I am currently using DateTime on X axis and Tag1 on Y axis. I want to make this Tag Name Dynamic.

      Please provide some way in which I can do this.

       

      My current code is:

       

       

      public function dtFunc(hd:HitData):String {

      return hd.item.DateTime + ": <B>" +hd.item.Tag1 + "</B>";

      }

       

      What I desire is to use a variable instead of hardcoding "DateTime" or "Tag1 ".

      Like if I have a variable xFieldParam in my Flex object that has value DateTime,

      I want to use this xFieldParam in hd.item to fetch DateTime value