Minor grid will disappear when I move the chart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Mike B
Newbie
Newbie
Posts: 7
Joined: Wed Sep 07, 2005 4:00 am

Minor grid will disappear when I move the chart

Post by Mike B » Tue Jun 09, 2009 2:48 am

Below code is to show the grid and minor grid on the teechart, ifI move the chart, when the grid is near the left axis, the minor grid will disappear, I want to know how to fix this issue. I want to show all the grid all the time.

Steema.TeeChart.Styles.Line line = new Styles.Line(Tchart01.Chart);
double x = 0;

while (x < 0.3)
{
line.Add(x, Math.Cos(x));
x += 0.001;
}

Tchart01.Aspect.View3D = false;
Tchart01.Axes.Bottom.Increment = 0.2;
Tchart01.Axes.Bottom.MinorTickCount = 4;
Tchart01.Axes.Bottom.Grid.Visible = true;
Tchart01.Axes.Bottom.MinorGrid.Visible = true;
Tchart01.Axes.Bottom.Grid.Width = 3;
Tchart01.Axes.Bottom.MinorGrid.Width = 1;
}

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Tue Jun 09, 2009 9:59 am

Hi Mike,

This happens when only one label is displayed in the bottom axis. The chart needs two labels to divide the space between MinorTickCount to determine minor tick positions.
So when there is only one label displayed, the chart can't do this calculation.
I've added this to the wish list to be enhanced for future releases (TF02014224). In the meanwhile, if possible, you could adjust your increment to ensure that always there are two labels drawn in the axis.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply