From a75ee4d80a8b6547b62c263a2a85d8424b031829 Mon Sep 17 00:00:00 2001 From: sushuang Date: Tue, 11 Sep 2018 23:26:11 +0800 Subject: [PATCH] enable sankey series focusNodeAdjacency value `true`. --- src/chart/sankey/SankeySeries.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/chart/sankey/SankeySeries.js b/src/chart/sankey/SankeySeries.js index e5acf52a1..50eb14964 100644 --- a/src/chart/sankey/SankeySeries.js +++ b/src/chart/sankey/SankeySeries.js @@ -89,6 +89,13 @@ var SankeySeries = SeriesModel.extend({ return SankeySeries.superCall(this, 'formatTooltip', dataIndex, multipleSeries); }, + optionUpdated: function () { + var option = this.option; + if (option.focusNodeAdjacency === true) { + option.focusNodeAdjacency = 'allEdges'; + } + }, + defaultOption: { zlevel: 0, z: 2, @@ -115,7 +122,7 @@ var SankeySeries = SeriesModel.extend({ // Control if the node can move or not draggable: true, - // Value can be 'inEdges', 'outEdges', 'allEdges'. + // Value can be 'inEdges', 'outEdges', 'allEdges', true (the same as 'allEdges'). focusNodeAdjacency: false, // The number of iterations to change the position of the node -- GitLab