vmichnowicz / vwm_polls

Free ExpressionEngine Poll Module and Fieldtype
Apache License 2.0
16 stars 8 forks source link

Pie Chart Showing wrong data. #32

Closed jayeshjain24 closed 10 years ago

jayeshjain24 commented 10 years ago

I started a simple poll.It turned out that i got to many responses(around 1500 votes).

The pie chart shows wrong data.

error-poll

When I fiddled with this table : exp_vwm_polls_options and changed the no of votes to 2,6,12,2 everything worked fine and piechart was being displayed correctly.

Can VWM POLL handle 1500 votes?

vmichnowicz commented 10 years ago

What is the source URL of the Google charts image?

vmichnowicz commented 10 years ago

OK, I can replicate this issue. I am pretty sure this is a problem with the Google Charts API and it out of my control. For example, this chart is not correct:

http://chart.apis.google.com/chart?chs=330x330&cht=p&chd=t:199,100,500,99&chdl=Red|Orange|Yellow|Other&chf=bg,s,00000000&chco=FF0000|FFAC30|FFEA30|858585

but this one works fine:

http://chart.apis.google.com/chart?chs=330x330&cht=p&chd=t:19,10,50,99&chdl=Red|Orange|Yellow|Other&chf=bg,s,00000000&chco=FF0000|FFAC30|FFEA30|858585

Since the Google Charts Image API is deprecated this may be their way of nudging users off the platform.