⽤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: [
{李清照照片
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" }]
**/