Graphics

 View Only
  • 1.  Data Displayed Graphically

    Posted 11-14-2013 23:05
    Hardworking Ross guys and gals,

    We are working on incorporating a live poll into our television broadcast and I'd like to script a bar graph to the results. I'm getting the data as totals: Answer A = '8'0, Answer B= '120'. I can figure out how to script a quad's height to be equal to the total, but what I'd like to do is a bit more complicated that that, and that's why I'm calling in to the big guns for help.

    I'd like my poll to show in real time the percentage out of 100. So using the same totals as above, Answer A would show 40% of the viewers think this, and Answer B would show 60% of the viewers think that.

    Does that make sense. Thank you,


  • 2.  RE: Data Displayed Graphically

    Posted 11-14-2013 23:45
    Hi Bryan,

    If you already know how to script the quad's height to match the values I'm not too sure what part you need help with.

    It sounds like the only difference would be that you need to do a little math to first add up the two totals and then figure out the percentage i.e. 80 / (80+120) * 100 = 40%.

    You say you want to do this in realtime. Where is the realtime data coming from, datalinq?

    Your script would probably need to go into the OnRender script handler.

    #XPression


  • 3.  RE: Data Displayed Graphically

    Posted 11-15-2013 00:54
    Thanks Brian, the OnRender tip will be the most helpful. I will admit that although my math and coding talents are not where I'd like them to be, I did know how to do the calculation with numbers. The part i was unsure of was on what object would I pull in the data fields to do the calculation. Again, I am very green with scripting.

    Thanks for the quick response.

    #XPression


  • 4.  RE: Data Displayed Graphically

    Posted 11-15-2013 02:40
    Once you have the template designed, just send us a copy and we can certainly help you with the scripting part of it.

    Without knowing exactly what objects you'll have and how you want them to interact its a bit hard to give you suggestions, but once we see the template it should be straightforward to give you a sample script.

    #XPression