From c31dcc4c8b9c77cd2c3aa09e3c9cf97f200ae7a9 Mon Sep 17 00:00:00 2001 From: baohanddd Date: Sat, 2 Jul 2016 17:42:05 +0800 Subject: [PATCH] add statistics(map) common index --- .../com/lyms/platform/operate/web/controller/StatisticsController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/StatisticsController.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/StatisticsController.java index 7ce292c..c434b7e 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/StatisticsController.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/StatisticsController.java @@ -253,12 +253,14 @@ public class StatisticsController extends BaseController { Tooltip tooltip = new Tooltip(); tooltip.setTrigger("axis"); tooltip.setShow(true); + tooltip.setAxisPointer(new AxisPointer()); option.setTooltip(tooltip); List legendData = new ArrayList<>(); Legend legend = new Legend(); legend.setTop("50px"); legend.setLeft("center"); legend.setData(legendData); + legend.setOrient("horizontal"); option.setLegend(legend); Grid grid = new Grid(); grid.setContainLabel(true); -- 1.8.3.1