echarts-bot[bot] commented on issue #20274:
URL: https://github.com/apache/echarts/issues/20274#issuecomment-2298432539

   @luhuiaaaluhui It seems you are not using English, I've helped translate the 
content automatically. To make your issue understood by more people and get 
helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **BODY**
   
   ### What problem does this feature solve?
   
   Currently, adding legend to the Sankey diagram does not work.
   `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?
   
   I want the Sankey diagram to also support tag filtering and display 
relationships, similar to 
[https://echarts.apache.org/examples/zh/editor.html?c=graph](https://echarts.apache.org
 /examples/zh/editor.html?c=graph), you can filter and display nodes based on 
labels.
   </details>


-- 
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