def get_relfreq(total,total_freq):
    """Calculates the relative frequency for each item, returns complete dictionary """
    relfreq_dict = []

    for attribute, value in total.iteritems():
        if int(attribute) >= 1810:
            rel_freq = float(value) / total_freq[attribute] * 100
            relfreq_dict.append({"x": int(attribute), "y": rel_freq, "f": int(value)})

    return relfreq_dict