Version 24.2 (latest)

Configuring Axis Scale

The igFinancialChart control allows you to choose if the data in your charts is mapped logarithmically along the y-axis.

In this topic

This topic contains the following sections:

Logarithmic Axis

In the igFinancialChart control, you can modify the logarithmic display behavior of the y-axis with these options:

Option Name Value Type Description

bool

Whether the y-axis should use a logarithmic scale instead of a linear one. The default value is false.

number

The base value to use in the log function when mapping the position of data items along the y-axis.
This is effective only when yAxisIsLogarithmic is true.

Code Snippet

The following code example shows how to set the yAxisIsLogarithmic and yAxisLogarithmBase options:

In JavaScript:

$(".selector").igFinancialChart({
    dataSource: data,
    yAxisIsLogarithmic: true,
    yAxisLogarithmBase: 4
});

View on GitHub