Edit this page

kendo.dataviz.diagram.Line

This represents a single, straight line.

Configuration

stroke Object

Defines the stroke configuration.

stroke.color String

Defines the line color.

stroke.width Number

Defines the line width.

from Object

The first point of the line.

x Number

The X position of first point.

y Number

The Y position of first point.

to Object

The second point of the line.

x Number

The X position of second point.

y Number

The Y position of second point.

Fields

drawingElement kendo.drawing.Path

The drawing element used to draw the line.

Methods

position

Get or sets the element position.

Parameters

offset kendo.dataviz.diagram.Point

The origin of the element.

rotate

Rotates the element with the specified parameters.

Parameters

angle Number

The angle of rotation in decimal degrees. Measured in clockwise direction with 0 pointing "right". Negative values or values greater than 360 will be normalized.

center kendo.dataviz.diagram.Point

The center of rotation.

visible

Gets or sets the visibility of the current element.

Parameters

visible Boolean

The new visibility state.

Returns

Boolean True if the element is visible, false otherwise.

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy