deviantART: Pie Chart Polls

By SD-DAken Last update May 13, 2009 — Installed 141 times. Daily Installs: 0, 0, 0, 0, 0, 1, 3, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 1, 1, 0
Script Summary:
Displays the polls on deviantart.com as a pie charts (circle graphs) instead of a bar charts.

This script has no discussions.

start the discussion

This script has no reviews.

Custom Colors:

If you want to use your own colors, you have to do this:
  1. Search the line: chartColors = new Array('#FF530A');
    (it's near the end of the file)
  2. Either: Change '#FF530A' to another value, e.g. chartColors = new Array('#11530A'); if you want shades of green instead of orange.
    Or: Add additional colors to the array, e.g. chartColors = new Array('#FFFF00','#FF530A','#FF0000'); if you want to use the colors yellow, orange and red...
  3. Safe the File


Before:
Image Hosted by ImageShack.us

After:
Image Hosted by ImageShack.us

Update (13th May 2009):
-Feature: The script supports images (e.g. smileys) and links inside the captions now.

Update (9th Apr 2009):
-Bugfix: If you voted on a poll it didn't automatically change the bar chart to a pie chart.
It only changed it automatically if you had voted on the poll before or if you reloaded the page after you voted.
This should be fixed now, i.e. it changes the bar chart automatically to a pie chart after you voted, you don't have to reload the page.
-Feature: Allow custom colors.