Charts using rows data
This commit is contained in:
parent
f57ad0dae4
commit
3a17a69988
1 changed files with 4 additions and 3 deletions
|
|
@ -6,9 +6,10 @@ frappe.ui.Chart = Class.extend({
|
|||
$.extend(this.opts, opts);
|
||||
this.show_chart(false);
|
||||
|
||||
if(this.opts.data.columns.length > 1) {
|
||||
this.chart = this.render_chart();
|
||||
this.show_chart(true);
|
||||
if((this.opts.data.columns && this.opts.data.columns.length > 1)
|
||||
|| (this.opts.data.rows && this.opts.data.rows.length > 1)) {
|
||||
this.chart = this.render_chart();
|
||||
this.show_chart(true);
|
||||
}
|
||||
|
||||
return this.chart;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue