Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Survey Graphs

Survey Graphs

Scheduled Pinned Locked Moved The Lounge
tutorialquestion
3 Posts 3 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Loren Brewer
    wrote on last edited by
    #1

    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! :):):)

    J P 2 Replies Last reply
    0
    • L Loren Brewer

      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! :):):)

      J Offline
      J Offline
      Jon Sagara
      wrote on last edited by
      #2

      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!"

      1 Reply Last reply
      0
      • L Loren Brewer

        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! :):):)

        P Offline
        P Offline
        peterchen
        wrote on last edited by
        #3

        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]

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups