<% Poll.results %>
macro renders results of a poll as bar chart

Sourcecode in Poll/macros.js:
1:   function results_macro(param2) {
2:      for (var i=0; i<this.size(); i++) {
3:         var c = this.get(i);
4:         var param = new Object();
5:         param.title = c.title;
6:         param.count = c.size();
7:         param.percent = 0;
8:         if (param.count > 0) {
9:            param.percent = param.count.toPercent(this.votes.size());
10:           param.width = Math.round(param.percent * 2.5);
11:           param.graph = c.renderSkinAsString("graph", param);
12:           if (param.count == 1)
13:              param.text = " " + (param2.one ? param2.one : getMessage("Poll.votes.one"));
14:           else
15:              param.text = " " + (param2.more ? param2.more : getMessage("Poll.votes.more"));
16:        } else
17:           param.text = " " + (param2.no ? param2.no : getMessage("Poll.votes.no"));
18:        c.renderSkin("result", param);
19:     }
20:     return;
21:  }