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.
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.
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!