PCAxis.X

Syntax

X: Number;

Description

The X property determines X coordinate of the chart axis.

Comments

Use JSON or the setX method to set the property value, and the getX method to get the property value.

Example

Executing the example requires the ParallelCoordinates component named coord (see Example of Creating the ParallelCoordinates Component). Get X coordinates of chart axes:

// Get X coordinates of chart axes
console.log("X coordinates of chart axes:");
for (var i = 0; i < coord.getAxes().length; i++) {
    console.log(coord.getAxes()[i].getX());
}

After this X coordinates of chart axes are displayed in the console:

X coordinates of chart axes:

4

290

576

See also:

PCAxis