Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

series[i]-graph.categories[i] 中的 symbol 和 symbolSize 不起作用 #8009

Closed
maoyr opened this issue Mar 23, 2018 · 1 comment · Fixed by OpenTMI/opentmi-default-gui#32 or DeviaVir/zenbot#2011 · May be fixed by dyna-dot/iClient-JavaScript-s#1

Comments

@maoyr
Copy link

maoyr commented Mar 23, 2018

One-line summary [问题简述]

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

Version & Environment [版本及环境]

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

Expected behaviour [期望结果]

series[i]-graph.categories[i] 中的 symbol 和 symbolSize 可以正确作用

ECharts option [ECharts配置项]

option = {
    title: {
        text: 'Graph 简单示例'
    },
    series : [
        {
            type: 'graph',
            layout: 'none',
            data: [{
                name: '节点1',
                x: 300,
                y: 300,
                category: 0
            }, {
                name: '节点2',
                x: 800,
                y: 300,
                category: 1
            }],
            links: [{
                source: 0,
                target: 1
            }],
            categories: [{
                symbol:'diamond',
                symbolSize:50,
                itemStyle: {
                    normal: {
                        color: "orange",
                    }
                }
            },{
                symbol:'rect',
                symbolSize:50,
                itemStyle: {
                    normal: {
                        color: "green",
                    }
                }
            }]
        }
    ]
};

Other comments [其他信息]

@100pah 100pah added the bug label Mar 25, 2018
@Ovilia
Copy link
Contributor

Ovilia commented Sep 6, 2018

Duplicate of #5969

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment