Need help with a simple api drawn bar graph

I am trying to draw a simple bar chart for our interactive annual, and I thought i would try to learn how to use the api drawing tools, but I can’t seem to get it to draw more than one line successfully.
below is what I was using for one, but how do I tell it to draw more lines that are different colors? I attached a screen shot of what I want it to look like.
thanks!


this.createEmptyMovieClip("line1a_mc", 10);
line1a_mc._x = 10;
line1a_mc._y = 100;
drawRectangle(line1a_mc, 25, 180, 0xbcdeef, 100);
function drawRectangle(target_mc:MovieClip, boxWidth:Number, boxHeight:Number, fillColor:Number, fillAlpha:Number):Void {
    with (target_mc) {
        beginFill(fillColor, fillAlpha);
        moveTo(0, 0);
        lineTo(boxWidth, 0);
        lineTo(boxWidth, boxHeight);
        lineTo(0, boxHeight);
        lineTo(0, 0);
    }
}