graphics-simple-source.mustache revision 5e878519d1a8afcc3b0c5d9aa68d4751ed294c86
<div id="mygraphiccontainer"></div>
<script>
YUI().use('graphics', function (Y)
{
//create a graphic instance
var mygraphic = new Y.Graphic({autoSize:true, render:"#mygraphiccontainer"});
//create an ellipse with getShape
var myellipse = mygraphic.getShape({
type: "ellipse",
fill: {
color: "#9aa"
},
stroke: {
weight: 2,
color: "#000"
},
width: 150,
height: 100,
x: 35,
y: 35
});
});
</script>