'return a single horizontal bar with label and values (abs./perc.)'

def create_hBar(self, value, percent, mPerc, mPerc_neg, max_neg, mul, valSpace, bColor, border, spacer, spacer_neg):

    bar = '<table    border=0    cellspacing=0    cellpadding=0    height=100%><tr>'
    if (percent < 0):
        percent *= (-1)
        bar += (((((('<td    style="' + self.__cssLABELBG) + '"    height=') + str(self.barWidth)) + '    width=') + str(int(round((((mPerc_neg - percent) * mul) + valSpace))))) + '    align=right    nowrap>')
        if (self.showValues < 2):
            bar += (((('<span    style="' + self.__cssPERCVALUES) + '">') + str(_number_format(percent, self.percValuesDecimals))) + '%</span>')
        bar += (('&nbsp;</td><td    style="' + self.__cssLABELBG) + '">')
        bar += self.build_bar(value, int(round((percent * mul))), self.barWidth, bColor)
        bar += (('</td><td    width=' + str(spacer)) + '></td>')
    else:
        if max_neg:
            bar += (((('<td    style="' + self.__cssLABELBG) + '"    width=') + str(spacer_neg)) + '>')
            bar += '<table    border=0    cellspacing=0    cellpadding=0><tr><td></td></tr></table></td>'
        if percent:
            bar += '<td>'
            bar += self.build_bar(value, int(round((percent * mul))), self.barWidth, bColor)
            bar += '</td>'
        else:
            bar += (('<td    width=1    height=' + str((self.barWidth + (border * 2)))) + '></td>')
        bar += (((('<td    style="' + self.__cssPERCVALUES) + '"    width=') + str(int(round((((mPerc - percent) * mul) + valSpace))))) + '    align=left    nowrap>')
        if (self.showValues < 2):
            bar += (('&nbsp;' + str(_number_format(percent, self.percValuesDecimals))) + '%')
        bar += '&nbsp;</td>'
    bar += '</tr></table>'
    return bar
