GraphViz Widget

From Hexten

Jump to: navigation, search

The GraphViz widget is currently (very) alpha. I'm using it to experiment with the idea of Widgets that generate content that is not part of the page (typically images) and working out how to handle the caching of such images, where they should be stored - things like that.

[edit] Example

 
  <widget type="graphviz" style="dot">
    digraph G { 
    	size = "4,4"; 
    	main[shape = box];
    	main -> parse[weigh=8]; 
    	parse -> execute; 
    	main -> init[style=dotted]; 
    	main -> cleanup; 
    	execute -> {make_string; printf} 
    	init -> make_string; 
    	edge[color = green];
    	main -> printf[style = bold, label = "100 times"]; 
    	make_string [label = "make a\nstring"]; 
    	node[shape=box, style=filled, color=".7 .31 .0"]; 
    	execute -> compare; 
    } 
  </widget>
  

Gives

Graph

Here's another

Graph

Personal tools
Mongers