⽤Echart的Graph实现双向流程图 效果图:
Echart代码:
initChart(item) {
this.chart = echarts.ElementsByClassName("popupQualified")[0]); this.chart.tOption({
yAxis: [
{
type: "category",
boundaryGap: fal,
show: fal,
//这⾥按照同⼀⼯序有多个⼦⼯序的最⼤值取个数
data: this.YData,
},
给远方亲人的一封信],
xAxis: {
type: "category",
show: fal,
data: [],
},
ries: [
8月4日{
type: "graph",
layout: "none",
coordinateSystem: "cartesian2d",
symbolKeepAspect: fal,
symbol: "rect",
symbolSize: [130, 120],
label: {
normal: {
show: true,
},
},
edgeSymbol: ["circle", "arrow"],
edgeSymbolSize: [2, 5],
data: this.ValueData,
links: this.LinksData,
lineStyle: {
normal: {
color: "#2f4554",
},
},
},
],
});
},
白花蛇数据:
诚信为本console.log('YData:', this.YData)鼎力相助是什么意思
/**
[1,2,3]
**/
console.log('ValueData:', this.ValueData)
/**
[
{
name: "⼯序1_1",韵头
processName: "测试订单",
value:[0,0],
workCellType: 0,
workCenterName: "激光落料中⼼", },{
name: "⼯序1_2",
processName: "测试订单",
value:[0,1],
workCellType: 0,
workCenterName: "激光落料中⼼", },{
name: "⼯序2_1",
processName: "测试订单",
value:[120,0],
workCellType: 0,
workCenterName: "激光落料中⼼", },{
name: "⼯序2_2",
籽兔
processName: "测试订单",
value:[120,1],
workCellType: 0,
workCenterName: "激光落料中⼼", },{
name: "⼯序2_3",
processName: "测试订单",
value:[120,2],
workCellType: 0,
workCenterName: "激光落料中⼼", },{
name: "⼯序3_1",
processName: "测试订单",
value:[240,0],
workCellType: 0,
workCenterName: "激光落料中⼼", },
]
**/
console.log('LinksData:', this.LinksData)
/**
怎样下载歌曲[{ source: "⼯序1_1", target: "⼯序2_1" },
{ source: "⼯序2_1", target: "⼯序3_1" },
{ source: "⼯序1_1", target: "⼯序1_2" },
{ source: "⼯序1_2", target: "⼯序1_1" },
{ source: "⼯序2_1", target: "⼯序2_2" },
{ source: "⼯序2_2", target: "⼯序2_1" },
{ source: "⼯序2_2", target: "⼯序2_3" },
{ source: "⼯序2_3", target: "⼯序2_2" }]
**/