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 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 > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.