Commit c1c671d7 by 罗建民

--story=1013170 --user=罗建民 list支持 section https://www.tapd.cn/56664057/s/1127315

parent 63b2a3c6
Showing with 15 additions and 4 deletions
...@@ -51,6 +51,7 @@ class Example1 { ...@@ -51,6 +51,7 @@ class Example1 {
text: '顶部2' text: '顶部2'
], ],
series: [ series: [
[
name : '访问来源', name : '访问来源',
type : 'pie', type : 'pie',
radius: '55%', radius: '55%',
...@@ -63,6 +64,7 @@ class Example1 { ...@@ -63,6 +64,7 @@ class Example1 {
] ]
] ]
] ]
]
} }
def chartFuncTest3(ChartCustomFunctionContext ctx) { def chartFuncTest3(ChartCustomFunctionContext ctx) {
...@@ -84,11 +86,13 @@ class Example1 { ...@@ -84,11 +86,13 @@ class Example1 {
], ],
yAxis: [:], yAxis: [:],
series : [ series : [
[
name: '数量', name: '数量',
type: 'line', type: 'line',
data: Arrays.stream(dataList.getList()).map(dataObject -> dataObject.getKeyFieldValue()).collect(Collectors.toList()) data: Arrays.stream(dataList.getList()).map(dataObject -> dataObject.getKeyFieldValue()).collect(Collectors.toList())
] ]
] ]
]
} }
def chartFuncTest4(ChartCustomFunctionContext ctx) { def chartFuncTest4(ChartCustomFunctionContext ctx) {
...@@ -97,6 +101,7 @@ class Example1 { ...@@ -97,6 +101,7 @@ class Example1 {
text: '顶部2' text: '顶部2'
], ],
series: [ series: [
[
name : '访问来源', name : '访问来源',
type : 'pie', type : 'pie',
radius: '55%', radius: '55%',
...@@ -109,5 +114,6 @@ class Example1 { ...@@ -109,5 +114,6 @@ class Example1 {
] ]
] ]
] ]
]
} }
} }
\ No newline at end of file
...@@ -544,14 +544,16 @@ ...@@ -544,14 +544,16 @@
"title": "顶部1", "title": "顶部1",
"when": "1", "when": "1",
"optionFunc": "chartFuncTest1", "optionFunc": "chartFuncTest1",
"span": 6 "span": 6,
"height": 400
}, },
{ {
"name": "顶部2", "name": "顶部2",
"title": "顶部2", "title": "顶部2",
"when": "1", "when": "1",
"optionFunc": "chartFuncTest2", "optionFunc": "chartFuncTest2",
"span": 6 "span": 6,
"height": 400
} }
], ],
"actions": [] "actions": []
...@@ -565,7 +567,8 @@ ...@@ -565,7 +567,8 @@
"title": "chart", "title": "chart",
"when": "1", "when": "1",
"optionFunc": "chartFuncTest3", "optionFunc": "chartFuncTest3",
"span": 12 "span": 12,
"height": 400
} }
], ],
"actions": [], "actions": [],
...@@ -580,7 +583,8 @@ ...@@ -580,7 +583,8 @@
"title": "底部", "title": "底部",
"when": "1", "when": "1",
"optionFunc": "chartFuncTest4", "optionFunc": "chartFuncTest4",
"span": 12 "span": 12,
"height": 400
} }
], ],
"actions": [] "actions": []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment