From: Robert Feldt Date: 2001-11-01T17:32:41+09:00 Subject: [ruby-talk:24059] Re: Creating charts from Ruby On Thu, 1 Nov 2001, Tobias Reif wrote: > > A bit ironic since I'm the author of a Ruby Dot binding. Check out graphr > > in Raa. And no C knowledge needed, I simply generate a text file that dot > > can understand. > > > O.K. great. (sorry, I forgot.) > No worries. > Can your tool be used to generate SVg charts like > > http://webdot.graphviz.org/cgi-bin/webdot/webdot/graphs/directed/unix.dot.dot.svg > > http://webdot.graphviz.org/cgi-bin/webdot/webdot/graphs/directed/shells.dot.dot.svg > > http://webdot.graphviz.org/cgi-bin/webdot/webdot/graphs/directed/triedds.dot.dot.svg > > , directly from Ruby, in a simple way? > > > I'd like to be able to (serversidedly) write something like > --- > require 'RubyDot' > > rdot = RubyDot.new > > out = rdot.graph {'dad' => 'girl', 'dad' => 'boy', 'grandma' => 'dad'}, 'svg' > > print out > --- > I mean, it's kinda tedious to generate the dot file, then syscall Dot to > generate the graphic. > Well its behind the scenes but yes it uses a system call so if your system can't handle that its not the right solution. You'd have to do a "real" binding for that. For my uses the current solution works. /Robert