Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Generating Dynamic Graphs (for web)

Options
  • 16-01-2004 4:52pm
    #1
    Registered Users Posts: 1,278 ✭✭✭


    has anyone done anything along these lines - you've got an array with 10 values and need to plot them on a graph, say for example intensity of light versus wavelength or whatever.

    well i need to generate dynamic graphs based on user input (html form values). i have looked through web and Office Web Components (OWC) seems to be one way of generating such dynamic graphs via VBScript (creates a GIF file, which can later be deleted), but Microsoft's documentation on OWC is minimal.

    does anyone know of other chart generating software for use on web (can be called from vbscript and will create appropriate GIF), or indeed has anyone used OWC for creating graphs (is it good or bad) ?

    many thanks,
    jAH


Comments

  • Registered Users Posts: 19,396 ✭✭✭✭Karoma


    i'm sure there's a ton o' (JAVA) applets out there that'll do it...


  • Registered Users Posts: 1,278 ✭✭✭jArgHA


    that's what i thought but the only one I could find was The Dynamic Graph Utility, which isn't great and leaves a advertisement in top right corner.

    anyone know of other java applets that create dynamic graphs ?


  • Registered Users Posts: 629 ✭✭✭str8_away


    Do you really need to generate a GIF file?

    What about a static back ground (your graph grid)
    with smaller images on top of it (your points).

    You can simply use JavaScript with DOM to create such page
    and change the location of smaller images with info passed in by user.


  • Registered Users Posts: 1,186 ✭✭✭davej


    This is probably what you require. I've used it before and it works well.

    http://developer.netscape.com/docs/technote/javascript/graph/

    davej


  • Registered Users Posts: 629 ✭✭✭str8_away


    sample code
    <html>
    <body>
    <Div ><img id=mapIMG src='bk.jpg'>
    <div id=img1 style='position:absolute; left:100px; top:100px;'><img src='point.gif'></div>
    </Div>
    </body>
    </html>

    Simply change the value of left, top you can put the point at different location.
    I think this would be good for point graph ( X vs Y )


  • Advertisement
  • Registered Users Posts: 1,278 ✭✭✭jArgHA


    thanx for the tips, unfortunately don't think they solve my problem. i need to generate a line graph, not a bar chart which seems to be possible as suggested by davej via a javascript object. hadn't heard of this javascript object b4 btw, looks pretty easy to use but cannot generate line graphs.

    str8_away, i could prolly plot my points using your suggested method, but i really need the points joined up also. there simply has got to be an easier way to do this, maybe with an existing java applet which i cannot find

    i will probably use microsoft office web components (owc) if i cannot source such an applet, the only drawback is that software must be installed on the server (owc)...


  • Registered Users Posts: 629 ✭✭✭str8_away


    Have a look this page for JavaScript with DHTML
    http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm

    It can draw lines all over your page if you like. :D


  • Registered Users Posts: 885 ✭✭✭clearz


    I designed a website for an estate agent. In the software there was a checkbox. This could be checked if a sale had been aggreed on a property. If this was checked then on the website sale agreed would appear over the picture which was a standard Jpg. In order to do this I used a java servlet. The image was dynamically drawn using a Graphics object then outputted as a stream of bytes which the browser interpeted as a jpeg image. This servlet could be easily altered for what you are talking about. If you are interested in this method more info can be provided.
    SA.jpg


  • Registered Users Posts: 4,276 ✭✭✭damnyanks


    Coldfusion 5 or MX can't remember exactly (Think 5) Has a built in <cfgraph> tag. Check out macromedia / www.cfm-resources.com for more info :)


Advertisement