Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Windows
 ActiveX Controls
 Y Axis 2 major tick values

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List

* Forum Code is ON
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]


T O P I C    R E V I E W
jfgibson Posted - 23 Dec 2004 : 13:39:23
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
3   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 28 Dec 2004 : 10:57:42
Point the second x-axis tick marks down using the AxisTickStyle propery.

CTWX1.AxisTickStyle(X_AXIS2) = POS_BELOW

jfgibson Posted - 28 Dec 2004 : 09:14:31
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
quinncurtis Posted - 24 Dec 2004 : 16:04:16
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.

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07