Skip to content

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

@maoyr

Description

@maoyr

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 [其他信息]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions