MrGeng 发表于 2018-7-2 11:29:50

本帖最后由 MrGeng 于 2018-7-2 11:35 编辑

找到graphreportlist.ftl文件,修改showReport(data, tabName) 方法中 加入判断类型是否为pieif("${x['graph_type']}" == "pie"){
                                          
    var arrNew = [];
    $.map(data,function (n,i) {   
      arrNew.push(,n["${x['field_name']}"] * 1 || 0])
    })

    series.push({type: "${x['graph_type']}", name: "${x['graph_name']}", data: arrNew});
}

MrGeng 发表于 2018-7-2 12:53:20

代码编辑器是真的难用
页: 1 [2]
查看完整版本: 在图表开发的饼图中数据显示为slice,怎么办?