Results 1 to 3 of 3
  1. #1
    santana is offline Member
    Join Date
    Oct 2009
    Posts
    2
    Rep Power
    0

    Default how can I display more then one Java Graph

    how can I display the same Java Graph more then once on the same HTML page. Everytime I add another graph using the same code on the same HTML page only one graph will show. Here is the code that I have:

    <html>
    <head>
    <title>Graph</title>
    <body>
    <title>Data</title>
    <p align="center">&nbsp;</p>
    <p align="center"><font size="4"><b>test</b></font></p>
    <center>
    <script type="text/javascript" src=".\JavaFiles\wz_jsgraphics.js">
    </script>
    <script type="text/javascript" src=".\JavaFiles\line.js">
    </script>
    <div id="lineCanvas" style="overflow: auto; position:center;height:300px;width:800px;"></div>
    <script type="text/javascript">
    var g = new line_graph();
    g.add(' 1.0',197);
    g.add(' 2.0',721);
    g.add(' 3.0',852);

    g.render("lineCanvas","test");
    </script>
    <p align="left"><font size="2"><b>Test </b></font></p>
    </body>

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    Java != Javascript.
    You got the wrong forum.

  3. #3
    santana is offline Member
    Join Date
    Oct 2009
    Posts
    2
    Rep Power
    0

Similar Threads

  1. Display graph in tabbed panel
    By Laura Warren in forum New To Java
    Replies: 3
    Last Post: 01-12-2009, 11:34 PM
  2. java graph 3d library?
    By novata in forum New To Java
    Replies: 1
    Last Post: 10-06-2008, 12:14 AM
  3. java graph 3d library?
    By novata in forum AWT / Swing
    Replies: 0
    Last Post: 10-06-2008, 12:00 AM
  4. java graph 3d library?
    By novata in forum New To Java
    Replies: 4
    Last Post: 10-05-2008, 11:55 PM
  5. Java chart & graph lib
    By saturdaybugs in forum Java 2D
    Replies: 1
    Last Post: 04-24-2008, 01:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •