Piechart Application
Piechart Application
Rate Piechart Application
(1(1 Vote))
Dim piedata(10) As Integer
Form1.Cls
For i = 0 To 9
piedata(i) = 20 + Rnd() * 100
total = total + piedata(i)
Next
Form1.DrawWidth = 2
For i = 0 To 9
arc1 = arc2
arc2 = arc1 + 6.28 * piedata(i) / total
If Check1.Value Then
Form1.FillStyle = 2 + (i Mod 5)
Else
Form1.FillColor = 0
End If
If Check2.Value Then
Form1.FillColor = QBColor(8 + (i Mod 5))
Else
Form1.FillColor = QBColor(9)
End If
Form1.Circle (Form1.ScaleWidth / 2, Form1.ScaleHeight / 2), Form1.ScaleHeight / 2.5, , -arc1, arc2
Next
End Sub
Piechart Application Comments
No comments yet — be the first to post one!
Post a Comment