Sfoglia il codice sorgente

Merge pull request #4524 from pratu16x7/update-charts

Update charts version
version-14
Prateeksha Singh 7 anni fa
committed by GitHub
parent
commit
b1e25ee7f4
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
3 ha cambiato i file con 7 aggiunte e 7 eliminazioni
  1. +3
    -2
      frappe/public/js/frappe/form/dashboard.js
  2. +1
    -1
      frappe/public/js/lib/frappe-charts/frappe-charts.min.iife.js
  3. +3
    -4
      frappe/utils/goal.py

+ 3
- 2
frappe/public/js/frappe/form/dashboard.js Vedi File

@@ -339,7 +339,7 @@ frappe.ui.form.Dashboard = Class.extend({
type: 'heatmap',
height: 100,
start: new Date(moment().subtract(1, 'year').toDate()),
count_label: frappe.model.scrub(this.frm.doctype) + "s",
count_label: "interactions",
discrete_domains: 0,
data: {}
});
@@ -409,7 +409,8 @@ frappe.ui.form.Dashboard = Class.extend({
$.extend(args, {
parent: '.form-graph',
type: 'line',
height: 140
height: 140,
colors: ['green']
});
this.show();



+ 1
- 1
frappe/public/js/lib/frappe-charts/frappe-charts.min.iife.js
File diff soppresso perché troppo grande
Vedi File


+ 3
- 4
frappe/utils/goal.py Vedi File

@@ -98,7 +98,7 @@ def get_monthly_goal_graph_data(title, doctype, docname, goal_value_field, goal_
summary_values = [
{
'title': _("This month"),
'color': 'green',
'color': '#ffa00a',
'value': formatted_value
}
]
@@ -114,12 +114,12 @@ def get_monthly_goal_graph_data(title, doctype, docname, goal_value_field, goal_
summary_values += [
{
'title': _("Goal"),
'color': 'blue',
'color': '#5e64ff',
'value': formatted_goal
},
{
'title': _("Completed"),
'color': 'green',
'color': '#28a745',
'value': str(int(round(float(current_month_value)/float(goal)*100))) + "%"
}
]
@@ -131,7 +131,6 @@ def get_monthly_goal_graph_data(title, doctype, docname, goal_value_field, goal_
'data': {
'datasets': [
{
'color': 'green',
'values': values,
'formatted': values_formatted
}


Caricamento…
Annulla
Salva