Commit ccfd20e9 by zhaochengxiang

热力图调整

parent 7f6fa732
...@@ -69,6 +69,14 @@ const init = (ctx) => function (container, data, onClick) { ...@@ -69,6 +69,14 @@ const init = (ctx) => function (container, data, onClick) {
} }
var option = { var option = {
title: {
text: `${data[0]?.text||''} (${data[0]?.dataAssetAndSubDirCount})`,
left: 'center',
bottom: 20,
textStyle: {
fontSize: 16
}
},
tooltip: { tooltip: {
formatter: function (info) { formatter: function (info) {
var treePathInfo = info.treePathInfo; var treePathInfo = info.treePathInfo;
...@@ -100,10 +108,10 @@ const init = (ctx) => function (container, data, onClick) { ...@@ -100,10 +108,10 @@ const init = (ctx) => function (container, data, onClick) {
borderColor: '#fff' borderColor: '#fff'
}, },
breadcrumb: { breadcrumb: {
show: false show: false,
}, },
levels: getLevelOption(), levels: getLevelOption(),
data data: ((data||[]).length>0) ? (data[0].children||[]) : [],
} }
] ]
}; };
......
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 to comment