vue3使用echarts做树图tree
1.安装echarts
npm install echarts --save
2.在main.js引入
import * as echarts from 'echarts'
// 全局方法
app.config.globalProperties.$echarts = echarts
3.使用
<div id="myChart" :style="{ width: '1000px', height: '1000px' }"></div>
。。。
onMounted(() => {
initTree();
})
const { proxy } = getCurrentInstance()
const initTree = () => {
var myChart = proxy.$echarts.init(document.getElementById('myChart'));
if (myChart != null && myChart != "" && myChart != undefined) {
myChart.dispose(); //销毁
}
var myChart = proxy.$echarts.init(document.getElementById('myChart'))
let src1 =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANMAAABjCAYAAAABzTWsAAAAAXNSR0IArs4c6QAAGvpJREFUeNrtnV2MJFd1x3/nVk/3zK7bEJZdY7CXZYl4c5D4MPEHiuMoICXYxLGX5CFxFCUEBKyJlPe8JFKeogSbD0NIHpJIiby2ILZ5ipRgCF7jAJH5kFBIlvXiD/BkxUd7d7a7p+/JQ51bdau6qqd6dname7fOqra7qz+mbtX/f//nnHvqXmGnTVUu+jdElNZaWzKMySVoyMU0VFuCtTYH3i4N1raJN7mIBtV/90TD3z2Gzt3gllRXMolm42pncLdtzMmcjZKZDThoz/sNfncQHfS6Pa9uZEuolkizsXcwem8e7K1H2NoKew0wJxdFojryrDZo0IXSwQ/QuUjVEupKIdJsEu0U9gK5LoJUMjeRAoniRqwinLHXaw2ldgPlsB1kaNzsRrVkaslU3YkHAp1B5sIfwGG0QK7Qqc/CXw32pDGR6hoRN6Bnj90ZDRrZQQ3tMZBq3ga1hLpyiVTVke8kBus79ZmEmkUmqW1EuQF9HGcbNCJuyAGUEcoQnaMxc/uxrS0tmZopUsBhD6GLbAuHA3wtqeoItSWZmhJpHZf1AgNcduArCB17Pij9dh9l0w5kbI99fEao1Af2Uw2ZjqFadbrSVKkqRirjsGtYDDgE6CCVOATYRDMcjlD6+Jk4bEAoN7OBs4jUxzEkoYuwhmOThA1ctq1GWwcpvLdmvzHAMcBl0nwGyfzfftQTtdZalWcUd+iBSGsRzjYMezEW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PrD2mKEVdpMdOi7QAdhcSyJ+0+WqnJMhojilqAndEjnOuO+ljELswfJzM2I8ml7mA24yjBS8lLr1Hfruu9IAlqryzMYE7ercZb8YOlgoicf6njC8P5UgrYXFmd/jdJ3BHorzw3PABHZYBkDOhMt/9tmksWCqER8e1XOR7utnmBOmh1XkO9zPpdhrHxW2GxjSHmbc5jU+/UACefuS5X+pkjRMHr0iJ5qS8E+o2X/vk5e9N8E6o25wSlpPrNnl67bmfTzHv5LrOKeaduOEoAq/97+UXysUUnL3GdUQgPmPtNM9XT8X7bENKsx5LsmE6lts6N3u56EnrxV/IF4MJS1DIQU+JTaNjR89s17VnSykh1O3x0mLKy64WlbiOSFzVQCQUI47jE7/ZwsuEUK8/Jm0b1/FOjiDmhTWyBLG0ck+cpxlXNcgXc5vGDBFkwFRA1RFtFpHTFHuS8kp+uLDy0iJnWi/g5nWcs3pBmGnMbcsITjVCU6+V2A1/iylPm0XO3JsHLkU8rCOSVjWY+M0ffiK4Qj1ujZ3rbFNx9vjpQvAKdUzDellhkTPP1o3MJiRN8GYnLGQLx9XwEswA8kjrPFWnKPIrKKjOJC6S6sOPIU9jRsKSgSsLpygCwPjhtALSjxZUXnKJ4YstKU77KxRNYz7XmZKTFO+KIoAsml6YJoMvBK8sPAu2zROx7t6sezkpb75mxxzLFGe/oOzx44XgPf/sU5PlHz7pOtv8PwN3x739jyqVAAAAAElFTkSuQmCC";
var data2 = [
{
name: "深圳供电局",
money: "800",
label: {
width: 180,
height: 80,
backgroundColor: {
image: src1,
},
},
children: [
{
//子集
name: "全资(2家)",
money: "800",
label: {
width: 111,
height: 54,
backgroundColor: {
image: src3,
},
},
children: [
{
//子集
name: "深圳产投",
percent: "1.43%",
money: "800",
label: {
width: 94,
height: 54,
backgroundColor: {
image: src5,
},
},
children: [
{
//子集
name: "能源科技",
percent: "1.43%",
money: "800",
label: {
width: 94,
height: 54,
backgroundColor: {
image: src5,
},
},
},
],
},
{
//子集
name: "能源技术",
percent: "1.43%",
money: "800",
label: {
width: 94,
height: 54,
backgroundColor: {
image: src5,
},
},
},
],
},
{
name: "控股(1家)",
money: "800",
label: {
width: 111,
height: 54,
backgroundColor: {
image: src3,
},
},
children: [
{
//子集
name: "低碳城",
percent: "1.43%",
money: "800",
label: {
width: 94,
height: 54,
backgroundColor: {
image: src4,
},
},
},
],
},
{
name: "参股(6家)",
money: "800",
label: {
width: 111,
height: 54,
backgroundColor: {
image: src3,
},
},
children: [
{
name: "南网电动",
percent: "1.43%",
money: "800",
label: {
width: 94,
height: 54,
backgroundColor: {
image: src5,
},
},
},
{
name: "科技开发",
percent: "1.43%",
money: "800",
label: {
width: 94,
height: 54,
backgroundColor: {
image: src5,
},
},
},
{
name: "深研院",
percent: "1.43%",
money: "800",
label: {
width: 94,
height: 54,
backgroundColor: {
image: src5,
},
},
},
{
name: "前海供电",
percent: "1.43%",
money: "800",
label: {
width: 94,
height: 54,
backgroundColor: {
image: src4,
},
},
},
{
name: "南网财务",
percent: "1.43%",
money: "800",
label: {
width: 94,
height: 54,
backgroundColor: {
image: src6,
},
},
},
{
name: "混改基金",
percent: "1.43%",
money: "800",
label: {
width: 94,
height: 54,
backgroundColor: {
image: src6,
},
},
},
],
},
],
},
];
function searchSpotBg(type) {
return type === 1
? "linear-gradient(-90deg, #0168CE, #27AFE0)"
: type === 2
? "linear-gradient(-90deg, #008C4F, #44F093)"
: "linear-gradient(270deg, #CB6000, #FFAB1A)";
}
var option = {
tooltip: {
show: "true",
trigger: "item",
formatter: function (params) {
let data = params.data;
let str = ` <div
style="background:#333;display: flex;justify-content: space-between;color: #FFFFFF;line-height: 20px;">
<div>
<p>全称</p>
<p>业务板块</p>
<p>累计投资金额</p>
</div>
<div>
<p>${data.fullName || "--"}</p>
<p><span style="display:inline-block;margin-right:5px;width:10px;height:10px;background:${searchSpotBg(
data.type
)}"></span>新兴业务</p>
<p>${data.money || "--"}${data.cell || "万元"}</p>
</div>
</div>`;
return str;
},
},
series: [
{
type: "tree",
orient: "vertical",
name: "自然资源厅",
edgeShape: "polyline", //链接线是折现还是曲线
data: data2,
width: 1100, //树形图宽
height: 547, //树形图高
top: "20%",
left: "10%",
symbolSize: [60, 38], //设置自己选择区域的宽高
symbol: "rect", //子级选择区域的形状默认circle(圆形),rect矩形
roam: true, //鼠标移到区块时会显示一个灰色背景的title,移动不同区域时是否开启滑动动画
initialTreeDepth: 10,
itemStyle: {
//symbol的样式
color: "#333",
borderColor: "#333",
},
label: {
normal: {
position: [30, 15],
verticalAlign: "middle",
align: "center",
backgroundColor: "#99d97c",
color: "#fff",
padding: 3,
formatter: function (params) {
let money = params.data.money ? "" + params.data.money : "";
let percent = params.data.percent ? params.data.percent : "";
let name =
params.name.substring(0, 11) + "\n" + params.name.substring(11);
let konggu = params.value ? params.value : "";
if (konggu) {
return [
`{percent|${percent}}`,
`{name|${name}}`,
`{money|${money}}`,
].join("\n");
} else {
return [
`{konggu|${konggu}}`,
`{percent|${percent}}`,
`{name|${name}}`,
`{money|${money}}`,
].join("\n");
}
},
rich: {
percent: {
color: "#FFF",
padding: [-40, 0],
height: 18,
distance: 10,
align: "left",
verticalAlign: "top",
fontSize: 12,
borderWidth: 1,
fontWeight: "normal",
},
name: {
height: 18,
color: "#FFF",
padding: [2, 0],
align: "center",
fontSize: 12,
},
money: {
height: 18,
color: "#fff",
padding: [-20, 0],
align: "center",
fontSize: 12,
borderWidth: 2,
fontWeight: "normal",
},
},
},
},
leaves: {
label: {
normal: {
position: [30, 15],
verticalAlign: "middle",
align: "center",
backgroundColor: "#f3857c",
// formatter: ['{box|{b}}'].join('\n'),
// rich: {
// box: {
// height: 18,
// color: '#fff',
// padding: [20, 20],
// align: 'center',
// },
// },
formatter: function (params) {
console.log(params);
let money = params.data.money;
let percent = params.data.percent;
let name =
params.name.substring(0, 11) + "\n" + params.name.substring(11);
return [
`{percent|${percent}}`,
`{name|${name}}`,
`{money|${money}}`,
].join("\n");
},
rich: {
percent: {
color: "#FFF",
padding: [-30, 0],
height: 18,
distance: 10,
align: "left",
verticalAlign: "top",
fontSize: 12,
borderWidth: 1,
fontWeight: "normal",
},
name: {
height: 22,
color: "#FFF",
padding: [13, 0, 0, 0],
align: "center",
fontSize: 12,
},
money: {
height: 18,
color: "#fff",
padding: [-20, 0],
align: "center",
fontSize: 12,
borderWidth: 2,
fontWeight: "normal",
},
},
},
},
},
lineStyle: {
color: {
type: "linear",
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{
offset: 0,
color: "#0E769D", // 0% 处的颜色
},
{
offset: 1,
color: "#939597", // 100% 处的颜色
},
],
global: false, // 缺省为 false
},
},
expandAndCollapse: true,
animationDuration: 550,
animationDurationUpdate: 750,
},
],
};
// 使用刚指定的配置项和数据显示图表。
myChart.setOption(option)
}