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 Windows
 ActiveX Controls
 Y Axis 2 major tick values
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jfgibson

10 Posts

Posted - 23 Dec 2004 :  13:39:23  Show Profile  Reply with Quote
I am using Visual Studio 6 with the CTWX.OCX charting control. In manually specifying Y Axis attributes (for reasons discussed in previous forum messages), I have found that I cannot fully control the major tick values of Y Axis 2. See the screenshot graphic below. If I specify a minimum axis 2 value of 140000, I get the desired tick value if Y Axis 1 starts at zero. But if Y Axis 1 starts at a different value, Y Axis 2 tick values are biased by that Y Axis 1 min value. The call m_GraphControl.SetAxisMin(Y_AXIS2, lowVal) where lowVal=140000 results in the first major tick value being 140000 plus the min Y Axis 1 value. In all cases the major tick interval is set to 20000. It does not appear that I can control the X Axis 1 intercept with respect to Y Axis 2, correct? If so, is there anything I can do to work around this? The ultimate objective is to produce major tick values that are nice round numbers for human interpretation / interpolation of the data.



Jim Gibson

quinncurtis

1164 Posts

Posted - 24 Dec 2004 :  16:04:16  Show Profile  Reply with Quote
You should be able to use the second x-axis to set the starting values of the second y-axis. Enable and give the second x-axis the same property values as the first, but give it an intercept that is the starting value of the second y-axis. This should result in it overlaying the first x-axis exactly. It should cause the tick marks of the second y-axis to start at the intercept value.
Go to Top of Page

jfgibson

10 Posts

Posted - 28 Dec 2004 :  09:14:31  Show Profile  Reply with Quote
That worked great. Thanks! The only evidence that there is a second X axis is the raised major tick marks (which I can probably offset to make them invisible) but I think it looks very good just the way it is. I think I finally got there!



Jim Gibson
Go to Top of Page

quinncurtis

1164 Posts

Posted - 28 Dec 2004 :  10:57:42  Show Profile  Reply with Quote
Point the second x-axis tick marks down using the AxisTickStyle propery.

CTWX1.AxisTickStyle(X_AXIS2) = POS_BELOW

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