Version

Configuring Axis Scale

The XamFinancialChart 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 XamFinancialChart control, you can modify the logarithmic display behavior of the y-axis with these properties:

Property Name Value Type Description

bool

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

int

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 properties:

In XAML:

<ig:XamFinancialChart x:Name="chart"
    YAxisIsLogarithmic="True"
    YAxisLogarithmBase="4">
</ig:XamFinancialChart>

In C#:

var chart = new XamFinancialChart();
chart.YAxisIsLogarithmic = true;
chart.YAxisLogarithmBase = 4;

In Visual Basic:

Dim chart = New XamFinancialChart()
chart.YAxisIsLogarithmic = True
chart.YAxisLogarithmBase = 4