Skip to content

[Bug] legend.itemStyle.decal is invalid #16909

@jouryfirst

Description

@jouryfirst

Version

5.2.1+

Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=doc-example/aria-pie&version=5.2.1

Steps to Reproduce

option = {
  aria: {
    enabled: true,
    decal: {
      show: true
    }
  },
  legend: {
    itemStyle: {
      decal: 'none'
    }
  },
  title: {
    text: '某站点用户访问来源',
    left: 'center'
  },
  series: [
    {
      name: '访问来源',
      type: 'pie',
      data: [
        { value: 335, name: '直接访问' },
        { value: 310, name: '邮件营销' },
        { value: 234, name: '联盟广告' },
        { value: 135, name: '视频广告' },
        { value: 1548, name: '搜索引擎' }
      ]
    }
  ]
};

Current Behavior

The docs say that while legend.itemStyle.decal is set to be 'none', no decal will be used.
I've set legend.itemStyle.decal to 'none', But the decal is still visible in V5.2.1+
issue1
issue2

Expected Behavior

as in the version 5.2.0, legend will be a solid color while legend.itemStyle.decal set 'none'

Environment

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    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