Edit this page

Logarithmic Scale

If you have a very large range of values on the Y-Axis, the points with the smallest values may not be easily visible. This is because the scale for the Y-Axis will be linear. In this case you can scale the Y-Axis logarithmically, so there is enough space for each value. The logarithmic scaling is calculated automatically, you just have to set the IsLogarithmic property of the YAxis to True.

Here is an example of a RadChart that visualizes the following values - 10, 100, 1000, 10000, 100000, 1000000.

<telerik:RadChart x:Name="radChart" />

this.radChart.ItemsSource = new int[] { 10, 100, 1000, 10000, 100000, 1000000 };
Me.radChart.ItemsSource = New Integer() {10, 100, 1000, 10000, 100000, 1000000}

Here is the same RadChart, but this time with logarithmic Y-Axis.

<telerik:RadChart>
    <telerik:RadChart.DefaultView>
        <telerik:ChartDefaultView>
            <telerik:ChartDefaultView.ChartArea>
                <telerik:ChartArea>
                    <telerik:ChartArea.AxisY>
                        <telerik:AxisY IsLogarithmic="True" />
                    </telerik:ChartArea.AxisY>
                </telerik:ChartArea>
            </telerik:ChartDefaultView.ChartArea>
        </telerik:ChartDefaultView>
    </telerik:RadChart.DefaultView>
</telerik:RadChart>

this.radChart.DefaultView.ChartArea.AxisY.IsLogarithmic = true;
Me.radChart.DefaultView.ChartArea.AxisY.IsLogarithmic = True

You can use the LogarithmBase property of the AxisY to modify the base on which the logarithmic function for the axis is calculated.