User (Legacy) Posted August 31, 2005 Report Share Posted August 31, 2005 I am trying to use scientific notation format for an Y or Y2 axis and specify the number of decimal places to show. This is how I am doing it... VARIANT vFormat; V_VT(&vFormat) = VT_I4; V_I4(&vFormat) = AF_SCIENTIFIC; pGraph->Axis->Item[AXIS_Y]->Format = vFormat; pGraph->Axis->Item[AXIS_Y]->Decimals = 4; This doesn't work as expected though. I get scientific notation numbers but with 0 decimals. Is there another way to do this? Thanks, Diana Quote Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 31, 2005 Author Report Share Posted August 31, 2005 Sorry, it works now. I was doing something to cancel out the decimal setting but didn't notice it until just now. Again, sorry to bother you with this. Thanks, Diana "Diana Tetelman" <dtetelman@agi.com> wrote in message news:t6K9C2krFHA.1724@webserver3.softwarefx.com... >I am trying to use scientific notation format for an Y or Y2 axis and >specify the number of decimal places to show. This is how I am doing it... > > VARIANT vFormat; > V_VT(&vFormat) = VT_I4; > V_I4(&vFormat) = AF_SCIENTIFIC; > pGraph->Axis->Item[AXIS_Y]->Format = vFormat; > pGraph->Axis->Item[AXIS_Y]->Decimals = 4; > > This doesn't work as expected though. I get scientific notation numbers > but with 0 decimals. Is there another way to do this? > > Thanks, > Diana > Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.