HighDots Forums  

Re: creating graphs in javascript/etc

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: creating graphs in javascript/etc in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Thomas 'PointedEars' Lahn
 
Posts: n/a

Default Re: creating graphs in javascript/etc - 06-15-2008 , 04:01 PM






रवींदर *ाकुर (ravinder thakur) wrote:
Quote:
i am trying to dynamically create graphs in browsers(as in graph
theory, something like this http://sawamuland.com/flash/graph.html ,
not like excel graphs) but i am unable to find any starting point.

are there some tutorials/libraries to do the same ? i am ok to develop
these in javascript/xhtml/flash/etc as long as this can be done
dynamically.
Since this is about graphs, (X)HTML and JavaScript (alone) are not what you
are looking for: (X)HTML is the (Extensible) Hyper*Text* markup language,
and ECMAScript implementations like JavaScript require an external API to be
useful. Although one could devise (or copypaste) a dirty, inefficient,
resource-consuming hack to draw arbitrary edges and vertices with positioned
block elements, the HTML DOM API is not suited to do what you want.

Instead, standalone or embedded SVG, Flash, and Java are probably the way to
go. SVG and Flash can be scripted with ECMAScript implementations; SVG with
JIT-compiled scripts, Flash with (probably) once-compiled ActionScript in an
..swf movie. As for Java, AFAIK the Java API already provides the necessary
graphic-related classes by itself to draw on the canvas of an applet or an
application window, and to handle pointing devices.


HTH

PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$8300dec7 (AT) news (DOT) demon.co.uk>


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.