ChartCanvasAxis.IsLogarithmic

Syntax

IsLogarithmic: Boolean;

Description

The IsLogarithmic property determines whether the chart axis is logarithmic.

Comments

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

Available values:

Example

Executing the example requires that the HTML page contains the Chart component named chart (see Example of Creating a Scatter Chart). Convert the Y axis into a logarithmic axis:

// Get Y axis of the chart
var yAxis = chart.getYAxis();
// Specify that the axis is a logarithmic one
var settings = yAxis.getSettings();
settings.IsLogarithmic = true;
yAxis.setSettings(settings);
// Redraw the chart
chart.redraw(true);

After executing the example the Y axis becomes a logarithmic axis:

See also:

ChartCanvasAxis