Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net
 Real-Time Graphics Tools for .Net (VB and C#)
 Axis tick labels
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sajimenez

14 Posts

Posted - 15 Jul 2011 :  08:05:21  Show Profile  Reply with Quote
Hi, I have a numeric axis, I want to see a label every number of ticks. For example, I have labels in 5, 10, 15, but I want labels in 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15.

How can I do this?

Thank you in advance.

sajimenez

quinncurtis

1586 Posts

Posted - 15 Jul 2011 :  14:22:28  Show Profile  Reply with Quote
The scaling you show is what you would get if you rely on the auto-axis of the default LinearAxis constructor. It will change obviously, depending on the range. If you want to change it to what you describe:

For the x-axis

LinearAxis xAxis = new LinearAxis(pTransform1, ChartObj.X_AXIS);
xAxis.AxisTickSpace = 1;
xAxis.AxisMinorTicksPerMajor = 1;
chartVu.AddChartObject(xAxis);


The manual describes these parameters and the Axis chapter.
Go to Top of Page

sajimenez

14 Posts

Posted - 20 Jul 2011 :  12:11:35  Show Profile  Reply with Quote
Thank you, you are right, It works. Now, the problem is that I am using auto-scale.. Is there a way to do what I want?

Thank you.

sajimenez
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07