rsbi 4 年之前
父節點
當前提交
d952bd7d10
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/main/java/com/ruisitech/bi/service/bireport/ChartService.java

+ 6 - 0
src/main/java/com/ruisitech/bi/service/bireport/ChartService.java

@@ -228,6 +228,12 @@ public class ChartService extends BaseCompService {
 		}
 		//不显示值
 		properties.add(new ChartKeyContext("showLabel", "false"));
+		if(xcol != null){
+			Integer top = xcol.getTop();
+			if(top != null){
+				properties.add(new ChartKeyContext("xcnt", String.valueOf(top)));
+			}
+		}
 		
 		ctx.setProperties(properties);