Forest Luis (luis_mw) wrote in suggestions,
Forest Luis
luis_mw
suggestions

Make it possible to display other results in the same way as polls

Title
Make it possible to display other results in the same way as polls

Short, concise description of the idea
If I had some "statistics" I wanted to put in my journal, it would be nice to be able to display this graphically, in the same way that polls results are displayed.

Full description of the idea
If I set up a poll, asking my friends to indicate their age range, I can go to "View Results" and see that represented as a bar graph.


However, if I had that information by other means, I could only display it as text.


Given that code clearly exists in the polling system to generate the bar graphs, it would be nice if that could be made available to users, perhaps as LJ tags.

An ordered list of benefits
  • Gives users a simple way to display numeric information
  • Gives users access to graphical representation
  • Gives the above without having to access graphics from Scrapbook, embedded images or elsewhere
  • Gives the above without accessing off-site code generators

An ordered list of problems/issues involved
  • Possible issues with range control since values given are not necessarily in the typical ranges generated by a poll.
  • Possible issues with error control, where user data does not add up.
  • Type of data may have to be limited (e.g. integer only)
  • Error handling would have to be carefully thought out - e.g. do you just throw back an error "your results don't add up", or just accept the data and display an "out of range" bar...


An organized list, or a few short paragraphs detailing suggestions for implementation
  • Set up a series of LJ tags - as a minimum, open and closing tags for the graph, and tags for each "line" in the graph. e.g.
  • < lj graph title="this is my graph", range="1..100" >
  • Sets up a graph with the given title and a range so that the bars can be proportioned correctly.
  • Possible options - style= (vertical/horizontal etc?)
  • And < lj bar legend="friends over 40", value=22 >
  • Makes a bar entry labelled friends over 40, and with length around a 1/4 of the total length (i.e. 22 is nearly a quarter of the specified range of 100)
  • Possible options style="round/square/hollow" (if such options were available for the appearance of the bar), color="red", if it were possible to select different colours for bars.
Tags: polls, statistics, § rejected
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 12 comments