echarts 点击图例对应的点不消失为什么?

   KnowledgeOP.setOption({
            tooltip: {
              show: false,
            },
            legend: [{
              selectedMode: true,
              data: categories.map(a => a.name),
            }],
            // toolbox: {
            //   show: true,
            //   feature: {
            //     myButtons: {
            //       show: true, // 是否显示
            //       title: '详情', // 鼠标移动上去显示的文字
            //       icon: 'image://../images/icon-list.png',
            //       option: {},
            //       onclick() { // 点击事件,这里的option1是chart的option信息
            //         KnowledgeOP.dispose();
            //         owner.graphTemplate(nodeSize, 'detail', categories, fliterNodes, links);
            //       },
            //     },
            //   },
            // },
            series: [
              {
                name: 'Les Miserables',
                type: 'graph',
                layout: 'force',
                data: fliterNode,
                links,
                categories,
                roam: true,
                force: {
                  repulsion: 12,
                  // 必须为true
                  layoutAnimation: false,
                },
              },
            ],
          });
阅读 3.8k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题