Script Summary: Displays the polls on deviantart.com as a pie charts (circle graphs) instead of a bar charts.
Custom Colors:If you want to use your own colors, you have to do this:
- Search the line: chartColors = new Array('#FF530A');
(it's near the end of the file)
- 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...
- Safe the File
After:Update (7th Mar 2011):
- Bugfix: Fixed an issue with polls, which have more than 999 votes for one option.
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.