资 源 简 介
使用绘制圆弧的方法,输出一个统计图表“圆饼图”和一个“折扇”。 原始数据在数组Data中,这5个数据在圆饼图中为角度不同的扇形,各自角度的计算值分别为38、91、54、125、53,放在数组drgree中。第一个数据的扇形起始角start=0,用绿色画。第二个的起始角start=38,用蓝色画。最后一个的起始角start=308,用橙色画。 折扇的画法是:在左上角坐标(130,40),长150,宽80的椭圆区域内,从22度开始逆时针地画一个15度的扇性,再画一段15度的椭圆弧;然后交替地画扇形和圆弧。-use mapping arc method, output a statistical charts, "Yuan pie" and a "folding fans." The raw data in the array Data, this data in the five round pie for the fan perspective, the perspective of their respective values were calculated 38,91,54,125,53, on the array were drgree. No. 1 fan initial data Kok start = 0, green painted. The second start of the initial angle = 38, painted blue. A final start of the initial angle = 308, with orange painting. Folding fans of paint is : in the upper left corner coordinates (130,40), 150 long, wide oval region of 80, from 22 degrees to start painting an anti-clockwise 15 degrees fan, painting section 15 of ellipse; Then turn to the fan-shaped and painted arc.