0 Replies Latest reply on May 10, 2007 12:27 PM by Denis108

    Custome itemRenderer

      I am trying to create a custom data renderer for a plot chart point. From that point, I would like to drop a leader line to the axes but I cannot find how to access the distance from that point to the X and Y axes. Can anyone help please? Any help or direction is appreciated.
      This function is called from updateDisplayList:


      private function updateGraphics():void {
      var col:uint;
      var rc:Rectangle;
      var g:Graphics = graphics;

      // drawing circle
      rc = new Rectangle(0, 0, width , height);
      col = 0x9d0a0e;
      g.beginFill(col, 0.8);
      g.lineStyle(1, 0xFFFFFF);
      g.drawCircle(rc.left+width/2, rc.top+height/2, radius);

      //drawing horizontal line
      rc = new Rectangle(0, 0, width, height);
      g.moveTo( this is what I am lacking,rc.top + unscaledHeight/2);
      g.lineStyle(0, 0xAAAAAA);
      g.lineTo(rc.left,rc.top + unscaledHeight/2);