提交 a75ee4d8 编写于 作者: S sushuang

enable sankey series focusNodeAdjacency value `true`.

上级 547ea172
...@@ -89,6 +89,13 @@ var SankeySeries = SeriesModel.extend({ ...@@ -89,6 +89,13 @@ var SankeySeries = SeriesModel.extend({
return SankeySeries.superCall(this, 'formatTooltip', dataIndex, multipleSeries); return SankeySeries.superCall(this, 'formatTooltip', dataIndex, multipleSeries);
}, },
optionUpdated: function () {
var option = this.option;
if (option.focusNodeAdjacency === true) {
option.focusNodeAdjacency = 'allEdges';
}
},
defaultOption: { defaultOption: {
zlevel: 0, zlevel: 0,
z: 2, z: 2,
...@@ -115,7 +122,7 @@ var SankeySeries = SeriesModel.extend({ ...@@ -115,7 +122,7 @@ var SankeySeries = SeriesModel.extend({
// Control if the node can move or not // Control if the node can move or not
draggable: true, draggable: true,
// Value can be 'inEdges', 'outEdges', 'allEdges'. // Value can be 'inEdges', 'outEdges', 'allEdges', true (the same as 'allEdges').
focusNodeAdjacency: false, focusNodeAdjacency: false,
// The number of iterations to change the position of the node // The number of iterations to change the position of the node
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册