Commit c31dcc4c8b9c77cd2c3aa09e3c9cf97f200ae7a9
1 parent
1879b80608
Exists in
master
and in
8 other branches
add statistics(map) common index
Showing 1 changed file with 2 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/StatisticsController.java
View file @
c31dcc4
| ... | ... | @@ -253,12 +253,14 @@ |
| 253 | 253 | Tooltip tooltip = new Tooltip(); |
| 254 | 254 | tooltip.setTrigger("axis"); |
| 255 | 255 | tooltip.setShow(true); |
| 256 | + tooltip.setAxisPointer(new AxisPointer()); | |
| 256 | 257 | option.setTooltip(tooltip); |
| 257 | 258 | List<Object> legendData = new ArrayList<>(); |
| 258 | 259 | Legend legend = new Legend(); |
| 259 | 260 | legend.setTop("50px"); |
| 260 | 261 | legend.setLeft("center"); |
| 261 | 262 | legend.setData(legendData); |
| 263 | + legend.setOrient("horizontal"); | |
| 262 | 264 | option.setLegend(legend); |
| 263 | 265 | Grid grid = new Grid(); |
| 264 | 266 | grid.setContainLabel(true); |