浏览代码

Merge pull request #1988 from mbauskar/develop

[minor] allowed to render the charts if only single record is available
version-14
Nabin Hait 9 年前
committed by GitHub
父节点
当前提交
65e000db67
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      frappe/public/js/frappe/ui/charts.js

+ 2
- 2
frappe/public/js/frappe/ui/charts.js 查看文件

@@ -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);
}


正在加载...
取消
保存