Survey Graphs
-
I'm aware that certain parts of the CP site are available for download and use (the forum code, for example). But I was unable to find anything on those sexy graphs for the survey results. (The ones that show the number of votes for each possible answer, the total number of votes, and the bar graphs that go with.) Does anyone know if code for the generation of these graphs is available for download, and if so where I would be able to find it? Thanks! :):):)
-
I'm aware that certain parts of the CP site are available for download and use (the forum code, for example). But I was unable to find anything on those sexy graphs for the survey results. (The ones that show the number of votes for each possible answer, the total number of votes, and the bar graphs that go with.) Does anyone know if code for the generation of these graphs is available for download, and if so where I would be able to find it? Thanks! :):):)
Not that I know of. However, the code is fairly straightforward to write yourself. If you want a pre-packaged solution, you can find similar scripts at http://www.hotscripts.com[^]. Just look for Poll or Survey scripts. Jon Sagara "Shut up brain, or I'll stab you with a Q-Tip!"
-
I'm aware that certain parts of the CP site are available for download and use (the forum code, for example). But I was unable to find anything on those sexy graphs for the survey results. (The ones that show the number of votes for each possible answer, the total number of votes, and the bar graphs that go with.) Does anyone know if code for the generation of these graphs is available for download, and if so where I would be able to find it? Thanks! :):):)
Looks easy to do - just make one picture, one pixel wide, and adjust the width by script - i.e. and use a [img src="bar.gif" width="<%=100*number_of_people_who_like_c_sharp_on_their_desktop/no_of_ppl__bored_enough_to_clicking_on_CP_polls%>"] This would make the 100% bar 100 pixels wide - if you need something different, just change the number [edit] Edited after being proven that long variable names are bad :cool: [/edit]
You don't need to sleep to see a nightmare Anne Clark [sighist]