|
-
Jul 17th, 2007, 01:11 PM
#8
Re: [2005] Bar Graphs
You can set a constant length for all the picture boxes, let say Width = 100. Then you calculate the persentige of each grade by deviding the total students count by grade count. For example if you have 10 students and three of them got "A" then the percentige for "A" would be 3/10 = 0.3 which is the percentige of the "A" grade. Then you multiply the constant Width = 100 by 0.3 wich = 30 and assing it to the "Width of the pictureBox. In this way the pictureBox Width will never be more than 100.
Last edited by VBDT; Jul 17th, 2007 at 01:16 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|