---
metadata:
  - name: generator
    content: Diplodoc Platform v5.64.2
alternate:
  - https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/graphics.style.stroke.md
  - https://yandex.com/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/graphics.style.stroke.md
  - href: https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/graphics.style.stroke.md
    type: text/markdown
    title: Markdown version
  - href: https://yandex.com/dev/jsapi-v2-1/doc/en/llms.txt?revision=r21950234
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/jsapi-v2-1/doc/en/llms.txt?revision=r21950234

# graphics.style.stroke

Static object.

For changing line style. The value can be set by using the keys described below, or in array format. It is worth noting that in VML(IE<9) display mode, only keys may be used. Additionally, in the line style, the offset for beginning a dotted line can be set via the "offset" field.

[Fields](#properties-summary)

**Example:**

```javascript
strokeStyle: 'dot';
strokeStyle: [1,2];
strokeStyle: {
  style: 'dot',
  offset: 10
}
```

## Fields {#properties-summary}

#|
|| **Name** | **Type** | **Description** ||
|| [dash](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/graphics.style.stroke.md#dash) | | Dash ||
|| [dashdot](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/graphics.style.stroke.md#dashdot) | | Long dash - short dash ||
|| [dot](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/graphics.style.stroke.md#dot) | | Dots ||
|| [longdash](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/graphics.style.stroke.md#longdash) | | Long dashes ||
|| [longdashdot](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/graphics.style.stroke.md#longdashdot) | | Extra long dash - dot ||
|| [longdashdotdot](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/graphics.style.stroke.md#longdashdotdot) | | Long dash - dot - dot ||
|| [shortdash](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/graphics.style.stroke.md#shortdash) | | Short dashes ||
|| [shortdashdot](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/graphics.style.stroke.md#shortdashdot) | | Dash - dot ||
|| [shortdashdotdot](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/graphics.style.stroke.md#shortdashdotdot) | | Dash - dot - dot ||
|| [shortdot](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/graphics.style.stroke.md#shortdot) | | Dots with double spacing ||
|| [solid](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/graphics.style.stroke.md#solid) | | Solid line ||
|#

## Fields details {#field_detail}

### dash {#dash}

```javascript
dash
```

Dash

### dashdot {#dashdot}

```javascript
dashdot
```

Long dash - short dash

### dot {#dot}

```javascript
dot
```

Dots

### longdash {#longdash}

```javascript
longdash
```

Long dashes

### longdashdot {#longdashdot}

```javascript
longdashdot
```

Extra long dash - dot

### longdashdotdot {#longdashdotdot}

```javascript
longdashdotdot
```

Long dash - dot - dot

### shortdash {#shortdash}

```javascript
shortdash
```

Short dashes

### shortdashdot {#shortdashdot}

```javascript
shortdashdot
```

Dash - dot

### shortdashdotdot {#shortdashdotdot}

```javascript
shortdashdotdot
```

Dash - dot - dot

### shortdot {#shortdot}

```javascript
shortdot
```

Dots with double spacing

### solid {#solid}

```javascript
solid
```

Solid line