# makeArc Type documentation

## TypeScript declaration

### [makeArc](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/utils/svg-math.ts#L38-L58>)

**Kind:** function

```
import { makeArc } from '@siemens/native-charts-ng/utils';
```

Creates a SVG path representing an arc

Returns: SVG path string

```
string
```

```
makeArc(center: Coordinate, radius: number, startAngle: number, endAngle: number): string
```

Creates a SVG path representing an arc

Returns: SVG path string

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [center](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/utils/svg-math.ts#L39-L39>) | `Coordinate` |  | • Center of circle in cartesian coordinate |
| [radius](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/utils/svg-math.ts#L40-L40>) | `number` |  | • Radius of circle |
| [startAngle](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/utils/svg-math.ts#L41-L41>) | `number` |  | • Start angel in degrees |
| [endAngle](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/utils/svg-math.ts#L42-L42>) | `number` |  | • End angel in degrees |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

### Types Documentation

### [Coordinate](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/utils/svg-math.ts#L10-L13>)

**Kind:** interface

```
import type { Coordinate } from '@siemens/native-charts-ng/utils';
```

Cartesian coordinate

```
interface Coordinate
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [x](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/utils/svg-math.ts#L11-L11>) | `number` |  |
| [y](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/utils/svg-math.ts#L12-L12>) | `number` |  |
