|
|
@ -62,7 +62,7 @@ public class NewGlyph extends ChartGlyph { |
|
|
|
.put("max", 2500) |
|
|
|
.put("max", 2500) |
|
|
|
.put("x", "left") |
|
|
|
.put("x", "left") |
|
|
|
.put("y", "bottom") |
|
|
|
.put("y", "bottom") |
|
|
|
.put("text", JSONArray.create().put("高").put("低")); |
|
|
|
.put("text", JSONArray.create().put("高").put("低")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private JSONArray createSeries(Repository repo) throws JSONException { |
|
|
|
private JSONArray createSeries(Repository repo) throws JSONException { |
|
|
@ -73,7 +73,7 @@ public class NewGlyph extends ChartGlyph { |
|
|
|
.put("type", "map") |
|
|
|
.put("type", "map") |
|
|
|
.put("mapType", "china") |
|
|
|
.put("mapType", "china") |
|
|
|
.put("itemStyle", createItemStyle(repo)) |
|
|
|
.put("itemStyle", createItemStyle(repo)) |
|
|
|
.put("data", JSONArray.create().put(JSONObject.create().put("name", "北京").put("value", 20))) |
|
|
|
.put("data", JSONArray.create().put(JSONObject.create().put("name", "北京").put("value", 20))) |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
series.put(JSONObject.create() |
|
|
|
series.put(JSONObject.create() |
|
|
@ -81,7 +81,7 @@ public class NewGlyph extends ChartGlyph { |
|
|
|
.put("type", "map") |
|
|
|
.put("type", "map") |
|
|
|
.put("mapType", "china") |
|
|
|
.put("mapType", "china") |
|
|
|
.put("itemStyle", createItemStyle(repo)) |
|
|
|
.put("itemStyle", createItemStyle(repo)) |
|
|
|
.put("data", JSONArray.create().put(JSONObject.create().put("name", "江苏").put("value", 20))) |
|
|
|
.put("data", JSONArray.create().put(JSONObject.create().put("name", "江苏").put("value", 20))) |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
series.put(JSONObject.create() |
|
|
|
series.put(JSONObject.create() |
|
|
@ -89,7 +89,7 @@ public class NewGlyph extends ChartGlyph { |
|
|
|
.put("type", "map") |
|
|
|
.put("type", "map") |
|
|
|
.put("mapType", "china") |
|
|
|
.put("mapType", "china") |
|
|
|
.put("itemStyle", createItemStyle(repo)) |
|
|
|
.put("itemStyle", createItemStyle(repo)) |
|
|
|
.put("data", JSONArray.create().put(JSONObject.create().put("name", "四川").put("value", 20))) |
|
|
|
.put("data", JSONArray.create().put(JSONObject.create().put("name", "四川").put("value", 20))) |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
return series; |
|
|
|
return series; |
|
|
|