1 Reply Latest reply on Nov 21, 2008 8:32 AM by Newsgroup_User

    Problem with dataFunction in LineSeries

    EricJ32 Level 1
      Hi,

      I have a LineChart which displays date against value. What I need to do is normalise the values to 0 ... ie, if the first value is 123, I need to subtract 123 from all further values so that 123 becomes 0.

      I'm using a dataFunction in the LineSeries for this (see code).

      However, as soon as I use this, rather than just a yField="value" in the LineSeries, the line disappears. The axis changes correctly, but where is the line chart?!

      Any ideas what I'm missing?

      Thanks
        • 1. Re: Problem with dataFunction in LineSeries
          Level 7

          "FionaB" <fiona@bwf.co.uk> wrote in message
          news:gg6ite$sf0$1@forums.macromedia.com...
          > Hi,
          >
          > I have a LineChart which displays date against value. What I need to do is
          > normalise the values to 0 ... ie, if the first value is 123, I need to
          > subtract
          > 123 from all further values so that 123 becomes 0.
          >
          > I'm using a dataFunction in the LineSeries for this (see code).
          >
          > However, as soon as I use this, rather than just a yField="value" in the
          > LineSeries, the line disappears. The axis changes correctly, but where is
          > the
          > line chart?!
          >
          > Any ideas what I'm missing?

          I think I had this problem, too. IIRC, the axes needed to have a similar
          function applied.

          HTH;

          Amy