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