Merge pull request #1988 from mbauskar/develop
[minor] allowed to render the charts if only single record is available
This commit is contained in:
commit
65e000db67
1 changed files with 2 additions and 2 deletions
|
|
@ -6,8 +6,8 @@ frappe.ui.Chart = Class.extend({
|
|||
$.extend(this.opts, opts);
|
||||
this.show_chart(false);
|
||||
|
||||
if(this.opts.data && ((this.opts.data.columns && this.opts.data.columns.length > 1)
|
||||
|| (this.opts.data.rows && this.opts.data.rows.length > 1))) {
|
||||
if(this.opts.data && ((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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue