vlntine Posted December 7, 2007 Report Share Posted December 7, 2007 file:///C:/DOCUME%7E1/OWNER%7E1.YOU/LOCALS%7E1/Temp/moz-screenshot-1.jpgI have created a bar graph that is display correctly; however, the bars are not lining up with the label on the X axis. How do I make them line up? Below is the code I am using. Any suggestions on how to correct this? chart.RgbBk = RGB(255,255,255) chart.datatype(1) = cdt_value chart.OpenDataEx COD_VALUES,oRS.RecordCount,oRS.RecordCount chart.OpenDataEX COD_COLORS, 0, 0 s = 0 'series counter r = 0 'row counter oRS.MoveFirst mean = 0 mesName = oRS("MID") while not oRS.EOF chart.Series(s).YValue(s) = oRS("totalRate") mean = mean + oRS("totalRate") chart.Axis(AXIS_X).Label(s) = oRS("MID") chart.Series(s).Legend = oRS("MID") chart.Gallery = 2 s = s + 1 oRS.MoveNext wend mean = mean/s chart.CloseData COD_VALUES chart.CloseData COD_COLORS Quote Link to comment Share on other sites More sharing options...
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.