Add pie chart in evote project

20 views
Skip to first unread message

Gaurav Parashar

unread,
Apr 30, 2017, 10:20:05 AM4/30/17
to web2py-users
I was learning web2py , so I decided to modify this project a bit :

https://github.com/mdipierro/evote

The modifications I want to make are :

1) Add a pie chart or bar graph which represents the final election result.

2) instead of adding the email ID for any election by typing it manually, I want to create a drop down menu to select from available voters.

Can anyone please help ! Thanks a lot :)

Marlysson Silva

unread,
Apr 30, 2017, 12:36:48 PM4/30/17
to web2py-users
At case one what you already done?

You would have a view that return a json with voting data..

And use a ajax request to this view..
Using the structure's lib.

I recommend the chartjs.

Basically you will use the simplejson to format that dal data and use in view this json formatted..

Reply all
Reply to author
Forward
0 new messages