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.
Unfortunately, activation email could not send to your email. Please try again.

Minor grid lines when setting min / max

Thread ID:

Created:

Updated:

Platform:

Replies:

127057 Oct 23,2016 03:58 PM Oct 24,2016 06:03 AM Xamarin.iOS 1
loading
Tags: SfChart
Stephen Martin
Asked On October 23, 2016 03:58 PM

Hi all,
I'm trying to create a simple line chart using numeric x and y axes. I would like to have minor grid lines visible, and as long as I let the axes autorange, everything seems to work correctly. However, as soon as I try to manually set the minimum and/or maximum range for an axis, the minor grid lines disappear. Is this the intended behavior? Is there a way to manually set the range of the axis and also display minor grid lines?

As an example, this correctly displays major lines every 100 units, and 9 minor lines between each major line:
         ChartAxisTitle primaryTitle = new ChartAxisTitle();
            primaryTitle.Text = "X-Axis";
            NumericalAxis primaryAxis = new NumericalAxis();
            primaryAxis.Title = primaryTitle;
            primaryAxis.Interval = 100;
            primaryAxis.MinorTicksPerInterval = 9;
            primaryAxis.ShowMinorGridLines = true;
            chart.PrimaryAxis = primaryAxis;


This, however, displays the major lines spaced 100 units apart, from 0 to 500, but does not display any minor lines or ticks:
            ChartAxisTitle primaryTitle = new ChartAxisTitle();
            primaryTitle.Text = "X-Axis";
            NumericalAxis primaryAxis = new NumericalAxis();
            primaryAxis.Title = primaryTitle;
            primaryAxis.Interval = 100;
            primaryAxis.MinorTicksPerInterval = 9;
            primaryAxis.ShowMinorGridLines = true;
            primaryAxis.Maximum = 500;
            primaryAxis.Minimum = 0;
            chart.PrimaryAxis = primaryAxis;


Jaikrishna Chandrasekar [Syncfusion]
Replied On October 24, 2016 06:03 AM

Hi Stephen,

We have created a support incident under your account to track the status of this query. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents  


Regards,
Jaikrishna C

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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.

;