You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by su...@apache.org on 2018/09/11 16:56:04 UTC

[incubator-echarts] 02/02: enable sankey series focusNodeAdjacency value `true`.

This is an automated email from the ASF dual-hosted git repository.

sushuang pushed a commit to branch release
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git

commit a75ee4d80a8b6547b62c263a2a85d8424b031829
Author: sushuang <su...@gmail.com>
AuthorDate: Tue Sep 11 23:26:11 2018 +0800

    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 e5acf52..50eb149 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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org