Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Dec 2003
    Location
    America
    Posts
    544
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Did you know you could draw diagrams with JavaScripts?

    I was going to the Documentation thread of this section, and i saw a link that lead me to a rather interesting site. Here's the link:
    http://home.t-online.de/home/lutz.ta...roduction.html

    At any rate, i did not know you could do diagrams with JavaScript. Imagine that.

    Here's an example of the methods that can be used:

    Code:
    <script language="">
    
    document.open();
    
    var D = new Diagram();
    
    D.setFrame( 80, 160, 420, 360 );
    D.setBorder( 10, 50, 0, 4 );
    D.setText( "X-Lavel" , "Y-Label" , "Title" );
    D.setGridColor( "#44cc44" );
    D.Draw( "#80ff80" , "#0000ff" , true, "Click On Me!" , "DiagramClick()" );
    
    document.close();
    
    function DiagramClick() {
      alert( "Use your own function here!" );
    }
    </script>
    Pretty little fish, isn't she?
    LovesWar

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    1,137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    all it is that someone has written a script to provide a platform for them to easily make charts.

    scroots
    Spammers next time you spam me consider the implications:
    (1) that you will be persuaded by me(in a legitimate mannor)
    (2)It is worthless to you, when i have finished

  • #3
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i believe there's an ancient script on DevEdge for creating diagrams using JS.

    however, you could use JS to invoke SVG commands, and create diagrams, such as pie charts like that.


  •  

    Posting Permissions

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