luhuiaaaluhui opened a new issue, #20274:
URL: https://github.com/apache/echarts/issues/20274

   ### What problem does this feature solve?
   
   目前在桑基图中增加legend的情况下是不起作用的
   `option = {
     series: {
       type: "sankey",
       layout: "none",
       emphasis: {
         focus: "adjacency",
       },
       legend: {
         data: ["1", "2", "3"],
         backgroundColor: "#ccc",
       },
   
       data: [
         {
           name: "a",
           category: "1",
         },
         {
           name: "b",
           category: "1",
         },
         {
           name: "a1",
           category: "2",
         },
         {
           name: "a2",
           category: "1",
         },
         {
           name: "b1",
           category: "3",
         },
         {
           name: "c",
           category: "1",
         },
       ],
       links: [
         {
           source: "a",
           target: "a1",
           value: 5,
         },
         {
           source: "a",
           target: "a2",
           value: 3,
         },
         {
           source: "b",
           target: "b1",
           value: 8,
         },
         {
           source: "a",
           target: "b1",
           value: 3,
         },
         {
           source: "b1",
           target: "a1",
           value: 1,
         },
         {
           source: "b1",
           target: "c",
           value: 2,
         },
       ],
       category: [{ name: "1" }, { name: "2" }, { name: "3" }],
     },
   };`
   
   ### What does the proposed API look like?
   
   
想要让桑基图也可以支持标签过滤,显示关联关系,类似[https://echarts.apache.org/examples/zh/editor.html?c=graph](https://echarts.apache.org/examples/zh/editor.html?c=graph)
 中的图,可以根据标签筛选显示节点。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to