Graphics.drawRect not working?

I’m trying to draw a shape but am having a weird issue. I’m not getting any errors, but no shape will show up. I get a blank white canvas when I run the .swf with the following class:

package {
    
    import flash.display.DisplayObject;
    import flash.display.Graphics;
    import flash.display.Shape;
    import flash.display.Sprite;
    
    public class BarGraph extends Sprite {
    
        public function BarGraph () {
            drawBar();
        }
        
        private function drawBar():void{
            var bar:Shape = new Shape();
            bar.graphics.beginFill(0x000000);
            bar.graphics.lineStyle(2, 0x333333);
            bar.graphics.drawRect(10, 10, 50, 300);
            bar.graphics.endFill();
            addChild(bar);
        }
    }
}

Can someone point out what I’m missing? Much thanks!

Jon