# makeLine Type documentation

## TypeScript declaration

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

**Kind:** function

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

Creates a SVG path representing a line

Returns: SVG path string

```
string
```

```
makeLine(start: Coordinate, end: Coordinate): string
```

Creates a SVG path representing a line

Returns: SVG path string

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [start](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/utils/svg-math.ts#L66-L66>) | `Coordinate` |  | • Start coordinate |
| [end](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/utils/svg-math.ts#L66-L66>) | `Coordinate` |  | • End coordinate |

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