position

Specifies the position of the top-left corner of a component in terms of pixels, where the top-left corner of the Dashboard is (0,0). Fractional values for vertical and horizontal position are rounded down to the next lowest integer. This property does not take effect in the design view of Visual Composer and does not apply to components within a Selection Container.

Type

java.awt.Point

java.awt.Point(horizontal,vertical)

Example

// Table with top-left corner 400 pixels right, 90 pixels down
TableView1.position = java.awt.Point(400,90)

// Chart with top-left corner at 200 pixels right, 25 pixels down
Chart1.position = java.awt.Point(200,25)

Either syntax below can be used in component script:

position               // unqualified
Component1.position    // qualified

For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required.