0
|
GGGGGGGGGLv5初级互助发布于2023-2-6 16:40
|
在EChart组件代码里加这段代码,参数名根据情况修改 var titleText; if (window.FR) { titleText = window.FR && window.FR.remoteEvaluate("你的参数名"); } 然后在数据集里加上参数,去筛选出前N个
|
-
哆姗姗超酷(提问者)
- try
{var area = FR.remoteEvaluate(\'$topnum\');}
catch(err){}
const TABLE_DATA = getData(\"data1\");
option = {
title: {subtext: area},
legend: {},
tooltip: {},
dataset: {
source: TABLE_DATA,
},
xAxis: { type: \"category\" },
yAxis: {},
series: [{ type: \"bar\" }],
};
var titleText;
if (window.FR) {
titleText = window.FR && window.FR.remoteEvaluate(\"你的参数名\");
}
-
哆姗姗超酷(提问者)
- 是这样嘛,不行哎
|
|