mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
perf: 新增单数据mock接口,优化漏斗图展示
This commit is contained in:
@@ -31,7 +31,6 @@ export const option = {
|
||||
width: '80%',
|
||||
bottom: 10,
|
||||
min: 0,
|
||||
max: 100,
|
||||
minSize: '0%',
|
||||
maxSize: '100%',
|
||||
sort: 'descending', // descending | ascending
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"dimensions": ["product", "category"],
|
||||
"dimensions": ["product", "dataOne"],
|
||||
"source": [
|
||||
{ "product": "data1", "category": 20 },
|
||||
{ "product": "data2", "category": 40 },
|
||||
{ "product": "data3", "category": 60 },
|
||||
{ "product": "data4", "category": 80 },
|
||||
{ "product": "data5", "category": 100 }
|
||||
{ "product": "data1", "dataOne": 20 },
|
||||
{ "product": "data2", "dataOne": 40 },
|
||||
{ "product": "data3", "dataOne": 60 },
|
||||
{ "product": "data4", "dataOne": 80 },
|
||||
{ "product": "data5", "dataOne": 100 }
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user