1 Reply Latest reply on Aug 29, 2008 2:27 AM by Newsgroup_User

    Generic Axis

    Cr99 Level 1
      I am creating a chart where the user can specify what type of horizontal axis he desires. Right now, I'm trying to allow both CategoryAxis and DateTimeAxis options. But in the API it seems like these two do not share a useable, generic ancestry. I tried AxisBase and IAxis, but neither worked.

      I'd like to hypothetically declare the following:

      var hAxis:GenericAxis; // What class type should this be?

      // then instantiate
      hAxis = new DateTimeAxis();

      // or
      hAxis = new CategoryAxis();