# makePolyline Type documentation

## TypeScript declaration

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

**Kind:** function

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

Creates a SVG path representing a poly line

Returns: SVG path string for a polyline

```
string
```

```
makePolyline(points: Coordinate[]): string
```

Creates a SVG path representing a poly line

Returns: SVG path string for a polyline

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [points](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/utils/svg-math.ts#L75-L75>) | `Coordinate[]` |  | • Object array with x y coordinates |

**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` |  |
