User (Legacy) Posted January 28, 2003 Report Share Posted January 28, 2003 I am using ChartFX in VB6 to display graphs of large numbers. To make them readable, I use the .ScaleUnit property of the Y axis. But when I do this, there's a large amount of whitespace to the left of the axis, almost as if it was leaving room for the extra digits that are not displayed due to the scaling. Does anyone know if this is a bug, or am I doing something wrong? Settings I'm using on the chart that may be pertinent: .Gallery = BARS .Palette = "Gray Scale" .AxesStyle = CAS_MATH .Axis.Item(AXIS_Y).Decimals = 0 .Axis.Item(AXIS_Y).Font.Name = "Swis721 BT" .Axis.Item(AXIS_Y).Font.Size = 7 .Axis.Item(AXIS_X).Visible = False .View3DDepth = 35 .Volume = 60 .TopGap = 14 .LeftGap = 1 'Was set to 35, appears to make no difference .RightGap = 0 .BottomGap = 53 .Stacked = CHART_STACKED .Axis.Item(AXIS_Y).Decimals = 2 .Axis.Item(AXIS_Y).ScaleUnit = 1000000000 .Axis.Item(AXIS_Y).Title = "$ Billions" (JPEG image of graph is attached) Thanks! Eric Law Link to comment Share on other sites More sharing options...
Software FX Posted January 28, 2003 Report Share Posted January 28, 2003 What might be happening is that the LeftGap was already big before this code got executed. try adding the following line to the BEGINNING of your code: .LeftGap = 1 -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.