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 
        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  
        mean = mean/s
         chart.CloseData COD_VALUES  
            chart.CloseData COD_COLORS 

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...