1e41f4b71Sopenharmony_ci# Graph Drawing 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci 4e41f4b71Sopenharmony_ciThe **<svg>** component can be used to draw simple shapes, such as rectangles, circles, and lines. For details about the supported shapes, see <svg>. 5e41f4b71Sopenharmony_ci 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ciIn this example, you can draw different shapes and stitch them to form a house graph. 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci 10e41f4b71Sopenharmony_ci```html 11e41f4b71Sopenharmony_ci<!-- xxx.hml --> 12e41f4b71Sopenharmony_ci<div class="container"> 13e41f4b71Sopenharmony_ci <svg width="1000" height="1000"> 14e41f4b71Sopenharmony_ci <polygon points="100,400 300,200 500,400" fill="red"></polygon> // Rooftop 15e41f4b71Sopenharmony_ci <polygon points="375,275 375,225 425,225 425,325" fill="orange"></polygon> // Chimney 16e41f4b71Sopenharmony_ci <rect width="300" height="300" x="150" y="400" fill="orange"> // Main body 17e41f4b71Sopenharmony_ci </rect> 18e41f4b71Sopenharmony_ci <rect width="100" height="100" x="180" y="450" fill="white"> // Window 19e41f4b71Sopenharmony_ci </rect> 20e41f4b71Sopenharmony_ci <line x1="180" x2="280" y1="500" y2="500" stroke-width="4" fill="white" stroke="black"></line> // Window frame 21e41f4b71Sopenharmony_ci <line x1="230" x2="230" y1="450" y2="550" stroke-width="4" fill="white" stroke="black"></line> // Window frame 22e41f4b71Sopenharmony_ci <polygon points="325,700 325,550 400,550 400,700" fill="red"></polygon> // Door 23e41f4b71Sopenharmony_ci <circle cx="380" cy="625" r="20" fill="black"></circle> // Doorknob 24e41f4b71Sopenharmony_ci </svg> 25e41f4b71Sopenharmony_ci</div> 26e41f4b71Sopenharmony_ci``` 27e41f4b71Sopenharmony_ci 28e41f4b71Sopenharmony_ci 29e41f4b71Sopenharmony_ci```css 30e41f4b71Sopenharmony_ci/* xxx.css */ 31e41f4b71Sopenharmony_ci.container { 32e41f4b71Sopenharmony_ci width: 100%; 33e41f4b71Sopenharmony_ci height: 100%; 34e41f4b71Sopenharmony_ci flex-direction: column; 35e41f4b71Sopenharmony_ci justify-content: center; 36e41f4b71Sopenharmony_ci align-items: center; 37e41f4b71Sopenharmony_ci background-color: #F1F3F5; 38e41f4b71Sopenharmony_ci} 39e41f4b71Sopenharmony_ci``` 40e41f4b71Sopenharmony_ci 41e41f4b71Sopenharmony_ci 42