@@ -252,11 +252,13 @@ frappe.ui.form.Dashboard = Class.extend({ | |||||
this.stats_area.html(html).removeClass('hidden'); | this.stats_area.html(html).removeClass('hidden'); | ||||
this.show(); | this.show(); | ||||
}, | }, | ||||
//graphs | //graphs | ||||
setup_chart: function(opts) { | setup_chart: function(opts) { | ||||
var me = this; | var me = this; | ||||
this.chart_area.removeClass('hidden'); | |||||
$.extend(opts, { | $.extend(opts, { | ||||
wrapper: me.wrapper, | wrapper: me.wrapper, | ||||
bind_to: ".form-chart", | bind_to: ".form-chart", | ||||
@@ -265,7 +267,7 @@ frappe.ui.form.Dashboard = Class.extend({ | |||||
bottom: 30 | bottom: 30 | ||||
} | } | ||||
}); | }); | ||||
this.chart = new frappe.ui.Chart(opts); | this.chart = new frappe.ui.Chart(opts); | ||||
if(this.chart) { | if(this.chart) { | ||||
this.show(); | this.show(); | ||||
@@ -7,7 +7,7 @@ | |||||
<div id="heatmap-{{ frm.doctype }}"></div> | <div id="heatmap-{{ frm.doctype }}"></div> | ||||
<div class="text-muted small heatmap-message hidden"></div> | <div class="text-muted small heatmap-message hidden"></div> | ||||
</div> | </div> | ||||
<div class="form-chart form-dashboard-section"></div> | |||||
<div class="form-chart form-dashboard-section hidden"></div> | |||||
<div class="form-stats form-dashboard-section hidden"></div> | <div class="form-stats form-dashboard-section hidden"></div> | ||||
<div class="form-links form-dashboard-section hidden"> | <div class="form-links form-dashboard-section hidden"> | ||||
<div class="transactions"></div> | <div class="transactions"></div> | ||||