Commit a7209c37d7fb7275b64470a77982836561b2ea6f
1 parent
7e750aee76
Exists in
master
and in
8 other branches
add statistics(map) common index
Showing 1 changed file with 2 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/StatisticsController.java
View file @
a7209c3
| ... | ... | @@ -599,7 +599,6 @@ |
| 599 | 599 | legend.setTop("20px"); |
| 600 | 600 | legend.setLeft("left"); |
| 601 | 601 | List<Object> tempList = new ArrayList<Object>(); |
| 602 | - tempList.add("建档及高危数"); | |
| 603 | 602 | legend.setData(tempList); |
| 604 | 603 | option.setLegend(legend); |
| 605 | 604 | option.setVisualMap(new VisualMap()); |
| ... | ... | @@ -713,6 +712,8 @@ |
| 713 | 712 | } |
| 714 | 713 | seriesList.add(series); |
| 715 | 714 | } |
| 715 | + String[] array = new String[color.size()]; | |
| 716 | + option.setColor(color.toArray(array)); | |
| 716 | 717 | AxisPointer yAxis = new AxisPointer(); |
| 717 | 718 | yAxis.setType("category"); |
| 718 | 719 | yAxis.setData(xData); |