Open lifan0127 opened 6 years ago
Thanks for creating this handy plugin for echarts.
I was trying to switch the layout from 'TB' to 'LR' but it wasn't working. Then I realized that here may be the reason:
https://github.com/ecomfe/echarts-dagre/blob/master/src/main.js#L44
dagre.layout(dagreGraph, layoutConfig);
According to this issue: https://github.com/dagrejs/dagre/issues/161, I had to change it to:
dagreGraph.setGraph(layoutConfig); dagre.layout(dagreGraph);
Additionally, the curveness value here is undefined: https://github.com/ecomfe/echarts-dagre/blob/master/src/main.js#L67. I am using echarts v4.
// undefined var curveness = edgeModel.get('lineStyle.normal.curveness'); // this works var curveness = edgeModel.get('lineStyle.curveness');
Thanks for creating this handy plugin for echarts.
I was trying to switch the layout from 'TB' to 'LR' but it wasn't working. Then I realized that here may be the reason:
https://github.com/ecomfe/echarts-dagre/blob/master/src/main.js#L44
According to this issue: https://github.com/dagrejs/dagre/issues/161, I had to change it to:
Additionally, the curveness value here is undefined: https://github.com/ecomfe/echarts-dagre/blob/master/src/main.js#L67. I am using echarts v4.