def get_gviz_json(obj):
    description = { "lang": ("string", "Language"),
                    "trans": ("number", "Translated")}
    data = []
    for stat in get_sorted_stats(obj):
        trans = stat.translated_perc
        data.append({
            "lang": stat.language.name,
            "trans": trans})
    data_table = gviz_api.DataTable(description)
    data_table.LoadData(data)
    return data_table.ToJSonResponse(columns_order=("lang", "trans"))
Returns JSON data of Google Visualization API
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/addons/charts/views.py/get_gviz_json