0 Replies Latest reply on Aug 11, 2006 2:15 PM by jd-lingwai

    Flex Chart Problems, can anyone help?

    jd-lingwai
      I get the following run time error when my mouse rolls over one of my charts:
      ReferenceError: Error #1069: Property hitData not found on mx.charts.HitData and there is no default value.
      at Chart1/::formatDataTip()
      at mx.charts.chartClasses::ChartBase/::invokeDTFunction()
      at mx.charts::HitData/get displayText()
      at mx.charts.chartClasses::DataTip/set data()
      at mx.charts.chartClasses::ChartBase/::updateDataTipToMatchHitSet()
      at mx.charts.chartClasses::ChartBase/::processRollEvents()
      at mx.charts.chartClasses::ChartBase/::mouseMoveHandler()

      Here is the section of code i believe is causing the error:

      private function formatDataTip(obj : Object) : String {
      var name : String = obj.hitData.item.Publication;
      var revenue:Number = obj.hitData.item.Size;


      return "<b>Publication: "+name+"</b><br>Size: "+ revenue;
      }