The problem of adding hyperlinks to echarts tree text?

the project needs to add a hyperlink or click event on the tree node text to achieve the page jump effect. I looked at the official document and only found the node click event. The jump is realized through the node click event. The implementation code is as follows

        treeChart.setOption(optiontree);
                   treeChart.on("click",
                        function (params) {
                            const firstType =params.value;
                            const path = "/-sharp/app/itrisk/riskitem?firstType="+firstType;
                            location.href=path;
                        });

question:
1.echarts tree node text, can I add a hyperlink?
can click events be set for 2.echarts tree node text content?

clipboard.png

Feb.27,2021
Does

lz solve this problem?


have you solved the problem? ask urgently

Menu