If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Poll graphic bug?  XML
Forum Index » Support Forum
Author Message
Johncr
Beginner

Joined: 21/09/2004 03:01:15
Messages: 28
Offline

http://www.cartapacio.com/pie.jpg

Please note the two smaller sectors.
amber222
Graduate

Joined: 07/05/2004 21:13:07
Messages: 586
Offline

Where's your php file for this poll?
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

So? Its a pie chart.

A link to the page would be useful along with the code you used and
the options for people to choose from on the poll and maybe how
many people have voted for each one either in nums or as a % figure.

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
Johncr
Beginner

Joined: 21/09/2004 03:01:15
Messages: 28
Offline

Auron wrote:A link to the page would be useful along with the code you used and
the options for people to choose from on the poll and maybe how
many people have voted for each one either in nums or as a % figure.


Hi Auron.

Sorry, I was too busy the past week.
The problem is that I'm running the Poll at my local machine for a while. I hope I'll be able to upload the poll into a server in a week or so. However, it is very easy to reproduce the bug, if you have the time.

Using Admin, create a new 3 options poll.
Make them:
Red = 15 -> 1.5%
Orange = 490 -> 49.2%
Green = 490 -> 49.2%

It doesn't matter if you use nums or percent.

The resulting 1.5% red-pie-sector shows green instead of red.

Now, increase red by 1 so that it is now 1.6%.

The resulting 1.6% red-pie-sector is now red which is right.
Anonymous



Johncr wrote:
Auron wrote:A link to the page would be useful along with the code you used and
the options for people to choose from on the poll and maybe how
many people have voted for each one either in nums or as a % figure.


Hi Auron.

Sorry, I was too busy the past week.
The problem is that I'm running the Poll at my local machine for a while. I hope I'll be able to upload the poll into a server in a week or so. However, it is very easy to reproduce the bug, if you have the time.

Using Admin, create a new 3 options poll.
Make them:
Red = 15 -> 1.5%
Orange = 490 -> 49.2%
Green = 490 -> 49.2%

It doesn't matter if you use nums or percent.

The resulting 1.5% red-pie-sector shows green instead of red.

Now, increase red by 1 so that it is now 1.6%.

The resulting 1.6% red-pie-sector is now red which is right.



If I'm not mistaken, which I'm sure I'm not, your math is .1 off. 49.2 + 49.2 + 1.5 = 99.9. Try +1.6 and maybe that will fix it.
Johncr
Beginner

Joined: 21/09/2004 03:01:15
Messages: 28
Offline

Nope, it is not my math. I did enter the figures and the poll's algorith did the job, not me.
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum