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