Jump to content
Software FX Community

bar chart not lining up


Recommended Posts

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 

Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...