| 
<?php 
 include_once("../d3.classes.inc.php"); // download the required d3 package
 include_once("../raphael.class.inc.php");
 
 raphael(array(10,50,320,200))
 ->createVar("paper")
 ->toStack("paper");
 
 stack()->get("paper")->get()
 ->circle(50,40,10)
 ->createVar("circle")
 ->toStack("circle");
 stack()->get("circle")->get()
 ->attr("fill", "#f00")
 ->colon()->linebreak()->toStack();
 stack()->get("circle")->get()
 ->attr("stroke", "#fff")
 ->colon()->linebreak()->toStack();
 
 
 echo stack()->getInstance();
 |