We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set range for log axis?

Platform: WinForms |
Control: Chart
Tags: chart

To set a range for the WinForms charts in logarithmic axis, specify the range in logarithmic value. Check the following code snippet for setting a range for logarithmic axis.

By default, the labels of y-axis will be rendered with respect to the specified range. To get the output of y-axis labels in 10 power format, specify the LogLabelsDisplayMode property to IntegerLogValues, so that the y-axis labels will be rendered in 10 multiples, i.e. 100, 1000, 10000, etc. with respect to the specified range. Check the following code snippet to get the output of the y-axis labels 10 power format.


this.chart.PrimaryYAxis.LogLabelsDisplayMode = LogLabelsDisplayMode.IntegerLogValues;


Chart with y-axis in 10power format in WinForms charts


Sample: logaxis-sample

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile