[charts] update charts API

This commit is contained in:
Prateeksha Singh
2018-03-12 09:54:56 +05:30
parent fd75d554d2
commit 9362cf37e0
7 changed files with 13 additions and 15 deletions

View File

@@ -69,12 +69,12 @@ def get_chart_data(data,period_list):
datasets = []
if fuel_exp_data:
datasets.append({
'title': 'Fuel Expenses',
'name': 'Fuel Expenses',
'values': fuel_exp_data
})
if service_exp_data:
datasets.append({
'title': 'Service Expenses',
'name': 'Service Expenses',
'values': service_exp_data
})
chart = {