flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak MS <megharajdee...@gmail.com>
Subject Re: adding a line to CartesianDataCanvas
Date Tue, 04 Nov 2014 03:44:01 GMT
Did you try setting _line's width and height?

On Mon, Nov 3, 2014 at 11:11 PM, mark goldin <markzolotoy@gmail.com> wrote:

> Is it possible? I need to draw a line on the background.
>
> My code:
> <mx:annotationElements>
> <mx:CartesianDataCanvas id="canvas" includeInRanges="true">
> </mx:CartesianDataCanvas>
> </mx:annotationElements>
>
>
> var _line:UIComponent = new UIComponent();
> _line.graphics.lineStyle(5);
> _line.graphics.moveTo(0, 60);
> _line.graphics.lineTo(100, 60);
> canvas.addChild(_line);
>
> No error, no line.
>
> Thanks
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message