ChartCanvasAxis.Inverted

Syntax

Inverted: Boolean;

Description

The Inverted property indicates whether chart axis is inverted.

Comments

Use JSON to set the property value and the getInverted method to get the property value.

Available values:

Example

To execute the example, the HTML page must contain the Chart component named chart (see Example of Creating a Histogram). Invert the Y axis in the chart and set line width for the axis:

// Get Y axis of the chart
var axis = chart.getYAxis();
var settings = axis.getSettings();
// Invert this axis
settings.Inverted = true;
// Set axis width
settings.LineWidth = 5;
axis.setSettings(settings);
// Redraw the chart
chart.redraw(true);

After executing the example Y axis of the chart is inverted, line width equal to 5 pixels is set for the axis line:

See also:

ChartCanvasAxis