Loading ...
Sorry, an error occurred while loading the content.
 

Re: YUI Chart NumericAxis bug?

Expand Messages
  • matt_3251091
    Ah, ok - thanks very much!
    Message 1 of 3 , Jun 27, 2009
      Ah, ok - thanks very much!

      --- In ydn-javascript@yahoogroups.com, Dwight Bridges <trippb@...> wrote:
      >
      > Hi Matt,
      > There is a bug in the computation of major units with smaller values. This
      > has been addressed for the 2.8 release. The initial changes were checked in
      > here:
      > http://github.com/yui/yui2/tree/yui2-1817
      >
      > Tripp
      >
      >
      > On 6/26/09 8:38 PM, "matt_3251091" <sommer.matt@...> wrote:
      >
      > >
      > >
      > >
      > >
      > >
      > > Hi. I have a few specific data sets that seem to break the automatic
      > > computation of the majorUnit when generating a line graph. The range of the
      > > value seems to affect the ability of the function to figure out a correct
      > > unit. Here is an example: My data (for MSFT stock - plotting price on the
      > > yAxis) is
      > > [
      > > {"date": "Fri Jun 26 10:23:58 2009", "price": 23.5, "vol": 15262455},
      > > {"date": "Fri Jun 26 10:43:50 2009", "price": 23.46, "vol": 1352469},
      > > {"date": "Fri Jun 26 11:03:51 2009", "price": 23.54, "vol": 1394117},
      > > {"date": "Fri Jun 26 11:23:54 2009", "price": 23.53, "vol": 1014943},
      > > {"date": "Fri Jun 26 11:43:54 2009", "price": 23.56, "vol": 1213963},
      > > {"date": "Fri Jun 26 12:03:56 2009", "price": 23.5, "vol": 1393915},
      > > {"date": "Fri Jun 26 12:23:57 2009", "price": 23.45, "vol": 1109955},
      > > {"date": "Fri Jun 26 12:43:56 2009", "price": 23.42, "vol": 2158585},
      > > {"date": "Fri Jun 26 13:03:56 2009", "price": 23.42, "vol": 4253061},
      > > {"date": "Fri Jun 26 13:23:54 2009", "price": 23.42, "vol": 1662853},
      > > {"date": "Fri Jun 26 13:43:56 2009", "price": 23.42, "vol": 1163429},
      > > {"date": "Fri Jun 26 14:03:55 2009", "price": 23.44, "vol": 1589133},
      > > {"date": "Fri Jun 26 14:23:57 2009", "price": 23.37, "vol": 2826861},
      > > {"date": "Fri Jun 26 14:43:56 2009", "price": 23.37, "vol": 4032148},
      > > {"date": "Fri Jun 26 15:00:01 2009", "price": 23.37, "vol": 21325424}
      > > ]
      > >
      > > Without setting a specific majorUnit of .25 or less, the function does not
      > > return any values at all for my Y axis - in fact the axis labels are left
      > > blank. I have myCurrencyAxis.roundMajorUnit = false; just to be sure there is
      > > a range (otherwise, the line does not even draw - I assume it is collapsing
      > > the points to a range of 0 otherwise). Any data I use where price has a
      > > greater range works perfectly.
      > > Can anyone tell me if this is a bug, or if I'm missing something simple? My
      > > thought was to just set the majorUnit based on the range of the data, but I
      > > don't know how to make the actual price data available to compute the
      > > range...(ie., I can't use a function with myCurrencyAxis.majorUnit). Does the
      > > function that computes the majorAxis not work for a range smaller than 1 or
      > > something? Thanks for any help.
      > >
      > >
      > >
      > >
      > >>
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.