|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
how to make a statistic bar
hi,
how do I make a bar like in statistics or a poll. that an image of, say a red bar, grows longer/shorter dependend on how many people voted? I could make a loop and display the image again and again but in all statistics I saw it seemed that the bar was one image ... hope you can help me, thx |
|
#2
|
|||
|
|||
|
RE: how to make a statistic bar
Just set the width of the image in the <img> tag in HTML. So if the width of your graph is 400px and 50% answered 'A', then set the with of the 'A' bar image to 200px. The image itself could be only 1x1 and HTML will stretch it nicely.
|
|
#3
|
|||
|
|||
|
RE: how to make a statistic bar
also see this thread
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > how to make a statistic bar |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|