update charts to latest (#4472)

This commit is contained in:
Prateeksha Singh 2017-11-13 17:21:13 +05:30 committed by Rushabh Mehta
parent c02a7469aa
commit 3bb628ffdb
6 changed files with 8 additions and 7 deletions

View file

@ -186,7 +186,8 @@ frappe.activity.render_heatmap = function(page) {
height: 100,
start: new Date(moment().subtract(1, 'year').toDate()),
count_label: "actions",
discrete_domains: 0
discrete_domains: 0,
data: {}
});
heatmap.update(r.message);

View file

@ -142,7 +142,7 @@
"public/js/frappe/translate.js",
"public/js/lib/datepicker/datepicker.min.js",
"public/js/lib/datepicker/locale-all.js",
"public/js/lib/frappe-charts/frappe-charts.min.js",
"public/js/lib/frappe-charts/frappe-charts.min.iife.js",
"public/js/lib/jquery.jrumble.min.js",
"public/js/lib/webcam.min.js",
"public/js/lib/leaflet/leaflet.js",

View file

@ -340,7 +340,8 @@ frappe.ui.form.Dashboard = Class.extend({
height: 100,
start: new Date(moment().subtract(1, 'year').toDate()),
count_label: frappe.model.scrub(this.frm.doctype) + "s",
discrete_domains: 0
discrete_domains: 0,
data: {}
});
// center the heatmap

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -136,10 +136,10 @@ def get_monthly_goal_graph_data(title, doctype, docname, goal_value_field, goal_
'formatted': values_formatted
}
],
'labels': months
'labels': months,
'specific_values': specific_values,
},
'specific_values': specific_values,
'summary': summary_values
}