echarts icon indicating copy to clipboard operation
echarts copied to clipboard

series[i]-graph.links[i].symbolSize 设置 0 ,显示大小却是 10

Open maoyr opened this issue 8 years ago • 3 comments

One-line summary [问题简述]

如题,应该是个小 bug ? 可将下面代码在官网运行一下。

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]: 最新
  • Browser version [浏览器类型和版本]: chrome
  • OS Version [操作系统类型和版本]:

Expected behaviour [期望结果]

series[i]-graph.links[i].symbolSize 设置 0 ,显示大小为 0

ECharts option [ECharts配置项]

option = {
    title: {
        text: 'Graph 简单示例'
    },
    series : [
        {
            type: 'graph',
            layout: 'none',
            symbolSize: 50,
            roam: true,
            label: {
                normal: {
                    show: true
                }
            },
            data: [{
                name: '节点1',
                x: 300,
                y: 300
            }, {
                name: '节点2',
                x: 800,
                y: 300
            }, {
                name: '节点3',
                x: 550,
                y: 100
            }, {
                name: '节点4',
                x: 550,
                y: 500
            }],
            // links: [],
            links: [{
                source: 0,
                target: 1,
                symbol: [ 'circle', 'arrow' ],
                symbolSize: [0, 0],
                label: {
                    normal: {
                        show: true
                    }
                }
            }, {
                source: '节点1',
                target: '节点3',
                symbol: [ 'circle', 'arrow' ],
                symbolSize: [10, 10]
            }, {
                source: '节点2',
                target: '节点3'
            }, {
                source: '节点2',
                target: '节点4'
            }, {
                source: '节点1',
                target: '节点4',
                symbol: [ 'circle', 'arrow' ],
                symbolSize: [20, 20]
            }],
            lineStyle: {
                normal: {
                    opacity: 0.9,
                    width: 2,
                    curveness: 0
                }
            }
        }
    ]
};

Other comments [其他信息]

maoyr avatar Mar 21 '18 09:03 maoyr

额,我知道要怎样控制不显示,只是发现了上面那个问题,像下面设置了 symbol 也可以控制不显示。symbol 的大小有默认但是当设置了 size 的时候也该按照 size 来吧。。。 edgeSymbol: ['circle', 'arrow'], edgeSymbolSize: [0, 10],

maoyr avatar Mar 22 '18 02:03 maoyr

我也发现了你问题的重点,所以删掉了评论。。。

dfEric avatar Mar 22 '18 03:03 dfEric

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 01 '20 19:04 stale[bot]