def METHOD_NAME(queryset):
    """
    Get all the household bill totals for all avaliable years and join
    the data so that plotly can draw the graph.
    Eg: for 2015/16 we need all the total for all the income levels
    """
    final_bill_totals = {}
    household_class = HouseholdClass.objects.all()
    filtered_queryset = is_range(household_class, queryset)
    for income in household_class:
        final_bill_totals[income.name] = {"x": [], "y": []}
    for value in filtered_queryset:
        final_bill_totals[value["household_class__name"]]["x"].append(
            value["financial_year__budget_year"]
        )
        final_bill_totals[value["household_class__name"]]["y"].append(
            str(value["total"])
        )
    return final_bill_totals