def generate_category_metric_rows(data):
    """
    Render HTML for a table showing metrics for all categories/classes.

    :param data: the visualisation data
    :type data: dict
    :return: the rendererd HTML
    :rtype: str
    """
    result = ''
    for category in data['results']['classes']:
        result += '<tr><td>'
        result += category
        result += '</td>\n'
        result += '<td>'
        result += str(data['results']['report'][category]['accuracy'])
        result += '</td>\n'
        result += '<td>'
        result += str(data['results']['report'][category]['precision'])
        result += '</td>\n'
        result += '<td>'
        result += str(data['results']['report'][category]['recall'])
        result += '</td>\n'
        result += '<td>'
        result += str(data['results']['report'][category]['f1-score'])
        result += '</td>\n'
        result += '<td>'
        result += str(data['results']['report'][category]['support'])
        result += '</td></tr>\n'
    return result
