prod
parent
0c36c1689f
commit
c3cbfee2a7
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,98 @@
|
|||||||
|
/*
|
||||||
|
* @Author: your name
|
||||||
|
* @Date: 2021-10-13 09:09:51
|
||||||
|
* @LastEditTime: 2021-10-27 17:32:39
|
||||||
|
* @LastEditors: Please set LastEditors
|
||||||
|
* @Description: In User Settings Edit
|
||||||
|
* @FilePath: /data-show/src/views/EventDetails/hotEventPropagationOriented/opt.js
|
||||||
|
*/
|
||||||
|
// const citylist = [
|
||||||
|
// {name: '领导人'},
|
||||||
|
// {name: '自然'},
|
||||||
|
// {name: '明星代言人'},
|
||||||
|
// {name: '车展'},
|
||||||
|
// {name: '新车上市'},
|
||||||
|
// {name: '新闻'},
|
||||||
|
// {name: '论坛'},
|
||||||
|
// {name: '微博'},
|
||||||
|
// {name: 'APP'},
|
||||||
|
// {name: '短视频'},
|
||||||
|
// {name: '吉利'},
|
||||||
|
// {name: '奔驰'},
|
||||||
|
// {name: '宝马'},
|
||||||
|
// {name: '特斯拉'},
|
||||||
|
// {name: '奥迪'},
|
||||||
|
// {name: '女车主表态'},
|
||||||
|
// {name: '广州车展'},
|
||||||
|
// {name: '销量大增'},
|
||||||
|
// ];
|
||||||
|
// const population=[
|
||||||
|
// {source: "领导人", target: "APP", value: 2000},
|
||||||
|
// {source: "APP", target: "宝马", value: 3000},
|
||||||
|
// //
|
||||||
|
// {source: "明星代言人", target: "论坛", value: 1000},
|
||||||
|
// //
|
||||||
|
// {source: "自然", target: "论坛", value: 2100},
|
||||||
|
// {source: "论坛", target: "宝马", value: 3100},
|
||||||
|
// {source: "宝马", target: "广州车展", value: 5100},
|
||||||
|
// //
|
||||||
|
// {source: "自然", target: "新闻", value: 3234},
|
||||||
|
// {source: "新闻", target: "吉利", value: 3000},
|
||||||
|
// {source: "吉利", target: "销量大增", value: 6000},
|
||||||
|
// //
|
||||||
|
// {source: "车展", target: "微博", value: 1234},
|
||||||
|
// {source: "微博", target: "特斯拉", value: 3234},
|
||||||
|
// {source: "特斯拉", target: "销量大增", value: 4234},
|
||||||
|
// //
|
||||||
|
// {source: "新车上市", target: "APP", value: 1234},
|
||||||
|
// {source: "APP", target: "宝马", value: 1234},
|
||||||
|
// //
|
||||||
|
// {source: "新车上市", target: "短视频", value: 2234},
|
||||||
|
// {source: "短视频", target: "奔驰", value: 2234},
|
||||||
|
// {source: "奔驰", target: "广州车展", value: 2234},
|
||||||
|
// //
|
||||||
|
// {source: "APP", target: "奥迪", value: 2234},
|
||||||
|
// {source: "奥迪", target: "销量大增", value: 2234},
|
||||||
|
// //
|
||||||
|
// {source: "奔驰", target: "女车主表态", value: 5234},
|
||||||
|
// ];
|
||||||
|
export default function createOpt(citylist=[],population=[]) {
|
||||||
|
return {
|
||||||
|
tooltip: {
|
||||||
|
trigger: "item",
|
||||||
|
backgroundColor: "#08182F",
|
||||||
|
color: "#fff",
|
||||||
|
borderColor: "#3373CC",
|
||||||
|
textStyle: {
|
||||||
|
color: "#fff", //设置文字颜色
|
||||||
|
},
|
||||||
|
triggerOn: 'mousemove',
|
||||||
|
extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;"
|
||||||
|
},
|
||||||
|
series: [
|
||||||
|
{
|
||||||
|
type: 'sankey',
|
||||||
|
data: citylist,
|
||||||
|
links: population,
|
||||||
|
focusNodeAdjacency: 'allEdges', //鼠标悬停到节点或边上,相邻接的节点和边高亮显示
|
||||||
|
left: 16,
|
||||||
|
right: 120,
|
||||||
|
top: 16,
|
||||||
|
bottom: 16,
|
||||||
|
itemStyle: {
|
||||||
|
borderWidth: 1,
|
||||||
|
},
|
||||||
|
lineStyle: {
|
||||||
|
color: 'target',
|
||||||
|
curveness: 0.5,
|
||||||
|
opacity:0.5
|
||||||
|
},
|
||||||
|
label: {
|
||||||
|
color: "#fff",
|
||||||
|
fontWeight: 'bold',
|
||||||
|
fontSize: 10
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue