在“分析展现”节点下,创建一张透视分析。
选中透视分析,右键选择 编辑宏 进入报表宏界面。
类型 | 对象 | 事件 |
---|---|---|
ClientSide | INSIGHT | onRenderTable |
function main(insight) { //改变图形的位置 if (insight.elem_graphConfig.parentNode != null) { insight.elem_graphConfig.parentNode.removeChild(insight.elem_graphConfig); insight.elem_grid.parentNode.appendChild(insight.elem_graphConfig); } if (insight.elem_graph.parentNode != null) { insight.elem_graph.parentNode.removeChild(insight.elem_graph); insight.elem_grid.parentNode.appendChild(insight.elem_graph); } //让他们并列显示 insight.elem_grid.style.float = "left"; insight.elem_grid.style.display = "inline-block"; insight.elem_graphConfig.style.display = "inline-block"; insight.elem_graph.style.display = "inline-block"; //修改图形和表格之间的间隔 insight.elem_graph.style.paddingLeft = "50px"; //修改条件输入框和表格之间的间隔 insight.elem_cond.style.paddingBottom = "50px"; } |
资源:migrate.xml