1e41f4b71Sopenharmony_ci# ellipse 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci 4e41f4b71Sopenharmony_ci> **NOTE** 5e41f4b71Sopenharmony_ci> 6e41f4b71Sopenharmony_ci> This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. 7e41f4b71Sopenharmony_ci 8e41f4b71Sopenharmony_ciThe **\<ellipse>** component is used to draw oval shapes. 9e41f4b71Sopenharmony_ci 10e41f4b71Sopenharmony_ci## Required Permissions 11e41f4b71Sopenharmony_ci 12e41f4b71Sopenharmony_ciNone 13e41f4b71Sopenharmony_ci 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ci## Child Components 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ciThe following are supported: [\<animate>](js-components-svg-animate.md), [\<animateMotion>](js-components-svg-animatemotion.md), and [\<animateTransform>](js-components-svg-animatetransform.md). 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ci 20e41f4b71Sopenharmony_ci## Attributes 21e41f4b71Sopenharmony_ci 22e41f4b71Sopenharmony_ciThe [universal attributes](js-components-svg-common-attributes.md) and the attributes listed below are supported. 23e41f4b71Sopenharmony_ci 24e41f4b71Sopenharmony_ci| Name| Type| Default Value| Mandatory| Description| 25e41f4b71Sopenharmony_ci| -------- | -------- | -------- | -------- | -------- | 26e41f4b71Sopenharmony_ci| id | string | - | No| Unique ID of the component.| 27e41f4b71Sopenharmony_ci| cx | <length>\|<percentage> | 0 | No| X-coordinate of the oval shape. Attribute animations are supported.| 28e41f4b71Sopenharmony_ci| cy | <length>\|<percentage> | 0 | No| Y-coordinate of the oval shape. Attribute animations are supported.| 29e41f4b71Sopenharmony_ci| rx | <length>\|<percentage> | 0 | No| Radius of the oval shape on the x-axis. Attribute animations are supported.| 30e41f4b71Sopenharmony_ci| ry | <length>\|<percentage> | 0 | No| Radius of the oval shape on the y-axis. Attribute animations are supported.| 31e41f4b71Sopenharmony_ci 32e41f4b71Sopenharmony_ci 33e41f4b71Sopenharmony_ci## Example 34e41f4b71Sopenharmony_ci 35e41f4b71Sopenharmony_ci```html 36e41f4b71Sopenharmony_ci<!-- xxx.hml --> 37e41f4b71Sopenharmony_ci<div class="container"> 38e41f4b71Sopenharmony_ci <svg fill="white" width="400" height="400"> 39e41f4b71Sopenharmony_ci <ellipse cx="60" cy="200" rx="50" ry="100" stroke-width="4" fill="red" stroke="blue"></ellipse> 40e41f4b71Sopenharmony_ci <ellipse cx="220" cy="200" rx="100" ry="50" stroke-width="5" stroke="red" stroke-dasharray="10 5" stroke-dashoffset="3"></ellipse> 41e41f4b71Sopenharmony_ci </svg> 42e41f4b71Sopenharmony_ci</div> 43e41f4b71Sopenharmony_ci``` 44e41f4b71Sopenharmony_ci 45e41f4b71Sopenharmony_ci 46e41f4b71Sopenharmony_ci 47