Documentation
Reference
2.1.50 (current version)
collection
interactivityModel
Interfaces

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

graphics.style.stroke()

Example:

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

Fields

NameTypeDescription
dash

Dash

dashdot

Long dash - short dash

dot

Dots

longdash

Long dashes

longdashdot

Extra long dash - dot

longdashdotdot

Long dash - dot - dot

shortdash

Short dashes

shortdashdot

Dash - dot

shortdashdotdot

Dash - dot - dot

shortdot

Dots with double spacing

solid

Solid line

Fields details

dash

dash

Dash

dashdot

dashdot

Long dash - short dash

dot

dot

Dots

longdash

longdash

Long dashes

longdashdot

longdashdot

Extra long dash - dot

longdashdotdot

longdashdotdot

Long dash - dot - dot

shortdash

shortdash

Short dashes

shortdashdot

shortdashdot

Dash - dot

shortdashdotdot

shortdashdotdot

Dash - dot - dot

shortdot

shortdot

Dots with double spacing

solid

solid

Solid line