function drawRectangle(context,canvasHeight,canvasWidth){
context.fillStyle = "green";//填充样式演示
context.strokeStyle="red";//轮廓颜色
context.strokeRect(0,0,canvasWidth,canvasHeight);//绘制矩形轮廓
context.fillRect(0,0,canvasWidth,canvasHeight);//绘制矩形
}
这里面的填充颜色怎么替换成另一个已经写好的script文件,他是一个折线图,如何把这个填充的颜色替换成已经用script写好的折线图